:root {
    --primary: #8B7FD4;
    --primary-light: #B9A5D9;
    --primary-dark: #7B8CDE;
    --primary-gradient: linear-gradient(135deg, #7B8CDE 0%, #9B7DD4 45%, #D4A5C9 100%);
    --accent: #D4A5C9;
    --bg: #0a0e1a;
    --bg-surface: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.25s ease;
    --green: #4ade80;
    --red: #f87171;
    --yellow: #fbbf24;
    --blue: #60a5fa;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.07) 0%, transparent 50%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------------------------ Nav */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    height: 44px;
    width: auto;
    display: block;
    transition: transform var(--transition);
}

.nav-logo:hover {
    transform: scale(1.08);
}

.nav-brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
    background: var(--glass-bg);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}

/* ── Nav Dropdown ── */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown>.nav-link {
    gap: 0.3rem;
}

.nav-dropdown-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.nav-dropdown:hover .nav-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.15rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 180px;
    padding: 0.5rem;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
}

/* Invisible bridge so mouse can travel from link to menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    color: var(--text);
    background: rgba(99, 102, 241, 0.12);
}

.nav-dropdown-icon {
    font-size: 1rem;
    line-height: 1;
}

.nav-link--sm {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(123, 140, 222, 0.3);
}

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

/* --------------------------------------------------------- Flash */
.flash-container {
    padding: 0.75rem 2rem;
}

.flash {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.flash--success {
    border-color: #22c55e44;
    color: #86efac;
}

.flash--error {
    border-color: #ef444444;
    color: #fca5a5;
}

/* --------------------------------------------------------- Main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem 2rem;
}

/* --------------------------------------------------------- Hero */
.hero {
    text-align: center;
    max-width: 800px;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    height: 140px;
    width: auto;
    margin-bottom: 1.5rem;
    animation: fadeIn 1.2s ease-out;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.15));
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-role {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 300;
}

.hero-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.hero-desc {
    font-size: 1rem;
    margin-top: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.hero-call {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* --------------------------------------------------------- Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
}

.social-link:hover {
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

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

/* --------------------------------------------------------- Contact */
.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.9rem;
}

.contact-label {
    color: var(--text-muted);
    font-weight: 300;
}

.contact-link {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* --------------------------------------------------------- Hero Tagline */
.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 480px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* --------------------------------------------------------- Scroll Hint */
.scroll-hint {
    margin-top: 2.5rem;
    color: var(--text-muted);
    opacity: 0.4;
    animation: bounceHint 2.4s ease-in-out infinite;
}

@keyframes bounceHint {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* --------------------------------------------------------- Story Sections */
.story-section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    text-align: center;
}

.story-section .timeline-section,
.story-section .timeline {
    text-align: left;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --------------------------------------------------------- Chapter Labels */
.chapter-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    background: rgba(123, 140, 222, 0.1);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------- Section Dividers */
.section-divider {
    width: 100%;
    max-width: 200px;
    height: 2px;
    margin: 1.5rem auto;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    border-radius: 2px;
    opacity: 0.35;
}

/* --------------------------------------------------------- Scroll-Reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------- Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.35s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(123, 140, 222, 0.3);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(123, 140, 222, 0.15), rgba(155, 125, 212, 0.1));
    color: var(--primary-light);
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(123, 140, 222, 0.25), rgba(155, 125, 212, 0.18));
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------- Stat Strip */
.stat-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    padding: 2.25rem 2rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* --------------------------------------------------------- Buttons */
.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.45);
    filter: brightness(1.1);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.cta-footer {
    position: relative;
    margin-top: 1rem;
    padding-left: 3rem;
}

.cta-arrow {
    position: absolute;
    left: 0;
    top: -4px;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(212, 165, 201, 0.35));
    animation: wiggleArrow 2s ease-in-out infinite;
    opacity: 0.85;
}

@keyframes wiggleArrow {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(5deg) scale(1.05);
    }
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow var(--transition), transform 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

/* -------------------------------------------------------- Timeline */
.timeline-section {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
    border-radius: 2px;
}

.timeline-group {
    margin-bottom: 2rem;
}

.timeline-group-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.timeline-item {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    animation: slideIn 0.4s ease-out both;
}

.timeline-item:hover {
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.timeline-item.current::before {
    background: var(--green);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
    animation: pulse 2s infinite;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-top: 0.15rem;
}

.timeline-dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.timeline-bullets {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
    list-style: none;
}

.timeline-bullets li {
    position: relative;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0.35rem;
    padding-left: 0.25rem;
}

.timeline-bullets li::before {
    content: '▸';
    position: absolute;
    left: -1.1rem;
    color: var(--primary-light);
    font-size: 0.75rem;
    top: 1px;
}

.timeline-bullets li strong {
    color: var(--text);
    font-weight: 600;
}

.timeline-bullets li a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.timeline-bullets li a:hover {
    color: var(--primary-light);
}

/* --------------------------------------------------------- Cards */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    animation: fadeUp 0.6s ease-out 0.15s both;
}

.card {
    padding: 2rem;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-gradient);
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.card-meta span {
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

/* --------------------------------------------------------- Bot Dashboard */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.status-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
    animation: pulse 2s infinite;
}

.status-idle {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-error {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.2);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.bot-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

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

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.stat-value.BUY {
    color: var(--green);
}

.stat-value.SELL {
    color: var(--red);
}

.stat-value.HOLD {
    color: var(--yellow);
}

.stat-value.BULLISH {
    color: var(--green);
}

.stat-value.BEARISH {
    color: var(--red);
}

.stat-value.NEUTRAL {
    color: var(--yellow);
}

/* Dashboard Sections */
.dashboard-section {
    margin-top: 1.5rem;
}

.dashboard-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Chart Container */
.chart-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.chart-wrapper {
    position: relative;
    height: 250px;
}

.chart-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chart-tab {
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.chart-tab:hover,
.chart-tab.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Strategy Details */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.strategy-card {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.strategy-card-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Strategy meta row — active strategy + risk params */
.strategy-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.strategy-meta-chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 120px;
}

/* Strategy weights grid */
.strategy-weights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.strategy-weight-item {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.strategy-weight-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.strategy-weight-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.strategy-weight-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
}

.strategy-weight-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

.strategy-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.strategy-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.strategy-bar-fill.bullish {
    background: var(--green);
}

.strategy-bar-fill.bearish {
    background: var(--red);
}

.strategy-bar-fill.neutral {
    background: var(--yellow);
}

/* ── Bot Detail: Page spacing ── */
.basecow-section {
    margin-top: 1rem;
}

.basecow-section .card {
    cursor: default;
}

.basecow-section .card:hover {
    transform: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* ── Bot Detail: How It Works ── */
.bot-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bot-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    position: relative;
}

.bot-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: -16px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.3;
}

.bot-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 140, 222, 0.2), rgba(155, 125, 212, 0.15));
    border: 1px solid rgba(123, 140, 222, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
}

.bot-step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.bot-step-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Bot Detail: Tech Stack ── */
.bot-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.bot-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.25s ease;
}

.bot-tech-item:hover {
    border-color: rgba(123, 140, 222, 0.25);
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.bot-tech-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.bot-tech-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.bot-tech-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Console Logs */
.console-logs {
    background: #0c1120;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Fira Code', 'SF Mono', monospace;
    font-size: 0.78rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
}

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

.console-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.console-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
}

.log-entry {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.log-entry:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    min-width: 60px;
    font-size: 0.75rem;
}

.log-msg {
    color: var(--text);
    flex: 1;
}

.log-entry.ERROR .log-msg {
    color: var(--red);
}

.log-entry.INFO .log-msg {
    color: var(--text);
}

.log-price {
    color: var(--blue);
    font-weight: 500;
}

.log-sentiment {
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 500;
}

.log-sentiment.BULLISH {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
}

.log-sentiment.BEARISH {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.log-sentiment.NEUTRAL {
    background: rgba(251, 191, 36, 0.15);
    color: var(--yellow);
}

/* ── Bot Dashboard: Portfolio Grid ── */
.bot-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
}

.bot-portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.bot-portfolio-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bot-portfolio-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.bot-portfolio-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.bot-portfolio-change.positive {
    color: var(--green);
}

.bot-portfolio-change.negative {
    color: var(--red);
}

.bot-portfolio-change.neutral {
    color: var(--text-muted);
}

/* ── Bot Dashboard: Indicator Grid ── */
.bot-indicator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
}

.bot-indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.25s ease;
}

.bot-indicator-item:hover {
    border-color: rgba(123, 140, 222, 0.25);
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.bot-indicator-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.bot-indicator-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.bot-indicator-label {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bot-indicator-label.bullish {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
}

.bot-indicator-label.bearish {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.bot-indicator-label.neutral {
    background: rgba(251, 191, 36, 0.12);
    color: var(--yellow);
}

/* ── Bot Dashboard: Confidence Bar ── */
.bot-confidence-bar-wrap {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

/* ── Bot Dashboard: Signal Breakdown ── */
.signal-reasons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.signal-reason-pill {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: 'Fira Code', 'SF Mono', monospace;
}

.signal-reason-pill.bullish {
    border-color: rgba(74, 222, 128, 0.25);
    color: var(--green);
    background: rgba(74, 222, 128, 0.08);
}

.signal-reason-pill.bearish {
    border-color: rgba(248, 113, 113, 0.25);
    color: var(--red);
    background: rgba(248, 113, 113, 0.08);
}

/* ── Bot Dashboard: Trades Table ── */
.bot-trades-wrap {
    overflow-x: auto;
    margin-top: 0.75rem;
}

.bot-trades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.bot-trades-table thead th {
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.bot-trades-table tbody td {
    padding: 0.55rem 0.75rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.bot-trades-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}

.trade-side-buy {
    color: var(--green);
    font-weight: 700;
}

.trade-side-sell {
    color: var(--red);
    font-weight: 700;
}

.card--placeholder {
    border-style: dashed;
    opacity: 0.6;
}

.card--placeholder:hover {
    transform: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------- Admin Monitoring */
.monitoring-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    animation: fadeUp 0.6s ease-out 0.15s both;
}

.monitor-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.monitor-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.health-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.health-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.health-dot.healthy {
    background: var(--green);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.health-dot.warning {
    background: var(--yellow);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.health-dot.error {
    background: var(--red);
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
    animation: pulse 2s infinite;
}

.health-info {
    flex: 1;
}

.health-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.health-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

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

/* Error log table */
.error-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.error-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.error-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.error-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.severity-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.critical {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.severity-badge.warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--yellow);
}

.severity-badge.info {
    background: rgba(96, 165, 250, 0.15);
    color: var(--blue);
}

/* -------------------------------------------------------- Access */
.access-section {
    width: 100%;
    max-width: 600px;
    animation: fadeUp 0.6s ease-out 0.15s both;
}

.access-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.access-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.revoke-btn {
    color: var(--red);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: background var(--transition);
}

.revoke-btn:hover {
    background: rgba(248, 113, 113, 0.1);
}

/* Pending Requests */
.pending-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 100px;
    background: rgba(251, 191, 36, 0.2);
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.pending-item {
    border: 1px solid rgba(251, 191, 36, 0.15);
    background: rgba(251, 191, 36, 0.03);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.access-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.access-user-info div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.access-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(123, 140, 222, 0.3);
}

.access-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.access-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.access-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.access-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.approve-btn {
    color: var(--green);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: all var(--transition);
}

.approve-btn:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.4);
}

.deny-btn {
    color: var(--red);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(248, 113, 113, 0.2);
    transition: all var(--transition);
}

.deny-btn:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.4);
}

/* Pending Notice on Request Access Page */
.pending-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: var(--radius);
}

.pending-icon {
    font-size: 2rem;
}

/* Flash info variant */
.flash--info {
    border-color: rgba(96, 165, 250, 0.3);
    color: var(--blue);
}

.request-info {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* -------------------------------------------------------- Content Preview */
.preview-section {
    width: 100%;
    max-width: 900px;
    margin-top: 1rem;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.preview-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preview-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.preview-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.preview-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.preview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(123, 140, 222, 0.35);
}

.preview-img-wrapper {
    position: relative;
    width: 100%;
    max-height: 280px;
    overflow: hidden;
}

.preview-img-wrapper img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

.preview-card:hover .preview-img-wrapper img {
    transform: scale(1.03);
}

.preview-img-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, transparent 100%);
    pointer-events: none;
}

.preview-card-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.preview-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    background: rgba(123, 140, 222, 0.12);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.preview-card-badge svg {
    opacity: 0.8;
}

.preview-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.preview-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.preview-cta {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button--lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

.preview-cta-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    opacity: 0.7;
}

/* -------------------------------------------------------- Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* -------------------------------------------------------- Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .main {
        padding: 2rem 1rem;
    }

    .gradient-text {
        font-size: 2.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
    }

    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .strategy-weights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bot-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .bot-stats {
        grid-template-columns: 1fr 1fr;
    }

    .bot-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bot-indicator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .health-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-strip {
        flex-direction: column;
        gap: 1.75rem;
        padding: 2rem 1.5rem;
    }

    .stat-item:not(:last-child)::after {
        right: auto;
        bottom: -0.875rem;
        top: auto;
        width: 60%;
        height: 1px;
        left: 20%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }

    .nav-dropdown-chevron {
        display: none;
    }

    .nav-dropdown-menu {
        left: 0;
        transform: translateX(0) translateY(4px);
        min-width: 160px;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        transform: translateX(0) translateY(0);
    }

    .bot-stats {
        grid-template-columns: 1fr;
    }

    .bot-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .bot-indicator-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bot-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bot-trades-table {
        font-size: 0.72rem;
    }

    .bot-trades-table thead th,
    .bot-trades-table tbody td {
        padding: 0.4rem 0.5rem;
    }

    .strategy-weights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .strategy-meta-row {
        flex-direction: column;
    }

    .mta-routes-grid {
        grid-template-columns: 1fr;
    }

    .mta-arrival-row {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .mta-track-viz {
        min-height: 100px;
    }

    .mta-station-label {
        font-size: 0.55rem;
    }
}

/* ================================================================
   MTA TRACKER STYLES
   ================================================================ */

/* ── Subway Line Bullets ─────────────────────────── */
.mta-line-bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mta-line-j {
    background: #996633;
}

.mta-line-m {
    background: #FF6319;
}

.mta-line-z {
    background: #996633;
}

.mta-line-f {
    background: #FF6319;
}

.mta-line-a,
.mta-line-c,
.mta-line-e {
    background: #0039A6;
}

/* Background versions for train icons */
.mta-line-bg-j {
    background: #996633;
}

.mta-line-bg-m {
    background: #FF6319;
}

.mta-line-bg-z {
    background: #996633;
}

/* ── Time badge ─────────────────────────────────── */
.mta-time {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    font-weight: 500;
}

/* ── Sleep Banner (Outside Hours) ───────────────── */
.mta-sleep-banner {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    animation: fadeUp 0.5s ease-out;
}

.mta-sleep-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mta-sleep-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mta-sleep-sub {
    margin-top: 0.5rem;
    font-size: 0.8rem !important;
}

.mta-force-refresh {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--primary-light);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all var(--transition);
}

.mta-force-refresh:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ── Service Alerts ─────────────────────────────── */
.mta-alerts-section {
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
}

.mta-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    animation: fadeUp 0.4s ease-out;
}

.mta-alert--info {
    border-left: 3px solid var(--blue);
}

.mta-alert--warning {
    border-left: 3px solid var(--yellow);
    background: rgba(251, 191, 36, 0.05);
}

.mta-alert--critical {
    border-left: 3px solid var(--red);
    background: rgba(248, 113, 113, 0.05);
    animation: fadeUp 0.4s ease-out, pulse 3s infinite;
}

.mta-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mta-alert-lines {
    display: flex;
    gap: 0.35rem;
}

.mta-alert-severity {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.mta-sev-info {
    background: rgba(96, 165, 250, 0.15);
    color: var(--blue);
}

.mta-sev-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--yellow);
}

.mta-sev-critical {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.mta-alert-title {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.4;
}

.mta-alert-details {
    margin-top: 0.5rem;
}

.mta-alert-details summary {
    font-size: 0.8rem;
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 500;
}

.mta-alert-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

.mta-alert-period {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ── Arrival Board ──────────────────────────────── */
.mta-board-section {
    max-width: 900px;
    margin-bottom: 2rem;
}

.mta-board-card {
    overflow: hidden;
}

.mta-last-updated {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.mta-arrival-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mta-arrival-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out both;
}

.mta-arrival-row:nth-child(1) {
    animation-delay: 0s;
}

.mta-arrival-row:nth-child(2) {
    animation-delay: 0.05s;
}

.mta-arrival-row:nth-child(3) {
    animation-delay: 0.1s;
}

.mta-arrival-row:nth-child(4) {
    animation-delay: 0.15s;
}

.mta-arrival-row:nth-child(5) {
    animation-delay: 0.2s;
}

.mta-arrival-row:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateX(4px);
}

.mta-arriving {
    border-color: rgba(74, 222, 128, 0.3) !important;
    background: rgba(74, 222, 128, 0.05);
    animation: slideIn 0.3s ease-out both, arrivalPulse 1.5s ease-in-out infinite;
}

@keyframes arrivalPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.15);
    }

    50% {
        box-shadow: 0 0 12px 2px rgba(74, 222, 128, 0.1);
    }
}

.mta-arrival-dir {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
}

.mta-express-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mta-local-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mta-arrival-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    min-width: 70px;
    text-align: right;
}

.mta-arrival-countdown {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    min-width: 70px;
    text-align: right;
}

.mta-countdown-urgent {
    color: var(--green);
    animation: arrivalBlink 1s ease-in-out infinite;
}

@keyframes arrivalBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ── No Trains ──────────────────────────────────── */
.mta-no-trains {
    text-align: center;
    padding: 2rem 1rem;
}

.mta-no-trains-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.mta-no-trains p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mta-no-trains-sub {
    font-size: 0.8rem !important;
    margin-top: 0.35rem;
    opacity: 0.7;
}

/* ── Track Visualization ────────────────────────── */
.mta-track-section {
    max-width: 900px;
    margin-bottom: 2rem;
}

.mta-track-section .card {
    overflow: visible;
}

.mta-track-viz {
    position: relative;
    min-height: 140px;
    padding: 2.5rem 1rem 1rem;
}

.mta-track-line {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(153, 102, 51, 0.4) 0%,
            rgba(255, 99, 25, 0.4) 30%,
            rgba(99, 102, 241, 0.3) 60%,
            rgba(74, 222, 128, 0.4) 100%);
    border-radius: 2px;
    margin: 0 2rem;
}

.mta-station-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text);
    border: 2px solid var(--bg);
    z-index: 2;
    cursor: default;
}

.mta-station-myrtle {
    left: 5%;
    width: 16px;
    height: 16px;
    background: var(--green);
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

.mta-station-mid1 {
    left: 28%;
    width: 8px;
    height: 8px;
    background: var(--text-muted);
}

.mta-station-mid2 {
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary-light);
}

.mta-station-mid3 {
    left: 72%;
    width: 8px;
    height: 8px;
    background: var(--text-muted);
}

.mta-station-destination {
    left: 95%;
    width: 16px;
    height: 16px;
    background: var(--blue);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.4);
}

.mta-station-label {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.mta-station-myrtle .mta-station-label,
.mta-station-destination .mta-station-label {
    color: var(--text);
    font-weight: 600;
    font-size: 0.7rem;
}

/* ── Train Icons ────────────────────────────────── */
.mta-trains-container {
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    bottom: 0;
    pointer-events: none;
}

.mta-train-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: left 2s ease-in-out;
    animation: trainFloat 3s ease-in-out infinite;
}

@keyframes trainFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.mta-train-arriving {
    animation: trainFloat 0.5s ease-in-out infinite, arrivalPulse 1s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

/* ── Routes to 14th St ──────────────────────────── */
.mta-routes-section {
    max-width: 900px;
    margin-bottom: 2rem;
}

.mta-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.mta-route-card {
    position: relative;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all var(--transition);
}

.mta-route-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.mta-route-fastest {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.04);
}

.mta-fastest-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: white;
    letter-spacing: 0.05em;
}

.mta-route-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.mta-route-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.mta-route-tip {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-style: italic;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.mta-route-lines {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.mta-route-lines .mta-line-bullet {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
}

.mta-route-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mta-route-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mta-route-total .stat-value {
    color: var(--green);
    font-weight: 700;
}

.mta-na {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}

/* Collapsible train list */
.mta-hidden-row {
    display: none !important;
}

.mta-expand-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mta-expand-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* =================================================================
   CONSULTING — Plans & Pricing
   ================================================================= */

/* How It Works */
.consulting-how-it-works {
    width: 100%;
    max-width: 960px;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.6s ease-out 0.15s both;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.how-step {
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.how-step:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.how-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.how-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.how-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Plans Grid */
.consulting-plans-section {
    width: 100%;
    max-width: 960px;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease-out 0.25s both;
}

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

/* Plan Card */
.plan-card {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.plan-card--popular {
    border: 1px solid rgba(155, 125, 212, 0.4);
    background: rgba(155, 125, 212, 0.06);
    box-shadow: 0 0 30px rgba(155, 125, 212, 0.08);
}

.plan-card--popular:hover {
    border-color: rgba(155, 125, 212, 0.6);
    box-shadow: 0 12px 40px rgba(155, 125, 212, 0.15);
}

.plan-popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    line-height: 1.4;
}

.plan-features li svg {
    flex-shrink: 0;
    color: var(--green);
    margin-top: 1px;
}

/* Plan CTA Buttons */
.plan-cta-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none;
}

.plan-cta-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.plan-cta-btn--primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.plan-cta-btn--primary:hover {
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.4);
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Plan Status Pill (pending indicator) */
.plan-status-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.08);
    color: var(--yellow);
    font-size: 0.85rem;
    font-weight: 600;
}

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

/* Request Status Badges */
.req-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.req-status--pending {
    background: rgba(251, 191, 36, 0.12);
    color: var(--yellow);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.req-status--approved {
    background: rgba(96, 165, 250, 0.12);
    color: var(--blue);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.req-status--paid {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.req-status--declined {
    background: rgba(248, 113, 113, 0.12);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* User Requests Section */
.consulting-requests-section {
    width: 100%;
    max-width: 700px;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.user-requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.user-request-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-request-plan {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-request-price {
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-left: 0.25rem;
}

.user-request-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

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

/* FAQ Section */
.consulting-faq {
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease-out 0.35s both;
}

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

.faq-item {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.faq-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
}

.faq-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.faq-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Landing Page Mini Cards ─── */
.consulting-landing {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 1rem;
    text-align: center;
    animation: fadeUp 0.6s ease-out 0.25s both;
}

.consulting-landing-header {
    margin-bottom: 1.5rem;
}

.consulting-landing-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.plans-grid--landing {
    max-width: 780px;
    margin: 0 auto;
}

.plan-card-mini {
    position: relative;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.plan-card-mini:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.plan-card-mini--popular {
    border-color: rgba(155, 125, 212, 0.4);
    background: rgba(155, 125, 212, 0.06);
}

.plan-card-mini h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.plan-price-mini {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
}

.plan-price-period {
    font-size: 0.85rem;
    font-weight: 400;
}

.plan-card-mini p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.consulting-landing-cta {
    margin-top: 1.5rem;
}

/* Admin consulting tag */
.consulting-plan-tag {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

/* Payment result icons */
.payment-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.payment-result--success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 2px solid rgba(34, 197, 94, 0.25);
}

.payment-result--cancel {
    background: rgba(248, 113, 113, 0.12);
    color: var(--red);
    border: 2px solid rgba(248, 113, 113, 0.25);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .how-steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        padding: 1.5rem 1.25rem;
    }

    .user-request-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =================================================================
   ACCORDION / COLLAPSIBLE SECTIONS
   ================================================================= */

/* Generic accordion (details/summary) */
.accordion {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.25s ease;
    list-style: none;
    /* hide default marker */
    user-select: none;
    position: relative;
}

.accordion-trigger::-webkit-details-marker,
.accordion-trigger::marker {
    display: none;
    content: '';
}

/* Chevron arrow appended via pseudo-element */
.accordion-trigger::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.accordion[open]>.accordion-trigger::after {
    transform: rotate(-135deg);
}

.accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.25);
}

/* Accordion body — smooth reveal with grid-row animation */
.accordion-body {
    padding: 0 1.25rem 1rem;
    animation: accordionSlideDown 0.3s ease-out;
}

@keyframes accordionSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Timeline accordion overrides ─── */
.timeline .accordion {
    margin-bottom: 0.35rem;
}

.timeline .accordion-trigger.timeline-group-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.7rem 1rem;
}

.timeline .accordion-body {
    padding: 0 0.5rem 0.5rem;
}

/* ─── FAQ accordion ─── */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 960px;
    margin: 0 auto;
}

.faq-accordion {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
    user-select: none;
    transition: all 0.25s ease;
}

.faq-accordion-trigger::-webkit-details-marker,
.faq-accordion-trigger::marker {
    display: none;
    content: '';
}

.faq-accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--text-muted);
}

.faq-accordion[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-accordion-body {
    padding: 0 1.25rem 1rem;
    animation: accordionSlideDown 0.25s ease-out;
}

.faq-accordion-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ─── Plan features toggle inside pricing cards ─── */
.plan-features-details {
    margin-bottom: 1rem;
}

.plan-features-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-top: 1px solid var(--glass-border);
    list-style: none;
    user-select: none;
    transition: color 0.2s ease;
}

.plan-features-toggle::-webkit-details-marker,
.plan-features-toggle::marker {
    display: none;
    content: '';
}

.plan-features-toggle:hover {
    color: var(--text);
}

.plan-features-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.plan-features-details[open] .plan-features-chevron {
    transform: rotate(180deg);
}

.plan-features-details .plan-features {
    animation: accordionSlideDown 0.25s ease-out;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* =================================================================
   EXPERTISE PILLS (consulting hero)
   ================================================================= */
.expertise-section {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.5s ease-out 0.15s both;
}

.expertise-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.expertise-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.25s ease;
}

.expertise-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.08);
}

.expertise-pill svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.expertise-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Accordion trigger with subtitle ─── */
.accordion-trigger-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.accordion-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.accordion-trigger-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* How It Works accordion override */
.accordion--how-it-works>.accordion-trigger {
    padding: 1rem 1.5rem;
}

.accordion--how-it-works>.accordion-body {
    padding: 1.25rem 1.5rem 1.25rem;
}