@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Brand colors — slightly brighter so they pop on both dark and light surfaces */
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --accent: #a78bfa;
    --accent-pink: #f472b6;
    --cyan: #22d3ee;
    --blue: #60a5fa;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #38bdf8 0%, #a78bfa 50%, #f472b6 100%);
    --gradient-2: linear-gradient(135deg, #22d3ee 0%, #60a5fa 100%);
    /* gradient-3 is used as text clip — keep it light so it contrasts on dark bg */
    --gradient-3: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 50%, #fbcfe8 100%);
    --gradient-nav-link: linear-gradient(180deg, rgba(56, 189, 248, 0.14) 0%, rgba(167, 139, 250, 0.09) 50%, transparent 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Backgrounds — near-opaque surfaces so orbs never bleed through text */
    --bg-dark: #0d1117;
    --bg-card: rgba(13, 20, 35, 0.94);
    --bg-card-hover: rgba(18, 27, 48, 0.98);
    --border-glass: rgba(255, 255, 255, 0.10);

    /* Typography — WCAG AA+ on #0d1117 */
    --text-main: #e8edf5;   /* ≈ 10.5 : 1 on bg */
    --text-muted: #a8b5ca;  /* ≈  5.6 : 1 on bg */

    /* Glows — slightly softer so they don't swamp text */
    --glow-cyan: 0 0 32px rgba(34, 211, 238, 0.32);
    --glow-purple: 0 0 32px rgba(167, 139, 250, 0.32);
    --glow-pink: 0 0 32px rgba(244, 114, 182, 0.22);
    --card-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.70);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    /* Guarantee text is never invisible against the dark base */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Animated gradient mesh background */
.gradient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    /* Keep opacity LOW — orbs are ambience only, must never wash out text */
    opacity: 0.18;
    animation: float 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.09;
}

@keyframes float {

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

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Header/navbar gradient: left to right (reversed) */
.gradient-header {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 100%);
}

/* Navbar - solid-enough dark surface so nav text is always readable */
.navbar {
    background: rgba(13, 17, 23, 0.94) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.nav-link {
    color: #b8c6da !important;  /* slightly brighter than --text-muted for nav visibility */
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #f0f5fd !important;
    background: rgba(255, 255, 255, 0.07);
}

/* Buttons */
.btn-primary-modern {
    background: var(--gradient-1);
    color: #fff !important;
    border: none;
    border-radius: 14px;
    padding: 12px 28px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    box-shadow: var(--glow-cyan);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.btn-primary-modern:hover::before {
    opacity: 1;
}

.btn-outline-secondary,
.btn-outline-primary {
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    border-radius: 14px;
    padding: 12px 28px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

/* Gradient text */
.text-gradient {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 96px 0 64px;
        display: block;
    }
}

.hero-section .badge {
    background: var(--gradient-2) !important;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: var(--text-muted) !important;
    font-size: 1.2rem;
}

.hero-section .img-fluid {
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-glass);
}

/* Cards - solid enough that text is always readable regardless of orbs behind */
.card-modern {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

.card-modern:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: var(--glow-cyan);
}

/* Feature icons with gradient */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient-2) !important;
    color: #fff !important;
    box-shadow: var(--glow-cyan);
}

.feature-icon.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.feature-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.feature-icon.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* Sections */
.section-alt {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 100%);
    padding: 100px 0;
}

.section-dark {
    background: rgba(0, 0, 0, 0.2);
    padding: 100px 0;
}

/* Testimonials carousel */
#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
    filter: invert(1);
    opacity: 0.9;
}

#testimonials .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.5);
}

#testimonials .carousel-indicators button.active {
    background-color: #fff;
}

/* FAQ accordion on white section */
#faq .accordion-custom .accordion-item {
    background: var(--gradient-glass);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

#faq .accordion-custom .accordion-item+.accordion-item {
    margin-top: 0.75rem;
}

#faq .accordion-button {
    background: rgba(13, 20, 35, 0.80);
    color: var(--text-main);   /* was #51779d — too low-contrast on some browsers */
    font-size: 0.98rem;
    font-weight: 500;
}

#faq .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(13, 20, 35, 0.94);
    box-shadow: none;
}

#faq .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25);
}

#faq .accordion-body {
    background: rgba(13, 20, 35, 0.96);
    color: var(--text-muted);
}

/* App portal */
/* App Portal – distinct block between hero and How it Works */
#app-portal {
    background: linear-gradient(180deg,
            rgba(13, 20, 35, 0.55) 0%,
            rgba(56, 189, 248, 0.10) 25%,
            rgba(167, 139, 250, 0.07) 75%,
            rgba(13, 20, 35, 0.55) 100%);
    padding: 80px 0;
    position: relative;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

#app-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), rgba(139, 92, 246, 0.3), transparent);
    opacity: 0.8;
}

#app-portal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(14, 165, 233, 0.4), transparent);
    opacity: 0.8;
}

#app-portal .card-modern {
    padding: 1.5rem;
}

#app-portal .card-modern i {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* How it works - step circles */
.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--glow-cyan);
}

/* Plan cards */
.plan-card {
    border: 1px solid var(--border-glass);
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
}

.plan-card.featured {
    border: 1px solid rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    transform: scale(1.03);
    box-shadow: var(--glow-cyan);
}

.plan-card.featured:hover {
    box-shadow: var(--glow-purple);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    -webkit-text-fill-color: initial;
    color: var(--text-muted);
}

/* Footer – redesigned grid, aligned content */
footer,
.site-footer {
    background: linear-gradient(180deg, #0a0f1c 0%, #070b14 100%);
    border-top: 1px solid var(--border-glass);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr) 1.25fr;
        gap: 2rem 2rem;
        align-items: start;
    }
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c4cfe2;   /* slightly brighter than text-muted for footer headings */
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li+li {
    margin-top: 0.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-brand .footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 1.25rem 0;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
}

.footer-subscribe-col .footer-desc {
    margin-bottom: 1rem;
    max-width: none;
}

.footer-subscribe .form-control {
    background-color: rgba(13, 20, 35, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e8edf5;
    border-radius: 12px 0 0 12px;
    min-height: 44px;
}

.footer-subscribe .form-control::placeholder {
    color: var(--text-muted);
}

.footer-subscribe .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.footer-subscribe .input-group .btn {
    border-radius: 0 12px 12px 0;
    border-left: 1px solid transparent;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-subscribe-msg {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1.25rem 0 1.5rem;
    border-top: 1px solid var(--border-glass);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.25rem;
}

.footer-legal .footer-link {
    font-size: 0.8125rem;
}

.link-accent {
    color: var(--primary);
}

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

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social:hover {
    color: var(--primary);
    border-color: rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.1);
}

/* Plan card feature list */
.plan-features li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-card .plan-features {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

/* List items and muted text in cards */
.card-modern ul li,
.card-modern p.small,
.list-unstyled li,
.text-muted {
    color: var(--text-muted) !important;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Dashboard overrides */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    min-width: 260px;
    height: 100vh;
    z-index: 1020;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--text-main);
}

.main-content {
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
    position: relative;
}

.sidebar nav {
    padding: 0 0.5rem;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-bottom: 0.25rem;
}

.nav-link-modern i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    background: var(--gradient-nav-link);
    color: var(--primary);
}

.stat-card {
    background: var(--gradient-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--glow-cyan);
}

.stat-card h4 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Sidebar profile block */
.sidebar .px-4.mt-auto {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.25rem !important;
}

.sidebar .d-flex.align-items-center.mb-3 {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

/* Dashboard plan upgrade cards (Available Upgrades list) – solid, readable */
.plan-upgrade-card {
    background-color: rgba(13, 20, 35, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.plan-upgrade-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.13);
    background-color: rgba(13, 20, 35, 0.99);
}

.plan-upgrade-card h6 {
    color: #e8edf5;
    font-weight: 700;
}

.plan-upgrade-card .small,
.plan-upgrade-card .text-muted,
.plan-upgrade-card p {
    color: #a8b5ca !important;
}

/* Parent card containing Available Upgrades – solid background for readability */
.card-modern #plansList {
    margin-top: 0.5rem;
}

.main-content .card-modern:has(#plansList) {
    background-color: rgba(10, 15, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.main-content .card-modern:has(#plansList) h5.text-gradient {
    color: #e8edf5;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*
 * Card heading / value helpers — used in billing section so inline style="color:" is not needed.
 * Theme files override these for light mode.
 */
.card-heading {
    color: var(--text-main);
}

.card-value {
    color: var(--text-main);
}

/*
 * Custom badge style for plain (no-colour-class) badges only.
 * We deliberately EXCLUDE all Bootstrap semantic colour classes so that
 * bg-success / bg-danger / bg-warning / bg-info / bg-primary / bg-secondary
 * keep their own Bootstrap colours unchanged.
 *
 * The attribute-contains selector [class*="bg-"] covers every Bootstrap
 * bg-* utility including bg-opacity-10 variants and bg-primary.
 */
.main-content .badge:not([class*="bg-success"]):not([class*="bg-danger"]):not([class*="bg-warning"]):not([class*="bg-info"]):not([class*="bg-secondary"]):not([class*="bg-dark"]):not([class*="bg-light"]):not([class*="bg-primary"]) {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}

.main-content .btn-outline-primary,
.main-content .btn-outline-danger {
    border-radius: 10px;
    font-weight: 500;
}

/* Dashboard & checkout – dark tables
 *
 * Bootstrap 5.3 uses --bs-table-color / --bs-table-border-color CSS custom
 * properties on each cell, so we must override those variables, not just the
 * colour property on the container.
 */
.main-content .table,
.card-modern .table {
    /* Override Bootstrap 5.3 table CSS custom properties */
    --bs-table-color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-glass);
    --bs-table-striped-bg: rgba(56, 189, 248, 0.04);
    --bs-table-hover-bg: rgba(56, 189, 248, 0.06);
    --bs-table-hover-color: var(--text-main);
    --bs-table-striped-color: var(--text-main);
    color: var(--text-main);
}

/* Explicit fallback on cells — ensures text is visible even if
   Bootstrap's variable cascade resolves differently across versions */
.main-content .table > :not(caption) > * > *,
.card-modern .table > :not(caption) > * > * {
    color: inherit;
    border-color: var(--border-glass);
}

.main-content .table thead th,
.card-modern .table thead th {
    border-color: var(--border-glass);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 0.75rem;
}

.main-content .table tbody td,
.card-modern .table tbody td {
    border-color: var(--border-glass);
    color: var(--text-main);
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.main-content .table tbody tr:hover,
.card-modern .table tbody tr:hover {
    background: rgba(56, 189, 248, 0.06);
}

/* Dark theme forms (checkout / dashboard) – readable text on dark input */
body .form-control,
body input[type="text"],
body input[type="email"],
body input[type="password"],
body input[type="tel"],
body input[type="number"],
body input[type="date"],
body textarea {
    background-color: rgba(13, 20, 35, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #e8edf5;
    -webkit-text-fill-color: #e8edf5;
    border-radius: 12px;
    caret-color: var(--primary);
}

body .form-control::placeholder,
body input::placeholder {
    color: #8496b0;
    opacity: 1;
}

body .form-control:focus,
body input:focus,
body textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    background-color: rgba(13, 20, 35, 0.99);
    color: #e8edf5;
    -webkit-text-fill-color: #e8edf5;
}

/* Prevent browser autofill from overriding with light bg / dark text */
body .form-control:-webkit-autofill,
body .form-control:-webkit-autofill:hover,
body .form-control:-webkit-autofill:focus,
body .form-control:-webkit-autofill:active,
body input:-webkit-autofill,
body input:-webkit-autofill:hover,
body input:-webkit-autofill:focus,
body input:-webkit-autofill:active {
    -webkit-text-fill-color: #e8edf5 !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(13, 20, 35, 0.97) inset !important;
    box-shadow: 0 0 0 1000px rgba(13, 20, 35, 0.97) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

body .form-select {
    background-color: rgba(13, 20, 35, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #e8edf5;
    -webkit-text-fill-color: #e8edf5;
    border-radius: 12px;
}

body .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    background-color: rgba(13, 20, 35, 0.99);
    color: #e8edf5;
    -webkit-text-fill-color: #e8edf5;
}

body .form-label {
    color: var(--text-muted);
    font-weight: 500;
}

body .form-check-input {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--border-glass);
}

body .form-check-input:checked {
    background: var(--gradient-1);
    border-color: transparent;
}

body .form-check-label {
    color: var(--text-main);
}

body .input-group .form-control {
    border-right: none;
}

body .input-group .btn {
    border-left: 1px solid var(--border-glass);
}

body .input-group-text {
    background: rgba(13, 20, 35, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-right: none;
    color: var(--text-muted);
    border-radius: 12px 0 0 12px;
}

body .input-group:has(.input-group-text) .form-control {
    border-radius: 0 12px 12px 0;
    border-left: none;
}

/* Checkout – order summary glass */
.checkout-summary {
    background: var(--gradient-glass) !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem;
}

.checkout-summary hr {
    border-color: var(--border-glass);
}

.checkout-radio-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.checkout-radio-card:has(input:checked) {
    border-color: rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.06) 100%);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.3);
}

/* Admin dashboard – semi-dark slate theme */
.admin-page {
    --admin-bg: linear-gradient(165deg, #1e2a3d 0%, #131c2e 45%, #0f1825 100%);
    --admin-surface: rgba(22, 32, 50, 0.96);
    --admin-surface-hover: rgba(28, 40, 62, 0.99);
    --admin-border: rgba(255, 255, 255, 0.10);
    --admin-text: #dde6f3;      /* brighter for clarity */
    --admin-text-muted: #8fa3be; /* ≈ 5:1 on admin-bg */
}

body.admin-page {
    background: var(--admin-bg);
    color: var(--admin-text);
    -webkit-font-smoothing: antialiased;
}

.admin-page .gradient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.2;
}

.admin-page .gradient-orb {
    opacity: 0.12;
}

.admin-page .navbar {
    background: rgba(10, 15, 26, 0.97) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--admin-border);
}

.admin-page .navbar .navbar-brand {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.admin-stat:hover {
    background: var(--admin-surface-hover);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-stat h6 {
    color: var(--admin-text-muted);
}

.admin-stat h2 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.admin-stat.stat-success h2 {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat.stat-info h2 {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-stat.stat-warning h2 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-tabs .nav-pills .nav-link {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    color: var(--admin-text-muted);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.admin-tabs .nav-pills .nav-link:hover {
    color: var(--admin-text);
    border-color: rgba(14, 165, 233, 0.4);
    background: var(--admin-surface-hover);
}

.admin-tabs .nav-pills .nav-link.active {
    background: var(--gradient-1);
    color: #fff;
    border-color: transparent;
}

.admin-page .card-modern {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    backdrop-filter: blur(8px);
    color: var(--admin-text);
}

.admin-page .card-modern:hover {
    border-color: var(--admin-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.admin-page .card-modern .text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-page .table {
    /* Override Bootstrap 5.3 table CSS custom properties for admin */
    --bs-table-color: var(--admin-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--admin-border);
    --bs-table-hover-color: var(--admin-text);
    --bs-table-striped-color: var(--admin-text);
    color: var(--admin-text);
}

.admin-page .table > :not(caption) > * > * {
    color: inherit;
    border-color: var(--admin-border);
}

.admin-page .table thead th {
    border-color: var(--admin-border);
    color: var(--admin-text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-page .table tbody td {
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-page .table tbody tr:hover {
    background: rgba(14, 165, 233, 0.08);
}

.admin-page .form-control,
.admin-page .form-select {
    background: rgba(10, 15, 26, 0.97);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    -webkit-text-fill-color: var(--admin-text);
}

.admin-page .form-control:focus,
.admin-page .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    background: rgba(10, 15, 26, 0.99);
}

.admin-page .form-label {
    color: var(--admin-text-muted);
}

.admin-page .input-group-text {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--admin-border);
    color: var(--admin-text-muted);
}

.admin-page .pagination .page-link {
    background: var(--admin-surface);
    border-color: var(--admin-border);
    color: var(--admin-text);
}

.admin-page .pagination .page-link:hover {
    background: var(--admin-surface-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.admin-page .pagination .page-item.active .page-link {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
}

.admin-page .text-muted {
    color: var(--admin-text-muted) !important;
}

/* Admin login – semi-dark */
body.admin-login-page {
    background: linear-gradient(165deg, #1a2538 0%, #0f1825 50%, #0d1520 100%);
    min-height: 100vh;
    color: #dde6f3;
}

.admin-login-page .gradient-bg {
    opacity: 0.15;
}

.admin-login-page .gradient-orb {
    opacity: 0.1;
}

.admin-login-page .card-modern {
    background: rgba(18, 26, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.admin-login-page .form-control,
.admin-login-page .input-group-text {
    background: rgba(10, 15, 26, 0.97);
    border-color: rgba(255, 255, 255, 0.12);
    color: #dde6f3;
    -webkit-text-fill-color: #dde6f3;
}

.admin-login-page .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Dashboard responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    }

    body .gradient-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }
}

/* Hero device slider (index.html hero right side) */
.hero-device-slider {
    max-width: 360px;
    width: 100%;
    position: relative;
    padding: 1.2rem 0.75rem 1.6rem;
    border-radius: 2rem;
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.9),
            rgba(15, 23, 42, 0.7));
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
    transform: translateY(-15%);
}

.hero-device-frame {
    position: relative;
    border-radius: 1.6rem;
    overflow: hidden;
    background: radial-gradient(circle at top, #0b1120, #020617);
    border: 1px solid rgba(148, 163, 184, 0.35);
    aspect-ratio: 9/19;
    max-height: 520px;
    /* control overall device height while keeping aspect ratio */
    width: 88%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-device-frame::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    z-index: 2;
}

.hero-device-image {
    display: block;
    width: 95%;
    height: auto;
    max-height: 95%;
    object-fit: contain;
    border-radius: 1.2rem;
    position: relative;
    z-index: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero-device-image.is-fading {
    opacity: 0;
    transform: translateY(6px);
}

.hero-device-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
}

.hero-device-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    transition: background 0.25s ease-out, transform 0.25s ease-out;
}

.hero-device-dots .dot.active {
    background: #0ea5e9;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.35);
}

@media (max-width: 768px) {
    .hero-device-slider {
        margin-top: 1.5rem;
        padding: 1.25rem 0.9rem 1.5rem;
        transform: none;
    }
}

/* ========== GDPR / Privacy consent banner (international) ========== */
#gdpr-consent-root {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

#gdpr-consent-root.gdpr-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

#gdpr-consent-root.gdpr-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.gdpr-banner {
    background: rgba(10, 15, 26, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    padding: 1rem 1.5rem;
    color: var(--text-main, #e8edf5);
}

.gdpr-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gdpr-banner-text {
    flex: 1 1 280px;
}

.gdpr-banner .gdpr-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    color: var(--text-main, #e2e8f0);
}

.gdpr-banner .gdpr-desc {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted, #94a3b8);
    line-height: 1.45;
}

.gdpr-banner .gdpr-link {
    color: var(--primary, #0ea5e9);
    text-decoration: underline;
}

.gdpr-banner .gdpr-link:hover {
    color: var(--accent, #22c55e);
}

.gdpr-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.gdpr-banner .gdpr-btn {
    white-space: nowrap;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .gdpr-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .gdpr-banner-actions {
        justify-content: stretch;
    }

    .gdpr-banner .gdpr-btn {
        flex: 1;
    }
}

/* GDPR customize modal */
.gdpr-modal .modal-content.gdpr-modal-content {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main, #e8edf5);
}

.gdpr-modal .modal-header {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

.gdpr-modal .modal-footer {
    border-top-color: rgba(148, 163, 184, 0.2);
}

.gdpr-modal .modal-title {
    color: var(--text-main, #e2e8f0);
}

.gdpr-modal-intro {
    color: var(--text-muted, #94a3b8);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.gdpr-preference {
    margin-bottom: 1rem;
}

.gdpr-pref-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(13, 20, 35, 0.96);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.gdpr-pref-row.gdpr-pref-necessary {
    opacity: 0.9;
}

.gdpr-pref-desc {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    display: block;
    margin-top: 0.2rem;
}

.gdpr-modal .form-check-input {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
}

.gdpr-modal .form-check-input:checked {
    background-color: var(--primary, #0ea5e9);
    border-color: var(--primary, #0ea5e9);
}

.gdpr-modal .form-check-input:disabled {
    opacity: 0.7;
}

.gdpr-modal-footer-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
}

.gdpr-modal-footer-text .gdpr-link {
    color: var(--primary, #0ea5e9);
    text-decoration: underline;
}

/* ===== Big screens & high‑DPI refinements ===== */

/* Larger desktops / ultra‑wide (e.g. 1440px+) */
@media (min-width: 1440px) {
    body {
        font-size: 1.02rem;
    }

    .hero-section {
        padding-top: 140px;
        padding-bottom: 120px;
    }

    .hero-section h1 {
        /* Slightly larger but still responsive */
        font-size: clamp(3rem, 4vw, 4.75rem);
    }

    .hero-section .lead {
        font-size: 1.25rem;
        max-width: 34rem;
    }

    .hero-device-slider {
        max-width: 400px;
        /* allow a bit more size on huge screens */
        transform: translateY(-12%);
    }
}

/* Very large desktops / 4K (e.g. 1920px+) */
@media (min-width: 1920px) {
    body {
        font-size: 1.06rem;
    }

    .hero-section {
        padding-top: 160px;
        padding-bottom: 140px;
    }

    .hero-device-slider {
        max-width: 440px;
    }
}

/* High‑DPI (Retina / 2x and above) – subtle sharpening */
@media (min-resolution: 2dppx) {

    .hero-device-frame,
    .card-modern,
    .plan-card,
    #testimonials .card-modern,
    #faq .accordion-custom .accordion-item {
        border-width: 1px;
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.95);
    }

    .hero-device-image {
        image-rendering: auto;
    }
}