:root{--bg:#09090f;--panel:#12121d;--line:#29283b;--muted:#9693aa;--purple:#a17aff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f4f2fb;font:14px Inter,system-ui,Segoe UI,sans-serif}aside{position:fixed;inset:0 auto 0 0;width:225px;background:#0e0e17;border-right:1px solid var(--line);padding:28px 17px;display:flex;flex-direction:column}.logo{font-size:20px;margin:0 0 42px}.logo:first-letter{color:#a17aff}.logo span,.mobilelogo span{color:#aa8aff}aside small,section>small,.intro small,.heading small,.panel>small{color:#8d89a3;font-size:10px;letter-spacing:1.5px;font-weight:800}nav{display:grid;gap:7px;margin-top:13px}nav button{background:none;border:0;text-align:left;color:#aaa7bc;padding:13px;border-radius:9px;cursor:pointer}nav button.active,nav button:hover{background:#241d37;color:#c6b0ff}.sidefoot{margin-top:auto;color:#8d89a3;font-size:11px}.sidefoot i{float:right}main{margin-left:225px;padding:0 40px 35px;max-width:1500px}header{height:73px;border-bottom:1px solid #20202e;display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.crumb{font-size:12px;color:#8f8ca2}.crumb b{color:#e2def0}.user{display:flex;align-items:center;gap:10px;font-size:12px}.user b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#a27aff,#536ce8)}.mobilelogo{display:none}.page{display:none}.page.active{display:block}h1{font-size:38px;letter-spacing:-1.5px;margin:8px 0}h2{font-size:23px;margin:5px 0}h3{font-size:16px;margin:8px 0}em{font-style:normal;background:linear-gradient(90deg,#bd91ff,#7396ff);color:transparent;background-clip:text}p{color:var(--muted);line-height:1.6}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.intro p,.page>p{margin:0}.primary,.light{border:0;border-radius:8px;padding:11px 16px;background:linear-gradient(110deg,#9c6cf4,#6878ed);color:white;font-weight:700;cursor:pointer}.hero{padding:34px 38px;border:1px solid #44355f;border-radius:16px;background:radial-gradient(ellipse at 75%,#49316c,#1a1728 70%);position:relative;overflow:hidden;margin-bottom:32px;min-height:245px}.hero small{color:#c4b0ed}.hero h2{font-size:34px;line-height:1.1;margin:13px 0}.hero p{max-width:370px;color:#c0b8d3}.light{background:#f5f0ff;color:#2b2140}.orb{position:absolute;right:14%;top:55px;width:130px;height:130px;border-radius:40px;transform:rotate(15deg);display:grid;place-items:center;background:linear-gradient(135deg,#ae85ff,#536ce8);font-size:32px;font-weight:900;box-shadow:0 0 80px #9b72ff66}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.heading label{font-size:9px;color:#b39be9;border:1px solid #40345c;border-radius:5px;padding:5px 8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:15px}.stats article,.panel,.cards article{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px}.stats small{color:#aaa6bb}.stats b{display:block;font-size:28px;margin-top:7px}.stats p{font-size:10px;margin:0}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:14px}.quick{display:flex;align-items:center;gap:10px;width:100%;padding:15px 0;background:none;border:0;border-top:1px solid var(--line);color:#c9c5d7;text-align:left;cursor:pointer}.quick span{margin-left:auto;color:#9f83ed}.quick b{font-size:12px}.pills{display:flex;gap:6px;flex-wrap:wrap}.pills i{font-style:normal;font-size:10px;padding:6px 9px;border-radius:20px;background:#28203a;color:#c7adff}.page>input{display:block;margin:20px 0;width:min(420px,100%);padding:12px;background:#11111b;border:1px solid var(--line);border-radius:8px;color:white}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:20px}.cards article{padding:17px}.cards article p{font-size:12px;min-height:36px}.tag{display:inline-block;color:#c5aaff;background:#29213b;padding:4px 7px;border-radius:5px;font-size:10px}.cards a,#previewlinks a{display:inline-block;margin:8px 5px 0 0;padding:6px 8px;background:#29213b;border-radius:6px;color:#c8afff;text-decoration:none;font-size:10px}.notice,.tip{margin-top:20px;padding:13px;background:#211b32;border:1px solid #41335d;border-radius:9px;color:#c8b3f5;font-size:12px}.pointsbox{margin:22px 0;padding:22px;background:linear-gradient(110deg,#302346,#20213a);border:1px solid #51406c;border-radius:12px;color:#bda5f3;font-size:10px;letter-spacing:1px}.pointsbox h2{font-size:32px;color:white;letter-spacing:0}.pointsbox small{letter-spacing:0}.task{display:flex;align-items:center;gap:12px;margin:10px 0;padding:15px;background:var(--panel);border:1px solid var(--line);border-radius:10px}.task div{flex:1}.task b{font-size:12px}.task p{font-size:10px;margin:3px 0}.task strong{font-size:11px;color:#c4a5ff}.task button{background:#2b2240;border:1px solid #51406b;color:#d8c7ff;border-radius:7px;padding:8px 12px;cursor:pointer}.task button:disabled{opacity:.5}.panel label{display:block;font-size:11px;color:#aaa7bc;margin:14px 0}.panel input,.panel textarea,.panel select{display:block;width:100%;margin-top:6px;padding:11px;background:#0c0c14;border:1px solid #302e43;border-radius:7px;color:#eee;font:12px inherit}.panel textarea{resize:vertical}.panel .primary{margin-top:5px}.socialrow{display:flex;align-items:center;gap:8px;padding:9px;background:#191925;border:1px solid #2d2b3d;border-radius:7px;margin:8px 0}.socialrow a{color:#c4a5ff;text-decoration:none;font-size:10px;overflow:hidden;text-overflow:ellipsis;flex:1}.socialrow button{background:none;border:0;color:#aaa;cursor:pointer}.preview{margin-top:14px}.preview h3{font-size:20px}.preview p{font-size:12px}footer{padding:35px 0 5px;color:#666379;font-size:10px}#toast{position:fixed;bottom:22px;right:22px;padding:12px 17px;background:#302346;border:1px solid #65508b;border-radius:8px;color:#eee;opacity:0;transition:.2s;pointer-events:none}#toast.show{opacity:1}.empty{color:#8c899e;padding:20px;text-align:center;border:1px dashed #39364c;border-radius:9px}@media(max-width:950px){main{padding:0 22px 30px}.cards{grid-template-columns:repeat(2,1fr)}.orb{right:5%;opacity:.65}}@media(max-width:650px){aside{inset:auto 0 0;width:100%;height:62px;padding:4px 5px;border:0;border-top:1px solid var(--line);z-index:4}aside .logo,aside>small,.sidefoot{display:none}nav{display:flex;margin:0;justify-content:space-around;gap:0}nav button{font-size:9px;padding:8px 4px;flex:1;text-align:center}main{margin:0;padding:0 14px 85px}header{height:57px;margin-bottom:25px}.crumb{display:none}.mobilelogo{display:block;font-size:14px;font-weight:800}.intro{align-items:flex-start;gap:8px}.intro h1,.page h1{font-size:29px}.intro .primary{font-size:10px;padding:9px}.hero{padding:25px 20px;min-height:240px}.hero h2{font-size:29px}.orb{right:-30px;opacity:.22}.stats{grid-template-columns:1fr 1fr}.stats article:last-child{grid-column:1/-1}.twocol{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.task{gap:8px;padding:11px}.task strong{white-space:nowrap}.task button{padding:7px}.panel{padding:15px}}


/* CreatorVerse 0.8.22 — account dropdown and refreshed home dashboard */
header { position: relative; z-index: 30; }
.user-menu-root { position: relative; display: flex; align-items: center; }
.user-account-trigger {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 5px 8px 5px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #f2effb;
    font: inherit;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
.user-account-trigger:hover,
.user-account-trigger[aria-expanded="true"] {
    background: #191725;
    border-color: rgba(174, 145, 235, .28);
}
.user-account-name {
    max-width: 190px;
    overflow: hidden;
    color: #eeeaf8;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-avatar-wrap {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 2px;
    overflow: hidden;
    border: 1px solid rgba(190, 160, 255, .48);
    border-radius: 50%;
    background: linear-gradient(135deg, #a27aff, #536ce8);
    box-shadow: 0 5px 18px rgba(117, 83, 202, .22);
}
.user-account-trigger #topavatar,
.user-account-trigger .top-avatar-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}
.user-account-trigger .top-avatar-image[hidden],
.user-account-trigger #topavatar[hidden] { display: none !important; }
.user-avatar-caret {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #a9a1bb;
    font-size: 14px;
    line-height: 1;
    transition: transform .18s ease;
}
.user-account-trigger[aria-expanded="true"] .user-avatar-caret { transform: rotate(180deg); }
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 100;
    width: min(280px, calc(100vw - 28px));
    padding: 9px;
    border: 1px solid rgba(169, 139, 224, .28);
    border-radius: 16px;
    background: rgba(19, 18, 30, .98);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .48);
    backdrop-filter: blur(16px);
}
.user-menu[hidden] { display: none !important; }
.user-menu-heading { padding: 10px 11px 12px; border-bottom: 1px solid var(--line); margin-bottom: 7px; }
.user-menu-heading small { display: block; color: #918aa8; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.user-menu-heading strong { display: block; margin-top: 5px; color: #f3efff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu > button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #e8e2f7;
    text-align: left;
    cursor: pointer;
}
.user-menu > button:hover,
.user-menu > button:focus-visible { outline: none; background: #28213a; }
.user-menu > button > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.user-menu > button b { font-size: 13px; font-weight: 700; }
.user-menu > button small { color: #9690a9; font-size: 10px; }
.user-menu-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid rgba(171, 136, 235, .24); border-radius: 10px; background: #29213d; color: #c6a9ff; font-size: 18px; }

/* Home header and introduction */
.home-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 5px 0 23px;
}
.home-welcome-copy > small,
.home-panel-heading small {
    color: #9e91bd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}
.home-welcome h1 { margin: 8px 0 5px; font-size: clamp(30px, 3.5vw, 39px); line-height: 1.12; letter-spacing: -1.5px; }
.home-welcome p { margin: 0; color: #9e9aaf; font-size: 13px; }
.home-edit-profile { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 12px 17px; border-radius: 10px; }
.home-edit-profile span { font-size: 17px; line-height: 1; }

/* Wallet onboarding card */
.home-wallet-prompt {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    padding: 17px 19px;
    border: 1px solid rgba(160, 125, 232, .38);
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(83, 54, 137, .34), rgba(28, 29, 54, .92));
    box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
}
.home-wallet-prompt[hidden] { display: none !important; }
.home-wallet-prompt-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(145deg, #a77cff, #536ce8); color: #fff; font-size: 25px; box-shadow: 0 8px 24px rgba(132, 91, 220, .24); }
.home-wallet-prompt-copy small { color: #bea8ee; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; }
.home-wallet-prompt-copy h3 { margin: 4px 0 3px; font-size: 16px; }
.home-wallet-prompt-copy p { margin: 0; max-width: 520px; font-size: 11px; }
.home-wallet-prompt-button { white-space: nowrap; padding: 12px 16px; }
.home-wallet-prompt-button span { margin-left: 7px; font-size: 17px; vertical-align: -1px; }

/* Main hero */
.home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 275px;
    margin: 0 0 30px;
    padding: 34px 40px;
    border: 1px solid #44355f;
    border-radius: 20px;
    background:
        radial-gradient(circle at 78% 48%, rgba(119, 83, 183, .32), transparent 28%),
        linear-gradient(112deg, #211a32 0%, #191827 58%, #171a2c 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 45px rgba(0,0,0,.13);
}
.home-hero .hero-content { position: relative; z-index: 2; max-width: 590px; }
.home-hero small { color: #c4b0ed; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.home-hero h2 { margin: 14px 0 10px; font-size: clamp(32px, 3.6vw, 42px); line-height: 1.06; letter-spacing: -1.5px; }
.home-hero p { max-width: 450px; margin: 0 0 18px; color: #bdb6cf; font-size: 13px; }
.home-hero .light { display: inline-flex; align-items: center; gap: 12px; padding: 11px 15px; border-radius: 9px; font-size: 12px; }
.home-hero .light span { font-size: 17px; }
.hero-art { position: relative; flex: 0 0 32%; align-self: stretch; min-width: 190px; min-height: 195px; }
.home-hero .orb {
    position: absolute;
    top: 50%;
    right: 20%;
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 34px;
    background: linear-gradient(145deg, #b18aff, #6578ee 78%);
    box-shadow: 0 0 75px rgba(152, 112, 255, .38), inset 0 1px 0 rgba(255,255,255,.34);
    color: #fff;
    font-size: 31px;
    font-weight: 900;
    transform: translate(50%, -50%) rotate(11deg);
}
.hero-orbit { position: absolute; top: 50%; right: 20%; border: 1px solid rgba(190, 164, 255, .28); border-radius: 50%; transform: translate(50%, -50%); }
.hero-orbit-one { width: 188px; height: 188px; }
.hero-orbit-two { width: 245px; height: 245px; border-style: dashed; opacity: .55; }
.hero-spark { position: absolute; color: #d4c0ff; }
.hero-spark-one { top: 20%; right: 7%; font-size: 22px; }
.hero-spark-two { bottom: 12%; right: 46%; font-size: 42px; opacity: .6; }

/* Dashboard metrics and lower panels */
.home-section-heading { margin: 0 0 13px; }
.home-section-heading h2 { margin: 4px 0 0; font-size: 22px; }
.home-section-note { color: #817b95; font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.home-stats { gap: 14px; margin-bottom: 16px; }
.home-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px !important;
    border-radius: 15px !important;
    background: linear-gradient(145deg, #151522, #11111b) !important;
    transition: border-color .18s ease, transform .18s ease;
}
.home-stat-card:hover { border-color: #48405f; transform: translateY(-2px); }
.home-stat-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid rgba(171,136,235,.2); border-radius: 13px; background: #29213d; color: #c7aaff; font-size: 19px; }
.home-stat-copy { min-width: 0; }
.home-stat-copy small { color: #aaa6bb; font-size: 11px; }
.home-stat-copy b { display: block; margin-top: 5px; font-size: 26px; line-height: 1.1; }
.home-stat-copy p { margin: 4px 0 0; font-size: 10px; }
.home-lower-grid { gap: 15px; }
.home-panel { min-height: 230px; padding: 20px !important; border-radius: 15px !important; }
.home-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.home-panel-heading h3,
.home-community-panel h3 { margin: 5px 0 8px; font-size: 17px; }
.home-panel-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #29213d; color: #c9adff; font-size: 18px; }
.home-panel .quick { gap: 12px; padding: 12px 0; border-top-color: rgba(55,52,72,.72); }
.home-panel .quick-icon { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin: 0; border-radius: 10px; background: #28203b; color: #c9adff; font-size: 17px; }
.home-panel .quick b { font-size: 12px; font-weight: 600; }
.home-panel .quick-arrow { margin-left: auto; color: #9f83ed; font-size: 18px; }
.home-community-panel p { max-width: 430px; margin: 6px 0 14px; font-size: 12px; }
.home-community-panel .pills { gap: 7px; }
.home-community-panel .pills i { padding: 7px 10px; border: 1px solid rgba(158,127,218,.13); background: #211b31; font-size: 10px; }
.home-text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; padding: 0; border: 0; background: transparent; color: #c5a5ff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.home-text-link span { font-size: 17px; }

@media (max-width: 950px) {
    .home-hero { padding: 30px; }
    .hero-art { flex-basis: 28%; min-width: 155px; }
    .home-hero .orb { width: 108px; height: 108px; }
    .hero-orbit-one { width: 164px; height: 164px; }
    .hero-orbit-two { width: 210px; height: 210px; }
}
@media (max-width: 650px) {
    header { z-index: 30; }
    .user-account-trigger { min-height: 42px; gap: 7px; padding: 3px 5px 3px 7px; }
    .user-account-name { max-width: 94px; font-size: 11px; }
    .user-avatar-wrap { flex-basis: 36px; width: 36px; height: 36px; }
    .user-avatar-caret { width: 14px; font-size: 12px; }
    .user-menu { top: calc(100% + 8px); }
    .home-welcome { align-items: flex-start; gap: 12px; margin-top: 0; }
    .home-welcome h1 { font-size: 28px; letter-spacing: -1px; }
    .home-welcome p { max-width: 280px; font-size: 11px; }
    .home-edit-profile { padding: 9px 10px; gap: 6px; font-size: 10px; white-space: nowrap; }
    .home-wallet-prompt { grid-template-columns: 46px minmax(0, 1fr); gap: 11px; margin-bottom: 18px; padding: 14px; }
    .home-wallet-prompt-icon { width: 46px; height: 46px; border-radius: 13px; font-size: 23px; }
    .home-wallet-prompt-copy h3 { font-size: 14px; }
    .home-wallet-prompt-copy p { font-size: 10px; }
    .home-wallet-prompt-button { grid-column: 1 / -1; width: 100%; }
    .home-hero { min-height: 250px; padding: 24px 21px; border-radius: 16px; }
    .home-hero .hero-content { max-width: 75%; }
    .home-hero small { font-size: 8px; }
    .home-hero h2 { font-size: 29px; }
    .home-hero p { font-size: 11px; }
    .hero-art { position: absolute; inset: 0 0 0 auto; width: 43%; min-width: 0; opacity: .56; }
    .home-hero .orb { right: 25%; width: 78px; height: 78px; border-radius: 23px; font-size: 22px; }
    .hero-orbit { right: 25%; }
    .hero-orbit-one { width: 125px; height: 125px; }
    .hero-orbit-two { width: 165px; height: 165px; }
    .hero-spark-one { right: 5%; }
    .home-section-heading h2 { font-size: 19px; }
    .home-section-note { display: none; }
    .home-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
    .home-stat-card { gap: 9px; padding: 13px !important; }
    .home-stat-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
    .home-stat-copy small { font-size: 10px; }
    .home-stat-copy b { font-size: 22px; }
    .home-stat-copy p { font-size: 9px; }
    .home-stats article:last-child { grid-column: 1 / -1; }
    .home-panel { min-height: 0; padding: 16px !important; }
    .home-lower-grid { grid-template-columns: 1fr; }
}


/* CreatorVerse 0.8.23 — clearer mobile bottom navigation */
@media (max-width: 650px) {
    aside {
        height: calc(66px + env(safe-area-inset-bottom, 0px));
        padding: 4px 6px max(4px, env(safe-area-inset-bottom, 0px));
    }

    aside > nav {
        align-items: stretch;
        gap: 2px;
        height: 100%;
    }

    aside > nav button {
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 54px;
        padding: 4px 2px;
        border-radius: 10px;
        font-size: 8px;
        line-height: 1.1;
        white-space: nowrap;
    }

    aside > nav .nav-icon {
        display: block;
        font-size: 23px;
        line-height: 1;
        margin: 0;
    }

    aside > nav button > span:not(.nav-icon) {
        display: block;
        font-size: 8px;
        line-height: 1.1;
        letter-spacing: .05px;
    }

    main { padding-bottom: calc(91px + env(safe-area-inset-bottom, 0px)); }
}

/* 0.8.24 — persistent Home reminder until TON Proof succeeds */
.home-wallet-prompt.is-verification-required {
    border-color: rgba(224, 164, 83, .55);
    background: linear-gradient(108deg, rgba(119, 77, 30, .27), rgba(39, 31, 39, .96));
    box-shadow: 0 12px 32px rgba(99, 61, 24, .13);
}
.home-wallet-prompt.is-verification-required .home-wallet-prompt-icon {
    border: 1px solid rgba(255, 216, 160, .35);
    background: linear-gradient(145deg, #dba45f, #9d622e);
    color: #24170a;
    font-weight: 900;
}
.home-wallet-prompt.is-verification-required .home-wallet-prompt-copy small { color: #e7b879; }
.home-wallet-prompt.is-verification-required .home-wallet-prompt-button {
    background: linear-gradient(115deg, #b87835, #d99c52);
    color: #1e160d;
    box-shadow: 0 7px 20px rgba(176, 111, 39, .2);
}
.home-wallet-prompt.is-verification-required .home-wallet-prompt-button:hover { filter: brightness(1.08); }
@media(max-width:650px) {
    .home-wallet-prompt.is-verification-required { border-radius: 14px; }
}


/* CreatorVerse 0.8.27 — sticky header, compact account menu and searchable language picker */
.app-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(9, 9, 15, .88);
    border-bottom: 1px solid rgba(68, 62, 91, .58);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.user-menu {
    width: min(252px, calc(100vw - 24px));
    padding: 7px;
    border-radius: 14px;
    background: rgba(18, 17, 29, .985);
}
.user-menu-heading {
    padding: 7px 9px 9px;
    margin-bottom: 5px;
}
.user-menu-heading small { font-size: 8px; letter-spacing: 1.25px; }
.user-menu-heading strong { margin-top: 3px; font-size: 12px; }
.user-menu > button {
    gap: 9px;
    padding: 8px 9px;
    border-radius: 9px;
}
.user-menu > button > span:last-child { gap: 2px; }
.user-menu > button b {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}
.user-menu > button small { font-size: 9px; }
.user-menu-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
}

.user-language-picker {
    position: relative;
    margin: 6px 1px 1px;
    padding: 7px 1px 1px;
    border-top: 1px solid rgba(64, 59, 82, .76);
}
.language-picker-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(110deg, rgba(42, 34, 62, .82), rgba(27, 29, 48, .78));
    color: #f1edfb;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}
.language-picker-trigger:hover,
.language-picker-trigger[aria-expanded="true"] {
    border-color: rgba(171, 139, 235, .38);
    background: linear-gradient(110deg, rgba(55, 42, 81, .92), rgba(35, 37, 61, .9));
}
.language-picker-icon {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(185, 157, 255, .22);
    border-radius: 9px;
    background: rgba(161, 122, 255, .14);
    color: #d3bdff;
    font-size: 13px;
    font-weight: 800;
}
.language-picker-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.language-picker-copy small { color: #a69eb8; font-size: 9px; font-weight: 700; letter-spacing: .35px; }
.language-picker-copy strong { overflow: hidden; color: #f3efff; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.language-mode-badge { color: #aa92df; font-size: 8px; line-height: 1.1; }
.language-picker-caret { color: #aaa1bb; font-size: 15px; transition: transform .18s ease; }
.language-picker-trigger[aria-expanded="true"] .language-picker-caret { transform: rotate(180deg); }
.language-picker-panel {
    margin: 7px 1px 1px;
    padding: 7px;
    border: 1px solid rgba(160, 132, 214, .25);
    border-radius: 11px;
    background: rgba(11, 11, 19, .96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.language-picker-panel[hidden] { display: none !important; }
.language-search-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 35px;
    padding: 0 9px;
    border: 1px solid #3a3450;
    border-radius: 8px;
    background: #151420;
    color: #a99abb;
}
.language-search-wrap > span { font-size: 20px; line-height: 1; }
.language-search-wrap input {
    width: 100%;
    min-width: 0;
    padding: 7px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f3efff;
    font: inherit;
    font-size: 11px;
}
.language-search-wrap input::placeholder { color: #777186; }
.language-search-wrap:focus-within { border-color: #9a79df; box-shadow: 0 0 0 2px rgba(161, 122, 255, .12); }
.language-options {
    display: grid;
    gap: 2px;
    max-height: 190px;
    margin-top: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #51466a transparent;
}
.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 31px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #d4cfe1;
    font: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}
.language-option:hover,
.language-option:focus-visible { outline: none; border-color: rgba(162, 126, 225, .24); background: #211b31; }
.language-option[aria-selected="true"] { border-color: rgba(162, 126, 225, .32); background: #29213d; color: #e5d8ff; }
.language-option-check { color: #bd9dff; font-size: 13px; opacity: 0; }
.language-option[aria-selected="true"] .language-option-check { opacity: 1; }
.language-no-results { margin: 0; padding: 13px 7px 8px; color: #8f899e; font-size: 10px; text-align: center; }
.language-no-results[hidden] { display: none !important; }
.language-native-select { display: none !important; }

@media (max-width: 650px) {
    .app-header {
        top: 0;
        margin-left: -14px;
        margin-right: -14px;
        padding: 0 14px;
        background: rgba(9, 9, 15, .94);
    }
    .user-menu {
        width: min(248px, calc(100vw - 20px));
        max-height: min(78vh, 520px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .language-options { max-height: min(26vh, 170px); }
}


/* CreatorVerse 0.8.28 — respect Telegram Mini App top safe/content areas.
   Telegram exposes device and Telegram-UI insets as separate CSS variables. */
:root {
    --cv-telegram-top-offset: calc(
        var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) +
        var(--tg-content-safe-area-inset-top, 0px)
    );
}

/* Keep the page's initial content below Telegram's top chrome, not behind it. */
main {
    padding-top: var(--cv-telegram-top-offset);
}

/* Keep the sticky header aligned to the same safe starting edge while scrolling. */
.app-header {
    top: var(--cv-telegram-top-offset);
    scroll-margin-top: var(--cv-telegram-top-offset);
}


/* CreatorVerse 0.8.29 — mobile-first layout hardening for long translations.
   Keep the desktop composition unchanged; on phones stack actions and allow
   localized labels to wrap instead of forcing horizontal overflow. */
@media (max-width: 650px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    main,
    .page,
    .home-welcome,
    .home-welcome-copy,
    .profile-editor-grid,
    .profile-editor-grid > *,
    .panel,
    .home-panel,
    .home-stat-card,
    .home-wallet-prompt,
    .home-wallet-prompt-copy,
    .home-hero,
    .home-hero .hero-content {
        min-width: 0;
        max-width: 100%;
    }

    /* A translated action no longer competes for width with the greeting. */
    .home-welcome {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .home-welcome-copy { width: 100%; }
    .home-welcome-copy > small {
        display: block;
        max-width: 100%;
        font-size: 9px;
        line-height: 1.4;
        letter-spacing: .9px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .home-welcome h1 {
        max-width: 100%;
        font-size: clamp(25px, 7.1vw, 30px);
        line-height: 1.14;
        letter-spacing: -1px;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
    }
    .home-welcome p {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
    .home-edit-profile {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        padding: 11px 14px;
        font-size: 12px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .home-edit-profile span {
        flex: 0 0 auto;
        margin: 0;
    }

    /* Long uppercase status labels and translated verification text may wrap. */
    .home-wallet-prompt {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
    }
    .home-wallet-prompt-copy { min-width: 0; }
    .home-wallet-prompt-copy small {
        display: block;
        font-size: 8px;
        line-height: 1.4;
        letter-spacing: .55px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .home-wallet-prompt-copy h3,
    .home-wallet-prompt-copy p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .home-wallet-prompt-button {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    /* Keep translated hero copy and calls to action inside the card. */
    .home-hero .hero-content { max-width: min(82%, 100%); }
    .home-hero small {
        display: block;
        max-width: 100%;
        line-height: 1.4;
        letter-spacing: .7px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .home-hero h2,
    .home-hero p { max-width: 100%; overflow-wrap: anywhere; }
    .home-hero .light {
        max-width: 100%;
        flex-wrap: wrap;
        white-space: normal;
        line-height: 1.25;
        text-align: center;
    }

    /* Buttons and task rows should wrap rather than enlarge the page. */
    .page button,
    .page .primary,
    .page .light,
    .task button {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.25;
    }
    .intro {
        flex-wrap: wrap;
        min-width: 0;
    }
    .intro > *,
    .heading > *,
    .home-panel-heading > * { min-width: 0; max-width: 100%; }
    .task {
        align-items: flex-start;
        flex-wrap: wrap;
        min-width: 0;
    }
    .task > div { flex: 1 1 150px; min-width: 0; }
    .task b,
    .task p,
    .task strong { overflow-wrap: anywhere; white-space: normal; }

    /* Long account names and translated menu labels are ellipsized/wrapped. */
    .user-account-trigger {
        min-width: 0;
        max-width: calc(100vw - 130px);
    }
    .user-account-name {
        min-width: 0;
        max-width: clamp(48px, 22vw, 94px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .user-menu {
        left: auto;
        right: 0;
        max-width: calc(100vw - 24px);
    }
    .user-menu > button > span:last-child,
    .user-menu > button b,
    .user-menu > button small {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    /* Navigation labels may be longer in German, French, or Serbian. */
    aside > nav button > span:not(.nav-icon) {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }
}

@media (max-width: 360px) {
    main { padding-left: 12px; padding-right: 12px; }
    .home-hero { padding: 21px 16px; }
    .home-hero .hero-content { max-width: 88%; }
    .home-hero .hero-art { width: 35%; opacity: .38; }
    .home-stats { grid-template-columns: minmax(0, 1fr); }
    .home-stats article:last-child { grid-column: auto; }
    .home-stat-card { padding: 12px !important; }
    .home-stat-copy b { font-size: 20px; }
    .home-wallet-prompt { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 11px; }
    .home-wallet-prompt-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 19px; }
    .user-account-name { max-width: 56px; }
}
