/* Stoxly.io Pillar 3 Core & Hub Stylesheet */

/* ==========================================
   1. Brand Design Tokens & System Variables
   ========================================== */
:root {
    /* Brand Gradients (Derived from Stoxly Logo) */
    --gradient-violet: linear-gradient(135deg, #7B298A 0%, #C22F7F 100%);
    --gradient-magenta: linear-gradient(135deg, #CE3079 0%, #E85343 100%);
    --gradient-orange: linear-gradient(135deg, #EA5241 0%, #F28E35 100%);
    --gradient-yellow: linear-gradient(135deg, #EF7D38 0%, #F9B82F 100%);
    --gradient-logo: linear-gradient(90deg, #7B298A 0%, #CE3079 33%, #EA5241 66%, #F9B82F 100%);
    
    /* Solid Brand Colors */
    --color-violet: #8e2de2;
    --color-magenta: #ec4899;
    --color-orange: #f97316;
    --color-yellow: #f9b82f;
    --color-gold: #f9b82f;
    --color-success: #10b981;
    
    /* Layout & Surface Backgrounds */
    --bg-dark-deep: #07060a;
    --bg-dark-surface: #0e0d14;
    --bg-dark-card: rgba(20, 18, 30, 0.45);
    
    /* Glassmorphism Accents */
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-focus: rgba(255, 255, 255, 0.12);
    --bg-glass-nav: rgba(12, 11, 18, 0.75);
    --shadow-premium: 0 16px 40px rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-headings: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Text Palette */
    --text-white: #ffffff;
    --text-primary: #f1f0f5;
    --text-muted: #9a98a6;
    --text-inactive: #5a5866;
}

/* ==========================================
   2. Reset & Global Layout Rules
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-dark-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-block-size: 100dvb;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    inline-size: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-deep);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   3. Floating Background Glow Blobs
   ========================================== */
.glow-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    z-index: -1;
    pointer-events: none;
    animation: breathing-glow 15s infinite alternate ease-in-out;
}

.glow-bg-blob-1 {
    inline-size: 450px;
    block-size: 450px;
    background: radial-gradient(circle, var(--color-violet) 0%, transparent 70%);
    inset-block-start: 10%;
    inset-inline-start: -100px;
}

.glow-bg-blob-2 {
    inline-size: 550px;
    block-size: 550px;
    background: radial-gradient(circle, var(--color-magenta) 0%, transparent 70%);
    inset-block-start: 35%;
    inset-inline-end: -150px;
    animation-delay: -5s;
}

.glow-bg-blob-3 {
    inline-size: 400px;
    block-size: 400px;
    background: radial-gradient(circle, var(--color-orange) 0%, transparent 70%);
    inset-block-end: 15%;
    inset-inline-start: 10%;
    animation-delay: -10s;
}

@keyframes breathing-glow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.15;
    }
    100% {
        transform: scale(1.15) translate(20px, -20px);
        opacity: 0.22;
    }
}

/* ==========================================
   4. Header & Navigation Structure
   ========================================== */
.app-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    background-color: var(--bg-glass-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding-block: 1rem;
    transition: background-color 0.3s;
}

.header-container {
    padding-inline: clamp(1rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    outline: none;
}

.logo-svg {
    inline-size: 68px;
    block-size: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo:hover .logo-svg {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--text-white);
}

.logo-dot {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tagline {
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* Nav Links Styling */
.app-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
}

.nav-link:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.nav-btn-outline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    height: 42px;
    padding-inline: 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
}

.nav-btn-outline:hover {
    color: var(--text-white);
    border-color: var(--border-glass-focus);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    height: 42px;
    padding-inline: 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white) !important;
    background: var(--gradient-magenta);
    border: none;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.25);
    box-sizing: border-box;
}

.nav-cta:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    transform: translateY(-1px);
}

/* Products Dropdown */
.products-dropdown {
    position: relative;
}

.products-dropdown-menu {
    position: absolute;
    inset-block-start: calc(100% + 0.5rem);
    inset-inline-start: 0;
    min-inline-size: 260px;
    background: rgba(22, 22, 30, 0.96);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 2000;
}

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

.products-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.products-dropdown-menu .dropdown-item:hover:not(.dropdown-item-disabled) {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
}

.products-dropdown-menu .dropdown-item > i {
    font-size: 1rem;
    inline-size: 28px;
    text-align: center;
    flex-shrink: 0;
    color: var(--color-magenta);
    opacity: 0.8;
}

.products-dropdown-menu .dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.products-dropdown-menu .dropdown-item-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: inherit;
}

.products-dropdown-menu .dropdown-item-desc {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-inactive);
}

.products-dropdown-menu .dropdown-item-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-divider {
    inline-size: 1px;
    block-size: 24px;
    background-color: var(--border-glass);
}

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

/* ==========================================
   5. Sidebar + Main Layout
   ========================================== */
.app-layout {
    display: flex;
    flex: 1 0 auto;
    min-block-size: 0;
}

.app-sidebar {
    inline-size: var(--sidebar-width, 200px);
    flex-shrink: 0;
    border-inline-end: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.015);
    position: relative; /* For absolute positioning of resizer */
}

/* Sidebar Resizer Handle */
.sidebar-resizer {
    position: absolute;
    top: 0;
    right: -2px; /* Slight overlap for easier grabbing */
    width: 5px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s ease;
    z-index: 100;
}

.sidebar-resizer:hover, .sidebar-resizer.is-resizing {
    background: var(--color-magenta);
}

.sidebar-nav {
    position: sticky;
    inset-block-start: 70px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-block: 1.5rem;
    padding-inline: 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: var(--sidebar-font-size, 0.85rem);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link i {
    font-size: var(--sidebar-icon-size, 0.9rem);
    inline-size: 20px;
    text-align: center;
    opacity: 0.7;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.sidebar-link.active {
    background: rgba(236, 72, 153, 0.1);
    color: var(--text-white);
    font-weight: 600;
}

.sidebar-link.active i {
    opacity: 1;
    color: var(--color-magenta);
}

.sidebar-divider {
    block-size: 1px;
    background: var(--border-glass);
    margin-block: 0.5rem;
}

.app-main-content {
    flex: 1;
    padding-block: 3.5rem;
    max-inline-size: 1600px;
    margin-inline: auto;
    padding-inline: 1.25rem;
    min-inline-size: 0;
}

/* Hero Section */
.hub-hero {
    text-align: center;
    margin-bottom: 4rem;
    max-inline-size: 800px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hub-badge-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hub-title {
    font-family: var(--font-headings);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: var(--text-white);
}

.text-gradient {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hub-lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-delayed {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

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

/* ==========================================
   6. Dynamic Grid & Glassmorphic Cards
   ========================================== */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5.5rem;
}

/* DCF card spans full width centered on its own row */
.calculators-grid .calc-card:first-child {
    grid-column: 1 / -1;
    max-inline-size: 480px;
    justify-self: center;
    width: 100%;
}

/* Core Card Structure */
.calc-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: clip;
    box-shadow: var(--shadow-premium);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s, 
                box-shadow 0.4s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.calc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.3s;
}

.card-inner-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Hover States & Custom Accent Glows */
.calc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.calc-card:hover .card-inner-glow {
    opacity: 0.08;
}

/* Accent Mapping */
.card-fire:hover { border-color: rgba(239, 125, 56, 0.3); }
.card-fire .card-inner-glow {
    background: radial-gradient(circle at top right, var(--color-orange) 0%, transparent 60%);
}
.card-fire .calc-icon-wrapper { background: rgba(239, 125, 56, 0.1); color: var(--color-orange); }

.card-dividends:hover { border-color: rgba(236, 72, 153, 0.3); }
.card-dividends .card-inner-glow {
    background: radial-gradient(circle at top right, var(--color-magenta) 0%, transparent 60%);
}
.card-dividends .calc-icon-wrapper { background: rgba(236, 72, 153, 0.1); color: var(--color-magenta); }

.card-compound:hover { border-color: rgba(142, 45, 226, 0.3); }
.card-compound .card-inner-glow {
    background: radial-gradient(circle at top right, var(--color-violet) 0%, transparent 60%);
}
.card-compound .calc-icon-wrapper { background: rgba(142, 45, 226, 0.1); color: var(--color-violet); }

.card-dcf:hover { border-color: rgba(249, 184, 47, 0.3); }
.card-dcf .card-inner-glow {
    background: radial-gradient(circle at top right, var(--color-yellow) 0%, transparent 60%);
}
.card-dcf .calc-icon-wrapper { background: rgba(249, 184, 47, 0.1); color: var(--color-yellow); }

/* Card Content Details */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
    z-index: 1;
}

.calc-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge-ready {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
}

.pulse-dot {
    inline-size: 6px;
    block-size: 6px;
    background-color: var(--color-success);
    border-radius: 50%;
    animation: status-pulse 1.8s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.card-body {
    flex: 1 0 auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-icon-wrapper {
    inline-size: 54px;
    block-size: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.calc-card:hover .calc-icon-wrapper {
    transform: scale(1.08) rotate(4deg);
}

.calc-title {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.calc-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.calc-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.feat-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Button & Action Link triggers */
.card-footer {
    margin-top: 1.8rem;
    z-index: 1;
}

.btn-launch-calculator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    inline-size: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass-focus);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    outline: none;
}

.card-fire:hover .btn-launch-calculator {
    background: var(--gradient-yellow);
    border-color: transparent;
    color: var(--bg-dark-deep);
}

.card-dividends:hover .btn-launch-calculator {
    background: var(--gradient-magenta);
    border-color: transparent;
}

.btn-collab-active {
    opacity: 0.7;
}

.calc-card:hover .btn-collab-active {
    opacity: 1;
}

.card-compound:hover .btn-launch-calculator {
    background: var(--gradient-violet);
    border-color: transparent;
}

.card-dcf:hover .btn-launch-calculator {
    background: var(--gradient-orange);
    border-color: transparent;
}

.btn-launch-calculator i {
    transition: transform 0.25s ease;
}

.btn-launch-calculator:hover i {
    transform: translateX(4px);
}

/* ==========================================
   7. Integration Blueprint (Wealth Cycle)
   ========================================== */
.wealth-cycle-section {
    margin-block-start: 1rem;
}

.glass-container {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: clip;
}

.glass-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.section-title {
    font-family: var(--font-headings);
    font-size: 2.1rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.8px;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Steps Flow Layout */
.steps-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.step-item {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.step-num-circle {
    inline-size: 42px;
    block-size: 42px;
    border-radius: 50%;
    background: var(--bg-dark-deep);
    border: 2px solid var(--border-glass-focus);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-orange);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.step-item:hover .step-num-circle {
    transform: scale(1.1);
    border-color: var(--color-yellow);
    background: var(--color-orange);
    color: var(--text-white);
}

.step-item h4 {
    font-family: var(--font-headings);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
}

.step-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-inline-size: 200px;
}

.step-arrow {
    align-self: center;
    color: var(--text-inactive);
    font-size: 1.2rem;
    margin-block-start: -2rem; /* align relative to step circle */
}

/* ==========================================
   8. Calculator Detail Subpages & Placeholders
   ========================================== */
.calculator-detail-container {
    padding-block: 1rem;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    outline: none;
}

.btn-back:hover {
    color: var(--text-white);
}

.detail-header {
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.detail-title {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.detail-lead {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    max-inline-size: 800px;
}

/* Detail Stub Page Placeholder layout */
.placeholder-section {
    max-inline-size: 700px;
    margin-inline: auto;
}

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

.placeholder-glow-icon {
    inline-size: 80px;
    block-size: 80px;
    border-radius: 20px;
    margin-inline: auto;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: var(--shadow-premium);
}

.color-fire { background: rgba(239, 125, 56, 0.1); color: var(--color-orange); }
.color-dividends { background: rgba(236, 72, 153, 0.1); color: var(--color-magenta); }
.color-compound { background: rgba(142, 45, 226, 0.1); color: var(--color-violet); }
.color-dcf { background: rgba(249, 184, 47, 0.1); color: var(--color-yellow); }

.placeholder-section h2 {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.placeholder-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-inline-size: 500px;
    margin-inline: auto;
}

.btn-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    background: var(--gradient-yellow);
    color: var(--bg-dark-deep);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(249, 184, 47, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none;
}

.btn-standard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 184, 47, 0.45);
}

/* ==========================================
   9. Footer Styling
   ========================================== */
.app-footer {
    background-color: var(--bg-dark-deep);
    border-block-start: 1px solid var(--border-glass);
    padding-block: clamp(2.5rem, 5vh, 4rem);
    padding-inline: clamp(1rem, 5vw, 3rem);
    text-align: center;
    margin-block-start: auto;
    z-index: 10;
}

.app-footer .footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-block-end: 2rem;
    list-style: none;
}

.app-footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 54px;
    block-size: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 1.4rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.app-footer .footer-social a:hover {
    background: rgba(236, 72, 153, 0.12);
    color: var(--color-magenta);
    border-color: rgba(236, 72, 153, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

.app-footer .footer-social a i {
    inline-size: 24px;
    block-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-footer .footer-social a .fa-x-twitter,
.app-footer .footer-social a .fa-x-twitter::before {
    color: var(--text-muted) !important;
    -webkit-text-fill-color: var(--text-muted) !important;
}

.app-footer .footer-social a .fa-x-twitter svg,
.app-footer .footer-social a .fa-x-twitter svg path {
    fill: var(--text-muted) !important;
}

.app-footer .footer-social a:hover .fa-x-twitter,
.app-footer .footer-social a:hover .fa-x-twitter::before {
    color: var(--color-magenta) !important;
    -webkit-text-fill-color: var(--color-magenta) !important;
}

.app-footer .footer-social a:hover .fa-x-twitter svg,
.app-footer .footer-social a:hover .fa-x-twitter svg path {
    fill: var(--color-magenta) !important;
}

.app-footer .footer-brand-row {
    margin-block-end: 1rem;
}

.app-footer .footer-brand-name {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.app-footer .footer-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-block-start: 0.25rem;
    font-style: italic;
}

.app-footer .footer-copyright {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-inactive);
}

.pill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 0.2rem 0.6rem;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.badge-free {
    border-color: rgba(16, 185, 129, 0.15);
    background-color: rgba(16, 185, 129, 0.05);
    color: var(--color-success);
    font-weight: 600;
}

/* ==========================================
   10. Responsiveness & Adaptive Styling
   ========================================== */
@media (max-inline-size: 968px) {
    .header-container {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .steps-flow {
        flex-direction: column;
        align-items: center;
        gap: 2.2rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin-block-start: -0.5rem;
    }
    
    .step-item p {
        max-inline-size: 260px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-meta {
        align-items: center;
    }
}

@media (max-inline-size: 576px) {
    .app-sidebar {
        display: none;
    }
    
    .app-layout {
        flex-direction: column;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
    }
    
    .calculators-grid .calc-card:first-child {
        max-inline-size: none;
    }
    
    .app-main-content {
        padding-block: 2rem;
    }
    
    .hub-hero {
        margin-bottom: 2.5rem;
    }
}

/* ==========================================
   11. Market Indices Header Widget
   ========================================== */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-right-actions .nav-cta {
    margin-left: 0.5rem;
}

.market-indices-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.index-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 90px;
    height: 42px;
    justify-content: center;
    box-sizing: border-box;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    cursor: default;
    user-select: none;
}

.index-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.index-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-white);
    opacity: 0.85;
    line-height: 1.2;
    white-space: nowrap;
}

.index-change {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0.15rem;
    transition: color 0.2s ease;
}

.index-change.positive {
    color: var(--color-success);
}

.index-change.negative {
    color: #ef4444;
}

/* Micro-animations: Color flashes */
@keyframes flash-green {
    0% { color: #10b981; text-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
    50% { color: #34d399; text-shadow: 0 0 15px rgba(52, 211, 153, 0.8); }
    100% { color: var(--color-success); text-shadow: none; }
}

@keyframes flash-red {
    0% { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
    50% { color: #f87171; text-shadow: 0 0 15px rgba(248, 113, 113, 0.8); }
    100% { color: #ef4444; text-shadow: none; }
}

.flash-up {
    animation: flash-green 1s ease-out;
}

.flash-down {
    animation: flash-red 1s ease-out;
}

/* Fear & Greed Card Styling */
.fear-greed-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.35rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 42px;
    box-sizing: border-box;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.fear-greed-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.fg-dial-container {
    width: 66px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fg-dial-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.fg-segment {
    transition: opacity 0.3s ease;
}

.fg-segment.inactive {
    opacity: 0.2;
}

.fg-segment.active {
    opacity: 1;
    stroke-width: 3.5px;
}

.fg-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fg-title {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-white);
    opacity: 0.5;
    line-height: 1.1;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fg-desc {
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--text-white);
    opacity: 0.95;
    line-height: 1.2;
    margin-top: 0.05rem;
    white-space: nowrap;
}

.fg-rating {
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Responsiveness: hide widgets under 1024px to prevent overlapping */
@media (max-inline-size: 1024px) {
    .market-indices-widget,
    .fear-greed-card {
        display: none !important;
    }
}

/* ==========================================
   12. Contact Us Page Styling
   ========================================== */
.contact-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-badge-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-magenta);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.contact-title {
    font-family: var(--font-headings);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 1rem;
}

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

.contact-card {
    position: relative;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.contact-success-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.contact-success-banner .success-icon {
    font-size: 1.5rem;
    color: var(--color-success);
    margin-top: 0.15rem;
}

.success-message-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 0.25rem 0;
}

.success-message-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

@media (max-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    opacity: 0.85;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-white);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--border-glass-focus);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    font-size: 0.78rem;
    font-weight: 500;
    color: #ef4444;
    margin-top: 0.25rem;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
    border-color: rgba(239, 68, 68, 0.4);
}

.form-group.has-error .form-input:focus,
.form-group.has-error .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-actions {
    margin-top: 1rem;
}

.btn-submit {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    height: 46px;
    padding-inline: 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: var(--text-white) !important;
    background: var(--gradient-magenta);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.50rem;
    transition: all 0.25s ease;
    outline: none;
}

.btn-submit:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

