:root {
    --bg0: #060913;
    --bg1: #070C18;
    --card: rgba(12, 18, 38, .72);
    --card2: rgba(12, 18, 38, .52);
    --stroke: rgba(255, 255, 255, .08);
    --stroke2: rgba(255, 255, 255, .12);
    --text: #E9EEFF;
    --muted: rgba(233, 238, 255, .72);
    --muted2: rgba(233, 238, 255, .56);
    --aqua: #50B6FF;
    --turq: #2DCCCD;
    --blue: #13599B;
    --danger: #FF4D6D;
    --warn: #FFB020;
    --ok: #34C759;
    --shadow: 0 18px 60px rgba(0, 0, 0, .55);
    --radius: 16px;
    --radius2: 22px;
    --blur: 18px;
    --maxw: 1120px;
    --tap: 44px;
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

body {
    background: var(--bg0);
    background-image: radial-gradient(circle at 50% 0%, #16203D, var(--bg0) 80%);
    color: var(--text);
    font-family: var(--font);
    margin: 0;
    min-height: 100vh;
}

/* Layout Classes */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 14px 96px;
}

@media (min-width: 720px) {
    .container {
        padding: 18px 18px 28px;
    }
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: var(--radius2);
}

.card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}

.card.soft {
    background: var(--card2)
}

/* Flexbox Utils */
.row {
    display: flex;
    gap: 12px;
    align-items: center
}

.col {
    display: flex;
    flex-direction: column;
    gap: 12px
}

/* Typography Utils */
.muted {
    color: var(--muted)
}

.small {
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted2)
}

/* Headers converted to classes for utility use, but we encourage semantic tags */
.h1 {
    font-size: 20px;
    font-weight: 720;
    letter-spacing: .2px;
    margin: 0;
}

.h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0;
}

.kicker {
    font-size: 11px;
    color: var(--muted2);
    letter-spacing: .22em;
    text-transform: uppercase
}

/* Components */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .18);
    color: var(--text);
    font-size: 12px;
}

.btn {
    height: var(--tap);
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 650;
    letter-spacing: .15px;
    cursor: pointer;
    user-select: none;
    transition: transform .08s ease, background .15s ease, border-color .15s ease;
    font-size: 13px;
    font-family: inherit;
}

.btn:hover {
    background: rgba(255, 255, 255, .09);
    border-color: var(--stroke2)
}

.btn:active {
    transform: translateY(1px)
}

.btn.primary {
    border: 1px solid rgba(80, 182, 255, .45);
    background: linear-gradient(135deg, rgba(80, 182, 255, .28), rgba(45, 204, 205, .16));
}

.btn-mini {
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}

.btn.danger {
    border: 1px solid rgba(255, 77, 109, .5);
    background: rgba(255, 77, 109, .14);
}

.badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    color: var(--muted);
    background: rgba(0, 0, 0, .14);
}

.badge.ok {
    border-color: rgba(52, 199, 89, .35);
    color: rgba(182, 255, 203, .95);
    background: rgba(52, 199, 89, .10)
}

.badge.warn {
    border-color: rgba(255, 176, 32, .38);
    color: rgba(255, 230, 180, .96);
    background: rgba(255, 176, 32, .10)
}

.badge.danger {
    border-color: rgba(255, 77, 109, .42);
    color: rgba(255, 189, 198, .98);
    background: rgba(255, 77, 109, .10)
}

/* Form Elements */
.input {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .18);
    color: var(--text);
    padding: 0 14px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.input:focus {
    border-color: rgba(80, 182, 255, .6);
    box-shadow: 0 0 0 3px rgba(80, 182, 255, .12)
}

textarea.input {
    height: auto;
    min-height: 112px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.4;
    margin-top: 10px;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .05);
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.chip.active {
    border-color: rgba(80, 182, 255, .55);
    color: var(--text);
    background: rgba(80, 182, 255, .12)
}

/* Lists */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.item {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .14);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.item .title {
    font-weight: 740;
    font-size: 13px
}

.item .sub {
    font-size: 12px;
    color: var(--muted2);
    margin-top: 2px
}

/* Grid & Utilities */
.grid {
    display: grid;
    gap: 12px
}

@media (min-width:720px) {
    .grid.cols2 {
        grid-template-columns: 1fr 1fr
    }
}

@media (min-width: 980px) {
    .grid.cols3 {
        grid-template-columns: 1fr 1.5fr 1fr
    }
}

/* App bars (From Mock) */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 0 10px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    background: linear-gradient(180deg, rgba(6, 9, 19, .86), rgba(6, 9, 19, .46));
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.topbar .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px
}

.logoMark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: linear-gradient(145deg, rgba(80, 182, 255, .18), rgba(45, 204, 205, .10));
    display: grid;
    place-items: center;
}

.brandName {
    font-weight: 800;
    letter-spacing: .6px;
    opacity: .92
}

.navPills {
    display: none;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(0, 0, 0, .14);
}

@media (min-width: 860px) {
    .navPills {
        display: flex;
    }
}

.navPill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.navPill.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(80, 182, 255, .30), rgba(45, 204, 205, .16));
    border-color: rgba(80, 182, 255, .25);
}

.rightPills {
    display: flex;
    gap: 10px;
    align-items: center
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(80, 182, 255, .12);
    display: grid;
    place-items: center;
    font-weight: 750;
    cursor: pointer;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom nav (mobile) */
.bottomNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 10px 18px;
    background: linear-gradient(180deg, rgba(6, 9, 19, 0), rgba(6, 9, 19, .82) 28%, rgba(6, 9, 19, .96));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.bottomNav .bar {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .22);
    padding: 10px;
}

.tab {
    flex: 1;
    height: 46px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted2);
    border: 1px solid transparent;
}

.tab.active {
    color: var(--text);
    background: rgba(80, 182, 255, .14);
    border-color: rgba(80, 182, 255, .25)
}

.tab .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: transparent
}

.tab.active .dot {
    background: var(--aqua)
}

@media (min-width: 860px) {
    .bottomNav {
        display: none;
    }

    .container {
        padding-bottom: 28px;
    }
}

/* Modal & Toasts */
.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px;
}

.modal.show {
    display: flex;
    align-items: flex-end
}

@media(min-width:720px) {
    .modal.show {
        align-items: center;
        justify-content: center
    }
}

.sheet {
    width: 100%;
    max-width: 720px;
    border-radius: 22px;
    background: rgba(10, 14, 30, .92);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .68);
    padding: 14px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    display: none;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(10, 14, 30, .92);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--text);
    font-size: 12px;
    z-index: 120;
}

.toast.show {
    display: inline-flex
}

/* FOOTER (Ported from main_theme.css) */
.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--stroke);
    background: var(--bg1);
    padding: 40px 12px 20px;
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 240px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    height: 28px;
}

.footer-brand-text {
    color: var(--muted);
    line-height: 1.5;
    font-size: 12px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer-link {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    text-decoration: none;
    transition: color .2s;
}

.footer-link:hover {
    color: var(--aqua);
}

.plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    margin: 0 4px 4px 0;
    color: var(--text);
}

.plan-pill .icon {
    color: var(--aqua);
}

.footer-bottom {
    border-top: 1px solid var(--stroke);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.footer-legal {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-legal a {
    color: var(--muted);
}

.footer-legal a:hover {
    color: var(--aqua);
}


.footer-lang {
    opacity: .7;
}

/* --- NEW PROFILE V2 COMPONENTS --- */
.switch {
    width: 44px;
    height: 24px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 99px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-2);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.switch.on {
    background: var(--aqua);
    border-color: var(--aqua);
}

.switch.on::after {
    left: 22px;
    background: #000;
}

.pill {
    padding: 6px 14px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    color: var(--text-1);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    color: var(--text-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}