:root {
            --green-dark: #06291f;
            --green-main: #0b3f31;
            --green-soft: #0f5a44;
            --green-light: #eaf7f1;
            --gold: #c9a247;
            --gold-light: #f1d17a;
            --gold-soft: rgba(201, 162, 71, 0.14);
            --white: #ffffff;
            --soft-bg: #f5faf7;
            --card-bg: #ffffff;
            --text-main: #123128;
            --text-soft: #6f8279;
            --text-muted: #9aa9a2;
            --border: rgba(11, 63, 49, 0.11);
            --danger: #d94a4a;
            --success: #1f9d64;
            --warning: #d99a22;
            --shadow: 0 22px 55px rgba(6, 41, 31, 0.14);
            --bottom-safe: env(safe-area-inset-bottom);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        html, body {
            width: 100%;
            min-height: 100%;
            font-family: 'Poppins', sans-serif;
            background:
                radial-gradient(circle at top left, rgba(241, 209, 122, 0.24), transparent 32%),
                linear-gradient(135deg, #eaf7f1 0%, #f8fcf9 48%, #edf8f3 100%);
            color: var(--text-main);
            overflow-x: hidden;
        }

        body {
            padding-bottom: 92px;
        }

        ::-webkit-scrollbar {
            width: 4px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(11, 63, 49, 0.22);
            border-radius: 10px;
        }

        .app-shell {
            width: 100%;
            max-width: 430px;
            min-height: 100vh;
            margin: 0 auto;
            position: relative;
            background: rgba(255, 255, 255, 0.44);
            overflow: hidden;
        }

        .app-shell::before {
            content: "";
            position: fixed;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(11, 63, 49, 0.15), rgba(201, 162, 71, 0.17));
            top: -110px;
            right: -110px;
            z-index: 0;
        }

        .app-shell::after {
            content: "";
            position: fixed;
            width: 230px;
            height: 230px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(201, 162, 71, 0.16), rgba(11, 63, 49, 0.10));
            bottom: 35px;
            left: -105px;
            z-index: 0;
        }

        .page-content {
            position: relative;
            z-index: 2;
            padding-bottom: 105px;
        }

        /* TOPBAR */
        .topbar {
            position: sticky;
            top: 0;
            z-index: 50;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.78);
            border-bottom: 1px solid rgba(11, 63, 49, 0.08);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .brand-mini {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .brand-mini img {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            object-fit: contain;
            background: #ffffff;
            padding: 4px;
            box-shadow: 0 8px 20px rgba(6, 41, 31, 0.10);
        }

        .brand-mini h1 {
            font-family: 'Cinzel', serif;
            font-size: 15px;
            line-height: 1.1;
            font-weight: 700;
            color: var(--green-dark);
            letter-spacing: 0.4px;
        }

        .brand-mini p {
            margin-top: 2px;
            font-size: 10px;
            color: var(--text-soft);
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .icon-btn {
            width: 39px;
            height: 39px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.82);
            color: var(--green-main);
            display: grid;
            place-items: center;
            position: relative;
            cursor: pointer;
            box-shadow: 0 8px 18px rgba(6, 41, 31, 0.06);
        }

        .icon-btn i {
            font-size: 15px;
        }

        .notif-dot {
            position: absolute;
            width: 7px;
            height: 7px;
            top: 9px;
            right: 10px;
            border-radius: 50%;
            background: var(--danger);
            border: 1.5px solid #ffffff;
        }

        /* HERO */
        .hero-card {
            margin: 16px 16px 0;
            padding: 22px;
            border-radius: 28px;
            background:
                radial-gradient(circle at top right, rgba(241, 209, 122, 0.28), transparent 34%),
                linear-gradient(145deg, rgba(6, 41, 31, 0.98), rgba(13, 89, 67, 0.94));
            color: #ffffff;
            position: relative;
            overflow: hidden;
            box-shadow: 0 22px 45px rgba(6, 41, 31, 0.22);
        }

        .hero-card::before {
            content: "";
            position: absolute;
            width: 210px;
            height: 210px;
            border-radius: 50%;
            border: 1px solid rgba(241, 209, 122, 0.20);
            right: -78px;
            top: -82px;
        }

        .hero-card::after {
            content: "";
            position: absolute;
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.12);
            left: -78px;
            bottom: -78px;
        }

        .hero-inner {
            position: relative;
            z-index: 2;
        }

        .welcome-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 14px;
            margin-bottom: 22px;
        }

        .welcome-text span {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.10);
            border: 1px solid rgba(255, 255, 255, 0.13);
            font-size: 10px;
            color: rgba(255, 255, 255, 0.82);
            margin-bottom: 10px;
        }

        .welcome-text span i {
            color: var(--gold-light);
            font-size: 10px;
        }

        .welcome-text h2 {
            font-size: 18px;
            line-height: 1.35;
            font-weight: 650;
            max-width: 235px;
        }

        .welcome-text p {
            margin-top: 6px;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.68);
            line-height: 1.55;
        }

        .hero-logo {
            width: 58px;
            height: 58px;
            border-radius: 18px;
            object-fit: contain;
            background: #ffffff;
            padding: 5px;
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
        }

        .balance-box {
            padding: 18px;
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.16);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .balance-label {
            font-size: 10.5px;
            color: rgba(255, 255, 255, 0.68);
            letter-spacing: 0.5px;
            margin-bottom: 7px;
        }

        .balance-amount {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -0.3px;
            line-height: 1.15;
        }

        .balance-actions {
            margin-top: 17px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .primary-action,
        .secondary-action {
            height: 42px;
            border-radius: 14px;
            border: none;
            font-family: 'Poppins', sans-serif;
            font-size: 11.5px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
        }

        .primary-action {
            background: linear-gradient(135deg, var(--gold-light), var(--gold));
            color: #183329;
            box-shadow: 0 10px 24px rgba(201, 162, 71, 0.24);
        }

        .secondary-action {
            background: rgba(255, 255, 255, 0.10);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.18);
        }

        .summary-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 14px 16px 0;
        }

        .summary-card {
            padding: 15px 14px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.88);
            border: 1px solid var(--border);
            box-shadow: 0 14px 28px rgba(6, 41, 31, 0.07);
        }

        .summary-card .icon {
            width: 32px;
            height: 32px;
            border-radius: 12px;
            display: grid;
            place-items: center;
            margin-bottom: 10px;
            font-size: 13px;
        }

        .summary-card.deposit .icon {
            background: rgba(31, 157, 100, 0.10);
            color: var(--success);
        }

        .summary-card.withdraw .icon {
            background: rgba(217, 74, 74, 0.10);
            color: var(--danger);
        }

        .summary-card p {
            font-size: 10.5px;
            color: var(--text-soft);
            margin-bottom: 4px;
        }

        .summary-card strong {
            display: block;
            font-size: 13px;
            color: var(--text-main);
            line-height: 1.35;
        }

        /* QUICK MENU */
        .section {
            margin: 20px 16px 0;
        }

        .section-heading {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .section-heading h3 {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-main);
        }

        .section-heading span {
            font-size: 10.5px;
            color: var(--text-soft);
        }

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

        .quick-item {
            min-height: 82px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.90);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
            color: var(--text-main);
            cursor: pointer;
            box-shadow: 0 12px 24px rgba(6, 41, 31, 0.06);
        }

        .quick-item:active {
            transform: scale(0.97);
        }

        .quick-icon {
            width: 36px;
            height: 36px;
            border-radius: 14px;
            display: grid;
            place-items: center;
            color: var(--green-main);
            background: rgba(11, 63, 49, 0.075);
            font-size: 15px;
        }

        .quick-item span {
            font-size: 10.5px;
            font-weight: 600;
            color: var(--text-soft);
        }

        /* INFO CARD */
        .info-card {
            margin: 20px 16px 0;
            border-radius: 26px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
        }

        .info-header {
            padding: 22px 20px;
            background:
                radial-gradient(circle at top right, rgba(201, 162, 71, 0.14), transparent 36%),
                linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
            border-bottom: 1px solid var(--border);
        }

        .info-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 6px 11px;
            border-radius: 999px;
            background: rgba(11, 63, 49, 0.07);
            color: var(--green-main);
            font-size: 10px;
            font-weight: 700;
            margin-bottom: 12px;
        }

        .info-header h3 {
            font-size: 18px;
            line-height: 1.35;
            color: var(--text-main);
            margin-bottom: 7px;
        }

        .info-header p {
            font-size: 11.5px;
            color: var(--text-soft);
            line-height: 1.65;
        }

        .feature-list {
            display: grid;
            gap: 1px;
            background: rgba(11, 63, 49, 0.08);
        }

        .feature-item {
            padding: 17px 18px;
            background: #ffffff;
            display: flex;
            align-items: flex-start;
            gap: 13px;
        }

        .feature-icon {
            width: 39px;
            height: 39px;
            border-radius: 14px;
            background: rgba(201, 162, 71, 0.13);
            color: var(--gold);
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            font-size: 15px;
        }

        .feature-text h4 {
            font-size: 13px;
            color: var(--text-main);
            margin-bottom: 4px;
        }

        .feature-text p {
            font-size: 11px;
            line-height: 1.55;
            color: var(--text-soft);
        }

        .mini-cta {
            padding: 18px;
            background: #fbfdfb;
            border-top: 1px solid var(--border);
        }

        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .tech-tags span {
            padding: 6px 10px;
            border-radius: 10px;
            background: rgba(11, 63, 49, 0.06);
            color: var(--green-main);
            font-size: 10.4px;
            font-weight: 600;
        }

        .learn-btn {
            width: 100%;
            height: 43px;
            border-radius: 15px;
            border: 1px solid rgba(11, 63, 49, 0.16);
            background: var(--green-main);
            color: #ffffff;
            font-family: 'Poppins', sans-serif;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
        }

        .security-note {
            margin: 16px 16px 0;
            padding: 14px 15px;
            border-radius: 20px;
            background: rgba(11, 63, 49, 0.065);
            border: 1px solid rgba(11, 63, 49, 0.09);
            display: flex;
            align-items: flex-start;
            gap: 11px;
        }

        .security-note i {
            color: var(--gold);
            font-size: 14px;
            margin-top: 2px;
        }

        .security-note p {
            font-size: 10.8px;
            line-height: 1.6;
            color: var(--text-soft);
        }

        /* BOTTOM NAV */
        .bottom-nav {
            position: fixed;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            width: 100%;
            max-width: 430px;
            padding: 8px 7px;
            padding-bottom: max(8px, var(--bottom-safe));
            background: rgba(255, 255, 255, 0.90);
            border-top: 1px solid rgba(11, 63, 49, 0.10);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            z-index: 80;
        }

        .nav-item {
            min-height: 54px;
            border-radius: 16px;
            color: var(--text-muted);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            transition: 0.2s ease;
        }

        .nav-item i {
            font-size: 17px;
        }

        .nav-item span {
            font-size: 9.5px;
            font-weight: 600;
        }

        .nav-item.active {
            color: var(--green-main);
            background: rgba(11, 63, 49, 0.08);
        }

        /* MODAL */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 999;
            background: rgba(6, 41, 31, 0.45);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            padding: 18px;
        }

        .modal-content {
            width: 100%;
            max-width: 360px;
            margin: 22vh auto 0;
            padding: 22px;
            border-radius: 24px;
            background: #ffffff;
            box-shadow: 0 30px 70px rgba(6, 41, 31, 0.28);
        }

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

        .modal-header h3 {
            font-size: 16px;
            color: var(--text-main);
        }

        .close-btn {
            border: none;
            background: rgba(11, 63, 49, 0.07);
            color: var(--green-main);
            width: 33px;
            height: 33px;
            border-radius: 12px;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
        }

        .empty-state {
            padding: 32px 8px 14px;
            text-align: center;
            color: var(--text-soft);
        }

        .empty-state i {
            font-size: 34px;
            margin-bottom: 12px;
            color: var(--text-muted);
        }

        .empty-state p {
            font-size: 12px;
        }

        /* WELCOME POPUP */
        .popup-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            background: rgba(6, 41, 31, 0.68);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: 0.25s ease;
        }

        .popup-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .popup-container {
            width: 100%;
            max-width: 360px;
            border-radius: 28px;
            background: #ffffff;
            overflow: hidden;
            box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
            transform: translateY(14px) scale(0.96);
            transition: 0.25s ease;
        }

        .popup-overlay.open .popup-container {
            transform: translateY(0) scale(1);
        }

        .popup-top {
            padding: 28px 22px 20px;
            text-align: center;
            background:
                radial-gradient(circle at top right, rgba(241, 209, 122, 0.26), transparent 38%),
                linear-gradient(145deg, var(--green-dark), var(--green-soft));
            color: #ffffff;
            position: relative;
        }

        .popup-close {
            position: absolute;
            top: 13px;
            right: 13px;
            width: 34px;
            height: 34px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.15);
            background: rgba(255,255,255,0.10);
            color: #ffffff;
            display: grid;
            place-items: center;
            cursor: pointer;
        }

        .popup-logo {
            width: 78px;
            height: 78px;
            border-radius: 22px;
            object-fit: contain;
            background: #ffffff;
            padding: 6px;
            margin-bottom: 14px;
        }

        .popup-top h3 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 5px;
        }

        .popup-top p {
            font-size: 11.5px;
            color: rgba(255,255,255,0.73);
            line-height: 1.55;
        }

        .popup-body {
            padding: 20px 20px 22px;
        }

        .popup-feature {
            padding: 14px;
            border-radius: 18px;
            border: 1px solid var(--border);
            background: #fbfdfb;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 16px;
        }

        .popup-feature i {
            width: 34px;
            height: 34px;
            border-radius: 13px;
            display: grid;
            place-items: center;
            background: rgba(201, 162, 71, 0.13);
            color: var(--gold);
            flex: 0 0 auto;
        }

        .popup-feature strong {
            display: block;
            font-size: 12.5px;
            color: var(--text-main);
            margin-bottom: 3px;
        }

        .popup-feature span {
            display: block;
            font-size: 10.8px;
            color: var(--text-soft);
            line-height: 1.5;
        }

        .popup-actions {
            display: grid;
            gap: 10px;
        }

        .popup-btn {
            height: 46px;
            border-radius: 15px;
            text-decoration: none;
            font-size: 12.5px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
        }

        .popup-btn.primary {
            color: #183329;
            background: linear-gradient(135deg, var(--gold-light), var(--gold));
        }

        .popup-btn.secondary {
            color: var(--green-main);
            background: rgba(11, 63, 49, 0.06);
            border: 1px solid rgba(11, 63, 49, 0.10);
        }

        @media (max-width: 360px) {
            .quick-grid {
                gap: 8px;
            }

            .quick-item {
                min-height: 76px;
            }

            .balance-amount {
                font-size: 21px;
            }

            .bottom-nav {
                padding-left: 4px;
                padding-right: 4px;
            }

            .nav-item span {
                font-size: 8.8px;
            }
        }