:root {
    --bg-main: #f8fafc;
    --body-bg: #f8fafc;
    --bg-card: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-primary: #0f172a;
    --text-dark: #0f172a;
    --text-secondary: #334155;
    --text-mid: #334155;
    --text-muted: #64748b;
    --primary: #ff5e28;
    --primary-hover: #e04a18;
    --accent-violet: #7c3aed;
    --accent-violet-light: #e0e7ff;
    --accent-rose: #f43f5e;
    --accent-green: #10b981;
    --green: #10b981;
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

body, .jap-body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-main);
    background-color: var(--body-bg);
    color: var(--text-dark);
    overflow-x: clip;
    min-height: 100vh;
    line-height: 1.6;
}

/* High-Contrast Crisp Text Guarantee */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 800;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #ffffff !important;
}

p, span, li, a, td, th, label, div {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.data-table-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}


/* Universal Sticky Header & Navigation Master Container */
.jap-site-header-master {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Apple Frosted Glass Header (Ultra Translucent + Saturated Blur) */
.jap-header-sticky,
#mainHeader {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.70) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.65) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), inset 0 -1px 0 rgba(255, 255, 255, 0.6) !important;
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

.jap-header-sticky.is-scrolled,
#mainHeader.is-scrolled {
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: saturate(200%) blur(24px) !important;
    backdrop-filter: saturate(200%) blur(24px) !important;
    border-bottom: 1px solid rgba(203, 213, 225, 0.75) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.dark .jap-header-sticky,
body.dark #mainHeader {
    background: rgba(15, 23, 42, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.dark .jap-header-sticky.is-scrolled,
body.dark #mainHeader.is-scrolled {
    background: rgba(15, 23, 42, 0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.jap-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.jap-nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.jap-nav-link {
    text-decoration: none;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
    position: relative;
}

.jap-nav-link:hover {
    color: #ff5e28;
    background: rgba(255, 94, 40, 0.05);
}

.jap-nav-link.active {
    color: #ff5e28;
    background: rgba(255, 94, 40, 0.08);
}

.jap-nav-badge {
    background: linear-gradient(135deg, rgba(255,94,40,0.12), rgba(255,140,0,0.18));
    color: #ff5e28;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid rgba(255,94,40,0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.jap-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.jap-btn-signin {
    text-decoration: none;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.jap-btn-signin:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #ff5e28;
}

.jap-btn-signup {
    text-decoration: none;
    padding: 0.48rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ff5e28, #ff7a18);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(255,94,40,0.3);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.jap-btn-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(255,94,40,0.4);
}

/* ============================================================
   ULTRA-MODERN GLASS NAVBAR & PROFILE CAPSULE
   ============================================================ */
.main-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand-wrap {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.header-brand-wrap:hover {
    transform: scale(1.02);
}

.header-brand-logo {
    height: 36px;
    width: auto;
    max-width: 195px;
    object-fit: contain;
    display: block;
}

/* Modern Pill Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-pill-link:hover {
    color: #ff5e28;
    background: rgba(255, 94, 40, 0.08);
    transform: translateY(-1px);
}

.nav-pill-link.active {
    color: #ff5e28;
    background: rgba(255, 94, 40, 0.12);
    font-weight: 700;
}

.nav-icon-accent {
    font-size: 0.82rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.nav-pill-link:hover .nav-icon-accent {
    transform: scale(1.15);
}

.nav-pill-badge {
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, rgba(255, 94, 40, 0.15), rgba(255, 56, 92, 0.15));
    color: #ff5e28;
    padding: 0.18rem 0.42rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 94, 40, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Header Right Actions & Profile Capsule */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-profile-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
}

.header-profile-btn:hover {
    border-color: #ff5e28;
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 94, 40, 0.18);
}

.header-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5e28 0%, #ff385c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 94, 40, 0.35);
}

.header-user-avatar i {
    font-size: 1.15rem;
    color: #ffffff;
}

.header-user-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
}

.header-user-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    display: none;
    flex-shrink: 0;
}

.header-profile-arrow {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
    margin-left: 0.15rem;
}

.header-profile-wrap:hover .header-profile-arrow,
.header-profile-dropdown.open ~ .header-profile-arrow {
    transform: rotate(180deg);
}

/* Luxury Floating Dropdown */
.header-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 245px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 0.65rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1000;
    animation: profileDropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes profileDropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-profile-wrap:hover .header-profile-dropdown,
.header-profile-wrap:focus-within .header-profile-dropdown,
.header-profile-dropdown.open {
    display: flex;
}

/* Dropdown User Info Header */
.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.35rem;
}

.dropdown-avatar-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5e28, #ff385c);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 94, 40, 0.3);
}

.dropdown-user-details {
    min-width: 0;
    flex: 1;
}

.dropdown-username {
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-email {
    font-size: 0.72rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.1rem;
}

.dropdown-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 94, 40, 0.12);
    color: #ff5e28;
    margin-top: 0.35rem;
}

.dropdown-role-chip.admin {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.dropdown-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-menu-list a,
.header-profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.dropdown-menu-list a:hover,
.header-profile-dropdown a:hover {
    background: #f8fafc;
    color: #ff5e28;
    transform: translateX(2px);
}

.header-profile-dropdown a.highlight-signup {
    background: linear-gradient(135deg, rgba(255, 94, 40, 0.1), rgba(255, 56, 92, 0.06));
    color: #ff5e28;
}

.header-profile-dropdown a.highlight-signup:hover {
    background: linear-gradient(135deg, #ff5e28, #ff385c);
    color: #ffffff;
}

.header-profile-dropdown .dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.35rem 0;
}

@media (max-width: 768px) {
    .header-profile-btn span,
    .header-profile-btn .fa-chevron-down {
        display: none !important;
    }
    .header-profile-btn {
        padding: 0.45rem !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }
}

.jap-mobile-toggle {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    color: #0f172a;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.jap-mobile-toggle:hover {
    background: #e2e8f0;
    color: #ff5e28;
}

.jap-mobile-drawer {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    padding: 1.5rem 1.5rem 2.5rem;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    animation: slideDownMobileNav 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999999;
}

.jap-mobile-drawer.open {
    display: flex !important;
}

.jap-mobile-drawer a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
}

.jap-mobile-drawer a:hover {
    background: rgba(255,94,40,0.06);
    color: #ff5e28;
}

@keyframes slideDownMobileNav {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .jap-nav-links {
        display: none !important;
    }
    .jap-mobile-toggle {
        display: inline-flex !important;
    }
}

/* ------------------- LANDING PAGE STYLES ------------------- */
.landing-body {
    background-color: #ffffff;
    background-image: radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.05) 0px, transparent 50%),
                      radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.landing-link:hover {
    color: var(--accent-violet);
}

.login-nav-btn {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    border: 1px solid var(--glass-border);
}

.login-nav-btn:hover {
    background: var(--bg-main);
}

.register-nav-btn {
    text-decoration: none;
    background: var(--accent-violet);
    color: #ffffff;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.register-nav-btn:hover {
    background: #6d28d9;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 6rem 5%;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 1rem 0 1.5rem 0;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-ctas {
    display: flex;
    gap: 1.25rem;
}

.btn-primary-landing {
    text-decoration: none;
    background: var(--accent-violet);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-primary-landing:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

.btn-secondary-landing {
    text-decoration: none;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--glass-border);
    font-weight: 700;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-secondary-landing:hover {
    background: var(--bg-main);
}

.badge-promo {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-violet);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.hero-graphics {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-card {
    position: absolute;
    width: 280px;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.graph-card i {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.graph-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.graph-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.floating-1 {
    top: 30px;
    left: 40px;
    animation: float1 6s ease-in-out infinite;
}

.floating-2 {
    bottom: 50px;
    right: 40px;
    animation: float2 6s ease-in-out infinite 2s;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Features Grid */
.features-section, .services-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-border);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-violet);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ------------------- AUTH PAGE STYLES ------------------- */
.auth-body {
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.auth-header .logo-icon {
    font-size: 2.5rem;
    color: var(--accent-violet);
    margin-bottom: 0.75rem;
}

.auth-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.auth-footer a {
    color: var(--accent-violet);
    font-weight: 700;
    text-decoration: none;
}

/* ------------------- DASHBOARD & SIDEBAR LAYOUTS ------------------- */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent-violet);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-text .highlight {
    color: var(--accent-violet);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: none;
    background: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    transition: var(--transition-fast);
}

.nav-btn:hover {
    background: var(--accent-violet-light);
    color: var(--accent-violet);
}

.nav-btn.active {
    background: var(--accent-violet);
    color: #ffffff;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.provider-box label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: #ffffff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    outline: none;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

.api-wallet-status {
    background: var(--bg-main);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.wallet-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.wallet-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

/* Main Content Area */
.main-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

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

.top-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Header Wallet Card */
.user-wallet {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.wallet-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-violet-light);
    color: var(--accent-violet);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wallet-info {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.wallet-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.add-funds-btn {
    background: var(--accent-violet);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.add-funds-btn:hover {
    background: #6d28d9;
}

/* Card Styling */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

/* Form Styling */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: #ffffff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.input-group input:focus {
    border-color: var(--accent-violet);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.limit-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-top: 0.25rem;
}

.charge-preview {
    background: var(--bg-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-violet);
    text-align: center;
}

.submit-btn {
    width: 100%;
    background: var(--accent-violet);
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    background: #6d28d9;
}

.submit-btn:disabled {
    background: var(--text-muted);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Service Summary content */
.summary-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 1rem 0;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.summary-row .label {
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-row .value {
    font-weight: 700;
    color: var(--text-primary);
}

.markup-panel {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.markup-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.markup-panel p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.markup-slider-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider {
    flex-grow: 1;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--accent-violet-light);
    outline: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-violet);
    cursor: pointer;
}

.markup-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-violet);
    min-width: 45px;
}

/* Service Catalog search card */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    font-family: var(--font-main);
    font-size: 0.85rem;
    outline: none;
}

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

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 2px solid var(--glass-border);
}

td {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

tr:hover td {
    background: rgba(124, 58, 237, 0.02);
}

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

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-completed {
    background: #d1fae5;
    color: #059669;
}

.status-partial {
    background: #e0f2fe;
    color: #0284c7;
}

.status-error {
    background: #fee2e2;
    color: #dc2626;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 460px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    padding: 2rem;
}

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

.modal-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.method-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.method-card:hover {
    border-color: var(--accent-violet);
}

.method-card.active {
    border-color: var(--accent-violet);
    background: var(--accent-violet-light);
}

.method-img {
    height: 25px;
    object-fit: contain;
}

.deposit-submit-btn {
    width: 100%;
    background: var(--accent-violet);
    color: #ffffff;
    border: none;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--accent-violet-light);
    border-top: 5px solid var(--accent-violet);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* JAP Platform Filter Bar */
.filter-chip {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: #ffffff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip:hover {
    background: var(--accent-violet-light);
    color: var(--accent-violet);
}

.filter-chip.active {
    background: var(--accent-violet);
    color: #ffffff;
    border-color: var(--accent-violet);
}

/* ------------------- SUPER ADVANCED FEATURES ------------------- */

/* Dark Mode Theme Variables */
body.dark-theme {
    --bg-main: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.85);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --accent-violet-light: rgba(124, 58, 237, 0.2);
}

body.dark-theme .sidebar,
body.dark-theme .auth-container,
body.dark-theme .modal-card,
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-theme tr:hover td {
    background: rgba(124, 58, 237, 0.1);
}

body.dark-theme .filter-chip {
    background: #1e293b;
    color: #cbd5e1;
}

body.dark-theme .loader-overlay {
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
}

/* Header Controls Bar */
.header-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-btn, .currency-select-btn {
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: #ffffff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.theme-toggle-btn:hover, .currency-select-btn:hover {
    border-color: var(--accent-violet);
}

/* Order Progress Bar */
.progress-bar-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.08);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-green));
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Toast Notifications Container */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 3000;
}

.toast {
    background: #ffffff;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-violet);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===================================================
   FLOATING 24/7 WHATSAPP & TELEGRAM LIVE CHAT WIDGET
=================================================== */
.floating-support-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.floating-support-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5e28, #e2136e);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(255, 94, 40, 0.4);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.floating-support-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255, 94, 40, 0.55);
}

.floating-support-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 94, 40, 0.4);
    animation: pulseGlow 2s infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.floating-support-card {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    display: none;
    transform-origin: bottom right;
    animation: popupFade 0.25s ease-out forwards;
}

@keyframes popupFade {
    from { opacity: 0; transform: scale(0.9) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.floating-support-card.active {
    display: block;
}

.floating-support-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    padding: 1.25rem;
    position: relative;
}

.floating-support-header h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff !important;
}

.floating-support-header p {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
}

.floating-support-body {
    padding: 1rem;
}

.floating-support-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: all 0.2s ease;
}

.floating-support-item:hover {
    transform: translateX(4px);
}

.floating-support-item.wa {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.floating-support-item.tg {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.floating-support-item.tk {
    background: #fff7ed;
    border: 1px solid #ffedd5;
}


/* ===================================================
   MASTER MOBILE RESPONSIVE ENGINE (320px - 1024px)
=================================================== */

/* Prevent horizontal overflow globally without breaking position: sticky */
html, body {
    max-width: 100vw;
    overflow-x: clip !important;
    -webkit-text-size-adjust: 100%;
}

/* Fluid typography for heading hierarchy */
h1 { font-size: clamp(1.75rem, 4.5vw, 3rem) !important; line-height: 1.25 !important; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2.2rem) !important; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important; }

/* Responsive tables & horizontal touch scroll */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

table {
    max-width: 100%;
}

/* Tablets and Below */
@media (max-width: 992px) {
    header > div {
        padding: 0.75rem 1rem !important;
    }

    .footer-grid-4col {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}

/* Tablets and Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    body.jap-body {
        padding-top: 86px !important;
    }

    /* Top Announcement Bar: Guaranteed Sleek 1 Single Line on Mobile */
    .jap-site-header-master > div:first-child {
        padding: 0.3rem 0.65rem !important;
        height: 32px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .jap-site-header-master > div:first-child > div {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 100% !important;
        gap: 0.4rem !important;
    }

    #topBannerText {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    /* Right Selector Group: Keep strictly 1 line side by side */
    .jap-site-header-master > div:first-child > div > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.25rem !important;
        flex: 0 0 auto !important;
    }

    .jap-site-header-master select {
        padding: 0.1rem 0.25rem !important;
        font-size: 0.68rem !important;
        height: 22px !important;
        line-height: 22px !important;
        border-radius: 4px !important;
    }

    /* Hide text labels "Currency:" & "Language:" on mobile to keep everything strictly on 1 line */
    .jap-site-header-master > div:first-child span {
        display: none !important;
    }

    /* Show mobile hamburger menu toggle */
    .jap-mobile-toggle {
        display: flex !important;
    }

    .jap-nav-links {
        display: none !important;
    }

    header nav {
        display: none !important;
    }

    /* Hero Section Mobile Polish */
    #hero {
        padding: 2.25rem 1rem 2rem !important;
    }

    #heroH1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.85rem !important;
    }

    #heroSubText, #heroSubtitle {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.5rem !important;
    }

    #heroCtaPrimary, #heroCtaSecondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.85rem 1.5rem !important;
        font-size: 0.92rem !important;
    }

    #heroPaymentBadges {
        gap: 0.75rem !important;
        font-size: 0.78rem !important;
    }

    /* Trust & Performance Badges: Clean 2 Columns on Mobile */
    .trust-badges-grid, div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
        margin-top: 1rem !important;
    }

    /* Country & City Hubs: 2 Columns on Mobile */
    div[style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    /* Popular Services Showcase: 1 Full-Width Clean Card on Mobile */
    .popular-services-grid,
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* Bonus Calculator (2-Column Grid): 1 Column on Mobile */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Platform Services: 1 Column on Mobile */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }

    /* Footer: Premium Compact Mobile Aesthetic */
    footer {
        padding: 3rem 1.25rem 2rem !important;
    }

    footer > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.75rem 1.25rem !important;
    }

    /* First column (Brand, mission & payments) spans full 2 columns */
    footer > div[style*="grid-template-columns"] > div:first-child {
        grid-column: 1 / -1 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
    }

    footer h4 {
        font-size: 0.82rem !important;
        margin-bottom: 0.85rem !important;
        letter-spacing: 0.04em !important;
    }

    footer ul {
        line-height: 1.85 !important;
    }

    footer ul li a {
        font-size: 0.82rem !important;
    }

    /* Main Article Content & Cards: Compact padding */
    .data-table-card, article {
        padding: 1.25rem 0.85rem !important;
    }

    /* Floating Support Widget: Mobile friendly positioning */
    .floating-support-container {
        bottom: 16px !important;
        right: 16px !important;
    }

    .floating-support-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
    }

    .floating-support-card {
        width: calc(100vw - 32px) !important;
        right: 0 !important;
        bottom: 60px !important;
    }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    body.jap-body {
        padding-top: 82px !important;
    }

    .jap-header-sticky > div,
    header > div[style*="max-width: 1240px"] {
        padding: 0.45rem 0.75rem !important;
    }

    /* Keep Logo clean and compact on small phones */
    header a[href="/"] span {
        font-size: 1.15rem !important;
    }

    header a[href="/"] > div {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
    }

    /* Compact Auth Buttons on Mobile */
    header a[href="/login"], .jap-btn-signin {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.74rem !important;
    }

    header a[href="/register"], .jap-btn-signup {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.74rem !important;
    }

    .jap-mobile-toggle {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
    }
}

