/* ============================================
   CSS VARIABLES & THEME
   ============================================ */
:root {
    --primary: #8B0000;
    --primary-light: #A52A2A;
    --primary-dark: #5C0000;
    --accent: #DC143C;
    --accent-light: #FF6B6B;
    --text: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f5f9;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --container-width: 1280px;
    --section-padding: 6rem;
}

[data-theme="dark"] {
    --text: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --border: #374151;
    --border-light: #1f2937;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

body.loaded #loadingScreen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

hr { color: var(--border-light); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-secondary);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 1rem;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.5rem;
}

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

.btn-full { width: 100%; }

/* Add to Cart Button */
.btn-cart {
    width: 100%;
    margin-top: 1rem;
    background: var(--bg-secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
}

.btn-cart:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-cart.added {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.loading-logo-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(139, 0, 0, 0.5); }
}

.loading-logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
}

.loading-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.spinner-ring {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spinner-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    border-color: var(--primary) transparent transparent transparent;
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    border-color: transparent var(--primary-light) transparent transparent;
    animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
    border-color: transparent transparent var(--accent) transparent;
    animation-delay: -0.15s;
}

@keyframes spinner-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.loading-progress-bar {
    width: 100%;
    max-width: 280px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 0.75rem;
}

.loading-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-percentage {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal-content {
    max-width: 480px;
    padding: 0;
    overflow: hidden;
}

.auth-modal-body {
    padding: 0;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.auth-form {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 0.75rem;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.terms-label {
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.terms-label a {
    color: var(--primary);
    font-weight: 600;
}

.forgot-password {
    color: var(--primary);
    font-weight: 500;
}

.auth-submit {
    position: relative;
    overflow: hidden;
}

.auth-submit .btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-submit.loading .btn-text {
    opacity: 0;
}

.auth-submit.loading .btn-loader {
    display: block;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.google-auth-wrapper {
    display: flex;
    justify-content: center;
}

.auth-error {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    text-align: center;
    min-height: 1.2rem;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px var(--shadow-lg);
}

.cart-sidebar.active {
    transform: translateX(0);
}

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

.cart-header h3 {
    font-size: 1.25rem;
}

.cart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-close:hover {
    background: var(--primary);
    color: white;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cart-empty-icon {
    color: var(--border);
    margin-bottom: 1rem;
}

.cart-empty p {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cart-empty span {
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.cart-qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cart-qty-value {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--accent);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.cart-summary {
    margin-bottom: 1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.9rem;
}

.cart-summary-row.discount {
    color: #10b981;
}

.cart-summary-row.total {
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.cart-summary-row.total strong {
    color: var(--primary);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Cart Toggle Button */
.cart-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all var(--transition-base);
}

.cart-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-base);
}

.cart-badge.active {
    opacity: 1;
    transform: scale(1);
}

/* Auth Nav Button */
.auth-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all var(--transition-base);
}

.auth-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.auth-nav-btn.logged-in {
    border-color: var(--primary);
    background: var(--gradient-primary);
    color: white;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: fixed;
    top: 70px;
    right: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 0;
    min-width: 240px;
    box-shadow: 0 20px 40px var(--shadow-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.user-menu-info {
    display: flex;
    flex-direction: column;
}

.user-menu-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-menu-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1rem;
}

.user-menu-list {
    list-style: none;
}

.user-menu-list li a,
.user-menu-list li button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.user-menu-list li a:hover,
.user-menu-list li button:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.checkout-modal-content {
    max-width: 600px;
}

.checkout-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 1.5rem 0 2rem;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.checkout-step.active {
    color: var(--primary);
}

.checkout-step .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.checkout-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.checkout-step.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.checkout-step-connector {
    width: 40px;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.checkout-step-connector.active {
    background: var(--primary);
}

.checkout-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.checkout-panel.active {
    display: block;
}

.checkout-items {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.checkout-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.checkout-item-price {
    font-weight: 700;
    color: var(--primary);
}

.checkout-totals {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.checkout-total-row.grand {
    font-size: 1.1rem;
    font-weight: 700;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.checkout-total-row.grand span:last-child {
    color: var(--primary);
}

.checkout-nav {
    display: flex;
    gap: 1rem;
}

.checkout-nav .btn {
    flex: 1;
}

.payment-info-panel {
    margin-bottom: 1.5rem;
}

.payment-card-highlight {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.payment-card-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.payment-card-row:last-child {
    border-bottom: none;
}

.payment-card-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-card-row strong {
    color: var(--text);
    font-weight: 600;
}

.payment-card-row .account-number {
    font-family: 'SF Mono', monospace;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.copy-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    margin-left: 0.5rem;
}

.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.copy-btn.copied {
    border-color: #10b981;
    color: #10b981;
}

.payment-note-box {
    display: flex;
    gap: 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem;
    color: #92400e;
}

.payment-note-box svg {
    flex-shrink: 0;
    color: #f59e0b;
}

.payment-note-box p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.checkout-success {
    text-align: center;
    padding: 2rem 1rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #10b981;
}

.checkout-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.checkout-success p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastIn 0.3s ease;
    pointer-events: auto;
    min-width: 280px;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid var(--accent);
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Brochure Button */
.brochure-section {
    text-align: center;
    margin-top: 3rem;
}

.btn-brochure {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.3);
    font-size: 1rem;
    padding: 1rem 2rem;
}

.btn-brochure:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.btn-brochure svg { margin-right: 0.5rem; }

.brochure-note {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 15, 15, 0.9);
    border-color: var(--border);
}

.navbar.scrolled { box-shadow: 0 4px 20px var(--shadow); }

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active { color: var(--primary); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.dropdown { position: relative; }

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle svg { transition: transform var(--transition-base); }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    list-style: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.sun-icon, .moon-icon {
    position: absolute;
    transition: all var(--transition-base);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    flex: 1;
}

.hero-content { max-width: 600px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
    transition: all var(--transition-base);
}

.title-line { display: block; }

.title-line.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats-mini {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.mini-stat {
    display: flex;
    flex-direction: column;
}

.mini-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.mini-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mini-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-dots {
    display: flex;
    gap: 0.75rem;
    margin-top: 3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px var(--shadow-lg);
}

/* 16:9 responsive wrapper */
.video-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Unmute Button */
.video-unmute-btn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 0.45rem 0.9rem 0.45rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.3px;
}

.video-unmute-btn:hover {
    background: rgba(139,0,0,0.8);
    transform: scale(1.04);
}

.video-unmute-btn.unmuted {
    background: rgba(139,0,0,0.75);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, transparent 100%);
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

[data-theme="dark"] .float-card {
    background: rgba(26, 26, 26, 0.95);
}

.card-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.float-content {
    display: flex;
    flex-direction: column;
}

.float-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.float-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.hero-scroll {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scroll-line 2s infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Stats Section */
.stats-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all var(--transition-base);
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.stat-image {
    height: 160px;
    overflow: hidden;
}

.stat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.stat-card:hover .stat-image img { transform: scale(1.1); }

.stat-content {
    padding: 1.5rem;
    text-align: center;
}

.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -40px auto 1rem;
    color: var(--primary);
    border: 4px solid var(--bg);
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header.light .section-title,
.section-header.light .section-subtitle { color: white; }

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    border: 1px solid var(--border);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Mission & Vision */
.mission-vision {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mv-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary-light);
}

.mv-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.mv-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Values Section */
.values-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary);
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: all var(--transition-base);
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: white;
}

.value-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Courses Section */
.courses-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-hero);
    position: relative;
}

.courses-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.course-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

[data-theme="dark"] .course-card {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--border);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.course-card:hover .course-image img { transform: scale(1.1); }

.course-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(139, 0, 0, 0.6), transparent);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-base);
}

.course-card:hover .course-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.course-play-btn:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.course-content { padding: 1.5rem; }

.course-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.course-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.course-price {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.price-physical {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.price-online {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.course-duration {
    display: inline-block;
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.course-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap var(--transition-fast);
}

.course-link:hover { gap: 0.5rem; }

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
    padding: var(--section-padding) 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(139,0,0,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Stats Bar */
.reviews-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3.5rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.reviews-stat-item {
    text-align: center;
    flex: 1;
    padding: 1.75rem 1.5rem;
    position: relative;
    transition: background 0.2s;
}

.reviews-stat-item:hover {
    background: rgba(139,0,0,0.04);
}

.reviews-stat-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.reviews-stat-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin: 0.3rem 0 0.2rem;
}

.reviews-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.reviews-stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
    flex-shrink: 0;
}

/* Carousel Wrapper */
.review-carousel {
    max-width: 860px;
    margin: 0 auto;
}

.review-carousel-container {
    overflow: hidden;
    border-radius: 28px;
}

.review-carousel-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-carousel-slide {
    width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 100%;
    padding: 0 0.25rem;
}

/* Review Card */
.review-carousel-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 2.75rem 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-carousel-card:hover {
    box-shadow: 0 20px 60px var(--shadow-lg);
    border-color: rgba(139, 0, 0, 0.2);
}

/* Decorative top accent bar */
.review-carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), rgba(139,0,0,0.3), transparent);
}

/* Large decorative quote watermark */
.review-carousel-quote {
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 9rem;
    color: var(--primary);
    opacity: 0.07;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    font-weight: 900;
}

/* Review Body */
.review-carousel-text {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    z-index: 1;
    max-height: 9.5rem;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    margin-bottom: 1.75rem;
    transition: max-height 0.4s ease, mask-image 0.4s ease;
}

.review-carousel-text.expanded {
    max-height: 40rem;
    mask-image: none;
    -webkit-mask-image: none;
}

.review-read-more {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}

.review-read-more:hover { opacity: 0.75; }

/* Author Row */
.review-carousel-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.review-carousel-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 18px rgba(139,0,0,0.18);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-carousel-avatar:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 28px rgba(139,0,0,0.28);
}

.review-carousel-info {
    flex: 1;
}

.review-carousel-info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text);
    letter-spacing: -0.2px;
}

.review-carousel-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.review-carousel-stars {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

/* Meta Row */
.review-carousel-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.review-carousel-course {
    background: linear-gradient(135deg, var(--primary), rgba(139,0,0,0.75));
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.review-carousel-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.review-carousel-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--border);
    border-radius: 50%;
}

/* Carousel Controls */
.review-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.review-carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.review-carousel-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-secondary);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139,0,0,0.15);
}

.review-carousel-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    box-shadow: none;
}

.review-carousel-counter {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    min-width: 54px;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.review-counter-current {
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
}

.review-counter-separator { color: var(--border); font-weight: 300; font-size: 1.2rem; }
.review-counter-total { color: var(--text-muted); font-size: 0.9rem; }

/* Carousel Dots */
.review-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.review-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.review-carousel-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 4px;
}

.review-carousel-dot:hover:not(.active) {
    background: var(--text-muted);
    transform: scale(1.3);
}

/* Apply Section */
.apply-section {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.apply-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.apply-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.apply-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1.5rem;
}

.apply-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.apply-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.logo-icon.small {
    width: 32px;
    height: 32px;
}

.logo-icon.small svg {
    width: 18px;
    height: 18px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 300px;
    margin-bottom: 1rem;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-address svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-links h5,
.footer-contact h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.footer-links ul,
.contact-list { list-style: none; }

.footer-links li,
.contact-list li { margin-bottom: 0.75rem; }

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.contact-link:hover { color: var(--primary); }

.contact-link svg {
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-social { display: flex; gap: 1rem; }

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6); }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--bg);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 5px 20px var(--shadow);
    border: 1px solid var(--border);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-base);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-large { max-width: 1000px; }

.modal-small { max-width: 420px; text-align: center; }

.blog-modal-content { max-width: 460px; }

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-body { padding: 2.5rem; }

.modal-video {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.modal-video video {
    width: 100%;
    height: auto;
    display: block;
}

.modal-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.modal-info > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.detail-value {
    font-weight: 600;
    color: var(--text);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.price-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.price-type {
    font-weight: 600;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-features { list-style: none; }

.price-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.payment-info {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
}

.payment-info h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.payment-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.payment-row:last-child { border-bottom: none; }

.payment-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-row strong {
    color: var(--text);
    font-weight: 600;
}

.account-number {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary);
}

.payment-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.text-center { text-align: center; }

/* Blog Coming Soon Modal Styles */
.blog-coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.blog-badge-pulse {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.blog-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.blog-modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.blog-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.blog-feature-icon { font-size: 1.75rem; }

.blog-feature span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.blog-notify {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.blog-notify p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(0.9); }

[data-aos="fade-right"].aos-animate,
[data-aos="fade-left"].aos-animate { transform: translateX(0); }

[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
        min-height: 400px;
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .mv-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards { grid-template-columns: 1fr; }

    .reviews-stats-bar { gap: 2rem; padding: 1.5rem; }
    .reviews-stat-number { font-size: 2rem; }

    .cart-sidebar {
        width: 380px;
    }
}

/* Logo & Mobile Spacing Fixes */
@media (max-width: 768px) {
    .logo img {
        height: 42px !important; /* Prevents shrinking */
        width: auto;
    }
    .hero-container {
        gap: 0.9rem !important; /* Closes space between video and text */
        padding-top: 1rem;
    }
    .video-container {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Review Expansion */
.review-carousel-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}
.review-carousel-text.expanded {
    -webkit-line-clamp: initial;
}

@media (max-width: 768px) {
    :root { --section-padding: 2rem; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        align-items: flex-start;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0 1rem;
        min-width: auto;
    }

    .mobile-menu-btn { display: flex; }
    .hero-content { text-align: center; }
    .hero-stats-mini { justify-content: center; }
    .hero-dots { justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: 1fr; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .apply-box { padding: 2.5rem 1.5rem; }
    .float-card { display: none; }

    .hero-visual {
        min-height: 280px;
        order: -1;
    }

    /* Mobile Hero Video Spacing */
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-container {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .video-container {
        margin-bottom: 0;
    }

    /* Mobile Social Icons Resize */
    .footer-social {
        gap: 0.75rem;
    }

    .social-link {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    /* Mobile WhatsApp Float */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-tooltip { display: none; }

    /* Mobile Cart Sidebar */
    .cart-sidebar {
        width: 100%;
    }

    /* Mobile Auth Modal */
    .auth-modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Mobile Checkout */
    .checkout-flow {
        gap: 0.25rem;
    }

    .checkout-step-connector {
        width: 20px;
    }

    .checkout-nav {
        flex-direction: column;
    }

    .checkout-success-actions {
        max-width: 100%;
    }

    /* Reviews mobile */
    .reviews-stats-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .reviews-stat-divider {
        width: 60px;
        height: 1px;
    }

    .review-carousel-card {
        padding: 2rem 1.5rem 1.75rem;
    }

    .review-carousel-quote {
        font-size: 6rem;
        top: 0.75rem;
        right: 1.25rem;
    }

    .review-carousel-text { font-size: 1rem; }

    .review-carousel-author {
        flex-direction: row;
        align-items: center;
    }

    .review-carousel-avatar {
        width: 62px;
        height: 62px;
    }

    .review-carousel-info {
        text-align: left;
    }

    .review-carousel-meta {
        justify-content: flex-start;
    }

    .blog-features { gap: 1rem; }

    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .nav-container { padding: 0.75rem 1rem; }
    .hero-container { padding: 1.5rem 1rem; }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn { width: 100%; }

    .hero-stats-mini {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .mini-divider { display: none; }
    .modal-body { padding: 1.5rem 1rem; }

    .review-carousel-controls { gap: 1rem; }
    .review-carousel-btn {
        width: 44px;
        height: 44px;
    }
    .review-carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    .review-carousel-card { padding: 1.5rem 1rem; }
    .review-carousel-text { font-size: 1rem; }

    /* Extra small mobile social */
    .social-link {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .social-link svg {
        width: 14px;
        height: 14px;
    }

    .footer-bottom {
        gap: 1rem;
    }

    .loading-logo-text {
        font-size: 1rem;
    }

    .cart-toggle,
    .auth-nav-btn,
    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .user-menu-dropdown {
        right: 0.5rem;
        left: 0.5rem;
        min-width: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .hero-scroll,
    .modal,
    .cart-sidebar,
    .cart-overlay,
    .cart-toggle,
    .auth-nav-btn,
    .theme-toggle,
    .loading-screen,
    .toast-container {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
    }
}
