:root {
    /* --- Modern Tokens --- */
    --primary: #2563EB;
    --primary-dark: #1d4ed8;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;

    /* --- Future "Eclipse" Tokens --- */
    --eclipse-bg: #0A0B10;
    --eclipse-panel: rgba(255, 255, 255, 0.03);
    --eclipse-stroke: rgba(255, 255, 255, 0.1);
    --neon-blue: #00D1FF;
    --neon-purple: #8B5CF6;
    --glass-blur: blur(40px);

    /* Adaptive Text Tokens */
    --text-main: var(--white);
    --text-muted: rgba(255, 255, 255, 0.7);
    --panel-bg-solid: #0A0B10;

    /* --- "Solar" (Light Mode) Tokens --- */
    --solar-bg: #ddf1fd;
    --solar-bg-alt: #f5fdfb;
    --solar-panel: rgba(255, 255, 255, 0.7);
    --solar-stroke: rgba(0, 0, 0, 0.05);
}

[data-theme="solar"] {
    --eclipse-bg: var(--solar-bg);
    --eclipse-panel: var(--solar-panel);
    --eclipse-stroke: var(--solar-stroke);
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-main: #0f172a;
    --text-muted: #475569;
    --panel-bg-solid: #FFFFFF;
    --glass-blur: blur(20px);
}

[data-theme="solar"] .mesh-bg {
    background-color: var(--solar-bg);
    background-image: none;
}

[data-theme="solar"] .glass-panel {
    background: var(--solar-panel);
    border: 1px solid var(--solar-stroke);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Futuristic Utilities */
.glass-panel {
    background: var(--eclipse-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--eclipse-stroke);
    border-radius: 1.5rem;
}

.neon-glow {
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

.mesh-bg {
    background-color: var(--eclipse-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 209, 255, 0.15) 0px, transparent 50%);
}

/* --- v2 Hero Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px) rotateX(0deg);
    }

    50% {
        transform: translateY(-20px) rotateX(2deg);
    }

    100% {
        transform: translateY(0px) rotateX(0deg);
    }
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 5px var(--neon-blue));
        opacity: 0.8;
    }

    50% {
        filter: drop-shadow(0 0 20px var(--neon-blue));
        opacity: 1;
    }

    100% {
        filter: drop-shadow(0 0 5px var(--neon-blue));
        opacity: 0.8;
    }
}

@keyframes data-flow {
    0% {
        stroke-dashoffset: 200;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -10px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.visual-layer {
    position: relative;
    width: 100%;
    height: 400px;
}

.floating-shield {
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.data-path {
    stroke-dasharray: 100;
    animation: data-flow 4s linear infinite;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--eclipse-bg);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* --- Global Accessibility Focus Rings --- */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Explicit exceptions to ensure the ring looks good natively */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Global Select Dropdown Arrow --- */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    padding-right: 36px;
    cursor: pointer;
}

/* --- App Shell Structure --- */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Sidebar adjustments for App Shell */
.sidebar {
    width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 12px;
    margin: 0.2rem 1rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.sidebar-footer {
    padding: 1.5rem;
}

/* Ensure Marketing/Auth pages don't use shell logic by default or can override it */
.full-page-scroll {
    height: auto !important;
    overflow: visible !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    text-decoration: none;
}

/* --- 2. Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

/* Hover States */
.group:hover .group-hover\:bg-primary-dark {
    background-color: var(--primary-dark);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.hover\:bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: #eff6ff;
}

/* Base Neon Button Utilities */
.btn-neon-purple {
    background: var(--neon-purple);
    color: var(--white);
    border: none;
}

.btn-neon-blue {
    background: var(--neon-blue);
    color: var(--eclipse-bg);
    border: none;
}

/* Base Neon Header Utilities */
.data-table th.th-purple {
    color: var(--neon-purple);
}

.data-table th.th-blue {
    color: var(--neon-blue);
}

/* Base Nav Gradient Class */
.text-gradient {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- LIGHTMODE SOLAR OVERRIDES --- */
[data-theme="solar"] .data-table th.th-purple,
[data-theme="solar"] .data-table th.th-blue,
[data-theme="solar"] .btn-neon-purple,
[data-theme="solar"] .btn-neon-blue {
    color: var(--primary-dark) !important;
}

[data-theme="solar"] .btn-neon-purple,
[data-theme="solar"] .btn-neon-blue {
    background: var(--primary-dark) !important;
    background-color: var(--primary-dark) !important;
    color: var(--white) !important;
    border-color: var(--primary-dark) !important;
}

[data-theme="solar"] .text-gradient {
    background: none;
    -webkit-text-fill-color: var(--primary-dark);
    color: var(--primary-dark);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- 3. Navigation --- */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--eclipse-stroke);
    background: var(--panel-bg-solid);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-gray);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* --- 4. Hero Section --- */
.hero {
    padding: 6rem 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.trust-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.badge {
    background: #e5e7eb;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Simulated Abstract UI for Hero */
.hero-visual {
    flex: 1;
}

.dashboard-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}

.glass-card {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    /* Tilted slightly for 3D effect */
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.fake-ui-header {
    height: 15%;
    background: #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1rem;
    width: 40%;
}

.fake-graph {
    height: 40%;
    background: #dbeafe;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.fake-list {
    height: 30%;
    background: #f3f4f6;
    border-radius: 6px;
}

/* --- 5. Features (Zig-Zag) --- */
.features {
    padding: 6rem 0;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1 1 50%;
    max-width: 50%;
}

.feature-text h3 {
    font-size: 2rem;
    color: var(--text-main);
}

.feature-text p {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.feature-image {
    flex: 1 1 50%;
    max-width: 50%;
}

.placeholder-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e5e7eb;
    border-radius: var(--radius);
}


.responsive-img {
    width: 100%;
    /* Fills the container */
    height: auto;
    /* Maintains aspect ratio (doesn't squish) */
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    /* Adds that premium pop */
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    /* Flattens the image when you mouse over it */
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}


/* --- 6. Pricing --- */
.pricing {
    background: var(--eclipse-panel);
    border-top: 1px solid var(--eclipse-stroke);
    border-bottom: 1px solid var(--eclipse-stroke);
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    /* Vertically center so the middle one can grow */
}

.price-card {
    background: var(--panel-bg-solid);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--eclipse-stroke);
    box-shadow: var(--shadow-sm);
    position: relative;

    /* CRITICAL: This makes the animation smooth */
    transition: all 0.3s ease;
}


.price-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary);
    z-index: 20;
}

.price-card.popular:hover {
    transform: translateY(-10px) scale(1.07);
}

/* The Pop Effect for the Middle Card */
.price-card.popular {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 400;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

/* Add a pseudo-element checkmark */
.features-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for example */
    .hero-content,
    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .steps-grid,
    .solutions-grid,
    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .price-card.popular {
        transform: scale(1);
    }

    /* Disable scaling on mobile */
}


/* --- Auth & Registration Layout --- */
.auth-page {
    /* Instead of var(--bg-light), we use the mesh-bg or transparent to inherit the body */
    background-color: transparent;
    padding: 4rem 0;
    min-height: 80vh;
}

.auth-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--eclipse-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: 1.5rem;
    /* Align with glass-panel */
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--eclipse-stroke);
}

.auth-wrapper.narrow {
    max-width: 480px;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 2.5rem 0;
}

/* --- Selectable Pricing Cards --- */
.plan-selection-grid {
    display: grid;
    /* FORCE 2 columns: This creates the "Row per plan" layout */
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.plan-option {
    cursor: pointer;
    position: relative;
    /* CRITICAL: Allows the inner content to fill the full grid cell height */
    display: flex;
    flex-direction: column;
}

/* Hide the actual radio circle */
.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.plan-card-content {
    /* Flexbox magic for centering and equal height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Vertically center the text */
    text-align: center;

    /* Fill the parent space */
    flex: 1;
    width: 100%;

    padding: 2rem 1rem;
    /* Added more vertical padding for breathing room */
    border: 2px solid var(--eclipse-stroke);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    background: var(--panel-bg-solid);
}

/* When the HIDDEN radio is checked, style the content div */
.plan-option input[type="radio"]:checked+.plan-card-content {
    border-color: var(--primary);
    background-color: #eff6ff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);

    /* Optional: Make the selected card pop slightly */
    transform: translateY(-2px);
}

/* Typography updates */
.plan-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.plan-price {
    font-size: 1.75rem;
    /* Made price slightly larger */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.plan-period {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.plan-tag {
    position: absolute;
    top: -12px;
    /* Center the tag horizontally */
    left: 50%;
    transform: translateX(-50%);

    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .plan-selection-grid {
        grid-template-columns: 1fr;
    }

    .auth-wrapper {
        padding: 1rem;
        width: 95%;
    }
}

/* ==========================================================================
   GLOBAL UTILITIES
   ========================================================================== */

/* Spacing (Padding & Margin) */
.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.px-1 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mr-3 {
    margin-right: 1rem !important;
}

.mr-4 {
    margin-right: 1.5rem !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-3 {
    margin-left: 1rem !important;
}

/* Flexbox & Layout */
.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.items-center {
    align-items: center !important;
}

.items-start {
    align-items: flex-start !important;
}

.items-end {
    align-items: flex-end !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

/* Typography */
.text-xs {
    font-size: 0.75rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-base {
    font-size: 1rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-extrabold {
    font-weight: 800 !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.whitespace-nowrap {
    white-space: nowrap !important;
}

/* Dynamic Context Colors */
.text-main {
    color: var(--text-main) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-gray {
    color: var(--text-gray) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: #16a34a !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-white {
    color: var(--white) !important;
}

.text-neon-blue {
    color: var(--neon-blue) !important;
}

.text-neon-purple {
    color: var(--neon-purple) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-success {
    background-color: #16a34a !important;
}

.bg-danger {
    background-color: #ef4444 !important;
}

.bg-dark {
    background-color: #0f172a !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.bg-eclipse {
    background-color: var(--eclipse-bg) !important;
}

.bg-panel {
    background-color: var(--panel-bg-solid) !important;
}

/* Border & Radius */
.border-none {
    border: none !important;
}

.border-b {
    border-bottom: 1px solid var(--eclipse-stroke) !important;
}

.border-b-2 {
    border-bottom: 2px solid var(--eclipse-stroke) !important;
}

.rounded-sm {
    border-radius: 4px !important;
}

.rounded-md {
    border-radius: 6px !important;
}

.rounded-lg {
    border-radius: 8px !important;
}

.rounded-xl {
    border-radius: 12px !important;
}

.rounded-full {
    border-radius: 50px !important;
}

/* Interactive */
.cursor-pointer {
    cursor: pointer !important;
}

.no-underline {
    text-decoration: none !important;
}

.inline-block {
    display: inline-block !important;
}

.w-full {
    width: 100% !important;
}

/* When the HIDDEN radio is checked, style the content div */
.plan-option input[type="radio"]:checked+.plan-card-content {
    border-color: var(--primary);
    background-color: #eff6ff;
    /* Very light blue */
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.plan-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-period {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.plan-tag {
    position: absolute;
    top: -10px;
    background: #10b981;
    /* Green */
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
}

/* --- Required-field marker (auto-injected by footer.php JS) --- */
.required-marker {
    color: #ff4d6d;
    font-weight: 700;
    margin-left: 0.15em;
}

/* --- Password strength + match feedback (used by register.php and
       settings.php Security card; behavior lives in each page's
       <script>, this is shared visual treatment only) --- */
.pwd-requirements {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.75rem;
}
.pwd-requirements li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-gray);
    transition: color 0.15s ease;
}
.pwd-requirements li.pwd-met { color: #4ade80; }
.pwd-rule-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 77, 109, 0.12);
    color: #ff4d6d;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
.pwd-met .pwd-rule-icon {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    font-size: 0;
}
.pwd-met .pwd-rule-icon::before { content: '\2713'; font-size: 0.75rem; }
.pwd-rule-optional {
    color: var(--text-gray);
    font-weight: 400;
    font-size: 0.7rem;
    opacity: 0.7;
}
.pwd-match {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    min-height: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pwd-match.pwd-match-ok { color: #4ade80; }
.pwd-match.pwd-match-bad { color: #ff4d6d; }

/* --- Form Inputs Layout --- */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex: 1;
    padding: 2rem;
    margin: 0;
    align-items: start;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    /* Allows user to drag resizing vertically only */
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

/* 1. Shared styles for all form controls */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    height: 3rem;
    width: 100%;
    /* Ensures they fill the container */
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* 2. SPECIFIC styles for the dropdown arrow */
select {
    appearance: none;
    padding-right: 2.5rem;
    /* Extra space for the arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}

/* 3. Shared focus state */
input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.terms-text {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Mobile Adjustment */
@media (max-width: 768px) {

    .input-grid,
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .glass-panel {
        padding: 1.5rem !important;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .auth-wrapper {
        padding: 1.5rem;
    }

    .flex-col-mobile {
        flex-direction: column !important;
    }
}


.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}

.pb-3 {
    padding-bottom: 1.5rem;
}

.pb-4 {
    padding-bottom: 2rem;
}

.pt-2 {
    padding-top: 1rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.max-w-md {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.w-6 {
    width: 1.5rem;
}

.h-48 {
    height: 12rem;
}

.h-full {
    height: 100%;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-7xl {
    font-size: 4.5rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.text-link {
    color: var(--primary);
    font-weight: 500;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Enhanced Auth Layout */
.auth-wrapper.narrow {
    max-width: 500px;
    /* Standardize login width */
}

.nav-welcome {
    color: var(--text-gray);
    margin-right: 1rem;
    font-size: 0.9rem;
}

/* --- Tailwind Flex Utilities --- */
.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.flex-1 {
    flex: 1 1 0%;
}

/* --- Tailwind Grid Utilities --- */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.col-span-1 {
    grid-column: span 1 / span 1;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.col-span-3 {
    grid-column: span 3 / span 3;
}

.col-span-4 {
    grid-column: span 4 / span 4;
}

.row-span-2 {
    grid-row: span 2 / span 2;
}

.auto-rows-\[150px\] {
    grid-auto-rows: 150px;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* --- Stripe Container Standard --- */
.payment-container {
    display: none;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

/* Secondary Button  */
.btn-secondary {
    background-color: #f3f4f6;
    color: var(--text-dark);
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-danger {
    border: 1px solid #ef4444;
    color: #ef4444;
    background: transparent;
}

.btn-danger:hover {
    background: #fef2f2;
}

/* --- Final Register & Stripe Refinements --- */

.form-section h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* Ensure the divider doesn't create too much white space */
.form-divider {
    border: 0;
    height: 1px;
    background: #e5e7eb;
    margin: 2rem 0;
}

/* Stripe Element Styling - This makes the Stripe iframe feel native */
#stripe-payment-container {
    transition: opacity 0.3s ease-in-out;
}

.terms-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    max-width: 400px;
    margin: 1rem auto 0;
}

/* Plan Selection "Best Value" Green Tag */
.plan-tag {
    background: #10b981;
    /* Emerald Green */
    color: white;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: absolute;
    top: -12px;
}

/* Placeholder for the number grid before a state is selected */
.plan-selection-grid.empty-state {
    min-height: 150px;
    border: 2px dashed #e5e7eb;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
}

.plan-selection-grid.empty-state::after {
    content: "Select a state to view available numbers";
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Style for disabled inputs to look "Greyed Out" but clean */
input:disabled,
select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* --- Compact Grid for Numbers --- */
.plan-selection-grid.compact {
    /* Change from 2 columns to 3 columns on desktop */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plan-selection-grid.compact .plan-card-content {
    padding: 1rem;
    /* Reduced from 2rem */
    min-height: 80px;
    /* Ensure they aren't too tall */
}

.plan-selection-grid.compact .plan-price {
    font-size: 1.1rem;
    /* Slightly smaller for the compact layout */
    margin-bottom: 0;
}

/* Mobile: Drop back to 2 columns instead of 1 for numbers */
@media (max-width: 600px) {
    .plan-selection-grid.compact {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

/* Modal Content */
.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}


.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.modal-number-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    background: #eff6ff;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: block;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

/* --- Dashboard Layout --- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--eclipse-bg);
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0;
    /* Align to sidebar */
}

/* --- Stat Cards --- */
.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    font-weight: 700;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.5rem 0;
}

/* --- Call Log Table --- */
.table-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.data-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

/* Status Badges */
.badge-success {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-gray {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
}

.dashboard-grid {
    display: grid;
    /* This forces 3 columns on desktop, ensuring all cards stay on one line */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Maintain responsiveness for tablets and mobile */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 columns for tablets */
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        /* 1 column for mobile */
    }
}


/* Standardize the Sidebar Container */
.sidebar {
    width: 260px;
    background: #1e293b;
    color: var(--white);
    display: flex;
    flex-direction: column;
    /* App Shell Persistence */
    height: 100vh;
    position: sticky;
    top: 0;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.sidebar-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #334155;
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
    /* This allows the nav to scroll internally if you add too many links, 
       without pushing the footer off-screen */
    flex: 1;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 2rem;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.sidebar-link:hover {
    background: #334155;
    color: var(--white);
}

.sidebar-link.active {
    background: #334155;
    color: var(--white);
    border-left-color: var(--primary);
}

.sidebar-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #334155;
    margin-top: auto;
    background: #1e293b;
}

.admin-section-header {
    padding: 1rem 2rem 0.4rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-top: 1px solid #334155;
    margin-top: 0.5rem;
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive Mobile Sidebar */
@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        height: 100vh;
        transform: translateX(-100%);
        /* Hidden by default */
    }

    .sidebar.active {
        transform: translateX(0);
    }
}

/* --- 7. FAQ Accordion Styles --- */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.faq-category {
    margin-bottom: 3rem;
    /* Increased breathing room between sections */
    padding-bottom: 2rem;
    /* Adds space above the line */
    border-bottom: 1px solid #e5e7eb;
    /* The subtle divider line */
}

/* This removes the line from the very last section so it doesn't look weird */
.faq-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-category h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-dark);
    padding-left: 1rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    user-select: none;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
    /* Hidden by default */
    border-top: 1px solid transparent;
}

/* Active State (Toggled via JS) */
.faq-item.active .faq-answer {
    display: block;
    border-top: 1px solid #f3f4f6;
    animation: fadeIn 0.3s ease;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Polished Contact Form Styles --- */

/* 1. The Card Container */
.contact-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Deeper Shadow */
    border: 1px solid #e5e7eb;
    overflow: hidden;
    /* Ensures the header background stays inside rounded corners */
    max-width: 700px;
    margin: 0 auto;
}

/* 2. The Two-Tone Header */
.contact-header-bg {
    background-color: #f8fafc;
    /* Light gray contrast */
    padding: 2.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.contact-header-bg h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-header-bg p {
    color: #64748b;
    font-size: 0.95rem;
}

/* 3. The Form Body */
.contact-body {
    padding: 2.5rem;
}

/* 4. Inputs with "Depth" */
.form-group label {
    font-size: 0.875rem;
    /* Slightly smaller */
    font-weight: 600;
    /* Bolder */
    color: #374151;
    /* Darker gray */
    margin-bottom: 0.5rem;
    display: block;
}

/* Default state: Light Gray */
.contact-card input,
.contact-card select,
.contact-card textarea {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    /* Slightly more rounded */
    padding: 0.85rem;
    /* More breathing room */
    transition: all 0.2s ease;
}

/* Focus state: White with Blue Ring */
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    /* The "Glow" effect */
    outline: none;
}

/* 5. Placeholder text styling */
::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* --- App Shell Specifics --- */
.persistent-footer {
    padding: 0.6rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--eclipse-stroke);
    font-size: 0.7rem;
    color: var(--text-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

[data-theme="eclipse"] .persistent-footer {
    background: var(--eclipse-bg);
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* --- App Shell Structure --- */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--eclipse-bg);
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Ensure the page content expands to push the footer down */
.app-content>div:first-of-type {
    flex: 1 0 auto;
}

[data-theme="solar"] .app-shell {
    background: var(--bg-light);
}

 / *   - - -   T a i l w i n d   U t i l i t i e s   - - -   * /   / *   U t i l i t y   C o l o r s   a n d   B a c k g r o u n d s   * /   . b g - w h i t e    {
       b a c k g r o u n d - c o l o r :    # f f f f f f ;
       
}

   . b g - p r i m a r y    {
       b a c k g r o u n d - c o l o r :    v a r ( - - p r i m a r y ) ;
       
}

   . b g - p r i m a r y - d a r k    {
       b a c k g r o u n d - c o l o r :    v a r ( - - p r i m a r y - d a r k ) ;
       
}

   . b g - d a r k    {
       b a c k g r o u n d - c o l o r :    v a r ( - - e c l i p s e - b g ) ;
       
}

   . b g - t r a n s p a r e n t    {
       b a c k g r o u n d - c o l o r :    t r a n s p a r e n t ;
       
}

   . b g - g r a y \ / 5    {
       b a c k g r o u n d - c o l o r :    r g b a ( 2 4 9 ,    2 5 0 ,    2 5 1 ,    0 . 0 5 ) ;
       
}

     . t e x t - w h i t e    {
       c o l o r :    # f f f f f f ;
       
}

   . t e x t - m a i n    {
       c o l o r :    v a r ( - - t e x t - m a i n ) ;
       
}

   . t e x t - m u t e d    {
       c o l o r :    v a r ( - - t e x t - m u t e d ) ;
       
}

   . t e x t - d a n g e r    {
       c o l o r :    # f f 5 f 5 6 ;
       
}

   . t e x t - s u c c e s s    {
       c o l o r :    # 2 7 c 9 3 f ;
       
}

   . t e x t - p r i m a r y    {
       c o l o r :    v a r ( - - p r i m a r y ) ;
       
}

     . b o r d e r - g r a y    {
       b o r d e r - c o l o r :    # e 5 e 7 e b ;
       
}

   . b o r d e r - e c l i p s e    {
       b o r d e r - c o l o r :    v a r ( - - e c l i p s e - s t r o k e ) ;
       
}

   . b o r d e r - e c l i p s e \ / 5 0    {
       b o r d e r - c o l o r :    r g b a ( v a r ( - - e c l i p s e - s t r o k e ) ,    0 . 5 ) ;
       
}

   . b o r d e r - s u c c e s s    {
       b o r d e r - c o l o r :    # 1 0 b 9 8 1 ;
       
}

   . b o r d e r - d a r k    {
       b o r d e r - c o l o r :    # 0 f 1 7 2 a ;
       
}

     . b o r d e r - b    {
       b o r d e r - b o t t o m - w i d t h :    1 p x ;
       
}

   . b o r d e r - b - 2    {
       b o r d e r - b o t t o m - w i d t h :    2 p x ;
       
}

   . b o r d e r - t    {
       b o r d e r - t o p - w i d t h :    1 p x ;
       
}

   . b o r d e r - l - 4    {
       b o r d e r - l e f t - w i d t h :    4 p x ;
       
}

   . b o r d e r - l - s u c c e s s    {
       b o r d e r - l e f t - c o l o r :    # 1 6 a 3 4 a ;
       
}

     . r o u n d e d - l g    {
       b o r d e r - r a d i u s :    0 . 5 r e m ;
       
}

   . r o u n d e d - x l    {
       b o r d e r - r a d i u s :    0 . 7 5 r e m ;
       
}

   . r o u n d e d - f u l l    {
       b o r d e r - r a d i u s :    9 9 9 9 p x ;
       
}

     . s h a d o w - l g    {
       b o x - s h a d o w :    0   1 0 p x   1 5 p x   - 3 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 1 ) ,    0   4 p x   6 p x   - 2 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 0 5 ) ;
       
}

   . s h a d o w - s m    {
       b o x - s h a d o w :    0   1 p x   2 p x   0   r g b a ( 0 ,    0 ,    0 ,    0 . 0 5 ) ;
       
}

     . r e l a t i v e    {
       p o s i t i o n :    r e l a t i v e ;
       
}

   . a b s o l u t e    {
       p o s i t i o n :    a b s o l u t e ;
       
}

   . f i x e d    {
       p o s i t i o n :    f i x e d ;
       
}

     . t o p - 5    {
       t o p :    1 . 2 5 r e m ;
       
}

   . r i g h t - 5    {
       r i g h t :    1 . 2 5 r e m ;
       
}

   . - t o p - 6    {
       t o p :    - 1 . 5 r e m ;
       
}

   . - b o t t o m - 5    {
       b o t t o m :    - 1 . 2 5 r e m ;
       
}

   . - r i g h t - 5    {
       r i g h t :    - 1 . 2 5 r e m ;
       
}

   . l e f t - 1 \ / 2    {
       l e f t :    5 0 % ;
       
}

     . z - 5 0    {
       z - i n d e x :    5 0 ;
       
}

     . o v e r f l o w - h i d d e n    {
       o v e r f l o w :    h i d d e n ;
       
}

   . o v e r f l o w - y - a u t o    {
       o v e r f l o w - y :    a u t o ;
       
}

     . b l o c k    {
       d i s p l a y :    b l o c k ;
       
}

   . i n l i n e - b l o c k    {
       d i s p l a y :    i n l i n e - b l o c k ;
       
}

   . h i d d e n    {
       d i s p l a y :    n o n e ;
       
}

     . o p a c i t y - 0    {
       o p a c i t y :    0 ;
       
}

   . o p a c i t y - 5    {
       o p a c i t y :    0 . 0 5 ;
       
}

   . o p a c i t y - 1 0 0    {
       o p a c i t y :    1 ;
       
}

     . p o i n t e r - e v e n t s - n o n e    {
       p o i n t e r - e v e n t s :    n o n e ;
       
}

     . t r a n s i t i o n    {
       t r a n s i t i o n - p r o p e r t y :    b a c k g r o u n d - c o l o r ,    b o r d e r - c o l o r ,    c o l o r ,    f i l l ,    s t r o k e ,    o p a c i t y ,    b o x - s h a d o w ,    t r a n s f o r m ;
       t r a n s i t i o n - d u r a t i o n :    1 5 0 m s ;
       t r a n s i t i o n - t i m i n g - f u n c t i o n :    c u b i c - b e z i e r ( 0 . 4 ,    0 ,    0 . 2 ,    1 ) ;
       
}

   . t r a n s i t i o n - a l l    {
       t r a n s i t i o n - p r o p e r t y :    a l l ;
       t r a n s i t i o n - t i m i n g - f u n c t i o n :    c u b i c - b e z i e r ( 0 . 4 ,    0 ,    0 . 2 ,    1 ) ;
       t r a n s i t i o n - d u r a t i o n :    1 5 0 m s ;
       
}

   . t r a n s i t i o n - o p a c i t y    {
       t r a n s i t i o n - p r o p e r t y :    o p a c i t y ;
       t r a n s i t i o n - t i m i n g - f u n c t i o n :    c u b i c - b e z i e r ( 0 . 4 ,    0 ,    0 . 2 ,    1 ) ;
       t r a n s i t i o n - d u r a t i o n :    1 5 0 m s ;
       
}

     . d u r a t i o n - 5 0 0    {
       t r a n s i t i o n - d u r a t i o n :    5 0 0 m s ;
       
}

     . - t r a n s l a t e - x - 1 \ / 2    {
       t r a n s f o r m :    t r a n s l a t e X ( - 5 0 % ) ;
       
}

     . i t a l i c    {
       f o n t - s t y l e :    i t a l i c ;
       
}

   . u p p e r c a s e    {
       t e x t - t r a n s f o r m :    u p p e r c a s e ;
       
}

     / *   G r a d i e n t s   * /   . b g - g r a d i e n t - t o - b r    {
       b a c k g r o u n d - i m a g e :    l i n e a r - g r a d i e n t ( t o   b o t t o m   r i g h t ,    v a r ( - - t w - g r a d i e n t - s t o p s ) ) ;
       
}

   . b g - g r a d i e n t - t o - b    {
       b a c k g r o u n d - i m a g e :    l i n e a r - g r a d i e n t ( t o   b o t t o m ,    v a r ( - - t w - g r a d i e n t - s t o p s ) ) ;
       
}

   . f r o m - n e o n - b l u e \ / 5    {
       - - t w - g r a d i e n t - f r o m :    r g b a ( 0 ,    2 0 9 ,    2 5 5 ,    0 . 0 5 ) ;
       - - t w - g r a d i e n t - s t o p s :    v a r ( - - t w - g r a d i e n t - f r o m ) ,    v a r ( - - t w - g r a d i e n t - t o ,    r g b a ( 0 ,    2 0 9 ,    2 5 5 ,    0 ) ) ;
       
}

   . f r o m - n e o n - p u r p l e \ / 5    {
       - - t w - g r a d i e n t - f r o m :    r g b a ( 1 8 7 ,    1 3 4 ,    2 5 2 ,    0 . 0 5 ) ;
       - - t w - g r a d i e n t - s t o p s :    v a r ( - - t w - g r a d i e n t - f r o m ) ,    v a r ( - - t w - g r a d i e n t - t o ,    r g b a ( 1 8 7 ,    1 3 4 ,    2 5 2 ,    0 ) ) ;
       
}

   . t o - t r a n s p a r e n t    {
       - - t w - g r a d i e n t - t o :    t r a n s p a r e n t ;
       
}

     / *   H o v e r   S t a t e s   * /   . g r o u p : h o v e r   . g r o u p - h o v e r \ : b g - p r i m a r y - d a r k    {
       b a c k g r o u n d - c o l o r :    v a r ( - - p r i m a r y - d a r k ) ;
       
}

   . g r o u p : h o v e r   . g r o u p - h o v e r \ : o p a c i t y - 1 0 0    {
       o p a c i t y :    1 ;
       
}

   . h o v e r \ : b g - w h i t e \ / 5 : h o v e r    {
       b a c k g r o u n d - c o l o r :    r g b a ( 2 5 5 ,    2 5 5 ,    2 5 5 ,    0 . 0 5 ) ;
       
}

     

/* --- Tailwind Utilities --- */
/* Utility Colors and Backgrounds */
.bg-white {
    background-color: #ffffff;
}

.bg-primary {
    background-color: var(--primary);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-dark {
    background-color: var(--eclipse-bg);
}

.bg-transparent {
    background-color: transparent;
}

.bg-gray\/5 {
    background-color: rgba(249, 250, 251, 0.05);
}

.text-white {
    color: #ffffff;
}

.text-main {
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted);
}

.text-danger {
    color: #ff5f56;
}

.text-success {
    color: #27c93f;
}

.text-primary {
    color: var(--primary);
}

.border-gray {
    border-color: #e5e7eb;
}

.border-eclipse {
    border-color: var(--eclipse-stroke);
}

.border-eclipse\/50 {
    border-color: rgba(var(--eclipse-stroke), 0.5);
}

.border-success {
    border-color: #10b981;
}

.border-dark {
    border-color: #0f172a;
}

.border-b {
    border-bottom-width: 1px;
}

.border-b-2 {
    border-bottom-width: 2px;
}

.border-t {
    border-top-width: 1px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-l-success {
    border-left-color: #16a34a;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.top-5 {
    top: 1.25rem;
}

.right-5 {
    right: 1.25rem;
}

.-top-6 {
    top: -1.5rem;
}

.-bottom-5 {
    bottom: -1.25rem;
}

.-right-5 {
    right: -1.25rem;
}

.left-1\/2 {
    left: 50%;
}

.z-50 {
    z-index: 50;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none;
}

.opacity-0 {
    opacity: 0;
}

.opacity-5 {
    opacity: 0.05;
}

.opacity-100 {
    opacity: 1;
}

.pointer-events-none {
    pointer-events: none;
}

.transition {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

/* Gradients */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-neon-blue\/5 {
    --tw-gradient-from: rgba(0, 209, 255, 0.05);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 209, 255, 0));
}

.from-neon-purple\/5 {
    --tw-gradient-from: rgba(187, 134, 252, 0.05);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(187, 134, 252, 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* Hover States */
.group:hover .group-hover\:bg-primary-dark {
    background-color: var(--primary-dark);
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.hover\:bg-white\/5:hover {
    background-color: rgba(255, 255, 255, 0.05);
}