
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #080b18;
    --blue: #00d9ff;
    --purple: #9254ff;
    --gold: #ffce45;
    --muted: #96a3c2;
    --white: #f5f7ff;
}

body {
    font-family: Arial, "Myanmar Text", sans-serif;
    min-height: 100vh;
    color: var(--white);
    background:
        radial-gradient(ellipse at top left,
        #152c5c, transparent 45%),
        radial-gradient(ellipse at bottom right,
        #32135d, transparent 45%),
        var(--bg);
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

.watermark {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: clamp(65px, 17vw, 180px);
    font-weight: 900;
    font-style: italic;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px #8295ff25;
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 650px;
    margin: auto;
    padding: 24px 18px 120px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,
        #00d9ff, #9254ff);
    clip-path: polygon(
        50% 0, 95% 25%, 95% 75%,
        50% 100%, 5% 75%, 5% 25%
    );
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: #080b18;
}

.brand h1 {
    font-size: clamp(24px, 6vw, 34px);
    font-style: italic;
    font-weight: 900;
    background: linear-gradient(
        90deg, white, #00d9ff, #a78bfa
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand small {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--muted);
}

.panel {
    background: linear-gradient(
        145deg, #14213b, #14142b
    );
    border: 1px solid #647bff40;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px #0003;
}

.guest {
    text-align: center;
    padding: 35px 20px;
}

.avatar {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(
        145deg, #102d50, #2d1656
    );
    border: 2px solid var(--blue);
    box-shadow: 0 0 25px #00d9ff35;
}

.guest .avatar {
    margin: 0 auto 24px;
}

.avatar svg {
    width: 45px;
    height: 45px;
    fill: none;
    stroke: #a9eaff;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.guest h2 {
    font-size: 21px;
    line-height: 1.8;
}

.description {
    font-size: 13px;
    line-height: 2;
    color: var(--muted);
    margin: 12px 0 25px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 13px;
    border-radius: 13px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: .2s;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background: linear-gradient(
        100deg, #008ac9, #4355e8
    );
    box-shadow: 0 5px 20px #00aaff20;
}

.btn-purple {
    background: linear-gradient(
        100deg, #7135d9, #a044e8
    );
}

.btn-outline {
    border: 1px solid #7957dd;
    background: #9254ff12;
}

.btn-danger {
    background: #ff386512;
    color: #ff829f;
    border: 1px solid #ff386540;
}

.stack {
    display: grid;
    gap: 12px;
}

.bonus {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 17px;
    margin-top: 18px;
    border: 1px solid #ffce4538;
    border-radius: 16px;
    background: #ffce4509;
    font-size: 13px;
    line-height: 1.9;
}

.bonus strong {
    color: var(--gold);
}

.bonus-icon {
    font-size: 32px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-header .avatar {
    width: 75px;
    height: 75px;
}

.avatar-letter {
    font-size: 35px;
    font-weight: 900;
    font-style: italic;
    color: #82eaff;
}

.user-details {
    min-width: 0;
}

.user-details h2 {
    font-size: 22px;
    overflow-wrap: anywhere;
    margin-bottom: 8px;
}

.user-details p {
    color: var(--muted);
    font-size: 14px;
}

.member {
    display: inline-block;
    margin-top: 9px;
    color: #56e6bb;
    font-size: 11px;
    letter-spacing: 1px;
}

.balance-card {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #e8b84a60;
    border-radius: 22px;
    background: linear-gradient(
        120deg, #30271b, #171b30
    );
}

.balance-card::after {
    content: "C";
    position: absolute;
    right: -10px;
    bottom: -45px;
    font-size: 190px;
    font-weight: 900;
    color: #ffce4509;
    pointer-events: none;
}

.balance-label {
    color: #dfc999;
    font-size: 12px;
    letter-spacing: 2px;
}

.balance {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 15px 0 9px;
}

.coin {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(
        145deg, #fff19c, #f7a500
    );
    border: 3px solid #ffe49a;
    color: #a66b00;
    font-weight: 900;
    font-size: 24px;
    box-shadow: 0 0 22px #ffce4540;
}

.balance-number {
    font-size: clamp(32px, 9vw, 46px);
    font-weight: 900;
    color: var(--gold);
    overflow-wrap: anywhere;
}

.balance-card small {
    color: var(--muted);
}

.section-title {
    margin: 27px 0 14px;
    color: #a6b4d5;
    font-size: 12px;
    letter-spacing: 2px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 12px;
    min-height: 85px;
    border: 1px solid #657aff35;
    border-radius: 16px;
    background: #14213c;
    transition: .2s;
}

.quick-item:active {
    transform: scale(.96);
}

.quick-item svg {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    fill: none;
    stroke: #62d9ff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-item h3 {
    font-size: 13px;
    margin-bottom: 5px;
}

.quick-item p {
    font-size: 10px;
    line-height: 1.6;
    color: var(--muted);
}

.logout-form {
    margin-top: 22px;
}

.form-title {
    font-size: 25px;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    color: #c4cde4;
}

.form-group input {
    width: 100%;
    height: 51px;
    padding: 0 15px;
    color: white;
    background: #080e20;
    border: 1px solid #3b496b;
    border-radius: 12px;
    outline: none;
    font-size: 16px;
}

.form-group input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 12px #00d9ff18;
}

.form-group input::placeholder {
    color: #64718e;
}

.form-footer {
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin-top: 22px;
}

.form-footer a {
    color: #64dfff;
    font-weight: bold;
}

.alert {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.8;
}

.alert-error {
    background: #ff386515;
    border: 1px solid #ff386550;
    color: #ff9ab0;
}

.alert-success {
    background: #10b98112;
    border: 1px solid #10b98145;
    color: #6ee7b7;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 650px;
    display: flex;
    justify-content: space-around;
    padding: 12px 10px;
    padding-bottom: calc(
        12px + env(safe-area-inset-bottom)
    );
    background: #101526ed;
    backdrop-filter: blur(20px);
    border-top: 1px solid #ffffff15;
    border-radius: 24px 24px 0 0;
    z-index: 100;
}

.bottom-nav a {
    width: 30%;
    padding: 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    color: #8994b1;
    font-size: 11px;
}

.bottom-nav svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav .active {
    color: #52dfff;
    background: #00c6ff12;
}

@media (max-width: 350px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }
}