/* ═══════════════════════════════════════════════════════════════════════
   🎨 AppVault - Styles
   By: Hx7 Team
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --bg: #09090b; --bg-alt: #18181b; --surface: #1f1f23; --surface-hover: #27272a;
    --text: #fafafa; --text-muted: #a1a1aa; --text-dim: #71717a;
    --primary: #3b82f6; --primary-hover: #2563eb; --primary-soft: rgba(59,130,246,0.15);
    --accent: #10b981; --accent-hover: #059669; --accent-soft: rgba(16,185,129,0.15);
    --border: #27272a; --border-light: #3f3f46;
    --warning: #f59e0b; --purple: #8b5cf6;
    --radius: 8px; --radius-lg: 12px; --radius-xl: 16px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.4);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════════════════════════
   🧭 NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */

.nav { position: sticky; top: 0; z-index: 100; background: rgba(9,9,11,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo svg { width: 28px; height: 28px; }
.nav-center { display: flex; gap: 32px; }
.nav-center a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); cursor: pointer; }
.nav-center a:hover, .nav-center a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; position: relative; }
.nav-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px; width: 220px; position: relative; }
.nav-search input { background: none; border: none; outline: none; color: var(--text); font-size: 0.875rem; width: 100%; }
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search svg { width: 16px; height: 16px; color: var(--text-dim); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   🔘 BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; cursor: pointer; transition: all var(--transition); border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-light); }
.btn-success { background: var(--accent); color: white; }
.btn-success:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════
   📑 SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

.section { display: none; padding: 0 0 80px; min-height: calc(100vh - 64px); }
.section.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════════════
   🏠 HERO / HOME
   ═══════════════════════════════════════════════════════════════════════ */

.hero { background: radial-gradient(ellipse at 30% 0%, rgba(59,130,246,0.15) 0%, transparent 50%), radial-gradient(ellipse at 70% 100%, rgba(139,92,246,0.1) 0%, transparent 50%), var(--bg); padding: 80px 0; text-align: center; border-bottom: 1px solid var(--border); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-soft); color: var(--primary); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 20px; line-height: 1.1; }
.hero h1 span { background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--primary); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════════════
   ℹ️ ABOUT SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.about-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-content h2 { font-size: 2rem; margin-bottom: 20px; }
.about-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.about-content .highlight { color: var(--primary); font-weight: 500; }
.about-content .disclaimer { display: inline-block; background: rgba(255, 8, 0, 0.281); color: var(--warning); padding: 8px 16px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 500; margin-top: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all var(--transition); }
.about-feature:hover { border-color: var(--border-light); transform: translateY(-2px); }
.about-feature-icon { width: 44px; height: 44px; background: var(--primary-soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.25rem; }
.about-feature h4 { font-size: 1rem; margin-bottom: 8px; }
.about-feature p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════
   📦 PRODUCTS SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.products-section { padding: 64px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-header h2 { font-size: 1.75rem; }
.section-header p { color: var(--text-muted); font-size: 0.95rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border-radius: 50px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; font-weight: 500; transition: all var(--transition); }
.filter-btn:hover { border-color: var(--border-light); color: var(--text); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; cursor: pointer; transition: all var(--transition); position: relative; }
.product-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.product-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.product-badge { font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-badge.new { background: var(--accent-soft); color: var(--accent); }
.product-badge.popular { background: var(--primary-soft); color: var(--primary); }
.product-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.product-price { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem; }
.product-price span { font-size: 0.75rem; color: var(--text-dim); font-weight: 400; }
.product-cat { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* ═══════════════════════════════════════════════════════════════════════
   💀 LOADING SKELETONS
   ═══════════════════════════════════════════════════════════════════════ */

.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 280px; border-radius: var(--radius-xl); }
.skeleton-icon { width: 52px; height: 52px; border-radius: var(--radius-lg); }
.skeleton-title { height: 24px; width: 70%; margin: 16px 0 8px; }
.skeleton-text { height: 16px; width: 100%; margin-bottom: 8px; }
.skeleton-text.short { width: 50%; }
.skeleton-price { height: 20px; width: 30%; margin-top: 16px; }
.product-card.loading { pointer-events: none; }
.product-card.loading .product-icon, .product-card.loading h3, .product-card.loading p, .product-card.loading .product-price, .product-card.loading .product-cat, .product-card.loading .product-badge { opacity: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   👁️ VIEW ALL CARD
   ═══════════════════════════════════════════════════════════════════════ */

.view-all-card { background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 100%); border: 2px dashed var(--border-light); border-radius: var(--radius-xl); padding: 40px 24px; cursor: pointer; transition: all var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 200px; }
.view-all-card:hover { border-color: var(--primary); background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, var(--surface) 100%); transform: translateY(-4px); }
.view-all-card svg { width: 48px; height: 48px; color: var(--primary); margin-bottom: 16px; }
.view-all-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.view-all-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════════
   🔍 SEARCH DROPDOWN
   ═══════════════════════════════════════════════════════════════════════ */

.search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 8px; max-height: 320px; overflow-y: auto; display: none; z-index: 200; box-shadow: var(--shadow-lg); }
.search-results.active { display: block; }
.search-result-item { padding: 12px 16px; cursor: pointer; transition: background var(--transition); display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface-hover); }
.search-result-item .icon { font-size: 1.5rem; width: 40px; height: 40px; background: var(--primary-soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.search-result-item .info { flex: 1; }
.search-result-item .info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.search-result-item .info span { font-size: 0.75rem; color: var(--text-dim); }
.search-no-results { padding: 24px; text-align: center; color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════════════
   👤 USER SYSTEM
   ═══════════════════════════════════════════════════════════════════════ */

.user-nav { display: flex; align-items: center; gap: 12px; }
.user-btn { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); color: var(--text); font-size: 0.875rem; font-weight: 500; }
.user-btn:hover { background: var(--surface-hover); border-color: var(--border-light); }
.user-btn svg { width: 18px; height: 18px; }
.user-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 0.8rem; cursor: pointer; }
.user-dropdown { position: absolute; top: 100%; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 200px; margin-top: 8px; display: none; z-index: 200; box-shadow: var(--shadow-lg); overflow: hidden; }
.user-dropdown.active { display: block; }
.user-dropdown-header { padding: 16px; border-bottom: 1px solid var(--border); }
.user-dropdown-header h4 { font-size: 0.95rem; margin-bottom: 2px; }
.user-dropdown-header span { font-size: 0.8rem; color: var(--text-dim); }
.user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text-muted); font-size: 0.875rem; cursor: pointer; transition: all var(--transition); }
.user-dropdown-item:hover { background: var(--surface-hover); color: var(--text); }
.user-dropdown-item svg { width: 16px; height: 16px; }
.user-dropdown-item.danger { color: #ef4444; }
.user-dropdown-item.danger:hover { background: rgba(239,68,68,0.1); }

/* ═══════════════════════════════════════════════════════════════════════
   🔐 AUTH MODAL
   ═══════════════════════════════════════════════════════════════════════ */

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; animation: modalIn 0.2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-header { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { font-size: 1.5rem; }
.modal-close { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 8px; border-radius: var(--radius); transition: all var(--transition); }
.modal-close:hover { background: var(--surface-hover); color: var(--text); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 24px; }
.modal-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--bg-alt); padding: 4px; border-radius: var(--radius); }
.modal-tab { flex: 1; padding: 10px 16px; border: none; background: transparent; color: var(--text-muted); font-size: 0.875rem; font-weight: 500; cursor: pointer; border-radius: 6px; transition: all var(--transition); }
.modal-tab.active { background: var(--primary); color: white; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.form-divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; color: var(--text-dim); font-size: 0.8rem; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-login { display: flex; gap: 12px; }
.social-btn { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.875rem; transition: all var(--transition); }
.social-btn:hover { background: var(--surface-hover); border-color: var(--border-light); }

/* ═══════════════════════════════════════════════════════════════════════
   📊 DASHBOARD
   ═══════════════════════════════════════════════════════════════════════ */

.dashboard-section { padding: 40px 0; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.dashboard-user { display: flex; align-items: center; gap: 16px; }
.dashboard-avatar { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 600; }
.dashboard-user-info h2 { font-size: 1.5rem; margin-bottom: 4px; }
.dashboard-user-info span { color: var(--text-muted); font-size: 0.9rem; }
.dashboard-user-info .member-since { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.dashboard-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.dashboard-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.dashboard-stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* Dashboard Tabs */
.dashboard-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.dashboard-tab { padding: 14px 24px; background: none; border: none; color: var(--text-muted); font-weight: 500; cursor: pointer; position: relative; transition: color var(--transition); white-space: nowrap; font-size: 0.9rem; }
.dashboard-tab:hover { color: var(--text); }
.dashboard-tab.active { color: var(--text); }
.dashboard-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--primary); }
.dashboard-tab-content { display: none; }
.dashboard-tab-content.active { display: block; }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.dashboard-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; }
.dashboard-card h3 { font-size: 1.1rem; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.dashboard-card h3 .badge { font-size: 0.7rem; background: var(--primary-soft); color: var(--primary); padding: 4px 10px; border-radius: 50px; font-weight: 600; }

/* Purchase/License Items */
.purchase-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 12px; }
.purchase-item:last-child { margin-bottom: 0; }
.purchase-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.purchase-info { flex: 1; min-width: 0; }
.purchase-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.purchase-info span { font-size: 0.8rem; color: var(--text-dim); }
.purchase-status { text-align: right; }
.purchase-status .status { font-size: 0.75rem; padding: 4px 10px; border-radius: 50px; font-weight: 600; }
.purchase-status .status.active { background: var(--accent-soft); color: var(--accent); }
.purchase-status .status.expired { background: rgba(239,68,68,0.15); color: #ef4444; }
.purchase-status .status.pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.purchase-status .date { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.purchase-actions { display: flex; gap: 8px; margin-left: 12px; }
.download-btn { padding: 8px 16px; background: var(--primary); color: white; border: none; border-radius: var(--radius); cursor: pointer; font-size: 0.8rem; font-weight: 500; transition: all var(--transition); }
.download-btn:hover { background: var(--primary-hover); }
.download-btn.secondary { background: var(--surface-hover); color: var(--text); border: 1px solid var(--border); }

/* License Keys */
.license-key-box { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin-top: 8px; }
.license-key { font-family: monospace; font-size: 0.85rem; color: var(--text-muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 4px; transition: color var(--transition); }
.copy-btn:hover { color: var(--primary); }
.copy-btn.copied { color: var(--accent); }

/* Billing Table */
.billing-table { width: 100%; border-collapse: collapse; }
.billing-table th, .billing-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.billing-table th { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.billing-table tr:last-child td { border-bottom: none; }
.billing-table .amount { font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.billing-table .invoice-link { color: var(--primary); cursor: pointer; }
.billing-table .invoice-link:hover { text-decoration: underline; }

/* Notifications */
.notification-item { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.notification-item:last-child { border-bottom: none; }
.notification-item:hover { background: var(--bg-alt); }
.notification-item.unread { background: var(--primary-soft); }
.notification-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.notification-icon.update { background: var(--primary-soft); }
.notification-icon.billing { background: var(--accent-soft); }
.notification-icon.alert { background: rgba(239,68,68,0.15); }
.notification-icon.promo { background: rgba(139,92,246,0.15); }
.notification-content { flex: 1; }
.notification-content h4 { font-size: 0.9rem; margin-bottom: 4px; }
.notification-content p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.notification-time { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }

/* Security Settings */
.security-item { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 12px; }
.security-item:last-child { margin-bottom: 0; }
.security-info { display: flex; align-items: center; gap: 14px; }
.security-icon { width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.security-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.security-info span { font-size: 0.8rem; color: var(--text-dim); }
.security-status { display: flex; align-items: center; gap: 10px; }
.security-badge { font-size: 0.75rem; padding: 4px 10px; border-radius: 50px; font-weight: 600; }
.security-badge.enabled { background: var(--accent-soft); color: var(--accent); }
.security-badge.disabled { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Active Sessions */
.session-item { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 10px; }
.session-item.current { border: 1px solid var(--accent); }
.session-icon { font-size: 1.5rem; }
.session-info { flex: 1; }
.session-info h4 { font-size: 0.9rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.session-info h4 .current-badge { font-size: 0.65rem; background: var(--accent); color: white; padding: 2px 8px; border-radius: 50px; }
.session-info span { font-size: 0.8rem; color: var(--text-dim); }
.session-revoke { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 0.8rem; font-weight: 500; }
.session-revoke:hover { text-decoration: underline; }

/* Subscription Cards */
.subscription-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.subscription-card.active { border-color: var(--accent); }
.subscription-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.subscription-app { display: flex; align-items: center; gap: 12px; }
.subscription-app-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.subscription-app h4 { font-size: 1rem; margin-bottom: 2px; }
.subscription-app span { font-size: 0.8rem; color: var(--text-dim); }
.subscription-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.subscription-detail label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.subscription-detail span { font-size: 0.9rem; font-weight: 500; }
.subscription-actions { display: flex; gap: 8px; margin-top: 16px; }

.empty-purchases { text-align: center; padding: 40px; color: var(--text-dim); }
.empty-purchases svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.profile-form .form-group { margin-bottom: 16px; }
.profile-form label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.profile-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); color: var(--text); font-size: 0.9rem; }
.profile-form input:focus { outline: none; border-color: var(--primary); }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 10px; cursor: pointer; transition: all var(--transition); }
.quick-action:hover { background: var(--surface-hover); }
.quick-action:last-child { margin-bottom: 0; }
.quick-action-icon { width: 40px; height: 40px; background: var(--primary-soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.quick-action-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.quick-action-info span { font-size: 0.75rem; color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════════════
   🤖 HELP CENTER & CHATBOT
   ═══════════════════════════════════════════════════════════════════════ */

.help-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.help-method { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; cursor: pointer; transition: all var(--transition); }
.help-method:hover { border-color: var(--primary); transform: translateY(-2px); }
.help-method.active { border-color: var(--primary); background: var(--primary-soft); }
.help-method-icon { width: 48px; height: 48px; background: var(--primary-soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 1.5rem; }
.help-method h4 { font-size: 0.95rem; margin-bottom: 4px; }
.help-method p { font-size: 0.8rem; color: var(--text-muted); }
.help-method .status { font-size: 0.7rem; margin-top: 8px; padding: 4px 8px; border-radius: 50px; display: inline-block; }
.help-method .status.online { background: var(--accent-soft); color: var(--accent); }
.help-method .status.offline { background: rgba(239,68,68,0.15); color: #ef4444; }

.chatbot-container { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.chatbot-container.active { display: block; }
.chatbot-header { background: var(--primary); padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.chatbot-header-avatar { width: 36px; height: 36px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.chatbot-header-info h4 { color: white; font-size: 0.95rem; }
.chatbot-header-info span { color: rgba(255,255,255,0.7); font-size: 0.8rem; }
.chatbot-messages { height: 300px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chatbot-msg { max-width: 80%; padding: 12px 16px; border-radius: var(--radius-lg); font-size: 0.9rem; line-height: 1.5; }
.chatbot-msg.bot { background: var(--bg-alt); border-bottom-left-radius: 4px; }
.chatbot-msg.user { background: var(--primary); color: white; margin-left: auto; border-bottom-right-radius: 4px; }
.chatbot-input { display: flex; gap: 8px; padding: 16px; border-top: 1px solid var(--border); }
.chatbot-input input { flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); color: var(--text); }
.chatbot-input button { padding: 12px 20px; }

/* ═══════════════════════════════════════════════════════════════════════
   🔔 TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════ */

.toast-container { position: fixed; top: 80px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease; min-width: 300px; pointer-events: auto; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid var(--primary); }
.toast-icon { font-size: 1.25rem; }
.toast-content { flex: 1; }
.toast-content h4 { font-size: 0.9rem; margin-bottom: 2px; }
.toast-content p { font-size: 0.8rem; color: var(--text-muted); }
.toast-close { background: none; border: none; color: var(--text-dim); cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════
   🛍️ PRODUCT DETAIL
   ═══════════════════════════════════════════════════════════════════════ */

.product-page { padding: 40px 0 80px; }
.product-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; margin-bottom: 32px; transition: color var(--transition); }
.product-back:hover { color: var(--text); }
.product-back svg { width: 18px; height: 18px; }
.product-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; }
.product-gallery { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.product-gallery-icon { font-size: 5rem; opacity: 0.8; }
.product-info h1 { font-size: 2rem; margin-bottom: 12px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.product-meta-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.875rem; }
.product-meta-item svg { width: 16px; height: 16px; }
.product-rating { display: flex; align-items: center; gap: 4px; color: #fbbf24; }
.product-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 32px; }
.product-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn { padding: 12px 20px; background: none; border: none; color: var(--text-muted); font-weight: 500; cursor: pointer; position: relative; transition: color var(--transition); }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content h3 { font-size: 1.1rem; margin-bottom: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--bg-alt); border-radius: var(--radius); font-size: 0.9rem; }
.feature-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--text-muted); }

/* Purchase Card */
.purchase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; position: sticky; top: 96px; }
.pricing-toggle { display: flex; background: var(--bg-alt); border-radius: var(--radius); padding: 4px; margin-bottom: 24px; }
.pricing-toggle-btn { flex: 1; padding: 10px 16px; border: none; background: transparent; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; cursor: pointer; border-radius: 6px; transition: all var(--transition); }
.pricing-toggle-btn.active { background: var(--primary); color: white; }
.subscription-options { display: none; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.subscription-options.active { display: flex; }
.sub-option { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--bg-alt); border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition); }
.sub-option:hover { border-color: var(--border-light); }
.sub-option.selected { border-color: var(--primary); background: var(--primary-soft); }
.sub-option-left { display: flex; align-items: center; gap: 12px; }
.sub-radio { width: 20px; height: 20px; border: 2px solid var(--border-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.sub-option.selected .sub-radio { border-color: var(--primary); }
.sub-radio::after { content: ''; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; opacity: 0; transition: opacity var(--transition); }
.sub-option.selected .sub-radio::after { opacity: 1; }
.sub-option-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.sub-option-info span { font-size: 0.8rem; color: var(--text-dim); }
.sub-option-right { text-align: right; }
.sub-option-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700; }
.sub-option-save { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.onetime-price { display: none; margin-bottom: 24px; }
.onetime-price.active { display: block; }
.onetime-price .price-amount { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 700; }
.onetime-price .price-note { color: var(--text-dim); font-size: 0.875rem; margin-top: 4px; }
.purchase-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.purchase-features { padding-top: 24px; border-top: 1px solid var(--border); }
.purchase-features h4 { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.purchase-feature { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 12px; }
.purchase-feature svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.trust-badges { display: flex; gap: 10px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.trust-badge { flex: 1; text-align: center; padding: 12px 8px; background: var(--bg-alt); border-radius: var(--radius); }
.trust-badge svg { width: 20px; height: 20px; color: var(--text-dim); margin-bottom: 6px; }
.trust-badge span { display: block; font-size: 0.7rem; color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════════════
   🎫 SUPPORT & TICKETS
   ═══════════════════════════════════════════════════════════════════════ */

.support-section { padding-top: 32px; }
.support-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.support-main { display: flex; flex-direction: column; gap: 32px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; }
.card h3 { font-size: 1.15rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); color: var(--text); font-size: 0.9rem; transition: all var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.tickets-list { display: flex; flex-direction: column; gap: 10px; }
.ticket-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--bg-alt); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.ticket-item:hover { background: var(--surface-hover); }
.ticket-item-info h4 { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.ticket-item-info span { font-size: 0.75rem; color: var(--text-dim); }
.status-badge { padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.status-badge.open { background: var(--accent-soft); color: var(--accent); }
.status-badge.pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.empty-state { text-align: center; padding: 40px; color: var(--text-dim); }
.sidebar-links a { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--text-muted); font-size: 0.9rem; border-bottom: 1px solid var(--border); transition: color var(--transition); cursor: pointer; }
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--primary); }
.sidebar-links svg { width: 18px; height: 18px; }

/* Ticket Detail */
.ticket-view { max-width: 800px; }
.ticket-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.ticket-header-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ticket-id { font-size: 0.8rem; color: var(--text-dim); font-family: monospace; background: var(--bg-alt); padding: 4px 8px; border-radius: 4px; }
.ticket-header h2 { font-size: 1.4rem; margin-bottom: 8px; }
.ticket-info { display: flex; gap: 20px; color: var(--text-muted); font-size: 0.85rem; }
.messages { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.message { max-width: 80%; padding: 16px 20px; border-radius: var(--radius-lg); }
.message.user { background: var(--primary); color: white; margin-left: auto; border-bottom-right-radius: 4px; }
.message.support { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.message-time { font-size: 0.75rem; opacity: 0.7; margin-top: 8px; }
.reply-box { display: flex; gap: 12px; }
.reply-box textarea { flex: 1; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); color: var(--text); resize: none; }

/* ═══════════════════════════════════════════════════════════════════════
   📜 LEGAL PAGES
   ═══════════════════════════════════════════════════════════════════════ */

.legal-page { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 40px; }
.legal-page h3 { font-size: 1.15rem; margin: 32px 0 12px; }
.legal-page p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════════════
   🦶 FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 20px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 12px; transition: color var(--transition); cursor: pointer; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--text-dim); font-size: 0.8rem; }
.footer-credit { color: var(--text-muted); font-size: 0.85rem; }
.footer-credit span { color: var(--primary); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════════
   🚨 MAINTENANCE MODE
   ═══════════════════════════════════════════════════════════════════════ */

.maintenance-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 24px; }
.maintenance-overlay h1 { font-size: 2.5rem; margin-bottom: 16px; }
.maintenance-overlay p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; }
.maintenance-overlay .icon { font-size: 5rem; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════════════
   📱 RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .product-layout, .support-layout, .about-grid { grid-template-columns: 1fr; }
    .purchase-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-features { order: -1; }
}

@media (max-width: 768px) {
    .nav-center, .nav-search { display: none; }
    .form-row, .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 32px; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .help-methods { grid-template-columns: 1fr 1fr; }
    .user-btn span { display: none; }
    .subscription-details { grid-template-columns: 1fr; }
}