@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
}

/* Wrap wide HTML data tables so they scroll inside cards instead of breaking screen bounds */
table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}


:root {
    
    /* Colors */
    --primary: #6C63FF;
    --primary-hover: #5a52d5;
    --primary-soft: rgba(108, 99, 255, 0.1);
    --surface: #ffffff;
    --surface-2: #f8f9fa;
    --surface-3: #f1f3f5;
    --border: rgba(0, 0, 0, 0.08);
    --text-1: #1a1a1a;
    --text-2: #4a4a4a;
    --text-3: #8a8a8a;

    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.15);

    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #7C74FF;
        --primary-hover: #8d86ff;
        --primary-soft: rgba(124, 116, 255, 0.15);
        --surface: #0f111a;
        --surface-2: #161a29;
        --surface-3: #1e2436;
        --border: rgba(255, 255, 255, 0.08);
        --text-1: #f8f9fa;
        --text-2: #ced4da;
        --text-3: #9da5b1;

        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
    }
}

[data-theme="dark"] {
    --primary: #7C74FF;
    --surface: #0f111a;
    --surface-2: #161a29;
    --surface-3: #1e2436;
    --border: rgba(255, 255, 255, 0.08);
    --text-1: #f8f9fa;
    --text-2: #ced4da;
    --text-3: #9da5b1;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--surface);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-2);
}

/* Layout Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-soft);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 8px 16px -4px var(--primary-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--text-1);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--surface-3);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-1);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* Status Badges */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    min-width: 300px;
    padding: 1rem 1.25rem;
    background: var(--surface-2);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Skeleton Pulse */
.skeleton {
    background: linear-gradient(90deg, var(--surface-3) 25%, var(--border) 50%, var(--surface-3) 75%);
    background-size: 200% 100%;
    animation: pulse 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mobile App UI Elements Refresh */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hero-video-container {
    width: 100%;
    height: 180px;
    background: #000;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.floating-search {
    position: absolute;
    bottom: -25px;
    left: 32px;
    right: 32px;
    background: #fff;
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    z-index: 10;
}

.section-title {
    padding: 0 20px;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-1);
}

.service-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 20px 20px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.service-scroll::-webkit-scrollbar {
    display: none;
}

.service-card {
    min-width: 90px;
    max-width: 90px;
    text-align: center;
}

.service-card .img-box {
    width: 85px;
    height: 85px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.service-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.service-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    display: block;
    line-height: 1.2;
}

.offer-banner {
    margin: 20px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 160px;
}

.offer-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 2000;
    padding-bottom: 5px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    font-style: normal;
}

/* Responsive View Utilities */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    .mobile-only-flex {
        display: flex !important;
    }
    .mobile-only-grid {
        display: grid !important;
    }
}

@media (min-width: 769px) {
    .desktop-only {
        display: block !important;
    }
    .mobile-only {
        display: none !important;
    }
    .desktop-only-flex {
        display: flex !important;
    }
    .desktop-only-grid {
        display: grid !important;
    }
}