: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;
}

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

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

p, li, span, td, th {
    color: inherit;
}

.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 Fixed Header & Navigation Master Container */
.jap-site-header-master {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

body.jap-body {
    padding-top: 96px !important;
}

@media (max-width: 768px) {
    body.jap-body {
        padding-top: 115px !important;
    }
}

.jap-header-sticky {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
}

.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);
}

.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: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid #ff5e28;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    padding: 1.25rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.85rem;
    animation: slideDownMobileNav 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

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

.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.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.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 */
html, body {
    max-width: 100vw;
    overflow-x: hidden !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;
    }
}

/* Mobile Screens (Phones, Phablets) */
@media (max-width: 768px) {
    /* Header Navigation adjustments */
    header nav {
        gap: 0.85rem !important;
    }

    header nav a {
        font-size: 0.8rem !important;
    }

    /* Trust & Performance Badges: 2 Columns on Mobile */
    .trust-badges-grid, div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !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;
    }

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

    /* Footer: 1 Single Clean Column */
    footer > div[style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

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

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

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

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

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    header nav {
        display: none !important;
    }

    .trust-badges-grid, div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-template-columns: repeat(6, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

