/* ==========================================================================
   Scarlet Clicks - Modern UI Design System
   Mobile-First, Glassmorphism, Micro-Animations & Premium Dark/Accent Styling
   ========================================================================== */

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

:root {
    --sc-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sc-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Core Color Tokens */
    --sc-bg-dark: #070c20;
    --sc-bg-surface: #0c1433;
    --sc-bg-card: rgba(16, 26, 61, 0.75);
    --sc-bg-card-hover: rgba(22, 36, 82, 0.85);
    --sc-border: rgba(255, 255, 255, 0.08);
    --sc-border-hover: rgba(99, 102, 241, 0.4);
    
    /* Gradients */
    --sc-primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --sc-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --sc-card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    --sc-glow-indigo: 0 0 25px rgba(99, 102, 241, 0.35);
    --sc-glow-pink: 0 0 25px rgba(236, 72, 153, 0.35);

    /* Text */
    --sc-text-main: #e2e8f0;
    --sc-text-muted: #94a3b8;
    --sc-text-heading: #ffffff;
}

body {
    font-family: var(--sc-font-main) !important;
    background-color: #080d24 !important;
    color: var(--sc-text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .section__title, .banner__title {
    font-family: var(--sc-font-heading) !important;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   1. Modern Navigation Header
   ========================================================================== */
.header-primary {
    background: rgba(8, 14, 38, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 12px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-primary--fixed {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
}

.header-primary .navbar {
    padding: 0;
}

.header-primary .logo {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.header-primary .logo:hover {
    transform: scale(1.03);
}

.primary-menu {
    align-items: center;
    gap: 6px !important;
}

.primary-menu__link {
    color: #cbd5e1 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    border-radius: 999px;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.primary-menu__link:hover,
.primary-menu .active .primary-menu__link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05);
}

/* Dropdown Menu */
.primary-menu .dropdown-menu {
    background: #0d1538 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 10px !important;
    margin-top: 10px !important;
    backdrop-filter: blur(20px);
    animation: scDropdownFade 0.25s ease forwards;
}

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

.primary-menu .dropdown-item {
    color: #cbd5e1 !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.primary-menu .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.18) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Header Login / Action Pill */
.login-btn {
    background: var(--sc-primary-gradient) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 9px 22px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border: none !important;
    text-decoration: none !important;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45) !important;
    color: #ffffff !important;
}

/* Mobile Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35) !important;
}

/* Mobile Nav Collapse */
@media (max-width: 991px) {
    .collapse.navbar-collapse {
        background: #09102c;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        padding: 18px;
        margin-top: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }
    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 6px !important;
    }
    .primary-menu__link {
        width: 100%;
        padding: 12px 16px !important;
    }
    .login-btn {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        padding: 12px !important;
    }
}

/* ==========================================================================
   2. Modern Page Header / Breadcrumb Banner (Replacing the Legacy Blue Box)
   ========================================================================== */
.sc-hero-banner {
    position: relative;
    padding: 60px 0 55px;
    background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.22) 0%, transparent 55%),
                radial-gradient(circle at 85% 75%, rgba(236, 72, 153, 0.14) 0%, transparent 45%),
                linear-gradient(180deg, #070c20 0%, #0a112e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.sc-hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.6;
}

.sc-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.sc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.sc-hero-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ec4899;
    box-shadow: 0 0 8px #ec4899;
    animation: scPulse 2s infinite;
}

@keyframes scPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.sc-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
    font-weight: 800 !important;
    line-height: 1.15;
    margin: 0 0 14px !important;
    background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Breadcrumb Trail */
.sc-breadcrumb-nav {
    display: inline-flex;
    justify-content: center;
}

.sc-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    margin: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.sc-breadcrumb-item {
    font-size: 14px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sc-breadcrumb-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.sc-breadcrumb-item a:hover {
    color: #6366f1;
}

.sc-breadcrumb-item.active {
    color: #a5b4fc;
    font-weight: 600;
}

.sc-breadcrumb-item + .sc-breadcrumb-item::before {
    display: none;
}

@media (max-width: 576px) {
    .sc-hero-banner {
        padding: 40px 0 35px;
    }
    .sc-hero-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
}

/* ==========================================================================
   3. Modern Cards & Public Components
   ========================================================================== */
.card, .section .card {
    background: var(--sc-bg-card) !important;
    border: 1px solid var(--sc-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--sc-border-hover) !important;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), var(--sc-glow-indigo) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--sc-border) !important;
    padding: 1.25rem 1.5rem !important;
}

.card-title, .card h5 {
    color: #ffffff !important;
    font-weight: 700;
}

/* Buttons */
.btn--base, .btn-primary, .cmn-btn {
    background: var(--sc-primary-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.btn--base:hover, .btn-primary:hover, .cmn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45) !important;
    color: #ffffff !important;
}

/* Accordion FAQs */
.custom--accordion .accordion-item {
    background: rgba(14, 22, 53, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    margin-bottom: 14px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.custom--accordion .accordion-button {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 16px;
    padding: 18px 24px;
    box-shadow: none !important;
}

.custom--accordion .accordion-button:not(.collapsed) {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #a5b4fc !important;
}

.custom--accordion .accordion-body {
    background: transparent;
    color: #94a3b8;
    padding: 0 24px 20px;
    line-height: 1.7;
}

/* ==========================================================================
   4. User Dashboard Styling Upgrade
   ========================================================================== */
.dashboard-widget-wrapper {
    margin-top: 5px;
}

.dashboard-widget {
    background: linear-gradient(145deg, rgba(17, 28, 68, 0.85) 0%, rgba(11, 18, 46, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 22px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--sc-primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-widget:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), var(--sc-glow-indigo) !important;
}

.dashboard-widget:hover::before {
    opacity: 1;
}

.dashboard-widget__left-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.dashboard-widget__left-thumb img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.dashboard-widget__text {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    display: inline-block;
}

.dashboard-widget__number-amount {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    font-family: var(--sc-font-heading);
    letter-spacing: -0.03em;
}

/* User Referral Box */
.sc-referral-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 24px;
    margin-top: 25px;
    backdrop-filter: blur(14px);
}

.sc-referral-input-group {
    display: flex;
    align-items: center;
    background: rgba(6, 11, 28, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    padding: 4px;
    margin-top: 12px;
}

.sc-referral-input {
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 10px 16px;
    width: 100%;
    font-size: 14px;
}

.sc-referral-input:focus {
    outline: none;
}

.sc-copy-btn {
    background: var(--sc-primary-gradient);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.sc-copy-btn:hover {
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transform: scale(1.02);
}

/* ==========================================================================
   5. Mobile App-Like Bottom Navigation for Logged-In Users
   ========================================================================== */
.sc-mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .sc-mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(8, 14, 38, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1040;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
    }
    
    .sc-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        gap: 3px;
        flex: 1;
        transition: color 0.2s ease;
    }
    
    .sc-bottom-nav-item i {
        font-size: 20px;
    }
    
    .sc-bottom-nav-item.active, .sc-bottom-nav-item:hover {
        color: #818cf8;
    }
    
    /* Add bottom padding to dashboard body so content isn't obscured */
    .dashboard-body, .dashboard {
        padding-bottom: 75px !important;
    }
}

/* Table Card Wrapper for Mobile */
.table-responsive {
    border-radius: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   6. Service / Feature Cards & Pricing Plans Modernization
   ========================================================================== */
.service-card {
    background: rgba(13, 21, 56, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 32px 24px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), var(--sc-glow-indigo);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #a5b4fc;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card__title {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
}

.service-card__para {
    color: #94a3b8 !important;
    font-size: 14.5px !important;
    line-height: 1.65;
    margin-bottom: 0 !important;
}

/* Modern Pricing Cards */
.pricing {
    background: linear-gradient(165deg, rgba(17, 28, 68, 0.85) 0%, rgba(10, 16, 42, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 36px 28px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    backdrop-filter: blur(14px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), var(--sc-glow-indigo);
}

.pricing--popular {
    border: 2px solid transparent !important;
    background-image: linear-gradient(rgba(13, 21, 56, 0.95), rgba(13, 21, 56, 0.95)), var(--sc-primary-gradient) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.25) !important;
    transform: scale(1.02);
}

.pricing--popular:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 25px 50px rgba(236, 72, 153, 0.3) !important;
}

.pricing__tag {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--sc-primary-gradient);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.pricing__title {
    color: #ffffff !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.pricing__sub-title {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

.pricing__amount {
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    margin: 12px 0 !important;
}

.pricing__list {
    margin: 24px 0 !important;
    padding: 0 !important;
    list-style: none;
}

.pricing__list li {
    color: #cbd5e1 !important;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   7. PTC Ads Listing & Notice Components
   ========================================================================== */
.sc-notice-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(12px);
}

.sc-notice-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-ad-card {
    background: linear-gradient(145deg, rgba(17, 28, 68, 0.8) 0%, rgba(11, 18, 46, 0.85) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sc-ad-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), var(--sc-glow-indigo) !important;
}

.sc-ad-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.sc-ad-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #38bdf8;
    white-space: nowrap;
    font-family: var(--sc-font-heading);
}

.sc-ad-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-ad-pill--point {
    color: #f472b6;
    border-color: rgba(244, 114, 182, 0.25);
    background: rgba(244, 114, 182, 0.08);
}

.sc-empty-state {
    background: rgba(13, 21, 56, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
