* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f5f7;
    color: #111;
    padding-bottom: 92px;
}

/* HEADER */

.header {
    background:
        radial-gradient(circle at top right, rgba(56,189,248,0.18), transparent 28%),
        linear-gradient(135deg, #0f172a, #111827, #1e293b);
    color: white;
    padding: 22px 18px 42px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
    text-align: center;
}

.logo {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
}

.logo span {
    color: #38bdf8;
}

.subtitle {
    margin-top: 7px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

/* CONTAINER */

.container {
    padding: 16px;
    margin-top: -22px;
}

/* TITLES */

.section-title {
    font-size: 17px;
    font-weight: 800;
    margin: 18px 0 12px;
}

/* FILTERS */

.filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    border: 1px solid #e5e7eb;
    background: white;
    color: #111;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-btn.active {
    background: #111827;
    color: white;
    border-color: #111827;
}

/* ORDER CARD */

.order-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 5px 18px rgba(15,23,42,0.08);
    border: 1px solid #eef0f3;
}

.order-card.bank {
    border-left: 5px solid #2563eb;
}

.order-card.stcpay {
    border-left: 5px solid #7c3aed;
}

.order-card.barq {
    border-left: 5px solid #16a34a;
}

.order-card.urpay {
    border-left: 5px solid #f59e0b;
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.available-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.method-badge {
    background: #f1f5f9;
    color: #334155;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.amount {
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    margin-top: 14px;
    letter-spacing: -1px;
}

.receive {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    color: #16a34a;
    margin-top: 4px;
}

.rate-line {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-top: 8px;
}

.payment-select {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.accept-btn {
    width: 100%;
    margin-top: 14px;
    border: none;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(34,197,94,0.25);
}

/* EMPTY */

.empty {
    background: white;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    color: #64748b;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* BOTTOM NAV */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    border-top: 1px solid #e5e7eb;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -3px 14px rgba(15,23,42,0.07);
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #64748b;
    padding: 10px 5px 12px;
    font-size: 12px;
    font-weight: 700;
}

.bottom-nav a .icon {
    display: block;
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav a.active {
    color: #111827;
    background: #f8fafc;
}

/* FORM / SHARED */

input {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #ddd;
    margin-top: 12px;
    font-size: 15px;
    background: white;
}

button {
    cursor: pointer;
}

.success {
    color: green;
    font-weight: bold;
}

.danger {
    color: #c00;
    font-weight: bold;
}

/* CLEAN PAYMENT DROPDOWN */

.payment-select {
    width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: white;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    box-shadow: 0 4px 14px rgba(15,23,42,0.07);
    margin-bottom: 16px;
}

/* FIX TEXT-ONLY NAV */

.bottom-nav a {
    font-size: 16px;
    font-weight: 700;
    padding: 18px 5px;
}

.bottom-nav a.active {
    background: #111;
    color: white;
}

/* CONFIRM ORDER MODAL */

.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal-box {
    width: 100%;
    max-width: 430px;
    max-height: 88vh;
    overflow-y: auto;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.modal-box h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 900;
}

.modal-summary {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
}

.terms {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.terms ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.terms li {
    margin-bottom: 8px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 12px;
}

.cancel-btn,
.confirm-btn {
    flex: 1;
    border: none;
    padding: 15px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 900;
}

.cancel-btn {
    background: #e5e7eb;
    color: #111827;
}

.confirm-btn {
    background: #16a34a;
    color: white;
}

/* HOME DROPDOWN LIKE OFFICIAL APP */

.home-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.payment-toggle {
    border: none;
    background: white;
    color: #f59e0b;
    font-size: 17px;
    font-weight: 900;
    padding: 10px 14px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(15,23,42,0.08);
}

.payment-toggle .arrow {
    margin-left: 4px;
}

.payment-menu {
    display: none;
    background: white;
    border-radius: 0 0 22px 22px;
    margin: -2px 0 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15,23,42,0.18);
}

.payment-menu.show {
    display: block;
}

.payment-menu div {
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eef0f3;
    font-size: 16px;
    color: #111827;
}

.payment-menu div:first-child {
    color: #2563eb;
}

.payment-menu div span {
    color: #2563eb;
    font-weight: 900;
}

/* SVG BOTTOM NAV */

.bottom-nav a {
    font-size: 12px;
    font-weight: 800;
    padding: 9px 5px 10px;
}

.bottom-nav a svg {
    width: 25px;
    height: 25px;
    display: block;
    margin: 0 auto 4px;
    fill: currentColor;
}

.bottom-nav a.active {
    color: #f59e0b;
    background: white;
}

.bottom-nav a.active span {
    color: #f59e0b;
}

/* ORDERS PAGE */

.orders-header {
    background: white;
    padding: 26px 22px 18px;
}

.orders-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
}

.orders-header p {
    margin: 8px 0 0;
    color: #777;
    font-size: 16px;
}

.orders-tabs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    background: white;
    padding: 12px 18px 0;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 900;
    color: #888;
    position: relative;
}

.tab-btn.active {
    color: #f59e0b;
}

.tab-btn.active::after {
    content: "";
    height: 4px;
    width: 100%;
    background: #2563eb;
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: -1px;
}

.orders-container {
    margin-top: 14px;
}

.my-order-card {
    background: white;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(15,23,42,0.08);
}

.my-order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.my-amount {
    font-size: 30px;
    font-weight: 900;
}

.my-amount span {
    color: #f59e0b;
    font-size: 15px;
}

.order-no {
    color: #888;
    font-weight: 700;
    margin-top: 5px;
}

.wait-badge,
.pending-badge,
.completed-badge,
.frozen-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.wait-badge {
    background: #fff7ed;
    color: #f59e0b;
}

.pending-badge {
    background: #eff6ff;
    color: #2563eb;
}

.completed-badge {
    background: #dcfce7;
    color: #16a34a;
}

.frozen-badge {
    background: #fee2e2;
    color: #dc2626;
}

.timer {
    margin: 15px 0;
    font-size: 20px;
    font-weight: 900;
    color: #dc2626;
}

.pay-box {
    background: #f8fafc;
    border-radius: 18px;
    padding: 14px;
    margin-top: 12px;
}

.pay-box div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #e5e7eb;
}

.pay-box div:last-child {
    border-bottom: none;
}

.pay-box span {
    color: #777;
}

.pay-box b {
    text-align: right;
    word-break: break-word;
}

.proof-box {
    margin-top: 16px;
}

.proof-box label {
    display: block;
    margin-top: 12px;
    font-weight: 900;
}

.proof-box input {
    margin-top: 8px;
}

.submit-proof-btn {
    width: 100%;
    margin-top: 16px;
    border: none;
    background: #f59e0b;
    color: white;
    padding: 15px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 900;
}

.cancel-order-btn {
    width: 100%;
    margin-top: 10px;
    border: none;
    background: #e5e7eb;
    color: #111;
    padding: 14px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 900;
}

.status-note {
    margin-top: 14px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 16px;
    color: #555;
    font-weight: 700;
}

.frozen-card {
    border-left: 5px solid #dc2626;
}

/* ORDERS CARD COMPACT UPDATE */

.my-order-card {
    padding: 15px !important;
    border-radius: 22px !important;
}

.my-amount {
    font-size: 26px !important;
}

.pay-box {
    padding: 10px 12px !important;
}

.pay-box div {
    padding: 6px 0 !important;
    font-size: 14px;
}

.timer {
    margin: 10px 0 !important;
    font-size: 17px !important;
}

.proof-box {
    margin-top: 10px !important;
}

.proof-box label {
    margin-top: 8px !important;
    font-size: 15px;
}

.proof-note {
    display: block;
    color: #777;
    margin-top: 7px;
    font-size: 13px;
}

.submit-proof-btn,
.cancel-order-btn {
    padding: 13px !important;
}

.cancel-warning {
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
}

.danger-confirm-btn {
    flex: 1;
    border: none;
    padding: 15px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 900;
    background: #dc2626;
    color: white;
}

/* AUTH / LANDING PROFESSIONAL UI */

.auth-body {
    background: #111827;
    color: white;
    min-height: 100vh;
    padding-bottom: 30px;
}

.landing-hero {
    background:
        radial-gradient(circle at top right, rgba(14,165,233,0.25), transparent 35%),
        linear-gradient(180deg, #111827 0%, #1f2937 100%);
    padding: 36px 26px 34px;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
}

.landing-hero.compact {
    padding-bottom: 28px;
}

.landing-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

.brand-logo {
    font-size: 32px;
    font-weight: 1000;
    letter-spacing: 1px;
    color: #fff;
}

.brand-logo span {
    color: #38bdf8;
}

.mini-btn {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 10px 17px;
    border-radius: 999px;
    font-weight: 800;
}

.trust-number {
    color: #facc15;
    font-size: 26px;
    font-weight: 1000;
    text-align: center;
    margin-bottom: 8px;
}

.landing-hero h1 {
    text-align: center;
    font-size: 36px;
    line-height: 1.08;
    margin: 0;
    font-weight: 1000;
}

.landing-hero p {
    text-align: center;
    color: #d1d5db;
    font-size: 15px;
    line-height: 1.6;
    margin: 14px auto 24px;
    max-width: 440px;
}

.trust-row {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.trust-row div {
    flex: 1;
    max-width: 180px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 14px 10px;
    text-align: center;
}

.trust-row b {
    display: block;
    color: #facc15;
    font-size: 20px;
}

.trust-row span {
    display: block;
    color: #d1d5db;
    font-size: 12px;
    margin-top: 4px;
}

.auth-card {
    margin: -8px 22px 0;
    background: #fff;
    color: #111;
    border-radius: 28px;
    padding: 26px 24px;
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.auth-card h2 {
    font-size: 32px;
    margin: 0 0 6px;
    font-weight: 1000;
}

.auth-sub {
    color: #6b7280;
    margin: 0 0 22px;
    font-size: 15px;
}

.auth-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 17px 18px;
    margin-bottom: 14px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    background: #f9fafb;
    outline: none;
}

.auth-card input:focus {
    border-color: #38bdf8;
    background: #fff;
}

.auth-main-btn {
    width: 100%;
    border: none;
    padding: 17px;
    border-radius: 18px;
    margin-top: 8px;
    background: linear-gradient(135deg, #f59e0b, #facc15);
    color: #111;
    font-size: 17px;
    font-weight: 1000;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    color: #6b7280;
    font-weight: 700;
}

.auth-switch button {
    border: none;
    background: transparent;
    color: #0284c7;
    font-weight: 1000;
    font-size: 15px;
}

.auth-msg {
    margin-top: 14px;
    color: #dc2626;
    font-weight: 800;
    text-align: center;
}

