
/* =====================================================
   PAYREN - GLOBAL DESIGN SYSTEM
===================================================== */

:root {
    --bg: #101114;
    --surface: #1b1e25;
    --surface-2: #242832;
    --gold: #e4be69;
    --green: #35c98b;
    --blue: #65b9ff;
    --purple: #a58cff;
    --pink: #ee7eaa;
    --text: #f6f6f7;
    --muted: #a2a7b2;
    --border: rgba(255,255,255,.09);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 50% 0,
            #282317 0,
            transparent 450px
        ),
        var(--bg);

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

svg {
    flex-shrink: 0;
}

/* =====================================================
   MAIN CONTAINER
===================================================== */

.app {
    width: 100%;
    max-width: 780px;
    min-height: 100vh;
    margin: auto;

    padding:
        16px
        16px
        calc(110px + env(safe-area-inset-bottom));

    background: rgba(16,17,20,.85);
}

@media(min-width: 850px) {
    .app {
        margin-top: 20px;
        margin-bottom: 20px;

        border: 1px solid var(--border);
        border-radius: 26px;

        box-shadow: 0 25px 100px rgba(0,0,0,.45);
    }
}

/* =====================================================
   HEADER
===================================================== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.brand-logo {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #f4d78e,
        #aa7c30
    );

    color: #171717;
    font-size: 24px;
    font-weight: 900;

    box-shadow: 0 4px 20px rgba(228,190,105,.15);
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.header-btn {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--surface);
    color: var(--gold);

    border: 1px solid var(--border);
    border-radius: 50%;
}

.header-btn:hover {
    background: var(--surface-2);
}

/* =====================================================
   NOTICE
===================================================== */

.notice {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;

    border: 1px solid rgba(228,190,105,.18);
    background: var(--surface);
    border-radius: 13px;

    margin-bottom: 15px;
}

.notice-icon {
    color: var(--gold);
}

.notice-text {
    color: #d4d6dc;
    font-size: 12px;
    line-height: 1.5;
}

/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;
    overflow: hidden;

    min-height: 170px;
    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255,225,153,.45),
            transparent 25%
        ),
        radial-gradient(
            circle at 65% 100%,
            rgba(222,154,38,.32),
            transparent 45%
        ),
        linear-gradient(
            120deg,
            #342611,
            #7c561e 55%,
            #2b2116
        );

    border: 1px solid rgba(255,214,120,.22);

    margin-bottom: 16px;
}

.hero::after {
    content: "◈";

    position: absolute;
    right: 18px;
    top: -42px;

    font-size: 210px;
    color: rgba(255,255,255,.10);

    transform: rotate(-20deg);
    pointer-events: none;
}

.hero-kicker {
    position: relative;
    z-index: 1;

    color: #ffe8af;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;

    margin-bottom: 10px;
}

.hero-title {
    position: relative;
    z-index: 1;

    font-size: clamp(23px,5vw,34px);
    line-height: 1.15;
    font-weight: 800;

    max-width: 420px;
    margin: 0 0 10px;
}

.hero-description {
    position: relative;
    z-index: 1;

    max-width: 360px;

    color: #f3e2c1;
    line-height: 1.6;
    font-size: 12px;
}

/* =====================================================
   ACCOUNT CARD
===================================================== */

.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 20px;
    margin-bottom: 16px;
}

.account-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-label {
    color: var(--muted);
    font-size: 12px;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--gold);
    font-size: 11px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--gold);
}

.account-balance {
    margin: 13px 0;

    font-size: clamp(28px,6vw,37px);
    font-weight: 800;
    letter-spacing: -.8px;
}

.account-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: var(--muted);
    font-size: 12px;
}

.account-bottom strong {
    color: var(--text);
}

.sign-in-link {
    color: var(--gold);
    font-weight: 700;
}

/* =====================================================
   SERVICES
===================================================== */

.services {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 20px 12px;

    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));

    gap: 24px 6px;
    margin-bottom: 16px;
}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    gap: 9px;
    text-align: center;
    min-width: 0;

    transition: transform .2s ease;
}

.service:hover {
    transform: translateY(-3px);
}

.service-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.service-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.gold {
    color: var(--gold);
}

.green {
    color: var(--green);
}

.blue {
    color: var(--blue);
}

.purple {
    color: var(--purple);
}

.pink {
    color: var(--pink);
}

/* =====================================================
   SECTIONS
===================================================== */

.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    overflow: hidden;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 14px;
    font-weight: 800;
}

.section-diamond {
    color: var(--gold);
}

.section-more {
    display: flex;
    align-items: center;
    gap: 4px;

    color: var(--muted);
    font-size: 11px;
}

.section-body {
    padding: 17px;
}

/* =====================================================
   ACTIVITY
===================================================== */

.activity-empty {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px;

    background: var(--surface-2);
    border-radius: 14px;
}

.activity-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(228,190,105,.10);
    border-radius: 13px;

    color: var(--gold);
}

.activity-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.activity-description {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* =====================================================
   FEATURES
===================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.feature {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.feature svg {
    color: var(--gold);
    margin-bottom: 10px;
}

.feature h3 {
    margin: 0 0 7px;
    font-size: 13px;
}

.feature p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   FOOTER
===================================================== */

.footer {
    text-align: center;
    padding: 15px;

    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* =====================================================
   BOTTOM NAVIGATION
===================================================== */

.bottom-nav {
    position: fixed;
    z-index: 100;

    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 780px;

    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 4px;

    padding:
        8px
        10px
        calc(8px + env(safe-area-inset-bottom));

    background: rgba(25,27,33,.97);

    border: 1px solid var(--border);
    border-radius: 20px 20px 0 0;

    backdrop-filter: blur(20px);

    box-shadow: 0 -10px 40px rgba(0,0,0,.25);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
    padding: 10px 4px;

    border-radius: 12px;

    color: var(--muted);
    font-size: 10px;
}

.nav-item.active {
    background: rgba(228,190,105,.13);
    color: var(--gold);
}

.nav-item:hover {
    color: var(--gold);
}

/* =====================================================
   TOAST
===================================================== */

.toast {
    position: fixed;

    left: 50%;
    bottom: 100px;

    transform: translateX(-50%) translateY(20px);

    background: #2b303a;
    border: 1px solid var(--border);

    color: white;

    padding: 13px 18px;
    border-radius: 12px;

    z-index: 500;

    opacity: 0;
    pointer-events: none;

    transition: .25s;

    width: max-content;
    max-width: calc(100% - 30px);

    text-align: center;
    font-size: 12px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================================================
   MOBILE RESPONSIVENESS
===================================================== */

@media(max-width: 420px) {

    .app {
        padding-left: 11px;
        padding-right: 11px;
    }

    .hero {
        padding: 20px;
        min-height: 155px;
    }

    .services {
        padding: 17px 7px;
        gap: 22px 3px;
    }

    .service-icon {
        width: 49px;
        height: 49px;
    }

    .service-name {
        font-size: 10px;
    }

    .feature-grid {
        gap: 8px;
    }

    .feature {
        padding: 12px;
    }

}

@media(max-width: 340px) {

    .brand-subtitle {
        display: none;
    }

    .brand-name {
        font-size: 18px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-btn {
        width: 34px;
        height: 34px;
    }

}

@media(prefers-reduced-motion: reduce) {

    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }

}