/* TBI Store - Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #c0392b;
    --primary-dark: #a93226;
    --primary-light: #e74c3c;
    --bg: #f8f9fa;
    --card-bg: #fff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #ecf0f1;
    --success: #27ae60;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-buttons {
    display: flex;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tbi-logo-box {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 6px 10px;
}

.tbi-text {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 18px;
}

.tbi-text .dot { color: var(--primary-light); }

.logo-text h1 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-light);
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover { color: var(--primary); }

/* Hero */
.hero {
    background: linear-gradient(135deg, #2c3e50, #c0392b);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    background: #f0f0f0;
    color: var(--text);
}

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Section Titles */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 48px;
}

/* Products */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.product-card.bundle {
    border: 2px solid var(--primary);
}

.product-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.product-badge.new { background: var(--success); }
.product-badge.best { background: #8e44ad; }

.product-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.product-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.product-features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.product-features li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text);
}

.product-features li::before {
    content: "\2713";
    color: var(--success);
    font-weight: 700;
    margin-right: 8px;
}

.product-price {
    margin-bottom: 20px;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
}

.period {
    font-size: 14px;
    color: var(--text-light);
}

/* How It Works */
.how-section {
    padding: 80px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-light);
    font-size: 14px;
}

/* Contact */
.contact-section {
    padding: 60px 0;
    text-align: center;
}

.contact-section p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.contact-info {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 16px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: rgba(255,255,255,0.7);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
}

.tbi-logo-box-sm {
    background: #1a1a1a;
    border-radius: 4px;
    padding: 3px 6px;
}

.tbi-text-sm {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 12px;
}

.tbi-text-sm .dot { color: var(--primary-light); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-sm { max-width: 420px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-body {
    padding: 24px;
}

/* Forms */
.form-row { margin-bottom: 14px; }
.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(192,57,43,0.1);
}

.req { color: var(--primary-light); }

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
}

.order-summary h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    color: var(--text-light);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error { background: #fef0f0; color: #c62828; border: 1px solid #fecdd3; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

/* Success */
.success-icon {
    width: 64px;
    height: 64px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.success-text {
    font-size: 16px;
    margin-bottom: 20px;
}

.key-display {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    margin: 16px 0;
}

.key-display label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 8px;
}

.key-value {
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    padding: 8px;
    background: white;
    border-radius: 6px;
    border: 2px dashed var(--primary);
    margin-bottom: 8px;
    word-break: break-all;
}

.key-info {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .nav { display: none; }
    .form-row.two-col { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
}
