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

:root {
    /* ── Mobile-First Alistyle Color System ── */
    --color-primary: #ff5000;
    --color-primary-hover: #e04400;
    --color-primary-light: #fff3ed;
    --color-primary-soft: rgba(255, 80, 0, 0.1);
    
    --color-secondary: #0d213a;
    --color-secondary-light: #162a45;
    --color-secondary-dark: #071526;
    
    --color-accent-blue: #0070ba;
    --color-accent-gold: #f59e0b;
    --color-accent-green: #10b981;
    --color-accent-red: #ef4444;
    --color-accent-purple: #8b5cf6;

    /* Backgrounds */
    --bg-page: #f4f6fa;
    --bg-card: #ffffff;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-header-top: #0a192f;
    --bg-footer: #0c1d33;
    --bg-footer-bottom: #071322;
    --bg-desktop-frame: #0b1424;

    /* Text & Borders */
    --text-main: #1e293b;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --text-light: #f8fafc;
    
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --border-primary: rgba(255, 80, 0, 0.25);

    /* Radii & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.1);
    --shadow-orange: 0 4px 14px rgba(255, 80, 0, 0.35);

    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Mobile Container Architecture (Shows as Mobile even on Laptop/Desktop) ── */
body {
    background-color: var(--bg-desktop-frame);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-size: 13px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.main-container,
.page-container {
    width: 100%;
    max-width: 480px; /* Locked to smartphone viewport */
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
    position: relative;
    padding-bottom: 74px; /* Space for sticky bottom navigation */
    overflow-x: hidden;
}

.site-wrapper {
    width: 100%;
    padding: 0 12px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ── FIXED HEADER WRAPPER (Permanently Fixed at Top on Laptop & Mobile) ── */
.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fixed-header-spacer {
    height: 164px; /* Matches fixed header height */
    width: 100%;
}

/* ── Top Notice Bar (Mobile Compact) ── */
.top-notice-bar {
    background-color: var(--bg-header-top);
    color: #cbd5e1;
    font-size: 11px;
    padding: 5px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-notice-left {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
}

.top-notice-highlight {
    color: #ffaa00;
    font-weight: 700;
}

.top-notice-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-notice-link {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
}

.live-indicator-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent-green);
    box-shadow: 0 0 6px var(--color-accent-green);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ── Mobile Header ── */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    padding: 10px 12px;
}

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

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

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

.brand-fallback {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-secondary);
}

.brand-fallback .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary), #ff7a00);
    color: #ffffff;
    font-size: 14px;
}

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

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-secondary);
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff7700 100%);
    box-shadow: 0 2px 8px rgba(255, 80, 0, 0.3);
}

/* ── Mobile Search Bar ── */
.mobile-search-bar {
    padding: 6px 12px 10px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.mobile-search-box {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #ffffff;
}

.search-input {
    flex: 1;
    border: none;
    padding: 8px 10px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    color: var(--text-main);
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Mobile Navigation Drawer ── */
.desktop-nav {
    display: none;
    background-color: var(--color-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    z-index: 1100;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.desktop-nav ul {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.desktop-nav li a.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.desktop-nav li a.nav-link:hover,
.desktop-nav li a.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Toggle Strip */
.mobile-nav-strip {
    background: var(--color-secondary);
    padding: 7px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ── Banner Wrapper ── */
.banner-wrapper {
    padding: 10px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.banner-wrapper img {
    width: 100%;
    border-radius: var(--radius-sm);
}

/* ── Trade Services (2-Column Mobile Grid) ── */
.trade-services-wrap {
    margin: 16px 0;
}

.trade-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.trade-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-xs);
    min-width: 0;
}

.trade-icon-box {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.trade-card:nth-child(2) .trade-icon-box {
    background: #ecfdf5;
    color: var(--color-accent-green);
}

.trade-card:nth-child(3) .trade-icon-box {
    background: #eff6ff;
    color: var(--color-accent-blue);
}

.trade-card:nth-child(4) .trade-icon-box {
    background: #fef3c7;
    color: var(--color-accent-gold);
}

.trade-info strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.trade-info span {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
    display: block;
    margin-top: 1px;
}

/* ── Payment Methods (Mobile Badge Grid) ── */
.payments-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    margin: 16px 0;
    box-shadow: var(--shadow-xs);
}

.payments-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.pay-badge {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
}

.pay-badge .pay-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Mobile App Download Strip ── */
.app-download-strip {
    background: linear-gradient(135deg, #0d213a 0%, #16365c 100%);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    color: #ffffff;
    margin: 16px 0;
    text-align: center;
}

.app-strip-content h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.app-strip-content p {
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 10px;
}

.app-strip-actions {
    display: flex;
    gap: 8px;
}

.btn-app-download {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #ffffff;
    color: var(--color-secondary);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

.btn-app-download i {
    font-size: 15px;
    color: var(--color-primary);
}

/* ── Newsletter Strip (Mobile) ── */
.newsletter-strip {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 16px 12px;
    margin-top: 20px;
}

.newsletter-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-text h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 11px;
}

.newsletter-form {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.newsletter-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 8px 10px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    background: #ffffff;
}

.newsletter-btn {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

/* ── Mobile Footer ── */
.main-footer {
    background-color: var(--bg-footer);
    color: #94a3b8;
    padding-top: 24px;
    font-size: 12px;
}

.footer-grid {
    padding: 0 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand .footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 10px;
}

.footer-desc {
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.footer-cert-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cert-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 4px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 12px;
}

.footer-contact p {
    margin-bottom: 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    background-color: var(--bg-footer-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px;
    text-align: center;
    font-size: 11px;
    color: #64748b;
}

.footer-copyright a {
    color: #ffaa00;
}

.footer-bottom-links {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 10px;
}

/* ── STICKY BOTTOM NAVIGATION BAR ── */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px 6px;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    gap: 2px;
    flex: 1;
    text-align: center;
    position: relative;
}

.m-nav-item i {
    font-size: 18px;
    color: var(--color-secondary);
}

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

.m-nav-item.active i,
.m-nav-item:hover i {
    color: var(--color-primary);
}

.m-nav-item.m-nav-center {
    margin-top: -16px;
}

.m-nav-center .m-nav-center-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff7700 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.45);
    border: 3px solid #ffffff;
    margin-bottom: 2px;
}

.m-nav-center span {
    color: var(--color-primary);
    font-weight: 800;
}
