/* ,-.----.                               ___      .--.--.*/
/* \    /  \                            ,--.'|_   /  /    '.                           ,---,*/
/* ;   :    \          ,--,             |  | :,' |  :  /`. /                         ,---.'|*/
/* |   | .\ :        ,'_ /|   .--.--.   :  : ' : ;  |  |--`                          |   | :*/
/* .   : |: |   .--. |  | :  /  /    '.;__,'  /  |  :  ;_       ,---.     ,---.      |   | |*/
/* |   |  \ : ,'_ /| :  . | |  :  /`./|  |   |    \  \    `.   /     \   /     \   ,--.__| | */
/* |   : .  / |  ' | |  . . |  :  ;_  :__,'| :     `----.   \ /    /  | /    /  | /   ,'   | */
/* ;   | |  \ |  | ' |  | |  \  \    `. '  : |__   __ \  \  |.    ' / |.    ' / |.   '  /  | */
/* |   | ;\  \:  | : ;  ; |   `----.   \|  | '.'| /  /`--'  /'   ;   /|'   ;   /|'   ; |:  |*/
/* :   ' | \.''  :  `--'   \ /  /`--'  /;  :    ;'--'.     / '   |  / |'   |  / ||   | '/  ' */
/* :   : :-'  :  ,      .-./'--'.     / |  ,   /   `--'---'  |   :    ||   :    ||   :    :| */
/* |   |.'     `--`----'      `--'---'   ---`-'               \   \  /  \   \  /  \   \  /   */
/* `---'                                                       `----'    `----'    `----'*/
/*//*/


:root{
    --bg:#131821;
    --panel:#1b2130;
    --panel-2:#20283a;
    --stroke:#2a3345;
    --text:#edf1f7;
    --muted:#a8b2c3;
    --accent:#6ee7b7;
    --accent-2:#a7f3d0;
    --yellow:#fde047;
    --shadow:0 12px 36px rgba(0,0,0,.32);
    --glass:rgba(255,255,255,.03);
    --warn:    #f4b740;
    --warn-2:  #ffe6b3;
    --warn-bg1: rgba(244,183,64,.14);
    --warn-bg2: rgba(244,183,64,.06);
}


*{box-sizing:border-box}
html,body{height:100%}
body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, Noto Sans;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased
}

main[role="main"]{
    flex:1 0 auto;
    width:100%;
}

.bg-fixed{
    position:fixed; inset:0; z-index:0; pointer-events:none;
    background:
            radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
            radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
            linear-gradient(180deg, rgba(0,0,0,0.08), transparent 60%);
    background-size:24px 24px,48px 48px, cover;
    mix-blend-mode:overlay;
    filter: blur(0.3px);
}

.container{max-width:1120px;margin:0 auto;padding:28px;position:relative;z-index:2}
.section{padding:44px 0}
.row{display:flex;gap:12px;align-items:center}
.row.center{align-items:center}
.row.between{display:flex;justify-content:space-between;align-items:center}

.h1{font-size:38px;line-height:1.05;margin:0}
.h2{font-size:26px;margin:0}
.h3{font-size:18px;margin:0}
.muted{color:var(--muted);font-size:14px}
.accent{color:var(--accent);font-weight:700}

.topbar{position:sticky;top:0;z-index:10;background:rgba(23,26,33,.7);backdrop-filter:blur(8px);border-bottom:1px solid var(--stroke)}
.topbar .brand{font-weight:700;text-decoration:none;color:var(--text);padding:10px 0}
.topbar .container{display:flex;align-items:center;justify-content:space-between}
.nav a{color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:10px}
.nav a:hover{background:var(--panel-2);color:var(--text)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid var(--stroke);background:var(--panel);color:var(--text);cursor:pointer;text-decoration:none}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(180deg,var(--accent-2),var(--accent));color:#071017;border-color:transparent}
.btn.ghost{background:transparent;border-color:var(--stroke);color:var(--text)}
.btn.lg{padding:12px 18px;border-radius:14px}

.card{
    background:
            linear-gradient(120deg, rgba(110,231,183,0.03), transparent 40%),
            var(--panel);
    border:1px solid var(--stroke);
    border-radius:16px;
    box-shadow:var(--shadow);
}

.btn{border-radius:14px}
.badge{background:rgba(255,255,255,.04);border-color:#2e3a50}

.grid{display:grid;gap:18px}
.hero-grid{grid-template-columns:1.2fr .8fr;display:grid;gap:20px;align-items:center}
@media(max-width:940px){.hero-grid{grid-template-columns:1fr}}

.file-drop{height:150px;display:grid;place-items:center;border-radius:12px;background:var(--glass);border:1px dashed var(--stroke);margin-bottom:12px}
.progress{height:8px;background:#0b0c0f;border-radius:999px;overflow:hidden;border:1px solid var(--stroke)}
.progress > div{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));}

.pricing-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}
@media (max-width:960px){
    .pricing-grid{ grid-template-columns: 1fr; }
}

.price{
    position: relative;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;

    background:
            linear-gradient(120deg, rgba(110,231,183,0.03), transparent 40%),
            var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: var(--shadow);

    overflow: visible;
    transition: transform .15s ease;
}

.price .price-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price .price-name{
    color: #dbe4ee;
    font-weight: 800;
    letter-spacing: .02em;
}

.price .billing-toggle{
    position: relative; z-index: 1;
    display: inline-flex; gap: 0;
    background: var(--panel-2);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 4px;
}
.price .billing-toggle input{ display: none }
.price .billing-toggle label{
    padding: 6px 10px; cursor: pointer; user-select: none; color: var(--muted);
    border-radius: 999px; font-weight: 600; font-size: 13px; line-height: 1;
}
.price .billing-toggle input:checked + label{
    background: linear-gradient(180deg,var(--accent-2),var(--accent));
    color: #061016;
}
.price .billing-toggle .pill{
    display: inline-block; padding: 2px 6px; border-radius: 999px;
    background: #13261f; color: #31c48d; margin-left: 6px; font-weight: 700; font-size: 11px;
}

.price .price-money{ font-size: 34px; font-weight: 800 }
.price .rub{ opacity: .9; font-weight: 700 }
.price .per{ color: var(--muted); font-size: 14px; margin-left: 4px }
.price .price-save{ color: #31c48d; font-size: 13px; font-weight: 700; min-height: 18px }

.price .features{
    list-style: none; padding: 0; margin: 6px 0 12px;
    color: var(--text); display: grid; gap: 8px;
}
.price .features li{ position: relative; padding-left: 22px }
.price .features li::before{
    content: "✓"; position: absolute; left: 0; top: 0; line-height: 1.2;
    color: var(--accent); font-weight: 900;
}

.price > .btn{ margin-top: auto }

.price:hover{ transform: translateY(-2px); }

.price .tag{
    position: absolute;
    top: 12px; right: 12px;
    background: var(--yellow); color: #111;
    padding: 4px 8px; border-radius: 8px;
    font-weight: 800; font-size: 12px;
}

.tag.tag-choice{
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;

    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 999px;
    font-weight: 800; font-size: 12px; letter-spacing: .03em;
    color: #061016;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 18px rgba(110,231,183,.25);
    z-index: 2;
}
.tag.tag-choice .tag-ico{ font-size: 12px; line-height: 1 }

.price.popular.featured{
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(110,231,183,.10), var(--shadow);
    outline: none;
    z-index: 1;
}
.price.popular.featured::before{
    content:"";
    position:absolute; inset:-2px; border-radius:18px;
    background: linear-gradient(135deg, rgba(110,231,183,.35), rgba(167,243,208,.12), transparent 50%);
    -webkit-mask:
            radial-gradient(transparent 0 0) content-box,
            radial-gradient(transparent 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    padding:2px;
    pointer-events:none;
}

@media (max-width:960px){
    .price.popular.featured{ transform: none; }
    .price.popular.featured:hover{ transform: none; }
}

.card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media(max-width:820px){.card-grid{grid-template-columns:1fr}}
.map{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px;border-radius:12px;border:1px solid var(--stroke);background:var(--panel)}
.map .meta{color:var(--muted);font-size:13px}
.actions{display:flex;gap:8px;align-items:center}

.account-plan{padding:12px;max-width:420px}
.account-plan .label{font-size:12px;color:var(--muted)}
.account-plan .value{font-weight:700;font-size:18px}
.usage-text{color:var(--muted);font-size:13px;margin-top:8px}

.footer{border-top:1px solid var(--stroke);padding:16px 0;color:var(--muted)}

.badges{display:flex;gap:8px;flex-wrap:wrap}
.badge{background:rgba(255,255,255,.03);padding:6px 10px;border-radius:999px;border:1px solid var(--stroke);font-size:13px;color:var(--text)}

#uploadPanel { transition: all .18s ease; }
#uploadError { color:#f87171; }
.map.card { display:grid; grid-template-columns:1fr auto; gap:10px; padding:12px; align-items:center; }
.actions { display:flex; gap:8px; }

#uploadPanel { transition: all .14s ease; }
#uploadError { color:#f87171; }
.map.card { display:grid; grid-template-columns:1fr auto; gap:10px; padding:12px; align-items:center; }
.actions { display:flex; gap:8px; }

.section.hero { padding-top: 56px; }
.buttons-row { margin-bottom: 8px; }
.mt-3{margin-top:12px}.mt-6{margin-top:24px}
.w100{width:100%}

.flags-grid{
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 8px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;

    justify-content: start;
}

.flag-item{
    display:flex; align-items:center; gap:10px;
    padding:10px 12px; border-radius:12px;
    background:linear-gradient(120deg, rgba(110,231,183,0.03), transparent 40%), var(--panel);
    border:1px solid var(--stroke); box-shadow:var(--shadow);
    min-height:46px;
}

.flag-item .fi{
    --fi-size: 22px;
    width: var(--fi-size);
    height: var(--fi-size);
    border-radius:4px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset;
}

.footer-min{
    background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,0));
    border-top: 1px solid var(--stroke);
    box-shadow: 0 -1px 0 rgba(255,255,255,0.02) inset;
    backdrop-filter: blur(3px);
    margin-top: 36px;
}

.footer-grid{
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
    padding: 14px 0 16px;
    align-items: start;
}

.footer-col{ min-width: 0; }

.footer-brand{
    font-weight: 800;
    letter-spacing: .02em;
}

.footer-title{
    font-weight: 800;
    color: var(--text);
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding-left: 10px;
    border-left: 2px solid var(--accent);
    margin-bottom: 10px;
    line-height: 1.1;
}

.small{ font-size: 12px; }

.footer-list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-list a{
    color: var(--muted);
    text-decoration: none;
    transition: color .15s ease, text-decoration-color .15s ease;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.footer-list a:hover{
    color: var(--text);
    text-decoration: underline;
}

.footer-list a[target="_blank"]::after{
    content: "↗";
    font-size: 12px;
    opacity: .6;
    margin-left: 6px;
}

@media (max-width: 960px){
    .footer-grid{
        grid-template-columns: 1fr 1fr;
        row-gap: 18px;
    }
}

@media (max-width: 640px){
    .footer-grid{
        grid-template-columns: 1fr;
    }
}

.auth-wrap{ max-width: 520px; margin: 0 auto; }
.auth-head{ margin-bottom: 14px; }
.auth-card{ padding: 18px; }

.field{ display:grid; gap:6px; margin-bottom:12px; }
.label{ font-size:13px; color:var(--muted); }
.input{
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid var(--stroke);
    background: var(--panel-2);
    color: var(--text);
}
.input::placeholder{ color: #93a1b7; opacity:.7; }
.input:focus{
    outline: none;
    border-color: rgba(110,231,183,.7);
    box-shadow: 0 0 0 3px rgba(110,231,183,.15);
}

.error{ color:#f87171; font-size:12px; }
.alert{
    border-radius:12px;
    padding:10px 12px;
    margin-bottom:12px;
    border:1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
    font-size: 13px;
}
.alert.danger{ border-color: rgba(248,113,113,.35); color:#fecaca; }

.oauth-wrap{ margin-top:14px; }
.oauth-sep{
    display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12px; margin:8px 0 12px;
}
.oauth-sep::before, .oauth-sep::after{
    content:""; flex:1; height:1px; background: var(--stroke);
}
.oauth-sep span{ white-space:nowrap; }

.oauth-grid{ display:grid; gap:8px; }
.auth-foot{ text-align:center; margin-top:10px; }
.link{ color:var(--accent); text-decoration:none; }
.link:hover{ text-decoration:underline; }

.check{ display:flex; align-items:center; gap:8px; margin: 4px 0 10px; }
.check-input{
    width: 18px; height: 18px; cursor: pointer;
    accent-color: #30d3a3;
}
.check-label{ cursor:pointer; color: var(--muted); font-size: 14px; }

.auth-actions{
    display:flex; justify-content: space-between; align-items:center;
    margin-top: 10px;
}
.auth-actions .link{ font-size: 13px; }

.account-layout{
    display:grid;
    grid-template-columns: 1fr 320px;
    gap:20px;
    align-items:start;
}
@media (max-width: 980px){
    .account-layout{ grid-template-columns: 1fr; }
}

.account-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:12px;
}

.account-actions{ display:flex; gap:10px; align-items:center; }
.logout-form{ margin:0; }

.account-upload{ padding:16px; }

.nickname{ color:var(--accent); }

.mt-3{ margin-top:12px; }

.hint{
    color: var(--muted);
    font-size: 13px;
}

.account-header{
    display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
    margin-bottom:14px;
}
.account-header h1{
    margin:0;
    font-size:28px; line-height:1.1;
    letter-spacing:.01em;
}
.account-header .hint{ margin-top:4px }

.row.space{ justify-content:space-between; flex-wrap:wrap }

.account-upload{ padding:16px }
#uploadPanel{ transition: opacity .18s ease, transform .18s ease }
#uploadPanel[style*="display: block"]{ opacity:1; transform: translateY(0) }
#uploadPanel[style*="display: none"]{ opacity:0; transform: translateY(-6px) }

.file-drop.dashed{
    height:160px; display:grid; place-items:center;
    background: var(--glass);
    border: 1px dashed var(--stroke);
    border-radius: 14px;
    margin-bottom:12px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.file-drop.dashed:hover{
    border-color: rgba(110,231,183,.45);
    box-shadow: 0 0 0 3px rgba(110,231,183,.12) inset;
    background: linear-gradient(120deg, rgba(110,231,183,.04), transparent 40%), var(--glass);
}

#uploadName.input{
    background: var(--panel-2);
}
#uploadError{ color:#f87171; font-size:12px }

.btn.danger{
    background: linear-gradient(180deg, rgba(248,113,113,.15), rgba(248,113,113,.05));
    color:#fecaca;
    border-color: rgba(248,113,113,.35);
}
.btn.danger:hover{
    filter: brightness(1.06);
}

.quota{
    display:grid; grid-template-columns: 1fr auto; align-items:center; gap:12px;
}
.quota .bar{
    height:10px; border-radius:999px; overflow:hidden;
    background:#0b0c0f; border:1px solid var(--stroke);
    box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
}
.quota .bar .fill{
    height:100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: inset 0 0 16px rgba(110,231,183,.35);
    transition: width .35s ease;
}

.grid.cards{
    display:grid; gap:16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 920px){
    .grid.cards{ grid-template-columns: 1fr }
}

.grid.cards .card{
    padding:14px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.grid.cards .card:hover{
    transform: translateY(-2px);
    border-color: rgba(110,231,183,.22);
    box-shadow: 0 14px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(110,231,183,.12) inset;
}

.grid.cards .card .actions{
    display:flex; flex-direction:column; align-items:flex-end; gap:8px;
}

.grid.cards .card .hint:last-child{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size:12px; opacity:.85;
    word-break: break-all;
}

.aside .card{
    padding:16px;
}
.aside .card h3{
    margin:0 0 6px; font-size:16px;
}
.aside .card .list-decimal{
    margin:8px 0 0; padding-left: 18px; color: var(--muted);
}
.aside .card .list-decimal li{ margin: 4px 0 }

.actions .btn{ min-width: 140px }

.mt-2{ margin-top:8px }
.mt-3{ margin-top:12px }
.mt-4{ margin-top:16px }

.account-layout .account-cards{
    display:grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap:16px !important;
}
@media (max-width: 920px){
    .account-layout .account-cards{ grid-template-columns: 1fr !important; }
}

.account-layout .account-cards .card{
    padding:14px !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.account-layout .account-cards .card:hover{
    transform: translateY(-2px);
    border-color: rgba(110,231,183,.22);
    box-shadow: 0 14px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(110,231,183,.12) inset;
}

.account-layout .account-cards .card .actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    gap:8px !important;
}

.account-layout .account-cards .card .small,
.account-layout .account-cards .card .hint:last-child{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size:12px; opacity:.9; word-break:break-all;
}

#uploadPanel{ transition:opacity .18s ease, transform .18s ease }
#uploadPanel[style*="display: block"]{ opacity:1; transform:translateY(0) }
#uploadPanel[style*="display: none"]{ opacity:0; transform:translateY(-6px) }
.file-drop.dashed{
    height:160px; display:grid; place-items:center;
    background:var(--glass);
    border:1px dashed var(--stroke); border-radius:14px; margin-bottom:12px;
    transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.file-drop.dashed:hover{
    border-color:rgba(110,231,183,.45);
    box-shadow:0 0 0 3px rgba(110,231,183,.12) inset;
    background:linear-gradient(120deg, rgba(110,231,183,.04), transparent 40%), var(--glass);
}

.account-plan .progress{ height:8px; background:#0b0c0f; border-radius:999px; overflow:hidden; border:1px solid var(--stroke) }
.account-plan .progress > div{
    height:100%; background:linear-gradient(90deg,var(--accent),var(--accent-2));
    box-shadow: inset 0 0 16px rgba(110,231,183,.35);
    transition: width .35s ease;
}

.btn.danger{
    background: linear-gradient(180deg, rgba(248,113,113,.15), rgba(248,113,113,.05));
    color:#fecaca; border-color: rgba(248,113,113,.35);
}
.btn.danger:hover{ filter: brightness(1.06) }

.account-page .account-hero{
    padding:16px;
    display:grid; grid-template-columns: 1fr 380px;
    gap:14px; align-items:center;
    position:relative;
}
@media (max-width: 980px){
    .account-page .account-hero{ grid-template-columns: 1fr }
}

.account-page .hero-left{ display:flex; gap:12px; align-items:center }
.account-page .h1-tight{ font-size:26px; line-height:1.1; margin:0 }

.account-page .avatar{
    width:48px; height:48px; border-radius:50%;
    display:grid; place-items:center; font-weight:900;
    color:#061016; background:linear-gradient(180deg,var(--accent-2),var(--accent));
    box-shadow: 0 10px 24px rgba(110,231,183,.25);
    border: 1px solid rgba(110,231,183,.35);
}

.account-page .hero-right{
    display:grid; gap:10px; justify-items:end; align-items:center;
}
@media (max-width: 980px){ .account-page .hero-right{ justify-items:start } }

.account-page .pill{
    padding:6px 10px; border-radius:999px;
    background:var(--panel-2); border:1px solid var(--stroke);
    font-size:12px; font-weight:800; letter-spacing:.02em;
}

.account-page .stat{ width:100%; max-width:320px }
.account-page .stat-label{ color:var(--muted); font-size:12px; margin-bottom:4px }
.account-page .stat-row{ display:flex; gap:6px; align-items:baseline; margin-bottom:6px }
.account-page .stat-num{ font-weight:800; font-size:18px }
.account-page .stat-sep{ color:var(--muted) }
.account-page .stat-limit{ font-weight:700; opacity:.9 }
.account-page .stat-pct{ margin-left:auto; color:var(--muted); font-size:12px }

.account-page .hero-actions{ display:flex; gap:8px; flex-wrap:wrap }

.account-page #uploadPanel{ transition:opacity .18s ease, transform .18s ease }
.account-page #uploadPanel[style*="display: block"]{ opacity:1; transform:translateY(0) }
.account-page #uploadPanel[style*="display: none"]{ opacity:0; transform:translateY(-6px) }
.account-page .file-drop.dashed{
    height:160px; display:grid; place-items:center;
    background:var(--glass);
    border:1px dashed var(--stroke); border-radius:14px; margin-bottom:12px;
    transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.account-page .file-drop.dashed:hover{
    border-color:rgba(110,231,183,.45);
    box-shadow:0 0 0 3px rgba(110,231,183,.12) inset;
    background:linear-gradient(120deg, rgba(110,231,183,.04), transparent 40%), var(--glass);
}

.account-layout .account-cards{
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:16px;
}
@media (max-width: 920px){ .account-layout .account-cards{ grid-template-columns:1fr } }

.account-page .map-card{
    padding:14px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.account-page .map-card:hover{
    transform: translateY(-2px);
    border-color: rgba(110,231,183,.22);
    box-shadow: 0 14px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(110,231,183,.12) inset;
}
.account-page .map-head{
    display:flex; justify-content:space-between; align-items:flex-start; gap:10px;
}
.account-page .h3-tight{ margin:0 0 2px; font-size:18px; line-height:1.15 }
.account-page .chips{ display:flex; gap:6px; flex-wrap:wrap; align-items:center }

.account-page .chip{
    padding:4px 8px; border-radius:999px;
    background: rgba(255,255,255,.04);
    border:1px solid var(--stroke);
    color: var(--muted);
    font-size:12px; line-height:1;
}
.account-page .chip.code{
    background:#13261f; color:#31c48d;
    border-color: rgba(110,231,183,.35);
}
.account-page .chip.dl::before{
    content:"⬇ "; opacity:.9; margin-right:2px;
}

.account-page .map-actions{
    display:flex; gap:8px; align-items:center; flex-wrap:wrap;
    margin-top:10px;
}
.account-page .cdn-link{
    margin-top:8px;
    font-size:12px; opacity:.9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    word-break: break-all;
}

.account-page .h1-tight{ font-size:26px; line-height:1.1; margin:0 }
.account-page .empty-hint{ padding:14px }

.account-page .account-hero{ margin-bottom:16px; }
.account-upload{ margin-top:12px; margin-bottom:16px; }
.account-layout .account-cards{ margin-top:12px; }

.account-page .avatar{
    width:64px; height:64px; flex:0 0 64px;
    aspect-ratio: 1/1;
    display:grid; place-items:center;
    font-size:24px; line-height:1; font-weight:900;
    color:#061016;
    background:linear-gradient(180deg,var(--accent-2),var(--accent));
    box-shadow: 0 10px 24px rgba(110,231,183,.25);
    border: 1px solid rgba(110,231,183,.35);
    border-radius:50%;
}

.account-page .map-card{
    padding:16px;
    display:grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.account-page .map-card:hover{
    transform: translateY(-2px);
    border-color: rgba(110,231,183,.22);
    box-shadow: 0 14px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(110,231,183,.12) inset;
}

.account-page .map-main{ display:grid; gap:6px; }
.account-page .map-title{ display:flex; align-items:baseline; gap:8px; }
.account-page .h3-tight{ margin:0; font-size:18px; line-height:1.15; }

.account-page .map-meta{
    display:flex; gap:10px; align-items:center;
    color: var(--muted); font-size:13px;
}

.account-page .chip{
    padding:4px 8px; border-radius:999px;
    background: rgba(255,255,255,.04);
    border:1px solid var(--stroke);
    color: var(--muted); font-size:12px; line-height:1;
}
.account-page .chip.code{
    background:#13261f; color:#31c48d;
    border-color: rgba(110,231,183,.35);
}
.account-page .chip.dl::before{ content:"⬇ "; opacity:.9; margin-right:2px; }

.account-page .map-card .actions{
    display:flex; gap:8px; flex-wrap:wrap; justify-self:end;
}
@media (max-width: 640px){
    .account-page .map-card{ grid-template-columns: 1fr; }
    .account-page .map-card .actions{ justify-self:start; }
}

.account-plan .progress > div{
    transition: width .35s ease;
}
.account-layout{ gap:24px; }

.account-page .account-hero{ margin-bottom:16px; }
.account-upload{ margin:12px 0 16px; }
.account-layout .account-cards{ margin-top:12px; }

.account-page .avatar{
    width:64px; height:64px; flex:0 0 64px; aspect-ratio:1/1;
    display:grid; place-items:center; font-size:24px; font-weight:900; line-height:1;
    color:#061016; background:linear-gradient(180deg,var(--accent-2),var(--accent));
    border:1px solid rgba(110,231,183,.35); box-shadow:0 10px 24px rgba(110,231,183,.25); border-radius:50%;
}

.account-page .map-card{
    padding:16px;
    display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px;
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.account-page .map-card:hover{
    transform:translateY(-2px);
    border-color:rgba(110,231,183,.22);
    box-shadow:0 14px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(110,231,183,.12) inset;
}

.account-page .map-main{ display:grid; gap:6px; }
.account-page .h3-tight{ margin:0; font-size:18px; line-height:1.15; }

.account-page .map-sub{
    display:flex; flex-wrap:wrap; gap:10px; align-items:center;
    font-size:13px;
}
.account-page .map-sub .dot{ color:var(--muted); opacity:.7; }

.account-page .map-card .actions{ display:flex; gap:8px; flex-wrap:wrap; justify-self:end; }
@media (max-width:640px){
    .account-page .map-card{ grid-template-columns:1fr; }
    .account-page .map-card .actions{ justify-self:start; }
}
.uploader{ padding:16px; display:grid; gap:14px }
.uploader-head{ display:flex; justify-content:space-between; align-items:center; }
.uploader-title{ display:flex; gap:10px; align-items:center }
.uploader-ico{ width:32px; height:32px; display:grid; place-items:center;
    border-radius:10px; background:var(--panel-2); border:1px solid var(--stroke); font-weight:800 }
.uploader .title{ font-weight:800; letter-spacing:.02em }

.file-drop.pretty{
    height:160px; display:grid; place-items:center; border-radius:14px;
    background:var(--glass); border:1px dashed var(--stroke);
    transition:border-color .15s, box-shadow .15s, background .15s, transform .15s;
}
.file-drop.pretty:hover{ border-color:rgba(110,231,183,.45); box-shadow:0 0 0 3px rgba(110,231,183,.12) inset }
.file-drop-inner{ text-align:center }
.file-drop .cloud{
    width:44px; height:44px; margin:0 auto 6px; border-radius:12px;
    background:linear-gradient(180deg,var(--accent-2),var(--accent));
    box-shadow:0 10px 22px rgba(110,231,183,.25); position:relative;
}
.file-drop .cloud::after{
    content:""; position:absolute; inset:10px 12px auto auto; height:12px; border-radius:3px;
    background:#061016;
}
.file-drop .fd-title{ font-weight:800 }
.file-drop .fd-sub{ margin-top:2px }

.uploader-form{ display:grid; gap:10px }
.file-info{ display:flex; gap:10px; align-items:center; padding:8px 10px;
    border:1px solid var(--stroke); border-radius:10px; background:var(--panel-2) }
.file-info .fi-name{ font-weight:700 }
.file-info .fi-size{ color:var(--muted); font-size:12px }
.btn.sm{ padding:8px 10px; border-radius:10px; font-size:13px }

.uploader-progress{ display:grid; gap:6px; }
.uploader-progress .bar{ height:10px; border-radius:999px; overflow:hidden;
    background:#0b0c0f; border:1px solid var(--stroke); box-shadow:inset 0 2px 6px rgba(0,0,0,.35) }
.uploader-progress .fill{
    height:100%;
    background:linear-gradient(90deg,var(--accent),var(--accent-2));
    box-shadow:inset 0 0 16px rgba(110,231,183,.35);
    transition:width .15s ease;
}
.small{ font-size:12px }

#uploadPanel[data-state="uploading"] .file-drop,
#uploadPanel[data-state="uploading"] .uploader-form .actions .btn{ pointer-events:none; opacity:.7 }

#uploadPanel[data-state="uploading"] #uStatus::after{
    content:""; display:inline-block; vertical-align:middle; margin-left:8px;
    width:14px; height:14px; border:2px solid rgba(255,255,255,.35); border-top-color:var(--accent);
    border-radius:50%; animation:spin .8s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg) } }

#uploadPanel.is-error{ animation:shake .35s }
@keyframes shake{
    10%,90%{ transform:translateX(-2px) }
    20%,80%{ transform:translateX(4px) }
    30%,50%,70%{ transform:translateX(-6px) }
    40%,60%{ transform:translateX(6px) }
}

#uploadPanel.is-dragover .file-drop.pretty{
    transform:translateY(-1px); border-color:rgba(110,231,183,.6);
    box-shadow:0 0 0 3px rgba(110,231,183,.16) inset;
}

.uploader{ gap:18px; }
.uploader-head{ margin-bottom:6px; }
.uploader-form{ gap:12px; }
.uploader-form .actions{ margin-top:4px; margin-bottom:2px; }

.uploader-progress{ margin-top:12px; }

.uploader-progress .bar{
    height:12px;
    border-radius:999px;
    background:#0d1117;
    border:1px solid rgba(42,51,69,.8);
    overflow:hidden;
}
.uploader-progress .fill{
    position:relative;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg, rgba(110,231,183,.85), rgba(167,243,208,.85));
    box-shadow: inset 0 0 16px rgba(110,231,183,.25);
    transition: width .28s cubic-bezier(.22,.61,.36,1);
}
.uploader-progress .fill::after{
    content:""; position:absolute; inset:0;
    background:linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%, rgba(255,255,255,.10) 80%);
    opacity:.3; pointer-events:none;
}

.file-drop.pretty{ padding:10px; }
#uploadPanel.is-dragover .file-drop.pretty{
    transform:translateY(-1px);
    border-color:rgba(110,231,183,.6);
    box-shadow:0 0 0 3px rgba(110,231,183,.16) inset;
}

.file-drop .cloud{
    display:grid; place-items:center;
    width:44px; height:44px; margin:0 auto 8px;
    border-radius:12px;
    background:linear-gradient(180deg,var(--accent-2),var(--accent));
    box-shadow:0 10px 22px rgba(110,231,183,.25);
    position:relative;
}
.file-drop .cloud::after{ display:none; }
.file-drop .cloud .ico{
    width:22px; height:22px;
    color:#061016; opacity:.95;
}

@media (min-width: 560px){
    .uploader-form{
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
    }
}

.uploader .field .input,
.uploader .actions .btn{
    height: 42px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
}

@media (min-width: 560px){
    .uploader .actions .btn{ transform: translateY(-1px); }
}

#uploadPanel .uploader-progress .bar{
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    border: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
}

#uploadPanel .uploader-progress .fill{
    background: linear-gradient(90deg, rgba(110,231,183,.9), rgba(167,243,208,.9));
    box-shadow: inset 0 0 12px rgba(110,231,183,.22);
    transition: width .28s cubic-bezier(.22,.61,.36,1);
}

#toast-stack,
.toast-stack{
    position: fixed;
    right: 18px;
    top: calc(16px + env(safe-area-inset-top, 0px));
    bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast{
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 10px;

    min-width: 260px;
    max-width: 360px;
    padding: 10px 12px;

    background:
            linear-gradient(120deg, rgba(110,231,183,0.03), transparent 40%),
            var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    box-shadow: var(--shadow);

    color: var(--text);
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    animation: toast-in .18s ease forwards;
}
.toast .t-ico{ width:22px;height:22px;display:grid;place-items:center;font-weight:800;line-height:1;margin-top:1px;color:var(--accent) }
.toast .t-msg{ font-size:14px; line-height:1.35 }
.toast .t-x{
    border:none; background:transparent; color:var(--muted);
    font-size:16px; line-height:1; padding:2px; margin-left:6px;
    cursor:pointer; border-radius:8px;
}
.toast .t-x:hover{ color:var(--text); background: rgba(255,255,255,.04) }

.toast.success{ border-left: 3px solid var(--accent); }
.toast.info   { border-left: 3px solid #60a5fa; }
.toast.warn   { border-left: 3px solid #f59e0b; }
.toast.danger {
    border-left: 3px solid #f87171;
    border-color: rgba(248,113,113,.35);
    background: linear-gradient(180deg, rgba(248,113,113,.06), rgba(248,113,113,.02)), var(--panel);
}

@keyframes toast-in{
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast.out{ animation: toast-out .18s ease forwards; }
@keyframes toast-out{
    to { opacity: 0; transform: translateY(-6px) scale(.98); }
}

@media (max-width: 520px){
    #toast-stack, .toast-stack{ right:12px; left:12px; }
    .toast{ max-width:none; }
}

.empty-state{ padding:22px; display:grid; place-items:center; text-align:center }
.empty-state .empty-inner{ max-width:520px; display:grid; gap:10px; align-items:center; justify-items:center }
.empty-state .empty-ico{
    width:56px; height:56px; border-radius:14px;
    display:grid; place-items:center; font-size:26px; font-weight:900; color:#061016;
    background:linear-gradient(180deg,var(--accent-2),var(--accent));
    box-shadow:0 10px 24px rgba(110,231,183,.25); border:1px solid rgba(110,231,183,.35);
}
.empty-state .empty-title{ font-weight:800; font-size:18px }

.plan-overlay{
    position:fixed; inset:0; display:none; z-index:50;
    background:rgba(0,0,0,.45); backdrop-filter:saturate(120%) blur(2px);
}
.plan-overlay[style*="display: block"], .plan-overlay.show{ display:block }
.plan-modal{
    width:min(100%, 1060px); margin:6vh auto; padding:16px;
    border-radius:16px; border:1px solid var(--stroke); background:var(--panel); box-shadow:var(--shadow);
}
.plan-head{ display:flex; align-items:center; justify-content:space-between; gap:10px }
.plan-head .title{ font-weight:800; letter-spacing:.02em }
.plan-grid{ margin-top:8px }
@media (max-width: 640px){ .plan-modal{ margin:3vh 12px } }

.install-card{ padding:16px; display:grid; gap:10px; margin-top:12px }
.install-steps{ margin:6px 0 2px; padding-left:18px; color:var(--muted); display:grid; gap:6px }
.install-steps b{ color:var(--text) }

.code-json.code,
.code{ background:var(--panel-2); border:1px solid var(--stroke); border-radius:12px; padding:12px; overflow:auto }
.code, .code code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size:13px; line-height:1.45; white-space:pre }
.code .l{ display:block }
.code .hl{
    background: rgba(110,231,183,.08);
    border-left: 3px solid var(--accent);
    margin-left: -12px; margin-right: -12px;
    padding-left: 9px; padding-right: 12px;
    border-radius: 10px;
}

pre.code,
pre.code code{
    white-space: normal;
    margin: 0;
}

.code-json .l{
    display: block;
    white-space: pre;
    line-height: 1.28;
}

.code-json .l.hl{
    background: rgba(110,231,183,.08);
    border-left: 3px solid var(--accent);
    padding-left: 7px;
    margin-left: -7px;
    border-radius: 4px;
}

.hint.warn{ color:#fde68a; }

.alert.warn{
    border-color: rgba(245,158,11,.35);
    background: linear-gradient(180deg, rgba(245,158,11,.06), rgba(245,158,11,.02)), var(--panel);
}

.renew-banner{ margin:12px 0 8px; }

.renew-banner{ margin:12px 0 8px; }
.renew-inner{ display:flex; gap:12px; align-items:center; }
.renew-text{ flex:1 1 auto; min-width:0; }
.renew-btn{ flex:0 0 auto; min-width:160px; }

@media (max-width:720px){
    .renew-inner{ flex-direction:column; align-items:flex-start; }
    .renew-btn{ width:100%; max-width:260px; }
}

.account-page .plan-row{
    display:flex; gap:10px; align-items:center;
    justify-content:end; flex-wrap:wrap;
}
@media (max-width:980px){
    .account-page .plan-row{ justify-content:flex-start; }
}
.account-page .plan-left{
    font-size:12px; color:var(--muted); white-space:nowrap;
}
.account-page .plan-left.warn{ color:#fde68a; font-weight:700; }

.account-page .pill.warn{
    background: linear-gradient(180deg, rgba(248,113,113,.12), rgba(248,113,113,.04));
    border-color: rgba(248,113,113,.35);
    color:#fff;
    white-space:nowrap;
}

.check{
    display:flex; align-items:center; gap:10px;
    margin:4px 0 10px;
}
.check-input{
    appearance:none; -webkit-appearance:none; -moz-appearance:none;
    position:relative;
    width:20px; height:20px;
    border-radius:6px;
    border:1px solid var(--stroke);
    background: var(--panel-2);
    display:inline-grid; place-items:center;
    cursor:pointer;
    transition:
            background .15s ease,
            border-color .15s ease,
            box-shadow .15s ease,
            transform .05s ease;
}

.check-input:hover{
    border-color: rgba(110,231,183,.45);
    box-shadow: 0 0 0 3px rgba(110,231,183,.10) inset;
}
.check-input:active{ transform: translateY(0.5px); }

.check-input:focus-visible{
    outline:none;
    border-color: rgba(110,231,183,.7);
    box-shadow: 0 0 0 3px rgba(110,231,183,.18);
}

.check-input::after{
    content:"";
    position:absolute;
    width:6px; height:12px;
    border:2px solid #061016;
    border-top:0; border-left:0;
    transform: translateY(-1px) rotate(45deg) scale(0);
    transition: transform .12s ease;
}

.check-input:checked{
    border-color: transparent;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 10px 22px rgba(110,231,183,.20);
}
.check-input:checked::after{
    transform: translateY(-1px) rotate(45deg) scale(1);
}

.check-input:indeterminate{
    border-color: transparent;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.check-input:indeterminate::after{
    width:10px; height:2px;
    border:0; background:#061016;
    transform: scale(1);
}

.check-input:disabled{
    cursor:not-allowed; opacity:.6;
    filter:saturate(.8);
}

.check-label{
    cursor:pointer;
    color: var(--muted);
    font-size:14px;
    user-select:none;
    line-height:1.2;
}
.check:hover .check-label{ color: var(--text); }

.check.error .check-input{
    border-color: rgba(248,113,113,.55);
    box-shadow: 0 0 0 3px rgba(248,113,113,.14);
}
.check.error .check-label{ color:#fecaca; }

.install-card.simple{ padding:16px; display:block; }
.steps-nice{
    counter-reset: step;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.steps-nice li{
    position: relative;
    padding: 12px 12px 12px 56px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: var(--panel-2);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.steps-nice li::before{
    counter-increment: step;
    content: counter(step);
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800; font-size: 13px; line-height: 1;
    color: #061016;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 16px rgba(110,231,183,.25), 0 0 0 1px rgba(110,231,183,.28);
    font-variant-numeric: tabular-nums;
}
.steps-nice li:hover{
    border-color: rgba(110,231,183,.35);
    box-shadow: 0 0 0 3px rgba(110,231,183,.10) inset;
}
.steps-nice .s-title{
    font-weight: 800; letter-spacing: .01em; margin: 0 0 2px;
}
.steps-nice .s-desc{ font-size: 14px; }

.install-card.simple .code{ width: 100%; }
.install-card.simple .hint{ margin-top: 8px; }

.side-howto{ padding:14px; display:grid; gap:10px }
.side-howto .side-steps{
    list-style:none; padding:0; margin:0; display:grid; gap:8px
}
.side-howto .side-steps li{
    display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:start
}
.side-howto .num{
    width:22px; height:22px; border-radius:999px;
    display:grid; place-items:center; font-weight:800; font-size:12px;
    color:#061016;
    background:linear-gradient(180deg,var(--accent-2),var(--accent));
    border:1px solid rgba(110,231,183,.35);
    box-shadow:0 6px 14px rgba(110,231,183,.20)
}
.side-howto .txt .t{ font-weight:700; line-height:1.15 }
.side-howto .txt .d{ font-size:12px; margin-top:2px }

.side-howto .code-inline{
    display:block;
    width:100%;
    padding:8px 10px;
    background:var(--panel-2);
    border:1px solid var(--stroke);
    border-radius:10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size:12px; line-height:1.35;
    white-space:nowrap; overflow:auto
}

.side-howto .side-tip{
    display:flex; gap:8px; align-items:flex-start; font-size:12px
}
.side-howto .side-tip .i{ opacity:.9 }

.map-card.map-card--stack{
    display:grid;
    grid-template-columns: 1fr;
    gap:12px;
}

.map-card--stack .map-main{
    display:grid; gap:6px;
}

.map-card--stack .support-code{
    color: var(--muted);
    font-size: 12px;
    opacity: .9;
}

.actions-row{
    display:flex;
    gap:8px;
    justify-content:flex-start;
    padding-top:10px;
    border-top:1px solid var(--stroke);
}

.btn-ico{ display:inline-flex; align-items:center; gap:8px; }
.btn-ico .ico{ position:relative; width:18px; height:18px; display:grid; place-items:center; }
.btn-ico .i{ transition: opacity .16s ease, transform .16s ease; }
.btn-ico .i.i-check{ position:absolute; opacity:0; transform: scale(.92); }
.btn-copy.is-done .i.i-copy{ opacity:0; transform: scale(.92); }
.btn-copy.is-done .i.i-check{ opacity:1; transform: scale(1); }

.btn.danger-soft{
    background: linear-gradient(180deg, rgba(248,113,113,.12), rgba(248,113,113,.04));
    border-color: rgba(248,113,113,.28);
    color: #fecaca;
}
.btn.danger-soft:hover{
    filter: brightness(1.05);
}

.actions-row .btn{ min-height:38px; }
.btn .label{ line-height:1; }
.account-layout .account-cards .map-card.map-card--stack{
    grid-template-columns: 1fr;
}

.account-layout .account-cards .map-card.map-card--stack .actions-row{
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch !important;
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--stroke);
}

.account-layout .account-cards .map-card.map-card--stack .actions-row .btn{
    min-width: 120px;
}

.account-layout .account-cards .card:not(.map-card--stack) .actions{
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-self: end;
}

.account-layout .account-cards .map-card.map-card--stack .actions-row{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    justify-self: stretch !important;
}

.account-layout .account-cards .map-card.map-card--stack .actions-row .btn{
    width: 100%;
    min-width: 0 !important;
    flex: 0 0 auto;
    min-height: 40px;
}

@media (max-width: 560px){
    .account-layout .account-cards .map-card.map-card--stack .actions-row{
        grid-template-columns: 1fr;
    }
}

.card.alert.warn.renew-banner{
    position: relative;
    border-color: rgba(244,183,64,.32) !important;
    background:
            radial-gradient(120% 80% at 15% -20%, rgba(255,255,255,.06), transparent 60%),
            linear-gradient(180deg, var(--warn-bg1), var(--warn-bg2)),
            var(--panel) !important;
    box-shadow: 0 10px 24px rgba(244,183,64,.12), var(--shadow);
}

.card.alert.warn.renew-banner::before{ content:none !important; display:none !important; }

.card.alert.warn.renew-banner::after{
    content:"";
    position:absolute; inset:-1px; border-radius:16px; pointer-events:none;
    box-shadow: 0 0 0 1px rgba(244,183,64,.18) inset;
}

.renew-banner .strong{ color:#fff; font-weight:800; letter-spacing:.01em; }
.renew-banner .muted b{ color:#fff; }

.account-page .plan-left.warn{
    color: var(--warn-2);
    font-weight: 700;
}
.account-page .pill.warn{
    background: linear-gradient(180deg, rgba(244,183,64,.16), rgba(244,183,64,.07));
    border-color: rgba(244,183,64,.32);
    color:#fff;
}

.card.alert.warn.renew-banner.urgent{
    border-color: rgba(248,113,113,.32) !important;
    background:
            radial-gradient(120% 80% at 15% -20%, rgba(255,255,255,.05), transparent 60%),
            linear-gradient(180deg, rgba(248,113,113,.14), rgba(248,113,113,.06)),
            var(--panel) !important;
    box-shadow: 0 12px 28px rgba(248,113,113,.14), var(--shadow);
}
.card.alert.warn.renew-banner.urgent::after{
    box-shadow: 0 0 0 1px rgba(248,113,113,.22) inset;
}

.plan-modal .billing-toggle{
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
}

.plan-modal .billing-toggle label{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
}

.plan-modal .billing-toggle .pill{
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 6px;
    transform: translateY(-0.5px);
}

.price .billing-toggle{
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
}

.price .billing-toggle label{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
}

.price .billing-toggle .pill{
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 6px;
    transform: translateY(-0.5px);
}

.promo-tg{
    padding: 22px;
    background:
            radial-gradient(120% 80% at -10% -20%, rgba(110,231,183,.06), transparent 60%),
            var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.promo-grid{
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: center;
}
@media (max-width: 960px){
    .promo-grid{ grid-template-columns: 1fr; }
}

.promo-left .features{
    list-style: none;
    padding: 0; margin: 8px 0 0;
    display: grid; gap: 8px;
}
.promo-left .features li{
    position: relative; padding-left: 22px;
}
.promo-left .features li::before{
    content: "✓";
    position: absolute; left: 0; top: 0; line-height: 1.2;
    color: var(--accent); font-weight: 900;
}

.promo-right{ display:grid; place-items:center; }
.promo-ico{
    width: 160px; height: 160px;
    border-radius: 24px;
    display: grid; place-items: center;
    background: linear-gradient(180deg, #66c8ff, #229ED9);
    border-color: rgba(34,158,217,.35);
    box-shadow: 0 18px 42px rgba(34,158,217,.22);
}
.promo-ico .ico{
    width: 96px; height: 96px;
    color: #fff;
    fill: currentColor;
    display: block;
    transform: translateX(-6px)
}

.error-hero{
    padding:20px;
    display:grid;
    grid-template-columns: auto 1fr auto;
    gap:16px; align-items:center;
}

.error-ico{
    width:56px; height:56px; border-radius:14px;
    display:grid; place-items:center;
    color:#061016;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    border:1px solid rgba(110,231,183,.35);
    box-shadow:0 10px 22px rgba(110,231,183,.25);
}
.error-ico .ico{ width:28px; height:28px; }

.error-title{ margin:0; }
.error-sub{ max-width:56ch; }

.error-side{ justify-self:end; }
.error-code{
    font-weight:900; font-size:44px; line-height:1;
    letter-spacing:.02em; opacity:.12;
}
@media (max-width:720px){
    .error-hero{ grid-template-columns: auto 1fr; }
    .error-side{ grid-column: 1 / -1; justify-self:start; }
    .error-code{ font-size:34px; }
}

.card.alert.danger.renew-banner{
    position: relative;
    border-color: rgba(248,113,113,.32) !important;
    background:
            radial-gradient(120% 80% at 15% -20%, rgba(255,255,255,.05), transparent 60%),
            linear-gradient(180deg, rgba(248,113,113,.14), rgba(248,113,113,.06)),
            var(--panel) !important;
    box-shadow: 0 12px 28px rgba(248,113,113,.14), var(--shadow);
}
.card.alert.danger.renew-banner::after{
    content:"";
    position:absolute; inset:-1px; border-radius:16px; pointer-events:none;
    box-shadow: 0 0 0 1px rgba(248,113,113,.22) inset;
}

.error-hero{
    display:grid;
    grid-template-columns: auto 1fr auto;
    gap:16px;
    padding:18px;
    align-items:start;
}
.error-ico{
    width:56px; height:56px; border-radius:14px;
    display:grid; place-items:center;
    color:#061016;
    background: linear-gradient(180deg,var(--accent-2),var(--accent));
    box-shadow: 0 10px 24px rgba(110,231,183,.25);
    border: 1px solid rgba(110,231,183,.35);
}
.error-ico .ico{ width:28px; height:28px; color:#061016 }
.error-main{ display:grid; gap:6px }
.error-title{ margin:0 }
.error-sub{ margin:0 }
.error-actions{ flex-wrap:wrap }
.error-side{ justify-self:end; align-self:center }
.error-code{
    font-weight:800; font-size:28px; opacity:.8; letter-spacing:.02em;
}
@media (max-width: 720px){
    .error-hero{ grid-template-columns: auto 1fr; }
    .error-side{ grid-column: 1 / -1; justify-self:start; margin-top:4px }
}

#uProgress { margin: 10px 0 6px; }
#uProgress .bar { height: 12px; }

#uploadError {
    margin-top: 12px;
}

.alert.danger.soft{
    border-color: rgba(248,113,113,.28);
    background:
            linear-gradient(180deg, rgba(248,113,113,.08), rgba(248,113,113,.03)),
            var(--panel);
    color: #fecaca;
}

.aside{
    display: grid;
    gap: 16px;
}

.plugin-list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.plugin{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background:
            linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
            var(--panel-2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.plug-left{ display: flex; flex-direction: column; gap: 4px; }
.plug-name{ font-weight: 700; }
.plugin .btn.sm{ padding: 8px 10px; border-radius: 10px; font-size: 13px; }

.side-tg.locked .is-disabled,
.side-tg.locked [aria-disabled="true"]{
    opacity: .6;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(.2);
}

.addons-info{
    margin-top: 16px;
    padding: 16px;
}
.addons-info h3{
    font-size: 16px;
    margin: 0 0 6px;
}
.addons-info p,
.addons-info li{
    font-size: 13px;
    line-height: 1.45;
}
.addons-info .list{
    margin: 8px 0 0;
    padding-left: 18px;
}

.aside{ display:grid; gap:16px; }

.aside .card h3{ margin:0 0 6px; font-size:16px; }

.install-card.simple .h3{ margin-bottom:8px; }
.install-card.simple .code{ margin-top:12px; }

.side-support{ padding:16px; display:grid; gap:10px }
.side-support .support-head{ display:grid; gap:6px }
.side-support .support-btns{ display:grid; gap:8px }
.side-support .btn-ico .ico{ width:18px; height:18px; display:grid; place-items:center }

.btn[disabled],
.btn[aria-disabled="true"]{
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;      
    transform: none !important;
    box-shadow: none;
    filter: saturate(.9);
}

.btn.primary[disabled],
.btn.primary[aria-disabled="true"]{
    background: linear-gradient(180deg, rgba(167,243,208,.55), rgba(110,231,183,.55));
    color: #0c141a;
    border-color: transparent;
}

@media (max-width:1080px){ .container{ padding:22px; } }
@media (max-width:720px){
    .container{ padding:16px; }
    .section{ padding:28px 0; }
    .h1{ font-size:28px; }
    .h2{ font-size:22px; }
    .h3{ font-size:16px; }
    .btn{ min-height:44px; }
}
html,body{ overflow-x:hidden; } 

.pricing-grid{ justify-content:center; }
.pricing-grid > *{ min-width:0; }
.price .features{ margin-inline-start:0; padding-inline-start:0; } 

@media (max-width:960px){
    .pricing-grid{
        grid-template-columns:1fr;
        justify-items:stretch;   
    }
    .price{
        width:100%;
        margin:0 auto;          
    }
    .price .price-money{ font-size:28px; }
    .price .tag{ top:10px; right:10px; }
    .price .billing-toggle label{ padding:6px 10px; }
}

@media (max-width:720px){
    article.card{ padding:14px !important; }
    .badges{ gap:6px; }
    .steps-nice li{ padding:12px 12px 12px 48px; }
    .code, pre.code{ padding:10px; }
}
article.card{ word-break:break-word; }

@media (min-width:960px){
    body.legal .container{ max-width:960px; } 
}

@media (max-width:980px){
    .account-layout{ grid-template-columns:1fr; gap:14px; }
    .account-page .account-hero{ grid-template-columns:1fr; }
    .account-page .hero-right{ justify-items:start; }
}
@media (max-width:720px){
    .grid.cards{ grid-template-columns:1fr; }
    .account-layout .account-cards{ grid-template-columns:1fr !important; }
    .account-page .map-card{ grid-template-columns:1fr; }
    .account-page .map-card .actions{ justify-self:start; }
    .actions-row{ grid-template-columns:1fr !important; }
    .actions .btn{ width:100%; min-width:0; }      
    .account-page .stat{ max-width:100%; }
    .account-page .cdn-link{ word-break:break-all; }
}

@media (max-width:640px){
    .promo-right, .promo-ico{ display:none !important; }
    .promo-grid{ grid-template-columns:1fr; }
}

@media (max-width:640px){
    .topbar .container{ padding:12px 16px; }
    .nav{ display:flex; gap:8px; flex-wrap:wrap; }
    .nav a{ padding:6px 10px; }
}

@media (max-width:480px){
    .flags-grid{ grid-template-columns:1fr; }
    .flag-item{ min-height:42px; }
    .flag-item .fi{ --fi-size:20px; }
}

@media (max-width: 640px){
    .price .tag.tag-choice{ top: -6px; }
    .price .price-head{ margin-top: 14px; }
}

@media (max-width: 640px){
    .price .tag.tag-choice{
        top: -6px;                 
        left: 50%;                
        right: auto;
        transform: translateX(-50%);
        justify-content: center;   
    }

    .price .price-head{
        margin-top: 14px;      
        flex-direction: column;    
        align-items: center;       
        gap: 8px;
    }

    .price .price-name{
        width: 100%;
        text-align: center;        
    }

    .price .billing-toggle{
        margin: 0 auto;           
    }
}

@media (max-width:640px){
    .account-page .account-hero{ text-align:center; }
    .account-page .hero-left,
    .account-page .hero-right{ justify-content:center; justify-items:center; }

    .account-page .plan-row{ justify-content:center; }

    .account-actions{ justify-content:center; }
    .account-actions .btn,
    .logout-form .btn{ width:100%; min-width:0; }

    .account-page .pill,
    .account-page .plan-left{ width:100%; text-align:center; }
}

@media (max-width:640px){
    .renew-inner{ flex-direction:column; align-items:stretch; }
    .renew-text{ text-align:center; }
    .renew-btn{ width:100%; max-width:none; }
    .renew-btn .btn{ width:100%; }

    .alert .actions{ display:grid; gap:8px; }
    .alert .actions .btn{ width:100%; }
}

.plan-overlay{
    overflow-y:auto;                 
    -webkit-overflow-scrolling:touch;
}

@media (max-width:720px){
    .plan-modal{
        width:100%;
        margin:0;
        min-height:100dvh;            
        max-height:100dvh;
        border-radius:0;
        display:flex;
        flex-direction:column;         
    }

    .plan-head{
        position:sticky;               
        top:0;
        z-index:2;
        background:var(--panel);
        border-bottom:1px solid var(--stroke);
        padding:12px 14px;
    }

    .plan-modal .plan-grid{ display:block; }
    .plan-modal .card.price{ margin-bottom:12px; }
    .plan-modal .billing-toggle{ margin:0 auto; }
    .plan-modal .card.price > .btn,
    .plan-modal .card.price .js-buy{ width:100%; }

    .plan-modal .row{
        flex-wrap:wrap;
        justify-content:stretch;
        gap:8px;
    }
    .plan-modal .row [type="button"],
    .plan-modal .row .btn{ width:100%; }
}

@media (max-width:640px){
    .account-actions,
    .account-page .hero-actions,
    .account-page .plan-row{
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: stretch;
    }

    .account-actions .btn,
    .logout-form .btn,
    .account-page .hero-actions .btn,
    .account-page .plan-row .btn{
        width: 100%;
        min-width: 0;
        min-height: 44px;    
    }
}

.plan-overlay{
    position: fixed !important;
    inset: 0 !important;
    width: 100vw;              
    height: 100dvh;            
    background: rgba(0,0,0,.60);   
    z-index: 1000;
    display: none;           
    overflow-y: auto;     
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

@media (max-width:720px){
    .plan-modal{
        width: 100%;
        margin: 0;
        min-height: 100dvh;
        max-height: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: visible;     
    }
    .plan-head{
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--panel);
        border-bottom: 1px solid var(--stroke);
        padding: 12px 14px;
    }
    .plan-modal .plan-grid{ display: block; }
    .plan-modal .card.price{ margin-bottom: 12px; }
    .plan-modal .card.price .js-buy,
    .plan-modal .card.price > .btn{ width: 100%; }
}

@media (max-width:720px){
    #confirmOverlay .plan-modal .row{
        flex-wrap: wrap;
        gap: 8px;
    }
    #confirmOverlay .plan-modal .row .btn{ width: 100%; }
}

@media (max-width:640px){
    .renew-inner{ flex-direction: column; align-items: stretch; }
    .renew-text{ text-align: center; }
    .renew-btn{ width: 100%; max-width: none; }
    .renew-btn .btn{ width: 100%; min-height: 44px; }
}

@media (min-width: 961px){
    .plan-modal .alert.info{
        margin: 12px 0 16px !important; 
    }
    .plan-head{
        margin-top: 0;                 
    }
}

.plan-modal .alert.info .alert-list{
    margin: 8px 0 0;
    padding-left: 18px;      
}
.plan-modal .alert.info .alert-list li{
    margin: 4px 0;
    line-height: 1.4;
}

@media (min-width: 961px){
    .plan-modal .alert.info{
        margin: 12px 0 16px !important;
    }
}

.annotation{
    position: relative;
    padding: 14px 14px 12px;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background:
            linear-gradient(120deg, rgba(110,231,183,.03), transparent 40%),
            var(--panel);
    box-shadow: var(--shadow);
}

.annotation::before{
    content:"";
    position:absolute; inset:-1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg,
    rgba(110,231,183,.35),
    rgba(167,243,208,.12),
    transparent 60%);
    -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events:none;
}

.annotation .anno-head{
    display:flex; align-items:center; gap:10px;
    margin: 0 0 6px;
}
.annotation .anno-ico{
    width:22px; height:22px; border-radius:8px;
    display:grid; place-items:center;
    font-weight:900; line-height:1;
    color:#061016;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 16px rgba(110,231,183,.25),
    0 0 0 1px rgba(110,231,183,.28);
}
.annotation .anno-title{
    font-weight:800; letter-spacing:.02em;
}

.annotation .anno-list{
    counter-reset: item;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.annotation .anno-list li{
    position: relative;
    padding-left: 40px;
    line-height: 1.45;
}
.annotation .anno-list li::before{
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 0; top: 2px;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800; font-size: 12px; color:#061016;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 14px rgba(110,231,183,.20),
    0 0 0 1px rgba(110,231,183,.28);
}

.plan-modal .annotation{ margin: 12px 0 16px; }

@media (max-width:720px){
    .plan-modal .annotation{ margin: 10px 0 14px; }
}

.annotation .anno-list{
    counter-reset: item;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.annotation .anno-list li{
    counter-increment: item;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;                
    line-height: 1.45;
}

.annotation .anno-list li::before{
    content: counter(item);
    flex: 0 0 26px;               
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    color: #061016;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 14px rgba(110,231,183,.20), 0 0 0 1px rgba(110,231,183,.28);
    margin-top: 2px;              
}

.annotation .anno-list li > *{
    min-width: 0;
}

.annotation .anno-list li p{
    margin: 0;
}
.annotation .anno-list{
    counter-reset: anno;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.annotation .anno-list li{ counter-increment: none !important; }

.annotation .anno-list > li{
    counter-increment: anno !important;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    line-height: 1.45;
}

.annotation .anno-list > li::before{
    content: counter(anno);
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #061016;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 14px rgba(110,231,183,.20), 0 0 0 1px rgba(110,231,183,.28);
    margin-top: 2px; 
}

.annotation .anno-list > li > *{ min-width: 0; }
.annotation .anno-list > li p{ margin: 0; }

.annotation .anno-list{
    counter-reset: anno;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.annotation .anno-list li{ counter-increment: none !important; }

.annotation .anno-list > li{
    counter-increment: anno !important;
    display: grid !important;
    grid-template-columns: 28px 1fr;
    column-gap: 10px;
    align-items: start;
    min-width: 0;
}

.annotation .anno-list > li::before{
    content: counter(anno);
    grid-column: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #061016;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 14px rgba(110,231,183,.20), 0 0 0 1px rgba(110,231,183,.28);
    margin: 0;
}

.annotation .anno-list > li > *{
    grid-column: 2;
    min-width: 0;
}
.annotation .anno-list > li p{ margin: 0; }

@media (max-width: 480px){
    .annotation .anno-list > li{ grid-template-columns: 26px 1fr; column-gap: 8px; }
    .annotation .anno-list > li::before{ width: 26px; height: 26px; font-size: 11px; }
}

.annotation .anno-list{
    counter-reset: anno !important;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;   
    gap: 10px;
}

.annotation .anno-list > li{
    counter-increment: anno !important;
    position: relative !important;
    display: block !important;
    min-width: 0;
    padding-left: 40px !important;   
}

.annotation .anno-list > li::before{
    content: counter(anno);
    position: absolute !important;
    left: 0;
    top: 2px;                          
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: #061016;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    box-shadow: 0 6px 14px rgba(110,231,183,.20), 0 0 0 1px rgba(110,231,183,.28);
    margin: 0 !important;              
}

.annotation .anno-list > li > *{
    grid-column: auto !important;
}

@media (max-width: 480px){
    .annotation .anno-list > li{
        padding-left: 36px !important;
    }
    .annotation .anno-list > li::before{
        width: 24px; height: 24px; font-size: 11px;
    }
}

.annotation{
    --anno-badge: 28px;                 
    --anno-gap: 14px;                  
    --anno-indent: calc(var(--anno-badge) + 12px); 
    --anno-shift: -0.06em;              
}

.annotation .anno-list{
    gap: var(--anno-gap) !important;
}

.annotation .anno-list > li{
    padding-left: var(--anno-indent) !important;
}

.annotation .anno-list > li::before{
    width: var(--anno-badge);
    height: var(--anno-badge);
    top: var(--anno-shift) !important;  
    line-height: 1;                      
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;  
}

@media (max-width: 480px){
    .annotation{
        --anno-badge: 24px;
        --anno-gap: 12px;
        --anno-indent: calc(var(--anno-badge) + 10px);
        --anno-shift: -0.04em;            
    }
}

.plan-modal .annotation .anno-list{
    counter-reset: none !important;         
    list-style: decimal !important;           
    list-style-position: outside !important;  
    margin: 8px 0 0 !important;
    padding-left: 22px !important;            
    display: block !important;                
}

.plan-modal .annotation .anno-list > li{
    display: list-item !important;            
    position: static !important;             
    margin: 6px 0 !important;
    padding: 0 !important;                   
    line-height: 1.5 !important;
}

.plan-modal .annotation .anno-list > li::before{
    content: none !important;                
}

@media (max-width: 720px){
    .account-page .hero-right{
        justify-items: start !important;
    }

    .account-page .map-card .actions,
    .grid.cards .card .actions,
    .account-layout .account-cards .card .actions{
        justify-self: start !important;
        align-items: stretch !important;
    }

    .account-actions,
    .account-page .hero-actions,
    .actions-row{
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .actions .btn,
    .account-actions .btn,
    .logout-form .btn,
    .account-page .hero-actions .btn{
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 720px){
    .row.between{
        flex-wrap: wrap;
        gap: 8px;
    }
    .row.between .badges{
        width: 100%;        
    }
}

.site-meta{
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}
@media (max-width: 720px){
    .site-meta{ display: block; }
    .site-meta .dot{ display: none; }
    .site-meta > span{ display: block; }
}

.account-layout > *,
.hero-grid > *,
.grid.cards > *,
.pricing-grid > * {
    min-width: 0;
}

.code, pre, .cdn-link, .support-code span {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

#toast-stack, .toast-stack{
    right: max(12px, env(safe-area-inset-right));
}


.check{
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    width: 100%;
}

.check-input{
    grid-column: 1;
    grid-row: 1;
    width: 20px; height: 20px;  
}

.check-label{
    grid-column: 2;
    grid-row: 1;
    display: block;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.check-label .link{
    white-space: normal;
}

@media (max-width: 640px){
    .install-card.simple,
    .addons-info.simple,
    .side-helpers{
        display: none !important;
    }
}

/* Небольшие улучшения для превью изображений */
.account-page img {
    image-rendering: auto;
}

/* Вкладки */
.account-tabs{
    display:flex; gap:8px; margin: 8px 0 14px;
}
.account-tabs .tab-btn{
    padding:8px 12px; border-radius:10px;
    border:1px solid var(--stroke);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.account-tabs .tab-btn.is-active{
    border-color: rgba(110,231,183,.35);
    box-shadow: 0 8px 22px rgba(0,0,0,.3), 0 0 0 1px rgba(110,231,183,.12) inset;
}

/* Сетка изображений */
.images-grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.image-card{
    display:flex; flex-direction:column; gap:8px;
    padding:10px; border-radius:12px;
    background: linear-gradient(120deg, rgba(110,231,183,0.03), transparent 40%), var(--panel);
    border:1px solid var(--stroke); box-shadow: var(--shadow);
}
.image-thumb{
    width:100%; height:140px; border-radius:10px; overflow:hidden;
    background: rgba(255,255,255,.02);
    display:flex; align-items:center; justify-content:center;
}
.image-thumb img{ max-width:100%; max-height:100%; object-fit:contain; display:block; }
.image-row{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.image-title{ font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.image-actions{ display:flex; gap:6px; flex-wrap:nowrap; }


.fs-ui {
    --fs-radius: 12px;
    --fs-pad-1: 10px;
    --fs-pad-2: 12px;
    --fs-gap:   10px;
    --shadow: 0 10px 28px rgba(0,0,0,.28);
}

/* базовая компактность */
.fs-ui.fs-dense .container{ padding:20px; }
.fs-ui .btn{ min-height:38px; padding:8px 12px; border-radius: var(--fs-radius); }
.fs-ui .btn.sm{ min-height:34px; padding:8px 10px; border-radius:10px; font-size:13px }
.fs-ui .input{ height:40px; padding:10px 12px; border-radius: var(--fs-radius); }
.fs-ui .input.sm{ height:34px; padding:8px 10px; border-radius:10px; font-size:13px; }

/* карточки компактнее */
.fs-ui .card{ border-radius: var(--fs-radius); }
.fs-ui .aside .card{ padding: var(--fs-pad-2); }

/* ---- Toolbar над вкладками ---- */
.fs-ui .fs-toolbar{
    display:grid; grid-template-columns: 1fr auto; gap: var(--fs-gap);
    align-items:center; margin: 6px 0 12px;
}
.fs-ui .fs-left{ display:flex; gap:8px; flex-wrap:wrap; }
.fs-ui .fs-right{ display:flex; gap:8px; align-items:center; }
.fs-ui .fs-search{ width: 220px; }

/* ---- Tabs как сегменты ---- */
.fs-ui .account-tabs{ gap:6px; margin: 8px 0 12px; }
.fs-ui .account-tabs .tab-btn{
    padding:6px 10px; border-radius:10px;
    background: var(--panel-2);
    border-color: var(--stroke);
}
.fs-ui .account-tabs .tab-btn.is-active{
    background: linear-gradient(180deg,var(--accent-2),var(--accent));
    color:#071017; border-color: transparent;
    box-shadow: 0 10px 24px rgba(110,231,183,.22);
}

/* ---- Шапка кабинета: еще компактнее ---- */
.fs-ui .account-page .account-hero{
    padding: var(--fs-pad-2);
    gap: var(--fs-gap);
}
.fs-ui .account-page .avatar{
    width:44px; height:44px; font-size:18px;
}
.fs-ui .account-page .h1-tight{ font-size:22px; }
.fs-ui .account-page .hero-right{ gap:8px; }
.fs-ui .account-page .stat{ max-width:280px }
.fs-ui .account-page .progress{ height:6px }

/* ---- Список карт как у файлообменников (row/table vibe) ---- */
.fs-ui .account-layout .account-cards{
    grid-template-columns: 1fr !important; gap: 10px !important;
}

/* карточка-строка */
.fs-ui .map-card.map-card--compact{
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

/* внутри левой части распределяем 3 "колонки": Имя | Дата | Код */
.fs-ui .map-card.map-card--compact .map-main{
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) 150px 160px;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.fs-ui .map-card.map-card--compact .map-title{
    font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fs-ui .map-card.map-card--compact .map-meta{
    font-size: 12.5px; color: var(--muted); opacity: .85;
}
.fs-ui .map-card.map-card--compact .support-code{
    font-size: 12.5px; color: var(--muted); opacity: .9;
}
.fs-ui .map-card.map-card--compact .support-code span{
    font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* правая часть — действия компактной ширины */
.fs-ui .map-card.map-card--compact .actions-row{
    justify-content: flex-end;
    gap: 8px; padding-top: 0; border-top: none;
}
.fs-ui .map-card.map-card--compact .actions-row .btn{
    min-height: 34px; padding: 8px 10px; min-width: 120px;
}

/* наведение — мягкое, без "подскакиваний" */
.fs-ui .map-card.map-card--compact:hover{
    transform: none;
    border-color: rgba(110,231,183,.22);
    box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 1px rgba(110,231,183,.10) inset;
}

/* mobile: падаем в два ряда: Имя/Дата/Код сверху, кнопки снизу */
@media (max-width:720px){
    .fs-ui .map-card.map-card--compact{
        grid-template-columns: 1fr;
    }
    .fs-ui .map-card.map-card--compact .map-main{
        grid-template-columns: 1fr; row-gap: 6px;
    }
    .fs-ui .map-card.map-card--compact .actions-row{
        justify-content: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }
    .fs-ui .map-card.map-card--compact .actions-row .btn{
        width: 100%; min-width: 0;
    }
}

/* ---- Пустые состояния — компактнее ---- */
.fs-ui .empty-state{ padding: 18px; }
.fs-ui .empty-state .empty-ico{ width: 48px; height: 48px; border-radius: 12px; }

/* ---- Загрузка (карты/изображения) — плотнее ---- */
.fs-ui .uploader{ gap: 14px; }
.fs-ui .file-drop.pretty{ height: 140px; border-radius: 12px; }
.fs-ui .uploader-progress .bar{ height: 10px; }

/* ---- Вкладка "Изображения": более плотная сетка превью ---- */
.fs-ui .images-grid{
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.fs-ui .image-card{ padding: 10px; border-radius: 12px; }
.fs-ui .image-thumb{ height: 120px; border-radius: 10px; }

/* ---- Боковая колонка — компактнее ---- */
.fs-ui .aside{ gap: 12px; }
.fs-ui .side-howto .side-steps li{ gap:8px; }
.fs-ui .side-support .support-btns{ gap: 6px; }

/* ---- План/прайс — компактные спейсинги, без ломаний твоей логики ---- */
.fs-ui .pricing-grid{ gap: 12px; }
.fs-ui .price{ padding: 14px; border-radius: 14px; }
.fs-ui .price .price-money{ font-size: 28px; }

/* ---- Хлебные крошки/подписи мелким шрифтом ---- */
.fs-ui .hint{ font-size: 12.5px; }

/* ---- Топбар — флэт и ниже ---- */
.fs-ui .topbar{ backdrop-filter: blur(6px); }
.fs-ui .topbar .container{ padding-top: 10px; padding-bottom: 10px; }

/* ---- Более строгие тени карточек во всем скине ---- */
.fs-ui .card{
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
}

/* ---- Улучшенные ховеры для Ghost-кнопок ---- */
.fs-ui .btn.ghost:hover{
    background: rgba(255,255,255,.03);
    border-color: rgba(110,231,183,.25);
}

/* ---- Sticky toolbar (опционально) ---- */
/* Добавь класс .fs-toolbar--sticky если хочешь фиксацию над контентом */
.fs-ui .fs-toolbar.fs-toolbar--sticky{
    position: sticky; top: 6px; z-index: 5;
}
/* --- Переключатель "Загрузить карту/изображение" --- */
.upload-switch.fs-seg{
    display:inline-grid; grid-auto-flow:column; gap:0;
    background: var(--panel-2); border:1px solid var(--stroke);
    border-radius: 999px; padding:4px;
    box-shadow: var(--shadow);
}
.upload-switch.fs-seg input{ display:none; }
.upload-switch.fs-seg .seg{
    padding:8px 12px; border-radius:999px; cursor:pointer;
    color: var(--muted); font-weight:600; user-select:none; line-height:1;
}
.upload-switch.fs-seg input:checked + .seg{
    background: linear-gradient(180deg,var(--accent-2),var(--accent));
    color:#061016; box-shadow: 0 8px 20px rgba(110,231,183,.22);
}

/* --- Единый стиль Drag&Drop для обеих панелей --- */
#dropzone.file-drop.pretty,
#imgDropzone.file-drop.pretty{
    height: 150px; border-radius: 12px;
    background: var(--glass);
    border: 1px dashed var(--stroke);
    transition: border-color .15s, box-shadow .15s, background .15s, transform .15s;
}
#mapUploadPanel.is-dragover #dropzone.file-drop.pretty,
#imageUploadPanel.is-dragover #imgDropzone.file-drop.pretty{
    transform: translateY(-1px);
    border-color: rgba(110,231,183,.6);
    box-shadow: 0 0 0 3px rgba(110,231,183,.16) inset;
}
#mapUProgress .bar, #imgUProgress .bar{ height: 12px; }
#mapUProgress .fill, #imgUProgress .fill{
    background: linear-gradient(90deg, rgba(110,231,183,.9), rgba(167,243,208,.9));
    box-shadow: inset 0 0 12px rgba(110,231,183,.22);
}

/* --- Карта: компактная "строка" на всю ширину, кнопки в линию --- */
.account-layout .account-cards .map-card.map-card--compact{
    padding:12px; display:grid;
    grid-template-columns: 1fr auto; align-items:center; gap:10px;
}
.account-layout .account-cards .map-card.map-card--compact .map-main{
    display:grid; grid-template-columns: minmax(180px,1fr) 150px 160px;
    gap:10px; align-items:center; min-width:0;
}
.account-layout .account-cards .map-card.map-card--compact .map-title{
    font-weight:600; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.account-layout .account-cards .map-card.map-card--compact .map-meta,
.account-layout .account-cards .map-card.map-card--compact .support-code{ font-size:12.5px; color:var(--muted); opacity:.9; }
.account-layout .account-cards .map-card.map-card--compact .support-code span{
    font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* важный оверрайд: НИКАКИХ 2-х колонок у действий */
.account-layout .account-cards .map-card.map-card--compact .actions-row{
    display:flex !important; gap:8px; padding-top:0; border-top:0; justify-content:flex-end;
}
.account-layout .account-cards .map-card.map-card--compact .actions-row .btn{
    min-height:34px; padding:8px 10px; min-width:120px;
}

/* mobile — падаем в два ряда: мета сверху, кнопки ниже */
@media (max-width:720px){
    .account-layout .account-cards .map-card.map-card--compact{ grid-template-columns:1fr; }
    .account-layout .account-cards .map-card.map-card--compact .map-main{ grid-template-columns:1fr; row-gap:6px; }
    .account-layout .account-cards .map-card.map-card--compact .actions-row{
        justify-content:stretch; flex-wrap:wrap;
    }
    .account-layout .account-cards .map-card.map-card--compact .actions-row .btn{ flex:1 1 140px; min-width:0; }
}

/* --- Изображения: компактные карточки --- */
.image-card.image-card--compact{ padding:10px; border-radius:12px; }
.image-card.image-card--compact .image-thumb{ height:120px; border-radius:10px; }
.image-card.image-card--compact .image-row{
    display:grid; grid-template-columns: 1fr auto; align-items:center; gap:8px;
}
.image-card.image-card--compact .image-actions .btn{
    min-height:32px; padding:6px 10px;
}

.sitemap-list li{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:10px;
}
.sitemap-list li .small{ opacity:.9 }
.sitemap-list li a{ word-break: break-word; }

.cookie-toast{
    position: fixed;
    right: 35px; bottom: 16px;
    z-index: 1000;
    max-width: 320px;
    display: flex; gap: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid #2a3345;
    background: rgba(27,33,48,.94);           /* #1b2130 с лёгкой прозрачностью */
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 36px rgba(0,0,0,.32);
    color: #cfd5e3;
    transform: translateY(12px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}
.cookie-toast.show{ transform: translateY(0); opacity: 1; }

.cookie-toast__icon{ font-size: 20px; line-height: 1; margin-top: 2px; }
.cookie-toast__title{ font-size: 14px; font-weight: 800; color:#edf1f7; }
.cookie-toast__text{ font-size: 12px; color:#a8b2c3; margin-top: 2px; }
.cookie-toast__actions{ display:flex; gap:8px; margin-top: 10px; }

/* маленькие кнопки, в твоём стиле */
.btn.btn-sm{ padding:6px 10px; font-size:12px; border-radius:10px; }

/* мобильные: тост центрируем и даём больше ширины */
@media (max-width: 520px){
    .cookie-toast{ left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce){
    .cookie-toast{ transition: none; }
}

.side-promo .input{ padding: 8px 10px; font-size: 14px; border-radius: 10px; }
.side-promo .btn.sm{ padding: 6px 10px; font-size: 12px; border-radius: 10px; }
.side-promo .support-btns { display: grid; gap: 8px; }
