/* ========================================
   CyberWorld Fraud Checker - Global Styles
   Premium Professional Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* ===== Unified Modern Purple Palette ===== */
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --primary-dark: #5541d6;
    --primary-rgb: 108, 92, 231;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --info: #74b9ff;

    /* Gradients — CRITICAL: these were missing and broke buttons */
    --gradient-1: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 100%);
    --gradient-2: linear-gradient(135deg, #00cec9 0%, #55efc4 100%);
    --gradient-3: linear-gradient(135deg, #fd79a8 0%, #fca5c0 100%);

    /* Neutrals */
    --white: #ffffff;
    --dark: #1a1a2e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #636e72;
    --gray-700: #404060;
    --gray-800: #2d2d44;
    --gray-900: #1a1a2e;

    /* Semantic */
    --bg-body: #f4f2ff;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-muted: #636e72;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --border: #e9ecef;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgb(108 92 231 / 0.06);
    --shadow-md: 0 4px 12px rgb(108 92 231 / 0.1);
    --shadow-lg: 0 8px 30px rgb(108 92 231 / 0.15);

    /* Radii — CRITICAL: these were missing */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50px;

    --transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== SVG ICON SYSTEM ========== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.icon-sm {
    font-size: 0.875rem;
}

.icon-md {
    font-size: 1.25rem;
}

.icon-lg {
    font-size: 1.5rem;
}

.icon-xl {
    font-size: 2rem;
}

/* ========== METALLIC LOGO ========== */
.brand-text {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #667eea 0%, #9b8ec4 20%, #b8c6db 40%, #8e7cc3 60%, #6C5CE7 80%, #a29bfe 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metalShine 4s linear infinite;
    letter-spacing: -0.5px;
}

@keyframes metalShine {
    to {
        background-position: 200% center;
    }
}

/* ========== NAVBAR ========== */
/* ========== SIDEBAR LAYOUT ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
    border-right: 1px solid var(--border);
    z-index: 1000;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgb(108 92 231 / 0.04);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sidebar-header {
    padding: 0 24px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.sidebar-brand {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #9b8ec4 20%, #b8c6db 40%, #8e7cc3 60%, #6C5CE7 80%, #a29bfe 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metalShine 4s linear infinite;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-link:hover {
    background: var(--bg-body);
    color: var(--text);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(162, 155, 254, 0.08) 100%);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
    margin-left: -3px;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.main-content {
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-top: 80px;
        /* Space for mobile header */
    }
}

/* Mobile Header (Only visible when sidebar is hidden/mobile) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    border-bottom: 1px solid var(--border);
    z-index: 900;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 992px) {
    .mobile-header {
        display: flex;
    }
}

/* ========== NAVBAR (Public) ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(108, 92, 231, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 1px 8px rgba(108, 92, 231, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
}

.nav-links a .icon {
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-120%);
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--radius-md);
    }

    .nav-actions {
        display: none;
    }

    .nav-links .mobile-auth {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-auth {
        display: none !important;
    }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn .icon {
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.45);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid rgba(108, 92, 231, 0.2);
}

.btn-secondary:hover {
    background: rgba(108, 92, 231, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 206, 201, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 206, 201, 0.45);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-group {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========== CARDS ========== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(108, 92, 231, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(135deg, #faf9ff 0%, #f5f3ff 100%);
}

/* Glass card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--gray-600);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23636e72' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ========== FLASH MESSAGES ========== */
.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
    gap: 12px;
}

.flash-message .flash-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.flash-message span {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.flash-success {
    background: rgba(0, 184, 148, 0.1);
    color: #00856a;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.flash-error {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger);
    border: 1px solid rgba(214, 48, 49, 0.2);
}

.flash-info {
    background: rgba(116, 185, 255, 0.1);
    color: #2980b9;
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
    flex-shrink: 0;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 30%, #e0e7ff 60%, #dbeafe 100%);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card .card-body {
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .auth-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #9b8ec4 20%, #b8c6db 40%, #8e7cc3 60%, #6C5CE7 80%, #a29bfe 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: metalShine 4s linear infinite;
    margin-bottom: 8px;
}

.auth-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 0.92rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-wrapper {
    margin-top: 68px;
    min-height: calc(100vh - 68px);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(108, 92, 231, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.purple {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    fill: var(--primary);
}

.stat-icon.green {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
    fill: var(--success);
}

.stat-icon.pink {
    background: rgba(253, 121, 168, 0.1);
    color: var(--accent);
    fill: var(--accent);
}

.stat-icon.blue {
    background: rgba(116, 185, 255, 0.1);
    color: var(--info);
    fill: var(--info);
}

.stat-icon.orange {
    background: rgba(253, 203, 110, 0.15);
    color: #e67e22;
    fill: #e67e22;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ========== NUMBER CHECKER ========== */
.checker-section {
    margin-bottom: 24px;
}

.checker-input-group {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.checker-input-group .form-control {
    flex: 1;
    font-size: 1.1rem;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}

.checker-input-group .btn {
    padding: 14px 32px;
}

@media (max-width: 480px) {
    .checker-input-group {
        flex-direction: column;
    }

    .checker-input-group .btn {
        width: 100%;
    }
}

/* ========== RESULTS TABLE ========== */
.results-container {
    display: none;
    margin-top: 24px;
}

.results-container.active {
    display: block;
}

.result-header {
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.result-phone {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.result-score {
    text-align: center;
}

.result-score-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.result-score-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

.result-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-safe {
    background: rgba(0, 184, 148, 0.15);
    color: #00b894;
    /* Darker green */
}

.badge-risky {
    background: rgba(253, 203, 110, 0.2);
    color: #e17055;
    /* Darker orange/brown */
}

.badge-danger {
    background: rgba(214, 48, 49, 0.15);
    color: #d63031;
    /* Darker red */
}

/* Results Table Format */
.results-table-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(108, 92, 231, 0.06);
    overflow: hidden;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table thead th {
    background: linear-gradient(135deg, #f8f7ff 0%, #f0eeff 100%);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-700);
    text-align: center;
    border-bottom: 2px solid rgba(108, 92, 231, 0.1);
}

.results-table thead th:first-child {
    text-align: left;
    padding-left: 24px;
}

.results-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

.results-table tbody tr:hover {
    background: rgba(108, 92, 231, 0.02);
}

.results-table td {
    padding: 16px 20px;
    text-align: center;
    font-size: 1rem;
    vertical-align: middle;
}

.results-table td:first-child {
    text-align: left;
    padding-left: 24px;
}

.results-table .courier-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.results-table .courier-logo {
    width: 48px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    padding: 4px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

.results-table .courier-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.results-table .val-total {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
}

.results-table .val-failed {
    font-weight: 700;
    color: var(--danger);
    font-size: 1.05rem;
    background: rgba(214, 48, 49, 0.08);
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-full);
}

.results-table .val-success {
    font-weight: 700;
    color: var(--success);
    font-size: 1.05rem;
    background: rgba(0, 184, 148, 0.08);
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-full);
}

.results-table tfoot td {
    padding: 16px 20px;
    font-weight: 800;
    font-size: 1.05rem;
    border-top: 2px solid rgba(108, 92, 231, 0.1);
    background: linear-gradient(135deg, #f8f7ff 0%, #f0eeff 100%);
}

/* Skeleton loading for table rows */
.results-table .row-loading td {
    position: relative;
}

.results-table .skeleton-bar {
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--gray-300) 25%, var(--gray-200) 37%, var(--gray-300) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    display: inline-block;
    width: 40px;
}

.results-table .skeleton-bar.wide {
    width: 80px;
}

.results-table .row-error .courier-name {
    color: var(--gray-500);
}

.results-table .row-error td {
    opacity: 0.5;
}

/* ========== LOADING STATES ========== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-300);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.loading-sub {
    font-size: 0.88rem;
    color: var(--gray-600);
}

.skeleton {
    background: linear-gradient(90deg, var(--gray-300) 25%, var(--gray-200) 37%, var(--gray-300) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 30%, #e0e7ff 60%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(108, 92, 231, 0.15);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.hero h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Couriers showcase */
.couriers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.courier-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(108, 92, 231, 0.06);
    transition: var(--transition);
}

.courier-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.courier-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.courier-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========== PRICING ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(108, 92, 231, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fafafe 100%);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card .card-body {
    padding: 36px 28px;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.pricing-card.popular:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-card.popular::before {
    content: 'সবচেয়ে জনপ্রিয়';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 4px 24px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.pricing-plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-600);
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b894'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.pricing-features li.disabled::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b2bec3'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.pricing-features li.disabled {
    color: var(--gray-500);
}

/* Plan features in buy page */
.plan-features {
    list-style: none;
    text-align: left;
    margin: 16px 0;
}

.plan-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li .icon {
    flex-shrink: 0;
}

/* Payment option */
.payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.04);
}

/* ========== TABLES ========== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th {
    background: linear-gradient(135deg, #f8f7ff 0%, #f0eeff 100%);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid rgba(108, 92, 231, 0.1);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(108, 92, 231, 0.02);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger);
}

.badge-warning {
    background: rgba(253, 203, 110, 0.15);
    color: #e67e22;
}

.badge-info {
    background: rgba(116, 185, 255, 0.1);
    color: #2980b9;
}

.badge-primary {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--gray-300);
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Hind Siliguri', sans-serif;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /* display is controlled via JS: style="display:flex" to show, style="display:none" to hide */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-300);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-300);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-300);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: var(--gray-500);
    padding: 40px 24px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 24px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

/* ========== ADMIN SIDEBAR LAYOUT ========== */
.admin-layout {
    display: flex;
    margin-top: 68px;
    min-height: calc(100vh - 68px);
}

.admin-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-300);
    padding: 24px 16px;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
    flex-shrink: 0;
}

.admin-sidebar-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 0 12px;
}

.admin-nav {
    list-style: none;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    margin-bottom: 2px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(108, 92, 231, 0.08);
    color: var(--primary);
}

.admin-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-content {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
    min-width: 0;
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 68px;
        z-index: 100;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-content {
        padding: 16px;
    }
}

/* ========== API DOCS ========== */
.code-block {
    background: var(--gray-900);
    color: #a6e3a1;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    position: relative;
}

.code-block .code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.code-block .code-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ========== API CONFIG TEXTAREA ========== */
.api-accounts-textarea {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: 100px;
    resize: vertical;
}

.api-config-help {
    background: rgba(108, 92, 231, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-top: 8px;
}

.api-config-help code {
    background: rgba(108, 92, 231, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
}

.active-account-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== RESPONSIVE UTILITIES ========== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--gray-600);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 48px;
}

.gap-20 {
    gap: 20px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }

    .dashboard-container {
        padding: 16px;
    }

    .section {
        padding: 48px 16px;
    }

    .result-header {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .result-phone {
        font-size: 1.2rem;
    }

    .results-table td,
    .results-table th {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .results-table .courier-logo {
        width: 36px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .admin-content h2 {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Modal content animation */
@keyframes modalContent {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ===================== COURIER LOGO FALLBACK ===================== */
.courier-logo-fallback {
    width: 48px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .courier-logo-fallback {
        width: 36px;
        height: 28px;
        font-size: 0.65rem;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        max-width: 100% !important;
    }
}

/* ===================== BUTTON BLOCK ===================== */
.btn-block {
    display: block;
    width: 100%;
}
 / *   N a v b a r   L a y o u t   F i x :   L o g o   L e f t ,   M e n u   C e n t e r ,   A c t i o n s   R i g h t   * / 
 @ m e d i a   ( m i n - w i d t h :   9 9 3 p x )   { 
         . n a v - c o n t a i n e r   { 
                 p o s i t i o n :   r e l a t i v e   ! i m p o r t a n t ; 
                 j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n   ! i m p o r t a n t ; 
         } 
         
         . n a v - l i n k s   { 
                 p o s i t i o n :   a b s o l u t e   ! i m p o r t a n t ; 
                 l e f t :   5 0 %   ! i m p o r t a n t ; 
                 t r a n s f o r m :   t r a n s l a t e X ( - 5 0 % )   ! i m p o r t a n t ; 
                 w i d t h :   a u t o   ! i m p o r t a n t ; 
                 j u s t i f y - c o n t e n t :   c e n t e r   ! i m p o r t a n t ; 
         } 
         
         . n a v - b r a n d   { 
                 m a r g i n - r i g h t :   a u t o   ! i m p o r t a n t ; 
         } 
         
         . n a v - a c t i o n s   { 
                   m a r g i n - l e f t :   a u t o   ! i m p o r t a n t ; 
         } 
 } 
  
 /* ========== INFINITE MARQUEE ========== */
.marquee-container {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    width: 100%;
    /* Fade Effect on Edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.courier-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.courier-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.courier-item img {
    height: 45px;
    width: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.courier-item:hover img {
    filter: grayscale(0%);
}

.courier-item span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gray-600);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ========== MODERN PRICING CARDS ========== */
.pricing-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card-modern {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.pricing-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15);
    border-color: rgba(108, 92, 231, 0.3);
}

.pricing-card-modern.popular {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.03) 0%, white 100%);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.price-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: var(--primary);
}

.price-box .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 4px;
}

.price-box .amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.price-box .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    margin-top: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-body {
    flex: 1;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-list li.disabled {
    opacity: 0.5;
    text-decoration: line-through;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--success);
    background: rgba(0, 184, 148, 0.1);
    border-radius: 50%;
    padding: 3px;
    flex-shrink: 0;
}

.feature-list li.disabled .check-icon {
    background: var(--gray-200);
    color: var(--gray-500);
}

.pricing-footer {
    margin-top: auto;
}
/* ========== NAVBAR FULL WIDTH FIX ========== */
@media (min-width: 768px) {
    .nav-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 50px !important;
        /* increased padding for visual balance */
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        position: relative !important;
    }

    .navbar {
        padding: 0 !important;
        /* Remove navbar padding, rely on container */
    }

    /* Ensure Menu Stays Centered */
    .nav-links {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    /* Logo Pushed to Far Left */
    .nav-brand {
        margin-right: auto !important;
        padding-left: 0 !important;
    }

    /* Actions Pushed to Far Right */
    .nav-actions {
        margin-left: auto !important;
        padding-right: 0 !important;
    }
}
/* ========== PRICING TABS ========== */
.pricing-tabs {
    display: inline-flex;
    background: white;
    padding: 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    gap: 4px;
    margin-bottom: 40px;
}

.pricing-tab {
    padding: 10px 24px;
    border-radius: 40px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Hind Siliguri', sans-serif;
}

.pricing-tab:hover {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.pricing-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.pricing-tab.active:hover {
    background: var(--primary-dark);
    color: white;
}

.badge-save {
    background: #00b894;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}
/* ========== MODERN FOOTER ========== */
.site-footer {
    background: #ffffff;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    font-family: 'Hind Siliguri', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 400px;
}

.footer-links-section h4,
.footer-contact-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.footer-links-section ul,
.footer-contact-section ul {
    list-style: none;
    padding: 0;
}

.footer-links-section li,
.footer-contact-section li {
    margin-bottom: 14px;
}

.footer-links-section a,
.footer-contact-section a {
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.footer-links-section a:hover,
.footer-contact-section a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
