/* ===================================
   cybervaultke CYBER - Dark Cyber Theme
   =================================== */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-input: #151515;
    --border-color: #2a2a2a;
    --border-glow: #6CABDD;

    --neon: #6CABDD;
    --neon-dim: #4A8DC2;
    --neon-glow: rgba(108, 171, 221, 0.35);
    --neon-subtle: rgba(108, 171, 221, 0.10);
    --blue: #1C2C5B;
    --purple: #8b5cf6;
    --cyan: #6CABDD;
    --orange: #FFC659;
    --pink: #ec4899;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --gradient-neon: linear-gradient(135deg, #6CABDD 0%, #4A8DC2 50%, #1C2C5B 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
    --gradient-card: linear-gradient(145deg, rgba(108, 171, 221, 0.06) 0%, rgba(28, 44, 91, 0.03) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(108, 171, 221, 0.12) 0%, rgba(28, 44, 91, 0.06) 50%, rgba(255, 198, 89, 0.05) 100%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-neon: 0 0 20px rgba(108, 171, 221, 0.18);
    --shadow-neon-strong: 0 0 40px rgba(108, 171, 221, 0.35);

    --font-sans: 'Poppins', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Noto Sans', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 250ms ease;
    --transition-fast: 150ms ease;
    --transition-slow: 400ms ease;

    --container-max: 1200px;
    --header-height: 70px;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --bg-input: #f0f0f0;
    --border-color: #e0e0e0;

    --neon: #1C7CD6;
    --neon-dim: #1C2C5B;
    --neon-glow: rgba(28, 124, 214, 0.22);
    --neon-subtle: rgba(28, 124, 214, 0.08);

    --text-primary: #1a1a1a;
    --text-secondary: #444444;
    --text-muted: #777777;

    --success: #1C7CD6;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-neon: 0 0 20px rgba(28, 124, 214, 0.12);
    --shadow-neon-strong: 0 0 40px rgba(28, 124, 214, 0.18);

    --gradient-neon: linear-gradient(135deg, #1C7CD6 0%, #1C2C5B 50%, #6CABDD 100%);
    --gradient-dark: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #f5f5f5 100%);
    --gradient-card: linear-gradient(145deg, rgba(28, 124, 214, 0.04) 0%, rgba(108, 171, 221, 0.02) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(28, 124, 214, 0.06) 0%, rgba(108, 171, 221, 0.04) 50%, rgba(255, 198, 89, 0.04) 100%);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}
[data-theme="light"] .status-pending { background: rgba(217, 119, 6, 0.1); color: #b45309; }
[data-theme="light"] .status-pending::before { background: #b45309; }
[data-theme="light"] .status-in_progress { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; }
[data-theme="light"] .status-in_progress::before { background: #1d4ed8; }
[data-theme="light"] .status-completed { background: rgba(28, 124, 214, 0.1); color: #1C2C5B; }
[data-theme="light"] .status-completed::before { background: #1C2C5B; }
[data-theme="light"] .tracking-id { color: #0e7490; background: #f0f9ff; border-color: #bae6fd; }
[data-theme="light"] .splash-screen { background: #ffffff; }
[data-theme="light"] .sidebar { background: #ffffff; }
[data-theme="light"] .sidebar-nav a.active { color: #1C7CD6; background: rgba(28, 124, 214, 0.08); border-left-color: #1C7CD6; }
[data-theme="light"] .sidebar-nav .badge { background: #1C7CD6; color: #ffffff; }

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--neon);
    border-color: var(--neon);
}

/* Floating theme toggle — used on pages without a navbar (login, signup,
   admin-login, splash). Injected by firebase-config.js so every page
   that loads that file gets a toggle, even when there's no header. */
.theme-toggle-floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--neon);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--neon-dim);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Splash / Loading Screen ===== */
.splash-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-sans);
    margin-bottom: 1rem;
    animation: pulseGlow 2s ease-in-out infinite;
}

.splash-logo .kash {
    color: var(--text-primary);
}

.splash-logo .sight {
    color: var(--neon);
}

.splash-loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    border-top-color: var(--neon);
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}

.splash-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    50% { text-shadow: 0 0 40px rgba(0, 255, 136, 0.6), 0 0 80px rgba(0, 255, 136, 0.2); }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.97);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo img, .sidebar-logo img, .splash-screen img {
    background: transparent;
    object-fit: contain;
}

/* Logo styling for dark theme - ensures klogo.jpg blends well */
.nav-logo img {
    border-radius: 6px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.2));
}

.sidebar-logo img {
    border-radius: 6px;
}

.splash-screen img {
    border-radius: 12px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.3));
}

.nav-logo .highlight {
    color: var(--neon);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon);
    background: var(--neon-subtle);
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Hamburger menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* User menu dropdown in nav */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    position: relative;
}

.nav-user:hover {
    border-color: var(--neon);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--bg-primary);
}

.nav-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Nav dropdown animation */
@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-dropdown.show {
    animation: dropdownSlideIn 0.2s ease forwards;
}

.nav-dropdown a,
.nav-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    font-family: inherit;
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
    background: var(--neon-subtle);
    color: var(--neon);
}

.nav-dropdown .divider {
    border-top: 1px solid var(--border-color);
    margin: 0.25rem 0;
}

/* Mobile nav - full screen slide from right */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem 0 2rem;
        gap: 0;
        border-left: none;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        list-style: none;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        width: 100%;
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 0;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--neon-subtle);
    }

    .nav-auth {
        display: none;
    }

    .nav-links .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        padding: 1rem 1.5rem 2rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-links .mobile-auth .btn {
        text-align: center;
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* When nav is open, change hamburger to X */
    .nav-links.open ~ .nav-toggle i::before,
    .nav-toggle.active i::before {
        content: "\\f00d";
    }
}

@media (min-width: 769px) {
    .nav-links .mobile-auth {
        display: none;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--neon);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--neon-dim);
    box-shadow: var(--shadow-neon);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon);
    border: 1px solid var(--neon);
}

.btn-secondary:hover {
    background: var(--neon-subtle);
    box-shadow: var(--shadow-neon);
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    border-color: var(--neon);
    color: var(--neon);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-content {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--neon-subtle);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--neon);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 .accent {
    color: var(--neon);
    position: relative;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    display: block;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Section ===== */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
}

.card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Service Card */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: var(--shadow-neon);
    transform: translateY(-3px);
}

.service-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: var(--neon-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--neon);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 1rem;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.service-price {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--neon);
    font-size: 1.1rem;
}

.service-price small {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Category Card */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--neon);
    box-shadow: var(--shadow-neon);
    transform: translateY(-4px);
}

.category-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--neon-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--neon);
    margin: 0 auto 1rem;
}

.category-card h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.category-card .count {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.75rem;
    background: var(--neon-subtle);
    color: var(--neon);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 0.3rem;
}

/* ===== Auth Forms ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 800;
}

.auth-logo .highlight {
    color: var(--neon);
}

.auth-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.auth-card h2 {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--neon);
    font-weight: 500;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border-color);
}

/* ===== Dashboard Layout ===== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 50vw;
    max-width: 400px;
    min-width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
    transform: translateX(-100%);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.sidebar-logo .highlight {
    color: var(--neon);
}

.sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-close:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-nav-label {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: var(--neon-subtle);
}

.sidebar-nav a.active {
    color: var(--neon);
    background: var(--neon-subtle);
    border-left-color: var(--neon);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-nav .badge {
    margin-left: auto;
    background: var(--neon);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-primary);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--neon);
    text-transform: capitalize;
}

.main-content {
    flex: 1;
    margin-left: 0;
    padding: 2rem;
    min-height: 100vh;
    transition: margin-left var(--transition);
}

.sidebar.open ~ .main-content {
    margin-left: 50vw;
}

@media (max-width: 1024px) {
    .sidebar.open ~ .main-content {
        margin-left: 0;
    }
}

/* Mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 899;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 800;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Mobile Sidebar for Public Pages (Same as Admin Dashboard) */
.mobile-sidebar {
    width: 50vw;
    max-width: 400px;
    min-width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
    transform: translateX(-100%);
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-sidebar .sidebar-header,
.mobile-sidebar .sidebar-nav,
.mobile-sidebar .sidebar-footer {
    /* Inherit styles from existing sidebar classes */
}

@media (max-width: 768px) {
    .mobile-sidebar {
        width: 50vw;
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 50vw;
        min-width: 240px;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .sidebar-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4.5rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .sidebar.open ~ .main-content {
        margin-left: 0;
    }

    .dashboard {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* ===== Dashboard Header ===== */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-header h1 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
}

.dash-header h1 span {
    color: var(--neon);
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 120px;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-card-icon.green {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon);
}

.stat-card-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
}

.stat-card-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange);
}

.stat-card-icon.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.stat-card-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
}

.stat-card-info h3 {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-card-info .value {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== Tables ===== */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-header h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
}

.table-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-filters .filter-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.table-filters .filter-btn.active,
.table-filters .filter-btn:hover {
    border-color: var(--neon);
    color: var(--neon);
    background: var(--neon-subtle);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: var(--neon-subtle);
}

.table-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.table-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    background: rgba(var(--status-color), 0.1);
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-color);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.status-pending::before { background: #f59e0b; }

.status-in_progress {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.status-in_progress::before { background: #3b82f6; }

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.status-completed::before { background: #10b981; }

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.status-cancelled::before { background: #ef4444; }

/* ===== Modal / Popup ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

/* Modal size variants */
.modal-sm { max-width: 400px; }
.modal-md { max-width: 540px; }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }
.modal-full { max-width: calc(100vw - 2rem); max-height: calc(100vh - 2rem); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: var(--neon);
    font-size: 1.1em;
}

.modal-close {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
    border-color: var(--neon);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--neon);
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Modal animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.modal-overlay.closing .modal {
    animation: modalFadeOut 0.25s ease forwards;
}

/* Modal with icon in header */
.modal-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--bg-primary);
}

/* Confirmation modal specific */
.modal-confirm .modal-body {
    text-align: center;
    padding: 2rem 1.5rem;
}

.modal-confirm .modal-body i {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

.modal-confirm .modal-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Alert modal specific */
.modal-alert .modal-body {
    text-align: center;
    padding: 2rem 1.5rem;
}

.modal-alert .modal-body i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-alert.success .modal-body i { color: var(--success); }
.modal-alert.error .modal-body i { color: var(--danger); }
.modal-alert.warning .modal-body i { color: var(--warning); }
.modal-alert.info .modal-body i { color: var(--info); }

/* Responsive modal */
@media (max-width: 768px) {
    .modal {
        max-width: calc(100% - 1rem);
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1.25rem;
        max-height: calc(100vh - 200px);
    }
    
    .modal-footer {
        padding: 0.75rem 1.25rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* ===== Alerts / Toast ===== */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    font-size: 0.88rem;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--info); }

.toast i {
    font-size: 1.1rem;
}
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Order Detail ===== */
.order-detail {
    display: grid;
    gap: 1rem;
}

.order-detail-row {
    display: flex;
    gap: 1rem;
}

.order-detail-row .label {
    min-width: 130px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.order-detail-row .value {
    font-size: 0.9rem;
    word-break: break-word;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1px;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--neon);
    border-bottom-color: var(--neon);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== Search ===== */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition);
    font-family: inherit;
}

.search-box input:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-brand .highlight {
    color: var(--neon);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    padding: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--neon);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Tracking ID Display ===== */
.tracking-id {
    font-family: 'Courier New', monospace;
    background: var(--bg-input);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--cyan);
    border: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

/* ===== Profile Page ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-primary);
}

.profile-info h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
}

.profile-info .role-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--neon-subtle);
    color: var(--neon);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 0.25rem;
}

/* ===== Commission Info ===== */
.commission-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.commission-card h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commission-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.commission-row:last-child {
    border-bottom: none;
}

.paid-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.unpaid-badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== Walk-in Form ===== */
.walkin-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--border-color);
}

.empty-state h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Utilities ===== */
.text-neon { color: var(--neon); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.hidden { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero {
        padding: 4rem 0 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat .number {
        font-size: 1.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-header h1 {
        font-size: 1.2rem;
    }

    .modal {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-md);
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tabs {
        gap: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% + 2rem);
    }

    .tab {
        padding: 0.6rem 0.85rem;
        font-size: 0.78rem;
    }

    .main-content {
        padding: 1rem !important;
        padding-top: 4.5rem !important;
        overflow-x: hidden !important;
    }

    .table-container {
        overflow: hidden;
        max-width: 100%;
    }

    .table-responsive {
        font-size: 0.8rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .table-responsive table {
        min-width: 600px;
    }

    .filter-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        height: 110px;
    }

    .stat-card-info .value {
        font-size: 1.2rem;
    }

    .stat-card-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tab {
        padding: 0.5rem 0.7rem;
        font-size: 0.72rem;
    }

    .table-responsive table {
        min-width: 550px;
    }

    .card {
        padding: 1rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-control {
        font-size: 0.85rem;
        padding: 0.6rem 0.85rem;
    }
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 1400;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ===== Password Toggle Eye ===== */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--neon);
}

/* ===== Mobile Nav Overlay ===== */
.nav-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== Receipt Modal ===== */
.receipt-highlight {
    background: var(--neon-subtle);
    border: 1px dashed rgba(0, 255, 136, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.receipt-highlight .tracking-id {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ===== Service Unavailable Badge ===== */
.service-unavailable {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.service-unavailable::after {
    content: 'UNAVAILABLE';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* ===== Discount Code Input ===== */
.promo-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.promo-row input {
    flex: 1;
}

.discount-applied {
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 500;
}

.discount-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Review/Survey Page ===== */
.review-card {
    padding: 1.5rem;
    border-left: 3px solid var(--neon);
}

.review-stars {
    color: var(--warning);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.review-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-sort-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.star-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.star-bar-fill {
    flex: 1;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.star-bar-fill-inner {
    height: 100%;
    background: var(--warning);
    border-radius: 4px;
    transition: width 0.3s;
}

/* ===== Certificate (Portrait A4) ===== */
.certificate-container {
    background: white;
    color: #1a1a1a;
    padding: 3rem 2.5rem;
    width: 595px;
    min-height: 842px;
    margin: 0 auto;
    border: 3px solid #6CABDD;
    position: relative;
    box-sizing: border-box;
}

@media print {
    @page { size: A4 portrait; margin: 0; }
    body { margin: 0; padding: 0; }
    .certificate-container { border: none; width: 100%; min-height: 100vh; }
}

.certificate-container .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.04;
    color: #000;
    pointer-events: none;
    white-space: nowrap;
    font-family: var(--font-sans);
}

/* ===== Footer Social Links ===== */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--neon-subtle);
    border-color: var(--neon);
    color: var(--neon);
}

/* ===== Profile Page Styles ===== */
.profile-container {
    max-width: 1200px;
    padding: 1.5rem;
}

.profile-header-card {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
    flex-shrink: 0;
}

.profile-name-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.profile-role-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--neon-subtle);
    color: var(--neon);
    border: 1px solid var(--neon);
}

.profile-quick-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.quick-info-item i {
    color: var(--neon);
    width: 20px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profile-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 255, 136, 0.03);
}

.profile-card .card-header h3 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.profile-card .card-body {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-row .info-label i {
    color: var(--neon);
    width: 18px;
}

.info-row .info-value {
    font-weight: 500;
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-badge.status-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
    border: 1px solid var(--blue);
}

.status-badge.status-primary {
    background: var(--neon-subtle);
    color: var(--neon);
    border: 1px solid var(--neon);
}

.status-badge.status-warning {
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange);
    border: 1px solid var(--orange);
}

.status-badge.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #1C2C5B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 44, 91, 0.3);
}

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

.hidden {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-section {
        flex-direction: column;
    }

    .profile-quick-info {
        align-items: center;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-form .form-row {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-row .info-value {
        text-align: left;
    }
}
