.dashboard-v2{
    width:100%;
    min-width:0;
    padding:24px 30px 34px;
    color:var(--aq-shell-ink);
    font-family:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.dashboard-v2 *,
.dashboard-v2 *::before,
.dashboard-v2 *::after{box-sizing:border-box}

.dashboard-v2 a{color:inherit}
.dashboard-v2 button,
.dashboard-v2 a{font:inherit}
.dashboard-v2 :focus-visible{outline:2px solid var(--aq-shell-cyan);outline-offset:2px}

.dashboard-card{
    min-width:0;
    padding:20px 22px;
    border:1px solid var(--aq-shell-line);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 30px rgba(8,21,43,.06);
}

.dashboard-section-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
}

.dashboard-section-head h2,
.dashboard-section-head h3{
    margin:0;
    color:var(--aq-shell-ink);
    font-family:"Sora","Manrope",sans-serif;
    font-size:16px;
    font-weight:800;
}

.dashboard-section-head a{
    min-height:44px;
    margin-left:auto;
    display:inline-flex;
    align-items:center;
    color:#0a7f96;
    font-size:12.5px;
    font-weight:800;
    text-decoration:none;
}

.dashboard-eyebrow{
    margin:0;
    color:var(--aq-shell-faint);
    font-size:12px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.dashboard-hero{
    position:relative;
    overflow:hidden;
    min-height:190px;
    padding:26px 28px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:center;
    border-radius:24px;
    color:#fff;
    background:
        radial-gradient(460px 220px at 8% 0%,rgba(16,196,227,.22),transparent 70%),
        radial-gradient(360px 190px at 100% 100%,rgba(242,176,25,.14),transparent 72%),
        linear-gradient(135deg,#0f2340,#0b1a31);
}

.dashboard-hero-copy{position:relative;z-index:1;min-width:0}
.dashboard-stage{
    min-height:30px;
    padding:0 12px;
    display:inline-flex;
    align-items:center;
    border:1px solid rgba(16,196,227,.34);
    border-radius:999px;
    background:rgba(16,196,227,.1);
    color:#5fe6fb;
    font-size:12px;
    font-weight:800;
}

.dashboard-hero h1{
    max-width:720px;
    margin:13px 0 0;
    color:#fff;
    font-family:"Sora","Manrope",sans-serif;
    font-size:30px;
    line-height:1.18;
    font-weight:800;
    letter-spacing:0;
}

.dashboard-hero-description{
    max-width:680px;
    margin:9px 0 0;
    color:rgba(255,255,255,.66);
    font-size:13.5px;
    line-height:1.55;
}

.dashboard-next-step{
    max-width:100%;
    min-height:44px;
    margin-top:14px;
    padding:8px 13px;
    display:inline-flex;
    align-items:center;
    gap:9px;
    border:1px solid rgba(16,196,227,.28);
    border-radius:12px;
    background:rgba(16,196,227,.1);
    color:#5fe6fb;
    font-size:12.5px;
    line-height:1.35;
    font-weight:700;
    text-decoration:none;
}

.dashboard-next-step::before{content:"→";font-size:15px}

.dashboard-actions{
    margin-top:16px;
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.dashboard-primary,
.dashboard-secondary{
    min-height:48px;
    padding:0 18px;
    border-radius:13px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:13.5px;
    font-weight:800;
    text-decoration:none;
}

.dashboard-primary{border:0;background:var(--aq-shell-cyan);color:var(--aq-shell-cyan-ink)!important}
.dashboard-secondary{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:#fff!important}

.dashboard-stat-row{
    position:relative;
    z-index:1;
    display:flex;
    gap:10px;
}

.dashboard-stat{
    width:112px;
    min-width:112px;
    min-height:104px;
    padding:14px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    background:rgba(255,255,255,.055);
}

.dashboard-stat.is-gold{background:rgba(242,176,25,.12)}
.dashboard-stat span{display:block;color:rgba(255,255,255,.56);font-size:12px;font-weight:800;text-transform:uppercase}
.dashboard-stat strong{display:block;margin-top:8px;color:#fff;font-family:"Sora","Manrope",sans-serif;font-size:24px;font-weight:800;white-space:nowrap}
.dashboard-stat small{display:block;margin-top:4px;color:#31d67f;font-size:12px;font-weight:800}
.dashboard-stat.is-gold span,.dashboard-stat.is-gold small{color:var(--aq-shell-gold)}

.dashboard-sync{
    min-height:32px;
    margin:12px 0 0;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:7px;
    color:var(--aq-shell-muted);
    font-size:12px;
    font-weight:700;
}
.dashboard-sync::before{content:"";width:8px;height:8px;border-radius:50%;background:#31d67f}
.dashboard-sync.is-partial::before{background:var(--aq-shell-gold)}

.dashboard-body{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    gap:18px;
    align-items:start;
}

.dashboard-main-column,
.dashboard-rail{min-width:0;display:grid;gap:16px}
.dashboard-rail{gap:14px}

.dashboard-digest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dashboard-digest{
    min-height:64px;
    padding:12px;
    display:flex;
    align-items:center;
    gap:11px;
    border:1px solid var(--aq-shell-line);
    border-radius:16px;
    text-decoration:none;
}
.dashboard-digest-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    border-radius:11px;
    display:grid;
    place-items:center;
    background:var(--aq-shell-cyan-tint);
    color:#0a7f96;
    font-family:"Sora","Manrope",sans-serif;
    font-size:12px;
    font-weight:800;
}
.dashboard-digest.is-gold .dashboard-digest-icon{background:rgba(242,176,25,.14);color:#a8760a}
.dashboard-digest.is-success .dashboard-digest-icon{background:rgba(23,163,74,.12);color:#17a34a}
.dashboard-digest strong,.dashboard-digest span{display:block}
.dashboard-digest strong{font-size:13px;line-height:1.35}
.dashboard-digest span{margin-top:2px;color:var(--aq-shell-muted);font-size:12px;line-height:1.35}

.dashboard-progress-head{display:flex;align-items:end;justify-content:space-between;gap:12px}
.dashboard-progress-head strong{font-family:"Sora","Manrope",sans-serif;font-size:18px}
.dashboard-progress-head span{color:var(--aq-shell-muted);font-size:12.5px;font-weight:700}
.dashboard-progress-track{height:10px;margin-top:13px;overflow:hidden;border-radius:999px;background:#e9edf4}
.dashboard-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--aq-shell-gold),#ffd469)}
.dashboard-progress-meta{margin-top:9px;display:flex;justify-content:space-between;gap:12px;color:var(--aq-shell-muted);font-size:12px;font-weight:700}
.dashboard-progress-meta span:last-child{text-align:right}

.dashboard-match-list{display:grid;gap:9px}
.dashboard-match{
    min-height:64px;
    padding:10px 12px;
    display:grid;
    grid-template-columns:76px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    border:1px solid var(--aq-shell-line);
    border-radius:16px;
    color:var(--aq-shell-ink);
    text-decoration:none;
}
.dashboard-match:hover{box-shadow:0 14px 34px rgba(8,21,43,.1)}
.dashboard-match-meta{color:var(--aq-shell-faint);font-size:12px;font-weight:700}
.dashboard-match-meta strong{display:block;color:var(--aq-shell-ink);font-size:13px}
.dashboard-match-teams{min-width:0;display:grid;gap:5px}
.dashboard-team{min-width:0;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
.dashboard-team span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-crest{
    width:26px;
    height:26px;
    flex:0 0 26px;
    border-radius:8px;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:#f1f4f9;
    color:var(--aq-shell-muted);
    font-family:"Sora","Manrope",sans-serif;
    font-size:12px;
    font-weight:800;
}
.dashboard-crest img{width:20px;height:20px;object-fit:contain}
.dashboard-prediction{
    min-height:34px;
    max-width:210px;
    padding:7px 12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px dashed rgba(10,26,48,.2);
    border-radius:999px;
    color:var(--aq-shell-muted);
    font-size:12px;
    line-height:1.2;
    font-weight:800;
    text-align:center;
}
.dashboard-prediction.is-saved{border-style:solid;border-color:rgba(16,196,227,.2);background:var(--aq-shell-cyan-tint);color:#0a7f96}

.dashboard-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}
.dashboard-tab{
    min-height:44px;
    padding:0 14px;
    flex:0 0 auto;
    border:1px solid var(--aq-shell-line);
    border-radius:999px;
    background:#fff;
    color:var(--aq-shell-muted);
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}
.dashboard-tab[aria-selected="true"]{background:var(--aq-shell-ink);color:#fff}
.dashboard-tournament-list{margin-top:12px;display:grid;gap:8px}
.dashboard-tournament{
    min-height:50px;
    padding:10px 12px;
    display:flex;
    align-items:center;
    gap:10px;
    border-radius:14px;
    background:var(--aq-shell-soft);
    text-decoration:none;
}
.dashboard-tournament strong{font-size:13px}
.dashboard-tournament span{margin-left:auto;color:var(--aq-shell-muted);font-size:12px}
.dashboard-inline-empty{margin:0;padding:18px;border:1px dashed rgba(10,26,48,.18);border-radius:14px;color:var(--aq-shell-muted);font-size:12.5px;line-height:1.5}

.dashboard-rail .dashboard-card{padding:18px}
.dashboard-rail-title{margin:0;color:var(--aq-shell-faint);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.dashboard-rail-value{display:block;margin-top:8px;font-family:"Sora","Manrope",sans-serif;font-size:26px;font-weight:800}
.dashboard-rail-copy{margin:6px 0 0;color:var(--aq-shell-muted);font-size:12.5px;line-height:1.5}
.dashboard-rail-link{
    min-height:44px;
    margin-top:10px;
    display:flex;
    align-items:center;
    color:#0a7f96!important;
    font-size:12.5px;
    font-weight:800;
    text-decoration:none;
}
.dashboard-ai-card{
    color:#fff;
    background:linear-gradient(135deg,#132b4f,#0d1e3a);
}
.dashboard-ai-card .dashboard-rail-title{color:#5fe6fb}
.dashboard-ai-card .dashboard-rail-copy{color:rgba(255,255,255,.65)}
.dashboard-ai-grid{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dashboard-ai-stat{padding:11px;border-radius:13px;background:rgba(255,255,255,.06)}
.dashboard-ai-stat span,.dashboard-ai-stat strong{display:block}
.dashboard-ai-stat span{color:rgba(255,255,255,.55);font-size:12px;font-weight:700}
.dashboard-ai-stat strong{margin-top:4px;font-family:"Sora","Manrope",sans-serif;font-size:17px}
.dashboard-ai-recommendation{margin-top:10px;padding:11px;border:1px solid rgba(16,196,227,.2);border-radius:13px;background:rgba(16,196,227,.08);color:#d7f9ff;font-size:12px;line-height:1.5}
.dashboard-ai-card .dashboard-rail-link{color:#5fe6fb!important}

.dashboard-next-list{margin-top:8px}
.dashboard-next{
    min-height:48px;
    display:flex;
    align-items:center;
    gap:10px;
    border-top:1px solid var(--aq-shell-line);
    font-size:12.5px;
    font-weight:750;
    text-decoration:none;
}
.dashboard-next:first-child{border-top:0}
.dashboard-next span:last-child{margin-left:auto;color:var(--aq-shell-faint);font-size:12px}

.dashboard-empty{
    max-width:780px;
    margin:40px auto;
    padding:30px;
    border-radius:24px;
    color:#fff;
    background:
        radial-gradient(380px 180px at 10% 0%,rgba(16,196,227,.22),transparent 70%),
        linear-gradient(135deg,#0f2340,#0b1a31);
}
.dashboard-empty h1{margin:10px 0 0;font-family:"Sora","Manrope",sans-serif;font-size:28px;line-height:1.2}
.dashboard-empty p{max-width:560px;margin:10px 0 0;color:rgba(255,255,255,.66);font-size:13.5px;line-height:1.55}
.dashboard-empty-principles{margin-top:20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dashboard-empty-principles div{padding:14px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.05)}
.dashboard-empty-principles strong,.dashboard-empty-principles span{display:block}
.dashboard-empty-principles strong{font-size:13px}
.dashboard-empty-principles span{margin-top:4px;color:rgba(255,255,255,.58);font-size:12px;line-height:1.4}

.dashboard-loading{display:grid;gap:18px}
.dashboard-loading-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px}
.dashboard-loading-grid>div{display:grid;gap:14px}
.dashboard-skeleton{
    min-width:0;
    border-radius:20px;
    background:linear-gradient(90deg,#e4e9f2 0%,#f2f5fa 40%,#e4e9f2 80%);
    background-size:380px 100%;
    animation:dashboard-shimmer 1.4s linear infinite;
}
.dashboard-skeleton.is-hero{height:190px;border-radius:24px}
.dashboard-skeleton.is-small{height:108px}
.dashboard-skeleton.is-medium{height:150px}
.dashboard-skeleton.is-large{height:260px}
.dashboard-loading p{margin:0;display:flex;justify-content:center;align-items:center;gap:9px;color:var(--aq-shell-muted);font-size:12.5px;font-weight:700}
.dashboard-spinner{width:16px;height:16px;border:2px solid rgba(16,196,227,.25);border-top-color:var(--aq-shell-cyan);border-radius:50%;animation:dashboard-spin .8s linear infinite}

@keyframes dashboard-shimmer{from{background-position:-380px 0}to{background-position:380px 0}}
@keyframes dashboard-spin{to{transform:rotate(360deg)}}

@media(max-width:980px){
    .dashboard-v2{padding:18px}
    .dashboard-hero{grid-template-columns:1fr}
    .dashboard-stat-row{overflow-x:auto;scrollbar-width:none}
    .dashboard-body{grid-template-columns:1fr}
    .dashboard-rail{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
    .dashboard-v2{padding:0 12px 96px}
    .dashboard-hero{margin:0;padding:16px 14px 18px;border-radius:20px;gap:14px}
    .dashboard-hero h1{font-size:24px}
    .dashboard-hero-description{font-size:13px}
    .dashboard-actions{display:none}
    .dashboard-sync{justify-content:flex-start}
    .dashboard-body{gap:12px}
    .dashboard-main-column,.dashboard-rail{gap:12px}
    .dashboard-card,.dashboard-rail .dashboard-card{padding:14px;border-radius:18px}
    .dashboard-digest-grid{grid-template-columns:1fr;gap:0}
    .dashboard-digest{padding:11px 0;border-width:1px 0 0;border-radius:0}
    .dashboard-digest:first-child{border-top:0}
    .dashboard-match{min-height:88px;grid-template-columns:58px minmax(0,1fr);gap:9px}
    .dashboard-prediction{grid-column:1/-1;justify-self:stretch;max-width:none}
    .dashboard-rail{grid-template-columns:1fr}
    .dashboard-empty{margin:16px 0;padding:22px}
    .dashboard-empty h1{font-size:22px}
    .dashboard-empty-principles{grid-template-columns:1fr}
    .dashboard-loading{padding-top:16px}
    .dashboard-loading-grid{grid-template-columns:1fr}
}

body.aq2-telegram .dashboard-v2{padding:14px 14px 104px}
body.aq2-telegram .dashboard-hero{margin:0;padding:18px;border-radius:18px}
body.aq2-telegram .dashboard-actions{display:none}

@media(max-width:390px){
    .dashboard-v2{padding-left:14px;padding-right:14px}
    .dashboard-hero{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px}
    .dashboard-stat{min-width:104px;width:104px}
    .dashboard-stat strong{font-size:19px}
}

@media(max-width:320px){
    .dashboard-v2{padding-left:12px;padding-right:12px}
    .dashboard-hero{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}
}

@media(prefers-reduced-motion:reduce){
    .dashboard-skeleton,.dashboard-spinner{animation:none}
}
