@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
    --bg: #070708;
    --panel: #0d0d10;
    --border: rgba(255,255,255,.10);
    --text: #f5f2ed;
    --muted: #8f8a84;
    --red: #d51e27;
    --green: #48d76b;
    --yellow: #e6b94d;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 12%, rgba(174,17,27,.12), transparent 28%),
        radial-gradient(circle at 18% 75%, rgba(174,17,27,.06), transparent 26%),
        #070708;
    font-family: "Manrope", sans-serif;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 48px 48px;
}
.profile-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.profile-container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; position: relative; z-index: 2; }
.profile-brand { display: inline-flex; align-items: center; gap: 13px; font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.profile-brand b { color: #ff3b43; }
.profile-brand-mark { width: 34px; height: 34px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.17); font: 700 10px "Oswald"; }
.profile-brand-mark::first-line { transform: rotate(-45deg); }
.profile-topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); background: rgba(7,7,8,.82); backdrop-filter: blur(18px); }
.profile-topbar-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.profile-ghost-button { min-height: 42px; padding: 0 18px; border: 1px solid var(--border); border-radius: 7px; color: #ddd8d1; background: rgba(255,255,255,.025); cursor: pointer; font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.profile-main { padding: 70px 0 100px; }
.profile-heading { margin-bottom: 34px; }
.profile-eyebrow { color: #ff6268; font-size: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.profile-eyebrow.approved { color: #78e893; }
.profile-heading h1, .profile-login-card h1 { margin: 12px 0 8px; font: 700 clamp(48px, 7vw, 88px)/.95 "Oswald"; text-transform: uppercase; }
.profile-heading p, .profile-login-card > p { max-width: 650px; color: var(--muted); line-height: 1.7; }
.profile-status-card, .profile-download-card, .profile-application-card, .profile-login-card { border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 45%), rgba(12,12,15,.91); box-shadow: 0 30px 90px rgba(0,0,0,.34); }
.profile-status-card { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: center; padding: 28px; margin-bottom: 20px; }
.profile-status-icon { width: 42px; height: 42px; border-radius: 50%; background: #999; box-shadow: 0 0 25px rgba(255,255,255,.10); }
.profile-status-card span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.profile-status-card h2 { margin: 4px 0 5px; font: 700 31px "Oswald"; text-transform: uppercase; }
.profile-status-card p { margin: 0; color: #aaa49e; line-height: 1.65; }
.status-new .profile-status-icon { background: #d9d5cf; }
.status-review { border-color: rgba(230,185,77,.25); }
.status-review .profile-status-icon { background: var(--yellow); box-shadow: 0 0 26px rgba(230,185,77,.4); }
.status-review h2 { color: #ffd977; }
.status-approved { border-color: rgba(72,215,107,.28); }
.status-approved .profile-status-icon { background: var(--green); box-shadow: 0 0 28px rgba(72,215,107,.42); }
.status-approved h2 { color: #7ce996; }
.status-rejected { border-color: rgba(255,49,56,.28); }
.status-rejected .profile-status-icon { background: #ff3138; box-shadow: 0 0 28px rgba(255,49,56,.42); }
.status-rejected h2 { color: #ff858a; }
.profile-download-card { position: relative; overflow: hidden; padding: 30px; margin-bottom: 20px; border-color: rgba(72,215,107,.24); }
.profile-download-card::after { content: ""; position: absolute; right: -100px; top: -100px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(72,215,107,.13), transparent 68%); pointer-events: none; }
.profile-download-card h2, .profile-application-card h2 { margin: 9px 0 10px; font: 700 34px "Oswald"; text-transform: uppercase; }
.profile-download-card p { position: relative; z-index: 1; max-width: 780px; color: #b2aca6; line-height: 1.7; }
.profile-download-card p strong { color: #fff; }
.profile-download-button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 58px; margin-top: 8px; padding: 0 24px; border: 1px solid rgba(104,240,136,.42); border-radius: 8px; background: linear-gradient(135deg, #29b74c, #126e2b); color: #fff; box-shadow: 0 18px 42px rgba(42,194,82,.22); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.profile-download-button:hover { filter: brightness(1.1); transform: translateY(-2px); }
.profile-download-warning { margin-top: 14px; color: #77726c; font-size: 11px; line-height: 1.6; }
.profile-alert { margin-top: 15px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 7px; color: #bfb9b2; background: rgba(255,255,255,.025); line-height: 1.65; }
.profile-alert.error { border-color: rgba(255,49,56,.28); background: rgba(255,49,56,.05); color: #ff9fa3; }
.profile-alert.neutral { border-color: rgba(255,255,255,.11); }
.profile-application-card { padding: 30px; }
.profile-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.profile-application-id { color: #5f5a55; font: 700 10px monospace; }
.profile-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.profile-data-grid > div { min-width: 0; padding: 18px; background: #0a0a0d; }
.profile-data-grid span { display: block; margin-bottom: 6px; color: #6f6a65; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.profile-data-grid strong, .profile-data-grid a { display: block; overflow-wrap: anywhere; color: #e8e3dd; font-size: 13px; }
.profile-data-grid a { color: #ff7378; }
.profile-login-shell { min-height: 100vh; width: min(520px, calc(100% - 32px)); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 26px; position: relative; z-index: 2; padding: 40px 0; }
.profile-login-card { padding: 34px; }
.profile-login-card h1 { font-size: clamp(46px, 11vw, 72px); }
.profile-field { display: block; margin: 20px 0; }
.profile-field span { display: block; margin-bottom: 9px; color: #d9d3cc; font-size: 12px; font-weight: 800; }
.profile-field input { width: 100%; height: 56px; padding: 0 17px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background: #09090b; color: #fff; }
.profile-field input:focus { border-color: rgba(215,30,39,.65); box-shadow: 0 0 0 4px rgba(215,30,39,.08); }
.profile-primary-button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border: 1px solid rgba(255,90,96,.4); border-radius: 7px; background: linear-gradient(135deg,#df222b,#8f0d14); color: #fff; cursor: pointer; font-weight: 900; font-size: 12px; letter-spacing: .12em; }
.profile-back-link { display: inline-block; margin-top: 20px; color: #77726c; font-size: 12px; }
@media (max-width: 700px) {
    .profile-main { padding-top: 45px; }
    .profile-data-grid { grid-template-columns: 1fr; }
    .profile-card-title { flex-direction: column; }
    .profile-status-card { grid-template-columns: 42px 1fr; padding: 20px; }
    .profile-download-card, .profile-application-card, .profile-login-card { padding: 22px; }
}

/* ===== LORD RUSSIA V4: APPROVAL HERO / BUG REPORT GUI ===== */

.profile-alert.success {
    border-color: rgba(72,215,107,.28);
    background: rgba(72,215,107,.055);
    color: #86ee9d;
}

.approval-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 22px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(76,226,111,.30);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(66,220,101,.09), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.022), transparent 58%),
        #0a0c0b;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.055),
        0 30px 100px rgba(0,0,0,.38),
        0 0 70px rgba(48,194,82,.055);
}

.approval-glow {
    position: absolute;
    z-index: -1;
    right: -130px;
    top: -160px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,220,95,.20), rgba(58,220,95,.04) 43%, transparent 70%);
    filter: blur(5px);
}

.approval-kicker {
    color: #70e88a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
}

.approval-check {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 24px 0 20px;
    border: 1px solid rgba(94,236,127,.42);
    border-radius: 50%;
    color: #a3f6b5;
    background: linear-gradient(145deg, rgba(63,219,98,.19), rgba(22,110,44,.10));
    box-shadow: 0 0 32px rgba(62,216,97,.18);
    font-size: 25px;
    font-weight: 900;
}

.approval-hero h2 {
    margin: 0;
    font: 700 clamp(46px, 7vw, 86px)/.9 "Oswald", sans-serif;
    letter-spacing: -.025em;
    text-transform: uppercase;
}

.approval-hero h2 span {
    color: #76e990;
    text-shadow: 0 0 30px rgba(77,222,109,.13);
}

.approval-hero > p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #aaa59e;
    font-size: 14px;
    line-height: 1.8;
}

.approval-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1px;
    margin: 28px 0 24px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.08);
}

.approval-meta-grid > div {
    padding: 18px;
    background: rgba(7,9,8,.92);
}

.approval-meta-grid span {
    display: block;
    margin-bottom: 7px;
    color: #65605a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.approval-meta-grid strong {
    color: #edf8ef;
    font-size: 14px;
}

.approval-download-button {
    position: relative;
    overflow: hidden;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: min(620px,100%);
    padding: 0 25px;
    border: 1px solid rgba(100,244,133,.42);
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #2bc150 0%, #178d38 55%, #0d6428 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        0 22px 48px rgba(36,192,72,.22);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    transition: .24s ease;
}

.approval-download-button::after {
    content: "";
    position: absolute;
    top: -70%;
    left: -30%;
    width: 22%;
    height: 240%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transition: left .55s ease;
}

.approval-download-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 28px 60px rgba(36,192,72,.30);
}

.approval-download-button:hover::after { left: 120%; }
.approval-download-button b { font-size: 21px; }

.bug-report-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid rgba(220,43,52,.18);
    border-radius: 11px;
    background:
        radial-gradient(circle at 100% 0%, rgba(211,35,44,.08), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.02), transparent 50%),
        rgba(12,12,15,.92);
    box-shadow: 0 28px 85px rgba(0,0,0,.30);
    scroll-margin-top: 100px;
}

.bug-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.bug-panel-head h2 {
    margin: 8px 0;
    font: 700 clamp(32px, 4.4vw, 52px)/1 "Oswald", sans-serif;
    text-transform: uppercase;
}

.bug-panel-head p {
    margin: 0;
    max-width: 680px;
    color: #8d8781;
    line-height: 1.7;
}

.bug-panel-badge {
    padding: 9px 12px;
    border: 1px solid rgba(235,58,66,.24);
    border-radius: 999px;
    color: #ff747a;
    background: rgba(225,44,53,.05);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.bug-report-form {
    display: grid;
    gap: 18px;
}

.bug-report-form label > span {
    display: block;
    margin-bottom: 9px;
    color: #ddd6cf;
    font-size: 11px;
    font-weight: 800;
}

.bug-report-form select,
.bug-report-form textarea,
.bug-report-form input[type="file"] {
    width: 100%;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    outline: 0;
    color: #f4efea;
    background: #09090b;
    font: inherit;
    transition: .2s ease;
}

.bug-report-form select {
    min-height: 54px;
    padding: 0 16px;
}

.bug-report-form textarea {
    min-height: 165px;
    padding: 16px;
    resize: vertical;
    line-height: 1.65;
}

.bug-report-form select:focus,
.bug-report-form textarea:focus,
.bug-report-form input[type="file"]:focus {
    border-color: rgba(225,43,52,.55);
    box-shadow: 0 0 0 4px rgba(221,37,46,.07);
}

.bug-upload-field input[type="file"] {
    min-height: 58px;
    padding: 13px;
    color: #8e8882;
}

.bug-upload-field input[type="file"]::file-selector-button {
    min-height: 34px;
    margin-right: 12px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    color: #e6e0d9;
    background: rgba(255,255,255,.045);
    cursor: pointer;
}

.bug-submit-button {
    position: relative;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border: 1px solid rgba(255,76,84,.42);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #e12630 0%, #a10f18 58%, #75080f 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 19px 42px rgba(195,27,36,.20);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
    transition: .23s ease;
}

.bug-submit-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        0 24px 52px rgba(195,27,36,.27);
}

.bug-submit-button b { font-size: 18px; }

@media (max-width: 700px) {
    .approval-meta-grid { grid-template-columns: 1fr; }
    .approval-hero { padding: 25px 21px; }
    .bug-report-panel { padding: 22px; }
    .bug-panel-head { flex-direction: column; }
}


/* ===== Tester role & rejection GUI ===== */
.tester-role-card {
    position:relative; overflow:hidden; display:grid; grid-template-columns:86px minmax(0,1fr) auto; gap:22px; align-items:center;
    margin-top:22px; padding:27px 29px; border:1px solid rgba(62,157,238,.18); border-radius:12px;
    background:radial-gradient(circle at 8% 50%,rgba(43,133,216,.14),transparent 27%),linear-gradient(135deg,rgba(255,255,255,.028),transparent 48%),rgba(10,10,13,.93);
    box-shadow:0 25px 80px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.025);
}
.tester-role-card::after { content:""; position:absolute; right:-60px; top:-80px; width:210px; height:210px; border:1px solid rgba(67,154,232,.07); border-radius:50%; box-shadow:0 0 70px rgba(44,130,216,.08); }
.tester-role-emblem { width:72px; height:72px; display:grid; place-items:center; border:1px solid rgba(73,167,247,.27); transform:rotate(45deg); background:#0b1117; box-shadow:0 0 35px rgba(40,137,218,.15); }
.tester-role-emblem span { transform:rotate(-45deg); color:#a9d7ff; font:800 18px Oswald,sans-serif; }
.tester-role-copy > span { color:#5d9ed4; font-size:9px; font-weight:900; letter-spacing:.16em; }
.tester-role-copy h2 { margin:7px 0; color:#f2eee8; font:700 clamp(28px,4vw,42px)/1 Oswald,sans-serif; text-transform:uppercase; }
.tester-role-copy p { margin:0; color:#88817a; font-size:11px; line-height:1.6; }
.tester-role-number { position:relative; z-index:2; color:#76b9ef; font:700 11px monospace; letter-spacing:.08em; }
.tester-role-card.role-chief { border-color:rgba(239,181,77,.25); background:radial-gradient(circle at 8% 50%,rgba(229,168,59,.15),transparent 28%),rgba(10,10,13,.94); }
.tester-role-card.role-chief .tester-role-emblem { border-color:rgba(238,183,82,.35); box-shadow:0 0 38px rgba(222,159,44,.18); }
.tester-role-card.role-chief .tester-role-emblem span,.tester-role-card.role-chief .tester-role-number,.tester-role-card.role-chief .tester-role-copy>span { color:#e9bd6d; }
.tester-role-card.role-deputy { border-color:rgba(190,154,255,.23); }
.tester-role-card.role-curator { border-color:rgba(77,218,179,.22); }
.tester-role-card.role-senior { border-color:rgba(80,176,255,.24); }
.tester-role-card.role-junior { border-color:rgba(160,166,177,.16); filter:saturate(.78); }
.rejection-profile-card {
    display:grid; grid-template-columns:70px 1fr; gap:22px; align-items:flex-start; margin-top:22px; padding:27px 29px;
    border:1px solid rgba(229,55,64,.19); border-radius:12px;
    background:radial-gradient(circle at 5% 20%,rgba(220,43,53,.12),transparent 30%),linear-gradient(145deg,rgba(255,255,255,.02),transparent 55%),rgba(11,9,11,.94);
    box-shadow:0 24px 70px rgba(0,0,0,.3);
}
.rejection-profile-icon { width:60px; height:60px; display:grid; place-items:center; border:1px solid rgba(234,70,78,.3); border-radius:50%; color:#ff6870; background:rgba(221,44,54,.08); font:400 35px/1 Oswald,sans-serif; box-shadow:0 0 35px rgba(222,44,54,.12); }
.rejection-profile-card span { color:#e35c64; font-size:9px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.rejection-profile-card h2 { margin:7px 0 9px; color:#f4e9e9; font:700 clamp(25px,3.4vw,38px)/1.05 Oswald,sans-serif; text-transform:uppercase; }
.rejection-profile-card p { margin:0; color:#978d88; font-size:12px; line-height:1.7; }
.reapply-countdown-note { display:inline-flex; margin-top:14px; padding:9px 12px; border:1px solid rgba(232,75,83,.18); border-radius:7px; color:#dca1a4; background:rgba(224,52,61,.045); font-size:10px; font-weight:800; }
.reapply-now-button { display:inline-flex; min-height:46px; align-items:center; margin-top:15px; padding:0 17px; border:1px solid rgba(66,205,100,.25); border-radius:7px; color:#b5efc0; background:linear-gradient(135deg,rgba(41,144,65,.28),rgba(19,73,33,.48)); font-size:9px; font-weight:900; letter-spacing:.09em; transition:.2s ease; }
.reapply-now-button:hover { transform:translateY(-1px); filter:brightness(1.12); }
@media(max-width:720px){ .tester-role-card{grid-template-columns:64px 1fr}.tester-role-number{grid-column:2}.tester-role-emblem{width:56px;height:56px}.rejection-profile-card{grid-template-columns:1fr}.rejection-profile-icon{width:52px;height:52px} }

/* ================================
   BETA DASHBOARD
================================ */
.beta-dashboard {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.1);
    background:
        radial-gradient(circle at 85% 0%, rgba(190,20,30,.16), transparent 34%),
        linear-gradient(145deg, rgba(19,19,23,.96), rgba(8,8,10,.96));
    box-shadow: 0 28px 80px rgba(0,0,0,.36);
}

.beta-dashboard::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0 68%, rgba(255,255,255,.025) 68% 69%, transparent 69%);
}

.beta-dashboard-head,
.support-panel-head,
.device-binding-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.beta-dashboard-head h2,
.support-panel-head h2,
.device-binding-head h2 {
    margin: 4px 0 8px;
}

.beta-dashboard-head p,
.support-panel-head p,
.device-binding-head p {
    margin: 0;
    color: #8f8a84;
    line-height: 1.7;
}

.dashboard-build,
.support-counter,
.device-state {
    flex: 0 0 auto;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.035);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.dashboard-stat {
    min-height: 145px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(7,7,9,.68);
}

.dashboard-stat > span {
    display: block;
    margin-bottom: 15px;
    color: #79746f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dashboard-stat strong {
    display: block;
    color: #f7f2eb;
    font-size: 18px;
}

.dashboard-stat small {
    display: block;
    margin-top: 10px;
    color: #8f8a84;
    line-height: 1.5;
}

.dashboard-stat.status-approved { border-color: rgba(58,221,112,.24); box-shadow: inset 0 0 30px rgba(58,221,112,.035); }
.dashboard-stat.status-rejected { border-color: rgba(255,49,56,.24); box-shadow: inset 0 0 30px rgba(255,49,56,.035); }
.dashboard-stat.status-review { border-color: rgba(255,185,61,.22); }

.dashboard-news {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
}

.dashboard-news-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255,49,56,.35);
    background: rgba(255,49,56,.08);
    color: #ff5157;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}

.dashboard-news span {
    color: #77716c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dashboard-news p {
    margin: 6px 0 0;
    color: #d8d2ca;
    line-height: 1.65;
}

.dashboard-task-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.dashboard-task-grid article {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(8,8,10,.7);
}

.dashboard-task-grid article > span {
    color: #ff4148;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-task-grid strong {
    display: block;
    margin-top: 12px;
}

.dashboard-task-grid p {
    margin: 8px 0 0;
    color: #817c76;
    font-size: 12px;
    line-height: 1.6;
}

.dashboard-download-button {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 16px;
    padding: 18px 22px;
    border: 1px solid rgba(255,74,80,.55);
    background: linear-gradient(135deg, #d91f27, #8d0d13);
    color: white;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .13em;
    box-shadow: 0 16px 38px rgba(190,20,30,.24), inset 0 1px rgba(255,255,255,.18);
    transition: .25s ease;
}

.dashboard-download-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.12);
    box-shadow: 0 22px 50px rgba(190,20,30,.34), inset 0 1px rgba(255,255,255,.2);
}

.dashboard-download-button b { font-size: 22px; }

.dashboard-waiting {
    margin-top: 14px;
    padding: 16px 18px;
    border-left: 2px solid #7e7771;
    background: rgba(255,255,255,.025);
    color: #918b85;
    font-size: 12px;
}

/* ================================
   DEVICE BINDING
================================ */
.device-binding-panel {
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid rgba(107,157,255,.16);
    background:
        radial-gradient(circle at 100% 0%, rgba(59,118,255,.12), transparent 35%),
        rgba(12,12,15,.9);
}

.device-state.bound {
    color: #8df0ad;
    border-color: rgba(65,220,110,.3);
    background: rgba(65,220,110,.06);
}

.device-state.waiting {
    color: #9dbdff;
    border-color: rgba(96,145,255,.3);
    background: rgba(96,145,255,.06);
}

.device-token-card {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: #08080a;
}

.device-token-card > span,
.device-token-card small {
    display: block;
    color: #77716c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.device-token-card code {
    display: block;
    overflow-wrap: anywhere;
    margin: 11px 0;
    color: #dce6ff;
    font-size: 13px;
}

.device-note {
    margin: 14px 0 0;
    color: #77716c;
    font-size: 11px;
    line-height: 1.65;
}

.device-note code {
    color: #a9c1ff;
}

/* ================================
   SUPPORT TICKETS
================================ */
.support-panel {
    margin-bottom: 28px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.09);
    background:
        radial-gradient(circle at 10% 0%, rgba(157,86,255,.09), transparent 34%),
        rgba(12,12,15,.9);
}

.support-counter {
    color: #c5a8ff;
    border-color: rgba(158,103,255,.25);
}

.support-ticket-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(7,7,9,.65);
}

.support-ticket-form label > span {
    display: block;
    margin-bottom: 8px;
    color: #bdb7b0;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.support-ticket-form input,
.support-ticket-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.1);
    background: #070709;
    color: white;
    outline: none;
    padding: 14px 15px;
}

.support-ticket-form textarea {
    min-height: 120px;
    resize: vertical;
}

.support-ticket-form input:focus,
.support-ticket-form textarea:focus {
    border-color: rgba(171,112,255,.55);
    box-shadow: 0 0 0 4px rgba(171,112,255,.07);
}

.support-submit-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(177,117,255,.45);
    padding: 16px 18px;
    background: linear-gradient(135deg, #6f37ba, #3f1b74);
    color: white;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    cursor: pointer;
    transition: .25s;
}

.support-submit-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 16px 35px rgba(105,50,180,.25);
}

.ticket-thread-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.ticket-thread {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(8,8,10,.72);
}

.ticket-thread.answered { border-color: rgba(65,220,110,.18); }
.ticket-thread.open { border-color: rgba(255,185,61,.15); }

.ticket-thread-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.ticket-thread-head > div > span {
    color: #68635f;
    font-size: 9px;
}

.ticket-thread-head h3 {
    margin: 5px 0 0;
    font-size: 18px;
}

.ticket-state {
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.1);
    color: #aca59e;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}

.ticket-thread.answered .ticket-state {
    color: #7ee59d;
    border-color: rgba(65,220,110,.22);
    background: rgba(65,220,110,.045);
}

.ticket-user-message,
.ticket-admin-reply {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.06);
    background: #08080a;
}

.ticket-admin-reply {
    margin-left: 24px;
    border-color: rgba(177,117,255,.16);
    background: rgba(92,45,150,.08);
}

.ticket-user-message strong,
.ticket-admin-reply strong {
    font-size: 10px;
    color: #d7d1cb;
}

.ticket-user-message p,
.ticket-admin-reply p {
    margin: 8px 0;
    color: #aaa39c;
    font-size: 12px;
    line-height: 1.65;
}

.ticket-user-message time,
.ticket-admin-reply time {
    color: #5f5a56;
    font-size: 9px;
}

@media (max-width: 900px) {
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .dashboard-task-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .beta-dashboard,
    .device-binding-panel,
    .support-panel { padding: 20px; }

    .beta-dashboard-head,
    .support-panel-head,
    .device-binding-head {
        flex-direction: column;
    }

    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-news { grid-template-columns: 1fr; }
    .ticket-thread-head { flex-direction: column; }
    .ticket-admin-reply { margin-left: 0; }
}
