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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1a1a1a;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== Colors ===== */
:root {
    --primary: #6e071a;
    --primary-hover: rgba(110, 7, 26, 0.9);
    --primary-light: rgba(110, 7, 26, 0.05);
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --black-40: rgba(0, 0, 0, 0.4);
}

/* ===== Gujarati font ===== */
/* @font-face {
    font-family: "Rasa";
    src: url("../../fonts/rasa-v26-gujarati-regular.woff2") format("woff2");
    font-weight: 400;
}
@font-face {
    font-family: "Rasa";
    src: url("../../fonts/rasa-v26-gujarati-700.woff2") format("woff2");
    font-weight: 700;
}
.gujarati {
    font-family: "Rasa", sans-serif;
} */

/* ===== Layout shell ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.w-full { width: 100%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-y-auto { overflow-y: auto; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.transition-colors { transition: background-color .2s, color .2s, border-color .2s; }
.transition-all { transition: all .3s; }

/* ===== Background / borders ===== */
.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-primary { background-color: var(--primary); }
.bg-black-40 { background-color: var(--black-40); }
.border { border: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-r { border-right: 1px solid var(--gray-200); }
.border-2 { border: 2px solid var(--primary); }
.border-gray-200 { border-color: var(--gray-200); }
.border-gray-300 { border-color: var(--gray-300); }
.border-primary { border-color: var(--primary); }
.rounded-md { border-radius: 6px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }
.object-cover { object-fit: cover; }

/* ===== Text ===== */
.text-white { color: var(--white); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-primary { color: var(--primary); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-3xl { font-size: 30px; line-height: 1.2; }
.text-5xl { font-size: 48px; line-height: 1.1; }

/* ===== Spacing ===== */
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.pb-4 { padding-bottom: 16px; }
.pt-3 { padding-top: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }

/* ===== Sizing ===== */
.w-4 { width: 16px; text-align: center; }
.w-8 { width: 32px; }
.w-9 { width: 36px; }
.w-64 { width: 256px; }
.h-8 { height: 32px; }
.h-9 { height: 36px; }
.h-12 { height: 48px; }
.h-14 { height: 56px; }
.max-w-xs { max-width: 320px; }
.max-w-2xl { max-width: 672px; }
.max-w-6xl { max-width: 1152px; }
.logo-img { width: 130px; height: 130px; margin: 0 auto 16px; }
.icon-9 { width: 36px; height: 36px; }

/* ===== Grid ===== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 600; transition: background-color .2s, color .2s; }
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-outline { background-color: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary-light); }
.btn-plain { background-color: transparent; border: 1px solid var(--gray-300); color: var(--gray-700); }
.btn-plain:hover { background-color: var(--gray-50); }

/* ===== Cards (feature boxes / CTA box) ===== */
.card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: box-shadow .3s, border-color .3s;
}
.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: rgba(110, 7, 26, 0.2);
}
.card i { font-size: 30px; color: var(--primary); margin-bottom: 16px; display: block; }

/* ===== Nav links (sidebar) ===== */
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: background-color .2s, color .2s;
}
.nav-link:hover { background-color: var(--gray-100); }
.nav-link.active { background-color: var(--primary); color: var(--white); font-weight: 600; }

/* ===== Sidebar / Header shells ===== */
.sidebar {
    width: 256px;
    height: 100vh;
    background-color: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
}
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: var(--black-40);
    z-index: 30;
}
.header-bar {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 20;
}
.toggle-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--gray-600, #4b5563);
}
.toggle-btn:hover { background-color: var(--gray-100); }

/* ===== Responsive breakpoints ===== */
/* sm: 640px */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:w-auto { width: auto; }
    .sm\:max-w-2xl { max-width: 672px; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:py-16 { padding-top: 64px; padding-bottom: 64px; }
    .sm\:mb-16 { margin-bottom: 64px; }
    .sm\:text-xl { font-size: 20px; }
    .sm\:text-6xl { font-size: 60px; }
    .sm\:text-lg { font-size: 18px; }
    .logo-img { width: 150px; height: 150px; }
}

/* md: 768px */
@media (min-width: 768px) {
    .md\:sticky { position: sticky; }
    .md\:hidden { display: none; }
    .md\:text-7xl { font-size: 72px; }
    .md\:text-4xl { font-size: 36px; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mobile: hide sidebar's sticky behavior, use fixed overlay */
@media (max-width: 767px) {
    .sidebar { position: fixed; }
}

/* ===== Auth Modal ===== */
[x-cloak] { display: none !important; }

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.auth-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.auth-modal {
    position: relative;
    background: var(--white);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--white);
    z-index: 2;
}
.auth-close:hover { background: rgba(255,255,255,0.3); }

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, #8b0a21 100%);
    color: var(--white);
    text-align: center;
    padding: 32px 24px 24px;
    border-radius: 16px 16px 0 0;
}
.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
}
.auth-brand {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.auth-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
}

.auth-body { padding: 24px; }

.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    transition: background-color .2s, color .2s;
}
.auth-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form { display: flex; flex-direction: column; }
.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
    margin-top: 14px;
}
.auth-label:first-child { margin-top: 0; }

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-icon {
    position: absolute;
    left: 14px;
    color: var(--gray-500);
    font-size: 14px;
}
.auth-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-900);
}
.auth-input:focus {
    outline: none;
    border-color: var(--primary);
}
.auth-eye {
    position: absolute;
    right: 14px;
    color: var(--gray-500);
}
.auth-input-wrap--flag .auth-input { padding-left: 52px; }
.auth-flag {
    position: absolute;
    left: 14px;
    font-size: 16px;
}

.auth-forgot {
    align-self: flex-end;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

.auth-submit {
    width: 100%;
    height: 46px;
    margin-top: 20px;
    font-size: 15px;
}
.auth-google, .auth-guest {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    font-size: 14px;
    gap: 8px;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 18px;
}
.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

.btn-icon .icon-vol-muted { display: none !important; }
.btn-icon.is-muted .icon-vol-high { display: none !important; }
.btn-icon.is-muted .icon-vol-muted { display: inline-block !important; }

.auth-field-error {
    display: block;
    font-size: 13px;
    color: #dc2626;
    margin: 0px 0 4px;
}

.auth-otp-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.auth-otp-box {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.auth-otp-box:focus {
    outline: none;
    border-color: var(--profile-primary, #7a1a2b);
}

.auth-otp-timer,
.auth-otp-resend {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 12px;
}

.auth-otp-resend a.is-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.auth-success-icon {
    font-size: 48px;
    color: #16a34a;
    text-align: center;
    margin-bottom: 8px;
}

.auth-success-text {
    text-align: center;
    color: #6b7280;
    margin-bottom: 16px;
}

.volume-control {
    position: relative;
}

.volume-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    right: -8px;
    background: #1f2328;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 160px;
    z-index: 50;
}
.volume-popup.is-open {
    display: flex;
}
.volume-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.volume-popup-percent {
    font-size: 13px;
    font-weight: 600;
}
.volume-popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    padding: 2px;
}
.volume-popup-close:hover {
    color: #fff;
}
.volume-popup-slider {
    width: 100%;
    accent-color: var(--primary, #6e071a);
}

.auth-phone-row {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: visible;
}

.auth-modal {
    overflow: visible;
}
.auth-body {
    overflow: visible;
}

.auth-country-select {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px;
    border: none;
    border-right: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.auth-country-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.auth-country-caret {
    font-size: 10px;
    color: #999;
}

.auth-phone-row .auth-input {
    border: none;
    flex: 1;
}

/* Full-width floating panel, not a small box pinned under the flag button */
.auth-country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 60;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 340px;
    overflow: hidden;
}

.auth-country-search-wrap {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.auth-country-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}

.auth-country-search-input {
    padding-left: 32px;
}

.auth-country-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
}

.auth-country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 15px;
}

.auth-country-item:hover {
    background: #f5f5f5;
}

.auth-country-item-dial {
    margin-left: auto;
    color: #888;
    font-size: 14px;
}

.auth-country-empty {
    padding: 12px 18px;
    font-size: 14px;
    color: #999;
}