:root {
    /* Base Colors (Dark Mode Default) */
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-navbar: rgba(15, 23, 42, 0.8);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-inverse: #000000;

    --accent-primary: #00ff88;
    /* Neon Green */
    --accent-secondary: #3b82f6;
    /* Electric Blue */
    --accent-glow: rgba(0, 255, 136, 0.2);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    --hover-bg: rgba(255, 255, 255, 0.1);

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    --gradient-overlay-1: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    --gradient-overlay-2: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

html,
body {
    color-scheme: dark;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--accent-primary) !important;
}

/* Navbar */
.navbar {
    background: var(--bg-navbar) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-primary);
    border: none;
    color: #000;
    /* Default for Neon Green */
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}



.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
    color: inherit;
}

.btn-outline-light {
    border: 2px solid var(--border-light);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background: var(--hover-bg);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: var(--gradient-overlay-1);
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--gradient-overlay-2);
    z-index: -1;
}

/* Cards (Glassmorphism) */
.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

              

th.highlight-column {
    position: relative;
}

th.highlight-column::before {
    content: 'BEST CHOISE';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--bg-main);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1px 6px;
    border-radius: 999px;
    opacity: 0.9;
    white-space: nowrap;
}




.check-icon {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.cross-icon {
    color: #ef4444;
    opacity: 0.5;
}

/* FAQ */
.accordion-item {
    background: transparent;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: var(--accent-glow);
    color: var(--accent-primary);
    box-shadow: none;
}

.accordion-button::after {
    filter: saturate(0) brightness(1.5);
}



.accordion-body {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Utility for text colors that might be hardcoded in HTML classes */
.text-white {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.bg-dark {
    background-color: var(--bg-card) !important;
}

/* Force dark everywhere (Bootstrap overrides safety) */
.table,
.table * {
    color: var(--text-primary) !important;
}

.accordion,
.accordion * {
    color: var(--text-primary);
}

.navbar,
.navbar * {
    color: var(--text-primary);
}



/* =========================
   TABLE COMPARATIVE - DARK FIX
   ========================= */

.table-dark-custom {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Header */
.table-dark-custom thead th {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
}

/* Body cells */
.table-dark-custom tbody td {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Hover row */
.table-dark-custom tbody tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Highlight column (Running Tracker Pro) */
.table-dark-custom .highlight-column {
    background: linear-gradient(
        180deg,
        rgba(0, 255, 136, 0.12),
        rgba(0, 255, 136, 0.05)
    );
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
}

/* Fix text color inside highlight */
.table-dark-custom .highlight-column * {
    color: var(--text-primary);
}

/* Icons */
.table-dark-custom .check-icon {
    color: var(--accent-primary);
    font-size: 1.3rem;
}

.table-dark-custom .cross-icon {
    color: #ef4444;
    opacity: 0.6;
}

/* Mobile safety */
@media (max-width: 768px) {
    .table-dark-custom thead {
        display: none;
    }

    .table-dark-custom tbody tr {
        display: block;
        margin-bottom: 1rem;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--border-color);
    }

    .table-dark-custom tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .table-dark-custom tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-primary);
    }
}
