:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-primary: #8b5cf6;
    --accent-secondary: #a855f7;
    --accent-pink: #ec4899;
    --accent-cyan: #22d3ee;
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-glass: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
    --shadow-glow: 0 4px 20px rgba(139, 92, 246, 0.4);
    --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.bg-orb-1 { width: 800px; height: 800px; background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%); top: -300px; right: -200px; }
.bg-orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%); bottom: -200px; left: -100px; animation-delay: -10s; }
.bg-orb-3 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Common Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary { background: var(--gradient-primary); color: white; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-outline { background: transparent; border: 1px solid var(--border-hover); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--accent-primary); }
.btn-gradient { background: var(--gradient-primary); color: white; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3); }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4); }
.btn-large { padding: 1rem 2.5rem; font-size: 1rem; border-radius: 14px; }

/* Glassmorphism Cards */
.card, .stat-card, .tool-card, .price-card, .demo-preview, .trust-badges, .auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .stat-card:hover, .price-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tool-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2);
}

/* Sidebar and Main Layout */
.main {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: rgba(10, 10, 15, 0.85);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sidebar-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-bottom: 1.5rem; padding: 0.5rem; }
.logo-icon { width: 40px; height: 40px; background: var(--gradient-primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; color: white; box-shadow: var(--shadow-glow); }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; }

.user-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; backdrop-filter: blur(10px); }
.user-avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; color: white; }
.user-avatar img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-badge { padding: 0.25rem 0.5rem; background: rgba(139, 92, 246, 0.2); color: var(--accent-primary); border-radius: 6px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.sidebar-nav { flex: 1; overflow-y: auto; }
.nav-section { margin-bottom: 1.5rem; }
.nav-section-title { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; padding-left: 0.75rem; }
.nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 12px; color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); margin-bottom: 0.25rem; position: relative; }
.nav-link:hover { background: var(--bg-card); color: var(--text-primary); transform: translateX(4px); }
.nav-link.active { background: var(--gradient-glass); color: var(--text-primary); border: 1px solid rgba(139, 92, 246, 0.2); }
.nav-link.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--gradient-primary); border-radius: 0 3px 3px 0; }
.nav-link i { width: 20px; text-align: center; font-size: 1rem; }

.credits-box { background: var(--gradient-glass); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.25rem; margin-top: auto; }
.credits-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.credits-label { font-size: 0.8rem; color: var(--text-muted); }
.credits-value { font-size: 1.75rem; font-weight: 700; color: var(--accent-gold); display: flex; align-items: center; gap: 0.5rem; }
.credits-bar { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; margin: 0.75rem 0; overflow: hidden; }
.credits-bar-fill { height: 100%; background: var(--gradient-gold); border-radius: 3px; transition: width 0.3s ease; }
.credits-info { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }
.buy-credits-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.75rem; background: var(--gradient-gold); color: #000; border: none; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.buy-credits-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4); }

.sidebar-footer { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.sidebar-footer-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-card); color: var(--text-muted); text-decoration: none; transition: all 0.2s; }
.sidebar-footer-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* Dashboard Specifics */
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.header-left h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.header-left p { color: var(--text-secondary); font-size: 0.95rem; }
.header-actions { display: flex; gap: 1rem; }
.welcome-banner { background: var(--gradient-glass); border: 1px solid var(--border-color); border-radius: 20px; padding: 2rem; margin-bottom: 2rem; position: relative; overflow: hidden; }
.welcome-banner::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%); pointer-events: none; }
.welcome-content { position: relative; z-index: 1; }
.welcome-banner h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.welcome-banner p { color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 500px; }
.welcome-actions { display: flex; gap: 1rem; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.stat-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-icon.gold { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-primary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.stat-trend { display: flex; align-items: center; gap: 0.25rem; font-size: 0.8rem; color: var(--accent-green); }
.stat-value { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

.content-grid { display: grid; grid-template-columns: 1fr 400px; gap: 1.5rem; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.card-title { font-size: 1.1rem; font-weight: 600; }
.card-link { font-size: 0.85rem; color: var(--accent-primary); text-decoration: none; display: flex; align-items: center; gap: 0.25rem; }
.card-link:hover { text-decoration: underline; }

.task-list { display: flex; flex-direction: column; gap: 0.75rem; }
.task-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; transition: all 0.2s; }
.task-item:hover { border-color: var(--border-hover); transform: translateX(4px); }
.task-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.task-icon.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.task-icon.pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.task-icon.cyan { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.task-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.task-info { flex: 1; }
.task-type { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.task-date { font-size: 0.8rem; color: var(--text-muted); }
.task-status { padding: 0.35rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.task-status.completed { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.task-status.processing { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary); }
.task-status.failed { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem 1rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; text-decoration: none; color: var(--text-primary); transition: all 0.3s; }
.quick-action:hover { border-color: var(--accent-primary); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2); }
.quick-action-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--gradient-glass); }
.quick-action span { font-size: 0.9rem; font-weight: 500; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; }
.empty-state p { margin-bottom: 1rem; }

/* Index Specifics */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 2rem; background: rgba(5, 5, 8, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.navbar-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient-primary); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8rem 2rem 4rem; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 100px; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 2rem; backdrop-filter: blur(10px); }
.hero-badge-icon { width: 24px; height: 24px; background: var(--gradient-primary); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: white; }
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; line-height: 1.1; letter-spacing: -2px; margin-bottom: 1.5rem; max-width: 1000px; }
.hero-title .gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-title .gold { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 650px; margin-bottom: 3rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 4rem; }

.trust-badges { display: flex; align-items: center; gap: 3rem; padding: 1.5rem 2.5rem; }
.trust-badge { display: flex; align-items: center; gap: 0.75rem; }
.trust-badge-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.trust-badge-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-primary); }
.trust-badge-icon.gold { background: rgba(251, 191, 36, 0.15); color: var(--accent-gold); }
.trust-badge-icon.cyan { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
.trust-badge-text strong { display: block; font-size: 1.25rem; font-weight: 700; }
.trust-badge-text span { font-size: 0.85rem; color: var(--text-muted); }

.demo-section { padding: 6rem 2rem; position: relative; z-index: 1; }
.demo-container { max-width: 1200px; margin: 0 auto; }
.demo-header { text-align: center; margin-bottom: 4rem; }
.demo-preview { padding: 2rem; position: relative; overflow: hidden; }
.demo-preview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.demo-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: all 0.3s; }
.demo-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15); }
.demo-card-image { height: 200px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.demo-card-image i { font-size: 4rem; opacity: 1; filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.4)); }
.demo-card-play { position: absolute; width: 60px; height: 60px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: white; opacity: 0; transition: opacity 0.3s; cursor: pointer; }
.demo-card:hover .demo-card-play { opacity: 1; }
.demo-card-content { padding: 1.25rem; }
.demo-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.demo-card-desc { font-size: 0.9rem; color: var(--text-muted); }

.section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2); border-radius: 100px; font-size: 0.85rem; color: var(--accent-primary); font-weight: 500; margin-bottom: 1.5rem; }
.section-title { font-size: 2.75rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-secondary); font-size: 1.15rem; max-width: 550px; margin: 0 auto; }

.pricing-section { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.price-card { padding: 2rem 1.5rem; text-align: center; position: relative; }
.price-card.featured { border-color: var(--accent-gold); background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, var(--bg-card) 100%); transform: scale(1.02); }
.price-card.featured::before { content: 'BEST VALUE'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient-gold); color: #000; padding: 0.35rem 1.25rem; border-radius: 100px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; }
.price-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.price-amount { font-size: 3rem; font-weight: 700; margin-bottom: 0.25rem; }
.price-credits { font-size: 1.2rem; color: var(--accent-cyan); font-weight: 600; margin-bottom: 0.5rem; }
.price-per { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.price-card .btn { width: 100%; }

.cta { text-align: center; padding: 8rem 2rem; position: relative; z-index: 1; }
.cta-content { max-width: 700px; margin: 0 auto; }
.cta-title { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -1px; }
.cta-subtitle { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 2.5rem; }

.footer { padding: 4rem 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border-color); }
.footer-links { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }

/* Tools Page Specifics */
.category-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; padding: 0.5rem; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); width: fit-content; }
.category-tab { padding: 0.75rem 1.5rem; border-radius: 12px; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); background: transparent; border: none; cursor: pointer; transition: all 0.2s; }
.category-tab:hover { color: var(--text-primary); }
.category-tab.active { background: var(--gradient-primary); color: white; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.tool-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; z-index: 2; }
.tool-card:hover::before { transform: scaleX(1); }
.tool-preview { height: 180px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tool-preview-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.25; }
.tool-preview-bg.purple { background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%); }
.tool-preview-bg.pink { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }
.tool-preview-bg.green { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.tool-preview-bg.orange { background: linear-gradient(135deg, #f97316 0%, #fb923c 100%); }
.tool-preview-bg.cyan { background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%); }
.tool-preview-bg.blue { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); }
.tool-preview-bg.red { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }
.tool-preview-icon { font-size: 4rem; opacity: 1; position: relative; z-index: 2; transition: all 0.3s; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3)); }
.tool-card:hover .tool-preview-icon { transform: scale(1.15); filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.4)); }
.tool-preview-play { position: absolute; width: 60px; height: 60px; background: var(--gradient-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: white; opacity: 0; transform: scale(0.8); transition: all 0.3s; z-index: 2; box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4); }
.tool-card:hover .tool-preview-play { opacity: 1; transform: scale(1); }
.tool-content { padding: 1.5rem; }
.tool-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.tool-title { font-size: 1.25rem; font-weight: 600; }
.tool-badge { padding: 0.3rem 0.75rem; border-radius: 100px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.tool-badge.hot { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.tool-badge.popular { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tool-badge.new { background: rgba(34, 211, 238, 0.15); color: #22d3ee; }
.tool-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.25rem; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.tool-cost { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--accent-gold); font-weight: 600; }
.tool-action { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--bg-secondary); border-radius: 10px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: all 0.3s; }
.tool-card:hover .tool-action { background: var(--gradient-primary); color: white; }

.tool-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; position: relative; z-index: 2; }
.tool-icon i { font-size: 1.75rem; filter: drop-shadow(0 2px 8px currentColor); }
.tool-icon.purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(168, 85, 247, 0.4)); color: #c4b5fd; }
.tool-icon.pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(244, 114, 182, 0.4)); color: #f9a8d4; }
.tool-icon.cyan { background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(6, 182, 212, 0.4)); color: #67e8f9; }
.tool-icon.orange { background: linear-gradient(135deg, rgba(251, 146, 60, 0.4), rgba(249, 115, 22, 0.4)); color: #fdba74; }
.tool-icon.green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(52, 211, 153, 0.4)); color: #6ee7b7; }
.tool-icon.red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(248, 113, 113, 0.4)); color: #fca5a5; }
.tool-icon.blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(96, 165, 250, 0.4)); color: #93c5fd; }
.tool-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.75rem; }
.tool-card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 1.5rem; }
.tool-arrow { width: 40px; height: 40px; border-radius: 12px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s; }
.tool-card:hover .tool-arrow { background: var(--gradient-primary); color: white; transform: translateX(4px); }

/* Auth Pages (Login/Register) */
.auth-container { width: 100%; max-width: 420px; position: relative; z-index: 1; margin: auto; padding: 2rem 0; }
.auth-header { text-align: center; margin-bottom: 2.5rem; }
.auth-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--text-secondary); }
.social-login { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.social-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-primary); font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.social-btn:hover { background: var(--bg-card); border-color: var(--border-hover); }
.social-btn i { font-size: 1.1rem; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--text-muted); font-size: 0.85rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-secondary); }
.form-input { width: 100%; padding: 0.875rem 1rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-primary); font-size: 0.95rem; font-family: inherit; transition: all 0.2s; }
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-size: 0.9rem; }
.remember-me { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); cursor: pointer; }
.remember-me input { width: 16px; height: 16px; accent-color: var(--accent-primary); }
.forgot-link { color: var(--accent-primary); text-decoration: none; transition: opacity 0.2s; }
.forgot-link:hover { opacity: 0.8; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.auth-footer a { color: var(--accent-primary); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.error-msg { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--error); padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.9rem; margin-bottom: 1.25rem; display: none; }
.error-msg.show { display: block; }
.back-link { position: absolute; top: 2rem; left: 2rem; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; transition: color 0.2s; }
.back-link:hover { color: var(--text-primary); }

/* Responsive Media Queries */
@media (max-width: 1400px) {
    .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .demo-grid { grid-template-columns: 1fr; }
    .trust-badges { flex-direction: column; gap: 1.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { 
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .welcome-actions { flex-direction: column; }
    .nav-links { display: none; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .cta-title { font-size: 2rem; }
}

@media (max-width: 600px) {
    .category-tabs { width: 100%; overflow-x: auto; }
    .page-header h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   3. Dashboard Shell Pages: Pricing, History, Profile
   ========================================================================== */

/* --------------------------------------------------------------------------
   Pricing (pricing.html)
   -------------------------------------------------------------------------- */
.top-bar {
    background: rgba(8, 9, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
    margin-left: 280px; /* offset sidebar */
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.back-btn {
    color: #d0d6e0;
    text-decoration: none;
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f7f8f8;
}
.page-title {
    font-size: 20px;
    font-weight: 590;
    color: #f7f8f8;
    margin: 0;
}
.credits-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 9999px;
    font-weight: 590;
    font-size: 14px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}
.current-balance {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 1rem;
    color: #d0d6e0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.current-balance i {
    color: #fbbf24;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.price-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.price-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.03);
}
.price-card.featured {
    border-color: #5e6ad2;
    background: linear-gradient(180deg, rgba(94, 106, 210, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #5e6ad2;
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 590;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(94, 106, 210, 0.4);
}
.price-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.price-credits {
    font-size: 18px;
    font-weight: 590;
    color: #f7f8f8;
    margin-bottom: 0.5rem;
}
.price-amount {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}
.price-dollar {
    font-size: 24px;
    color: #8a8f98;
    margin-top: 4px;
}
.price-number {
    font-size: 48px;
    font-weight: 590;
    color: #f7f8f8;
    letter-spacing: -1.056px;
    line-height: 1;
}
.price-per {
    color: #8a8f98;
    font-size: 13px;
}
.price-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.price-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d0d6e0;
    font-size: 14px;
    margin-bottom: 1rem;
}
.price-features i {
    color: #10b981;
    font-size: 12px;
}
.buy-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 510;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
}
.buy-btn.primary {
    background: #5e6ad2;
    color: white;
}
.buy-btn.primary:hover {
    background: #7170ff;
}
.buy-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f7f8f8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.buy-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
.buy-btn.gumroad {
    background: #FF90E8;
    color: #000000;
}
.buy-btn.gumroad:hover {
    background: #ff75e3;
}
.payment-divider {
    text-align: center;
    color: #62666d;
    font-size: 12px;
    margin: 1rem 0;
    text-transform: uppercase;
    position: relative;
}
.payment-divider::before, .payment-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}
.payment-divider::before { left: 0; }
.payment-divider::after { right: 0; }

/* FAQ */
.faq-section {
    margin-top: 4rem;
}
.faq-title {
    font-size: 24px;
    font-weight: 590;
    color: #f7f8f8;
    margin-bottom: 2rem;
    letter-spacing: -0.288px;
    text-align: center;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}
.faq-question {
    font-size: 16px;
    font-weight: 510;
    color: #f7f8f8;
    margin-bottom: 0.5rem;
}
.faq-answer {
    color: #8a8f98;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .top-bar { margin-left: 0; }
    .faq-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   History (history.html)
   -------------------------------------------------------------------------- */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.filter-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #8a8f98;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 510;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab:hover {
    color: #d0d6e0;
    background: rgba(255, 255, 255, 0.05);
}
.filter-tab.active {
    background: #5e6ad2;
    color: white;
    border-color: #5e6ad2;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.task-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}
.task-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.task-preview {
    height: 160px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.task-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task-preview-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.1);
}
.task-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.task-card:hover .task-preview-overlay {
    opacity: 1;
}
.task-preview-btn {
    background: #5e6ad2;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 510;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.task-info {
    padding: 1rem;
}
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.task-type {
    color: #f7f8f8;
    font-weight: 510;
    font-size: 14px;
}
.task-meta {
    display: flex;
    justify-content: space-between;
    color: #8a8f98;
    font-size: 12px;
}
.task-cost {
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* --------------------------------------------------------------------------
   Profile (profile.html)
   -------------------------------------------------------------------------- */
.card-full {
    grid-column: 1 / -1;
}
.profile-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}
.profile-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}
.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: white;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #191a1b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #d0d6e0;
    cursor: pointer;
}
.profile-name {
    font-size: 24px;
    font-weight: 590;
    color: #f7f8f8;
    margin-bottom: 0.25rem;
    letter-spacing: -0.288px;
}
.profile-email {
    color: #8a8f98;
    font-size: 14px;
    margin-bottom: 1rem;
}
.profile-meta {
    display: flex;
    gap: 2rem;
}
.profile-meta-item {
    display: flex;
    flex-direction: column;
}
.profile-meta-value {
    color: #f7f8f8;
    font-weight: 510;
    font-size: 15px;
}
.profile-meta-label {
    color: #62666d;
    font-size: 12px;
}

/* Forms */
.form-hint {
    color: #62666d;
    font-size: 12px;
    margin-top: 0.5rem;
}
.btn-group {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}
.form-input:disabled {
    background: rgba(255, 255, 255, 0.01);
    color: #8a8f98;
    cursor: not-allowed;
}

/* Stats List */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.stat-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.stat-item-info h4 {
    color: #f7f8f8;
    font-size: 14px;
    font-weight: 510;
    margin-bottom: 0.25rem;
}
.stat-item-info p {
    color: #8a8f98;
    font-size: 12px;
}
.stat-item-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 600;
    color: #f7f8f8;
}

/* Security Items */
.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.security-item:last-child {
    border-bottom: none;
}
.security-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.security-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d0d6e0;
}
.security-info h4 {
    color: #f7f8f8;
    font-size: 14px;
    font-weight: 510;
    margin-bottom: 0.25rem;
}
.security-info p {
    color: #8a8f98;
    font-size: 12px;
}
.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 20px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #8a8f98;
    transition: .3s;
    border-radius: 50%;
}
.toggle input:checked + .toggle-slider {
    background-color: #5e6ad2;
}
.toggle input:checked + .toggle-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .profile-card { flex-direction: column; text-align: center; }
    .profile-meta { justify-content: center; }
}


/* ==========================================================================
   4. Admin Pages: Admin Dashboard, Evidence, Login
   ========================================================================== */

/* --------------------------------------------------------------------------
   Admin Login (admin_login.html)
   -------------------------------------------------------------------------- */
.login-box {
    max-width: 400px;
    margin: 10rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.login-box h1 {
    font-size: 24px;
    font-weight: 590;
    color: #f7f8f8;
    margin-bottom: 2rem;
    letter-spacing: -0.288px;
}
.login-box input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f7f8f8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}
.login-box input:focus {
    outline: none;
    border-color: #5e6ad2;
}
.login-box button {
    width: 100%;
    padding: 12px;
    background: #5e6ad2;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 510;
    cursor: pointer;
    transition: all 0.2s;
}
.login-box button:hover {
    background: #7170ff;
}
.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
    display: none;
}
.error.show {
    display: block;
}

/* --------------------------------------------------------------------------
   Admin Dashboard & Evidence (admin.html, evidence.html)
   -------------------------------------------------------------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(8, 9, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .logo {
    font-size: 18px;
    font-weight: 590;
    color: #f7f8f8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-info {
    color: #8a8f98;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.tab {
    background: transparent;
    color: #8a8f98;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 510;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab:hover {
    color: #d0d6e0;
    background: rgba(255, 255, 255, 0.02);
}
.tab.active {
    background: #5e6ad2;
    color: white;
}

/* Admin Tables */
.table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.table-title {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 590;
    color: #f7f8f8;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th, td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
th {
    color: #8a8f98;
    font-weight: 510;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
td {
    color: #d0d6e0;
    font-size: 14px;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}
.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #f7f8f8;
}

/* Status Badges */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 590;
    text-transform: uppercase;
}
.status-completed, .status-delivered { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.status-pending { background: rgba(113, 112, 255, 0.1); color: #7170ff; }
.status-failed { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.status-usage { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

/* Admin Search Bar */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.search-bar input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f7f8f8;
}

/* Modal */
.modal, .invoice-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.modal-content, .invoice-container {
    background: #0f1011;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.invoice-container {
    max-width: 700px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.close-btn {
    background: transparent;
    border: none;
    color: #8a8f98;
    cursor: pointer;
    font-size: 18px;
}
.close-btn:hover { color: #f7f8f8; }

/* Generator specific */
.generator-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
}
.generator-header h3 {
    color: #f7f8f8;
    margin-bottom: 0.5rem;
}
.generator-header p {
    color: #8a8f98;
    font-size: 14px;
    margin-bottom: 2rem;
}
.generator-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f7f8f8;
    font-family: 'JetBrains Mono', monospace;
    padding: 1rem;
    margin-bottom: 1.5rem;
    resize: vertical;
}
.generator-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.generator-log {
    background: #08090a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}
.log-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 590;
    color: #8a8f98;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.log-content {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.5;
}
.log-line { margin-bottom: 4px; }
.log-info { color: #d0d6e0; }
.log-success { color: #10b981; }
.log-error { color: #ef4444; }
.generator-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-radius: 8px;
}
.generator-tips h4 { color: #22d3ee; margin-bottom: 0.5rem; }
.generator-tips ul { color: #8a8f98; font-size: 13px; padding-left: 1.5rem; }

/* Detail Panel / Overlay */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 900;
}
.overlay.active { opacity: 1; pointer-events: auto; }
.detail-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 480px;
    max-width: 100%;
    background: #0f1011;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0,0,0,0.5);
}
.detail-panel.active { transform: translateX(0); }
.detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.detail-header h2 { font-size: 18px; color: #f7f8f8; font-weight: 590; }
.detail-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Evidence Search Panel */
.search-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.search-panel h3 {
    font-size: 16px;
    color: #f7f8f8;
    margin-bottom: 1rem;
}
.search-form {
    display: flex;
    gap: 1rem;
}
.search-results {
    margin-top: 1.5rem;
}
.search-result-item {
    background: #08090a;
    border: 1px solid #23252a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.search-result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #23252a;
}
.search-result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.search-result-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.search-result-label {
    font-size: 12px;
    color: #8a8f98;
}
.search-result-value {
    font-size: 14px;
    color: #d0d6e0;
}
.search-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.search-error {
    color: #ef4444;
    font-size: 14px;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
}

/* Evidence Grid */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}
.record-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}
.record-card.from-db {
    border-color: rgba(94, 106, 210, 0.3);
}
.record-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.record-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #f7f8f8;
}
.record-badges {
    display: flex;
    gap: 0.5rem;
}
.record-source {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 510;
    background: rgba(255, 255, 255, 0.05);
    color: #8a8f98;
}
.record-source.db {
    background: rgba(94, 106, 210, 0.15);
    color: #7170ff;
}
.record-delete {
    background: transparent;
    color: #ef4444;
    border: none;
    cursor: pointer;
    opacity: 0.5;
}
.record-delete:hover { opacity: 1; }
.record-body { padding: 1.5rem; }
.record-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.record-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #191a1b;
    color: #f7f8f8;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }

/* Admin Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}


/* ==========================================================================
   5. AI Tool Pages (Shared & Specific)
   ========================================================================== */

/* Tools Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(8, 9, 10, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
}
.navbar-inner {
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: #5e6ad2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 590;
    color: white;
}
.nav-logo-text {
    font-weight: 590;
    color: #f7f8f8;
    font-size: 16px;
    letter-spacing: -0.288px;
}
.back-link {
    color: #8a8f98;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 510;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s;
}
.back-link:hover { color: #d0d6e0; }
.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #8a8f98;
}
.nav-breadcrumb a {
    color: #8a8f98;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-breadcrumb a:hover { color: #d0d6e0; }
.nav-breadcrumb .separator { color: #62666d; }
.nav-breadcrumb .current { color: #f7f8f8; font-weight: 510; }
.nav-quick-links {
    display: flex;
    gap: 1rem;
}
.nav-quick-link {
    color: #8a8f98;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 510;
    transition: color 0.2s;
}
.nav-quick-link:hover { color: #f7f8f8; }
.credits-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 13px;
    font-weight: 590;
    text-decoration: none;
    transition: all 0.2s;
}
.credits-badge:hover {
    background: rgba(251, 191, 36, 0.15);
    transform: translateY(-1px);
}

/* Tools Layout */
.main-container {
    padding: 64px 2rem 4rem; /* offset navbar */
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.workspace {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Tool Specific: Image Gen */
.prompt-section { margin-bottom: 2rem; }
.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f7f8f8;
    font-weight: 510;
    font-size: 16px;
    margin-bottom: 1rem;
}
.section-label i { color: #5e6ad2; }
.prompt-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f7f8f8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    padding: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s;
}
.prompt-input:focus {
    outline: none;
    border-color: #5e6ad2;
    background: rgba(255, 255, 255, 0.04);
}
.prompt-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.suggestion-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #d0d6e0;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 510;
    cursor: pointer;
    transition: all 0.2s;
}
.suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f7f8f8;
}
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.style-option {
    display: block;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
}
.style-option input { display: none; }
.style-option .style-icon {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}
.style-option .style-name {
    text-align: center;
    font-size: 13px;
    color: #8a8f98;
    font-weight: 510;
}
.style-option:hover .style-icon { background: rgba(255, 255, 255, 0.05); }
.style-option.active .style-icon {
    border-color: #5e6ad2;
    background: rgba(94, 106, 210, 0.1);
}
.style-option.active .style-name { color: #f7f8f8; }
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.option-group label {
    display: block;
    font-size: 13px;
    color: #8a8f98;
    margin-bottom: 0.5rem;
    font-weight: 510;
}
.option-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #f7f8f8;
    font-family: inherit;
    font-size: 14px;
}
.option-select:focus { outline: none; border-color: #5e6ad2; }

/* Tool Specific: Face Swap & Upload */
.mode-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.mode-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #8a8f98;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 510;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.mode-tab:hover { background: rgba(255, 255, 255, 0.05); color: #d0d6e0; }
.mode-tab.active { background: #5e6ad2; color: white; border-color: #5e6ad2; }
.upload-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}
.upload-card:hover { background: rgba(255, 255, 255, 0.03); border-color: #5e6ad2; }
.upload-card.has-file { border-style: solid; padding: 0; }
.upload-card img { width: 100%; height: 100%; object-fit: contain; }
.upload-icon { font-size: 48px; color: #8a8f98; margin-bottom: 1rem; }
.upload-title { font-size: 16px; font-weight: 590; color: #f7f8f8; margin-bottom: 0.5rem; }
.upload-desc { color: #8a8f98; font-size: 13px; margin-bottom: 1rem; }
.upload-formats { display: flex; gap: 0.5rem; justify-content: center; }
.format-tag { font-size: 11px; padding: 2px 6px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; color: #62666d; }
.swap-connector { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 1.5rem 0; color: #62666d; }
.swap-icon-wrapper { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #8a8f98; }

/* Tool Action & Result */
.action-bar, .action-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cost-info, .cost-display { display: flex; align-items: center; gap: 0.5rem; }
.cost-label { color: #8a8f98; font-size: 14px; }
.cost-value { color: #fbbf24; font-weight: 590; font-size: 16px; }
.generate-btn {
    background: #5e6ad2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 510;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.generate-btn:hover:not(:disabled) { background: #7170ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(113, 112, 255, 0.3); }
.generate-btn:disabled { background: rgba(255, 255, 255, 0.05); color: #62666d; cursor: not-allowed; }

.result-gallery, .result-panel {
    display: none;
    margin-top: 4rem;
}
.result-gallery.visible, .result-panel.visible { display: block; }
.result-header { margin-bottom: 2rem; text-align: center; }
.result-header h2 { font-size: 24px; font-weight: 590; color: #f7f8f8; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.result-header h2 i { color: #10b981; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.result-card, .result-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-align: center;
}
.result-card img, .result-content img, .result-content video { width: 100%; height: auto; display: block; }
.result-card-actions, .result-actions {
    padding: 1rem;
    background: rgba(8, 9, 10, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.action-btn, .card-action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 510;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    transition: all 0.2s;
}
.action-btn.primary { background: #5e6ad2; color: white; }
.action-btn.primary:hover { background: #7170ff; }
.action-btn.secondary, .card-action-btn.secondary { background: rgba(255, 255, 255, 0.05); color: #f7f8f8; border: 1px solid rgba(255, 255, 255, 0.08); }
.action-btn.secondary:hover, .card-action-btn.secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 9, 10, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.loading-overlay.active { opacity: 1; pointer-events: auto; }
.loading-content { text-align: center; }
.loading-spinner {
    width: 64px;
    height: 64px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #5e6ad2;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1.5rem;
}
.loading-text { font-size: 20px; font-weight: 590; color: #f7f8f8; margin-bottom: 0.5rem; }
.loading-hint { color: #8a8f98; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .nav-breadcrumb, .nav-quick-links { display: none; }
    .workspace { padding: 1.5rem; }
}



/* ==========================================================================
   STANDALONE PAGES: Order Lookup, Receipt, Payment Result, Legal
   ========================================================================== */

/* Container for standalone centered pages */
.container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Order Lookup (proof_search.html) */
.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}
.logo-section .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}
.logo-section .logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #f7f8f8;
    margin-bottom: 0.5rem;
    letter-spacing: -0.7px;
}
.logo-subtitle {
    color: #8a8f98;
    font-size: 16px;
}
.search-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.search-title {
    font-size: 20px;
    font-weight: 600;
    color: #f7f8f8;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.search-title i { color: #8b5cf6; }
.input-group { margin-bottom: 1.5rem; }
.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d0d6e0;
    margin-bottom: 0.75rem;
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper > i {
    position: absolute;
    left: 1rem;
    color: #8a8f98;
    z-index: 2;
}
.search-input {
    width: 100%;
    padding: 12px 14px 12px 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f7f8f8;
    font-size: 15px;
    font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
    transition: all 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.search-input::placeholder { color: #62666d; }
.search-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}
.search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.tips {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tips-title {
    font-size: 13px;
    font-weight: 600;
    color: #d0d6e0;
    margin-bottom: 1rem;
}
.tips-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #8a8f98;
    font-size: 13px;
    margin-bottom: 0.6rem;
}
.tips-item i { color: #10b981; font-size: 12px; }

/* Receipt page (proof.html) */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #d0d6e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.2s;
}
.back-btn:hover { color: #f7f8f8; }

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.header-badge.pending { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.2); }
.header-badge.failed { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
.header-title {
    font-size: 32px;
    font-weight: 700;
    color: #f7f8f8;
    margin-bottom: 0.5rem;
    letter-spacing: -0.7px;
}
.header-subtitle {
    color: #8a8f98;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

/* Receipt card styles */
.card .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.01);
}
.card-header.green i { color: #10b981; }
.card-header.blue i { color: #8b5cf6; }
.card-header.purple i { color: #ec4899; }
.card-header.orange i { color: #fbbf24; }
.card-body { padding: 1.5rem; }
.amount-display { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.amount-value { font-family: 'JetBrains Mono', monospace; font-size: 36px; font-weight: 700; color: #f7f8f8; margin-bottom: 0.25rem; }
.amount-label { color: #8a8f98; font-size: 14px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.info-row:last-child { border-bottom: none; }
.info-label { color: #8a8f98; display: flex; align-items: center; gap: 0.5rem; }
.info-value { color: #f7f8f8; font-weight: 500; }
.info-value.mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #d0d6e0; word-break: break-all; }
.info-value.highlight { color: #10b981; }

/* Credits display in receipt */
.card .credits-box { margin: 0; background: transparent; border: none; padding: 0; text-align: center; }
.card .credits-value { justify-content: center; font-size: 2.5rem; }
.card .credits-label { color: #8a8f98; font-size: 14px; margin-top: 0.5rem; display: block; }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, 0.08); }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -1.5rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(139, 92, 246, 0.2); border: 2px solid #8b5cf6; z-index: 1; }
.timeline-content strong { display: block; color: #f7f8f8; font-size: 14px; font-weight: 600; margin-bottom: 0.25rem; }
.timeline-time { color: #8a8f98; font-size: 13px; }

/* Country badge */
.country-badge { display: flex; align-items: center; gap: 0.5rem; }
.country-flag { font-size: 18px; }

/* Device info */
.device-info { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255, 255, 255, 0.02); border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.05); }
.device-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(139, 92, 246, 0.1); display: flex; align-items: center; justify-content: center; color: #8b5cf6; }
.device-name { color: #f7f8f8; font-weight: 600; font-size: 14px; }
.device-browser { color: #8a8f98; font-size: 12px; }

/* Footer in receipt */
.container > .footer { margin-top: 3rem; text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.container > .footer a { color: #8b5cf6; text-decoration: none; font-size: 14px; font-weight: 500; }
.container > .footer a:hover { text-decoration: underline; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; color: #d0d6e0; font-weight: 600; margin-bottom: 0.5rem; }
.footer-text { color: #62666d; font-size: 13px; margin-bottom: 1.5rem; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.print-btn { background: rgba(255, 255, 255, 0.05); color: #d0d6e0; border: 1px solid rgba(255, 255, 255, 0.08); padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.2s; text-decoration: none; }
.print-btn:hover { background: rgba(255, 255, 255, 0.1); color: #f7f8f8; }
.pdf-btn { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; border: none; }
.pdf-btn:hover { color: white; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); }

/* Error state */
.error-state { text-align: center; padding: 3rem 2rem; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; }
.error-icon { font-size: 48px; color: #ef4444; margin-bottom: 1rem; opacity: 0.8; }
.error-title { font-size: 20px; font-weight: 600; color: #f7f8f8; margin-bottom: 0.5rem; }

/* Loading */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 0; gap: 1rem; }
.loading-spinner { width: 40px; height: 40px; border: 3px solid rgba(255, 255, 255, 0.1); border-radius: 50%; border-top-color: #8b5cf6; animation: spin 1s linear infinite; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Receipt card spacing */
.container .card { margin-bottom: 1.5rem; padding: 0; overflow: hidden; }

@media (max-width: 600px) {
    .container { margin: 2rem auto; padding: 1rem; }
}


/* Fix: tool-card as <a> tag needs link reset */
a.tool-card {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}
a.tool-card h3 {
    color: #f7f8f8;
    text-decoration: none;
}
a.tool-card p {
    color: var(--text-secondary);
}
