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

:root {
    /* Mobile-First Palette */
    --bg-desktop-backdrop: #0b0f19;
    --bg-body: #ffffff;
    --bg-page-subtle: #f8fafc;
    --bg-surface: #ffffff;
    --bg-dark-section: #0b0f19;
    --bg-dark-card: #151d30;

    /* Primary & Brand Accents */
    --color-primary: #4f46e5;
    --color-primary-light: #6366f1;
    --color-primary-soft: #eef2ff;
    --color-primary-glow: rgba(79, 70, 229, 0.25);
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-hero-cta: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);

    /* Functional Accents */
    --color-secondary: #0ea5e9;
    --color-accent: #f59e0b;
    --color-accent-soft: #fef3c7;
    --color-emerald: #10b981;
    --color-emerald-soft: #ecfdf5;

    /* Text Colors */
    --color-text-main: #0f172a;
    --color-text-body: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-text-white: #ffffff;

    /* Borders */
    --border-light: #e2e8f0;
    --border-subtle: #f1f5f9;

    /* Shadows */
    --shadow-subtle: 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 8px 20px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 14px 28px -6px rgba(15, 23, 42, 0.12);
    --shadow-pill: 0 4px 14px rgba(79, 70, 229, 0.3);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-pill: 9999px;

    /* Mobile Container Width */
    --app-max-width: 480px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-desktop-backdrop);
}

body {
    background-color: var(--bg-desktop-backdrop);
    color: var(--color-text-body);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

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

/* ==========================================================================
   Centered Mobile Shell / App Frame (Locked to Mobile even on Laptop)
   ========================================================================== */
.main-container {
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100vh;
    background-color: var(--bg-body);
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    padding-bottom: 74px; /* Space for Sticky Bottom App Bar */
    overflow-x: clip; /* Using clip preserves position: sticky */
}

/* ==========================================================================
   Mobile Header
   ========================================================================== */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 990;
    width: 100%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.header-top {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-toggle {
    background: var(--bg-page-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    font-size: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.menu-toggle:hover,
.menu-toggle:active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.header-auth {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-login {
    padding: 7px 12px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    border-radius: var(--radius-pill);
    color: var(--color-text-main);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-subtle);
    white-space: nowrap;
}

.btn-login:active {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-register {
    padding: 7px 14px;
    background: var(--gradient-primary);
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 12px;
    box-shadow: var(--shadow-pill);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-register:active {
    transform: scale(0.98);
}

/* Horizontal Scrollable Header Navbar */
.header-navbar {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.header-nav-scroll {
    list-style: none;
    margin: 0;
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}

.header-nav-scroll::-webkit-scrollbar {
    display: none;
}

.header-nav-scroll li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-shrink: 0;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: var(--bg-page-subtle);
    border: 1px solid var(--border-light);
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.nav-tab i {
    font-size: 12px;
    color: var(--color-primary);
}

.nav-tab:hover,
.nav-tab:active {
    background: var(--color-primary-soft);
    border-color: rgba(79, 70, 229, 0.3);
    color: var(--color-primary);
}

.nav-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.nav-tab.active i {
    color: #ffffff;
}

/* ==========================================================================
   Mobile Drawer / Modal Menu (Centered Modal Popup)
   ========================================================================== */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - 32px);
    max-width: 400px;
    max-height: 85vh;
    background: #ffffff;
    z-index: 1100;
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.mobile-drawer.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.drawer-header .logo {
    display: flex;
    align-items: center;
    min-height: 32px;
}

.drawer-header .logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.drawer-close {
    background: var(--bg-page-subtle);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.drawer-close:hover,
.drawer-close:active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.drawer-user-card {
    padding: 16px 20px;
    background: var(--bg-page-subtle);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.drawer-user-info {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.drawer-auth-btns {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.drawer-auth-btns a {
    flex: 1;
    text-align: center;
    justify-content: center;
    font-size: 13px;
    padding: 9px 16px;
}

.drawer-nav-list {
    list-style: none;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(85vh - 220px);
}

.drawer-nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-body);
}

.drawer-nav-list a i {
    width: 22px;
    color: var(--color-primary);
    font-size: 16px;
    text-align: center;
}

.drawer-nav-list a:active,
.drawer-nav-list a:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.drawer-footer {
    margin-top: auto;
    padding: 14px 18px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
    background: #ffffff;
}

/* ==========================================================================
   Fixed Bottom App Navigation Bar (Signature Mobile App Experience)
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    height: 64px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 995;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

.nav-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 4px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-bottom-item i {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.nav-bottom-item:active i,
.nav-bottom-item.active i {
    transform: translateY(-2px);
    color: var(--color-primary);
}

.nav-bottom-item:active,
.nav-bottom-item.active {
    color: var(--color-primary);
}

.nav-bottom-item .badge-pill {
    position: absolute;
    top: 4px;
    right: 22%;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.2px;
}

/* ==========================================================================
   Hero Banner Area (Mobile Layout - Centered & Polished)
   ========================================================================== */
.banner-wrapper {
    padding: 18px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: radial-gradient(100% 70% at 50% 0%, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.banner-image {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--border-light);
    background: linear-gradient(135deg, #eef2ff 0%, #ede9fe 100%);
}

.banner-image a {
    display: block;
    width: 100%;
}

.banner-image img {
    width: 100%;
    height: auto;
    /* min-height: 140px; */
    max-height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.banner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.banner-logo img {
    height: 36px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--color-primary-soft);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--color-primary);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
    max-width: 100%;
    text-align: center;
}

.banner-content h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--color-text-main);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-align: center;
}

.banner-content h1 span {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.banner-content p {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 auto 18px;
    text-align: center;
    max-width: 95%;
}

.banner-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.banner-cta .btn-register {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 800;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.banner-cta .btn-login {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1.5px solid rgba(79, 70, 229, 0.25);
    color: var(--color-primary);
}

.banner-cta .btn-login:hover,
.banner-cta .btn-login:active {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
}

/* ==========================================================================
   Trust Strip (Mobile Touch Scroll / Wrapped Bar)
   ========================================================================== */
.trust-strip {
    background: var(--bg-page-subtle);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.trust-strip::-webkit-scrollbar {
    display: none;
}

.trust-container {
    display: flex;
    gap: 14px;
    width: max-content;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-body);
    white-space: nowrap;
    box-shadow: var(--shadow-subtle);
}

.trust-item i {
    color: var(--color-primary);
    font-size: 14px;
}

/* ==========================================================================
   Mobile Footer
   ========================================================================== */
.main-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    padding: 36px 16px 24px;
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.footer-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-nav a {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.footer-nav a:hover,
.footer-nav a:active {
    color: var(--color-primary);
}

.footer-contact p {
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
    margin-top: 6px;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 12px;
}

.footer-copyright a {
    color: var(--color-text-body);
    font-weight: 600;
}
