/* ==============================
   GENERAL STYLES
   ============================== */

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

body {
    font-family: Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* ==============================
   HEADER & NAVIGATION
   ============================== */

header {
    background-color: #0077ff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 24px;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media screen and (max-width: 600px) {
    .nav-links {
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        width: 100%;
    }
    nav a {
        display: block;
        padding: 10px 0;
    }
}

/* ==============================
   HERO SECTION
   ============================== */

.hero {
    text-align: center;
    padding: 40px 20px 60px;
    background: white;
    color: #1e293b;
}

.hero h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.hero .hero-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Tabs */
.tab-container {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 30px;
    padding: 4px;
    max-width: 300px;
    margin: 0 auto 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #64748b;
}

.tab-btn.active {
    background-color: white;
    color: #0077ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    padding: 30px;
    max-width: 350px;
    margin: 0 auto 20px;
    text-align: center;
}

.wallet-balance {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.add-funds-btn {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-funds-btn:hover {
    background-color: white;
    color: #0f172a;
}

.hero-description {
    font-size: 14px;
    color: #64748b;
    max-width: 400px;
    margin: 0 auto 20px;
}

.get-numbers-btn {
    background-color: #0077ff;
    color: white;
    border: none;
    padding: 14px 50px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.get-numbers-btn:hover {
    background-color: #005fcc;
    transform: scale(1.02);
}

/* ==============================
   BUY SECTION (GET A NUMBER)
   ============================== */

.buy-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.buy-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.option-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.option-btn {
    background-color: #f0f4ff;
    color: #0077ff;
    border: 2px solid #0077ff;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.option-btn:hover {
    background-color: #0077ff;
    color: white;
}

.option-btn.selected {
    background-color: #0077ff;
    color: white;
}

/* FORCE COUNTRIES TO STACK VERTICALLY */
#country-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

#country-options .option-btn {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 14px 20px !important;
    margin-bottom: 5px !important;
}

.buy-section h3 {
    margin-top: 20px;
    color: #333;
}

#number-display {
    background-color: #f0f4ff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 15px;
}

#number-display p {
    margin: 10px 0;
    font-size: 16px;
}

#purchased-number {
    font-size: 24px;
    color: #0077ff;
}

#timer {
    font-size: 28px;
    font-weight: bold;
    color: #ff4444;
    margin: 15px 0;
}

#sms-code {
    font-size: 28px;
    color: #22c55e;
}

/* ==============================
   LOGIN & REGISTER SECTIONS
   ============================== */

.login-section,
.register-section {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-section h2,
.register-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.login-section form,
.register-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-section label,
.register-section label {
    font-weight: bold;
    font-size: 14px;
}

.login-section input,
.register-section input {
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 16px;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.login-section input:focus,
.register-section input:focus {
    outline: none;
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
}

.login-section button,
.register-section button {
    background-color: #0077ff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.login-section button:hover,
.register-section button:hover {
    background-color: #005fcc;
    transform: scale(1.02);
}

#testBtn {
    margin-top: 10px !important;
    background-color: #ff6600 !important;
    color: white !important;
    padding: 10px !important;
    border: none !important;
    border-radius: 8px !important;
    width: 100% !important;
    cursor: pointer !important;
}

#testBtn:hover {
    background-color: #e65c00 !important;
}

.login-section p,
.register-section p {
    text-align: center;
    margin-top: 15px;
}

.login-section a,
.register-section a {
    color: #0077ff;
    text-decoration: none;
    cursor: pointer;
}

/* ==============================
   DASHBOARD PAGE
   ============================== */

.dashboard-page {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    display: none;
}

.dashboard-page h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: #1e293b;
}

/* Wallet Section */
.wallet-section {
    background: linear-gradient(135deg, #0077ff, #005fcc);
    color: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.wallet-section h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.wallet-section .balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.wallet-section #depositBtn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 30px;
    padding: 10px 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.wallet-section #depositBtn:hover {
    background-color: white;
    color: #0077ff;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.quick-actions button {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background-color: #f1f5f9;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-actions button:hover {
    background-color: #0077ff;
    color: white;
}

/* Orders Section */
.orders-section {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.orders-section h3 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #334155;
}

/* ==============================
   DEPOSIT PAGE
   ============================== */

.deposit-page {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.deposit-page h2 {
    text-align: center;
    margin-bottom: 20px;
}

.deposit-container p {
    text-align: center;
    margin-bottom: 20px;
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.amount-btn {
    background-color: #f0f4ff;
    color: #0077ff;
    border: 2px solid #0077ff;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.amount-btn:hover {
    background-color: #0077ff;
    color: white;
}

.amount-btn.selected {
    background-color: #0077ff;
    color: white;
}

.custom-amount {
    margin-bottom: 20px;
}

.custom-amount label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.custom-amount input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 16px;
    background-color: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-amount input:focus {
    outline: none;
    border-color: #0077ff;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
}

.deposit-btn {
    background-color: #0077ff;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s, transform 0.1s;
}

.deposit-btn:hover {
    background-color: #005fcc;
    transform: scale(1.02);
}

/* ==============================
   UTILITY CLASSES
   ============================== */

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}
/* ==============================
   ORANGE THEME REDESIGN
   ============================== */

header {
    background-color: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

header h1 {
    color: #ff6600;
    font-size: 20px;
}

.header-actions {
    margin-top: 6px;
}

.header-actions a {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
}


.notice-banner {
    background-color: #fff7e6;
    border: 1px solid #ffdca8;
    color: #92660b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin: 0 auto 20px;
    max-width: 420px;
}

.wallet-card {
    background: linear-gradient(135deg, #ff9142, #ff5e00, #d94600);
    border-radius: 18px;
    padding: 24px;
    max-width: 380px;
    margin: 0 auto 20px;
    text-align: left;
    color: white;
    box-shadow: 0 6px 18px rgba(255, 94, 0, 0.35);
}

.wallet-card-top {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.wallet-card .wallet-balance {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.wallet-card .add-funds-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.wallet-card .add-funds-btn:hover {
    background-color: white;
    color: #ff5e00;
}

.get-numbers-btn {
    background-color: #ff5e00 !important;
}

.get-numbers-btn:hover {
    background-color: #d94600 !important;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 11px;
    gap: 2px;
}

.bottom-nav a .nav-icon {
    font-size: 20px;
}

.bottom-nav a:hover,
.bottom-nav a:active {
    color: #ff5e00;
}

/* Push page content up so the bottom nav doesn't cover it */
body {
    padding-bottom: 70px;
}

/* ==============================
   HAMBURGER MENU
   ============================== */

.hamburger-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #ff6600;
    cursor: pointer;
    padding: 4px 8px;
}

.side-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

.side-menu-overlay.active {
    display: block;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    z-index: 1600;
    transition: left 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    padding: 0 20px 16px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
    word-break: break-all;
}

.side-menu-link {
    display: block;
    padding: 14px 20px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}

.side-menu-link:hover,
.side-menu-link:active {
    background-color: #fff3e6;
    color: #ff5e00;
}

.side-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

.side-menu-logout {
    color: #ff4444;
}

/* ==============================
   COUNTRY PICKER MODAL
   ============================== */

.country-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1700;
}

.country-modal-overlay.active {
    display: block;
}

.country-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 1800;
    max-height: 80vh;
    flex-direction: column;
    padding: 16px;
}

.country-modal.active {
    display: flex;
}

.country-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.country-modal-header h3 {
    font-size: 20px;
    color: #1e293b;
}

.country-modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
}

.country-search-input {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 12px;
    background-color: #f8fafc;
}

.country-search-input:focus {
    outline: none;
    border-color: #ff5e00;
}

.country-modal-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.country-modal-item {
    background-color: #f0f4ff;
    color: #0077ff;
    border: 2px solid #0077ff;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.country-modal-item:hover,
.country-modal-item:active {
    background-color: #0077ff;
    color: white;
}
.back-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #ff6600;
    cursor: pointer;
    padding: 4px 8px;
}
.terms-modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.terms-modal-body h4 {
    margin-top: 16px;
    margin-bottom: 6px;
    color: #1e293b;
    font-size: 15px;
}

.terms-modal-body p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 8px;
}
#country-options.force-hidden {
    display: none !important;
}
