/* Korinish uslublari: <html data-style="..."> (glass | frost | bento | oled). Standart uslub app.css da. */

/* ===== shisha uslublar uchun jonli fon ===== */
[data-style="glass"] body::before, [data-style="frost"] body::before {
  display: block; content: ""; position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 30% at 12% 8%, var(--b1), transparent 70%),
    radial-gradient(34% 28% at 92% 22%, var(--b2), transparent 70%),
    radial-gradient(40% 32% at 20% 78%, var(--b3), transparent 70%),
    radial-gradient(34% 30% at 88% 92%, var(--b4), transparent 70%);
  filter: saturate(1.1);
}
[data-style="glass"], [data-style="frost"] {
  --b1: rgba(255, 120, 170, .55); --b2: rgba(150, 120, 255, .5); --b3: rgba(255, 170, 120, .45); --b4: rgba(110, 190, 255, .45);
}
[data-style="glass"][data-theme="dark"], [data-style="frost"][data-theme="dark"] {
  --b1: rgba(255, 70, 140, .38); --b2: rgba(110, 80, 255, .4); --b3: rgba(255, 120, 70, .25); --b4: rgba(50, 140, 255, .3);
}

/* ===== Liquid Glass 3D ===== */
[data-style="glass"] { --glass: rgba(255, 255, 255, .42); --glass-edge: rgba(255, 255, 255, .75); --r: 28px; }
[data-style="glass"][data-theme="dark"] { --glass: rgba(255, 255, 255, .08); --glass-edge: rgba(255, 255, 255, .22); }
[data-style="glass"] .block, [data-style="glass"] .week, [data-style="glass"] .burn, [data-style="glass"] .news article,
[data-style="glass"] .course, [data-style="glass"] .line, [data-style="glass"] .stats > div, [data-style="glass"] .menu-item,
[data-style="glass"] details.faq, [data-style="glass"] .minis button, [data-style="glass"] .steps li, [data-style="glass"] .podium .spot,
[data-style="glass"] .segment, [data-style="glass"] .chip-balance, [data-style="glass"] .round, [data-style="glass"] .chips button,
[data-style="glass"] .btn, [data-style="glass"] .stats3 button, [data-style="glass"] .banner, [data-style="glass"] .sheet {
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .85), inset 0 -10px 18px rgba(255, 255, 255, .12),
    0 18px 38px rgba(80, 40, 120, .16), 0 2px 6px rgba(80, 40, 120, .08);
}
[data-style="glass"][data-theme="dark"] .block, [data-style="glass"][data-theme="dark"] .week, [data-style="glass"][data-theme="dark"] .burn,
[data-style="glass"][data-theme="dark"] .course, [data-style="glass"][data-theme="dark"] .line, [data-style="glass"][data-theme="dark"] .stats3 button,
[data-style="glass"][data-theme="dark"] .menu-item, [data-style="glass"][data-theme="dark"] .bnav, [data-style="glass"][data-theme="dark"] .sheet {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -10px 18px rgba(255, 255, 255, .04), 0 18px 38px rgba(0, 0, 0, .4);
}
[data-style="glass"] .stats3 button:nth-child(n), [data-style="glass"] .banner, [data-style="glass"] .news article.pin, [data-style="glass"] .burn.hot,
[data-style="glass"] .podium .spot.first, [data-style="glass"] .line.me { background: var(--glass); }
[data-style="glass"] .stats3 button { position: relative; overflow: hidden; }
[data-style="glass"] .week .day i { background: rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); }
[data-style="glass"] .week .day.on i { background: var(--grad); }
/* 3D tugmalar: yuqorida yorug' chiziq va pastda chuqurlik */
[data-style="glass"] .cta, [data-style="glass"] .bnav-item.active, [data-style="glass"] .avatar, [data-style="glass"] .burn-icon {
  background: var(--grad); border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -6px 10px rgba(120, 0, 50, .28), 0 14px 26px var(--gold-glow);
  position: relative;
}
[data-style="glass"] .cta::after { content: ""; position: absolute; inset: 2px 12px auto; height: 42%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); pointer-events: none; }
[data-style="glass"] .cta:active { transform: translateY(2px) scale(.99); box-shadow: inset 0 2px 8px rgba(120, 0, 50, .35), 0 6px 12px var(--gold-glow); }
[data-style="glass"] .cta:disabled { background: var(--glass); box-shadow: none; }
[data-style="glass"] .bnav { background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(200%); backdrop-filter: blur(30px) saturate(200%); border: 1px solid var(--glass-edge); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .8), 0 20px 40px rgba(80, 40, 120, .22); }
[data-style="glass"] .course:active, [data-style="glass"] .stats3 button:active { transform: scale(.97); }
[data-style="glass"] .segment button[aria-pressed="true"] { background: var(--grad); color: var(--on-gold); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), 0 8px 16px var(--gold-glow); }
[data-style="glass"] .chips button[aria-pressed="true"] { background: var(--grad); color: var(--on-gold); }
[data-style="glass"] .cta-bar { background: none; }
[data-style="glass"] .cover { border-radius: 24px 24px 0 0; }
[data-style="glass"] .cover.tall { border-radius: 30px; }
[data-style="glass"] .page { background: var(--bg); }
[data-style="glass"] .page::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(38% 30% at 12% 8%, var(--b1), transparent 70%), radial-gradient(34% 28% at 92% 22%, var(--b2), transparent 70%),
    radial-gradient(40% 32% at 20% 78%, var(--b3), transparent 70%), radial-gradient(34% 30% at 88% 92%, var(--b4), transparent 70%); }

/* ===== Frosted Glassmorphism: mat, nozik, tekis ===== */
[data-style="frost"] { --frost: rgba(255, 255, 255, .55); --frost-edge: rgba(255, 255, 255, .6); --r: 20px; }
[data-style="frost"][data-theme="dark"] { --frost: rgba(40, 28, 54, .55); --frost-edge: rgba(255, 255, 255, .1); }
[data-style="frost"] .block, [data-style="frost"] .week, [data-style="frost"] .burn, [data-style="frost"] .news article, [data-style="frost"] .course,
[data-style="frost"] .line, [data-style="frost"] .stats > div, [data-style="frost"] .menu-item, [data-style="frost"] details.faq, [data-style="frost"] .minis button,
[data-style="frost"] .steps li, [data-style="frost"] .podium .spot, [data-style="frost"] .segment, [data-style="frost"] .chip-balance, [data-style="frost"] .round,
[data-style="frost"] .chips button, [data-style="frost"] .btn, [data-style="frost"] .stats3 button, [data-style="frost"] .banner, [data-style="frost"] .bnav,
[data-style="frost"] .sheet, [data-style="frost"] .amount-box {
  background: var(--frost);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--frost-edge); box-shadow: 0 8px 28px rgba(60, 30, 100, .08);
}
[data-style="frost"] .stats3 button:nth-child(n), [data-style="frost"] .banner, [data-style="frost"] .news article.pin, [data-style="frost"] .burn.hot,
[data-style="frost"] .podium .spot.first { background: var(--frost); }
[data-style="frost"] .burn.hot, [data-style="frost"] .podium .spot.first, [data-style="frost"] .line.me { border-color: var(--gold); }
[data-style="frost"] .bnav { box-shadow: 0 10px 30px rgba(60, 30, 100, .15); }
[data-style="frost"] .week .day i { background: rgba(255, 255, 255, .55); }
[data-style="frost"] .week .day.on i { background: var(--grad); }
[data-style="frost"] .segment button[aria-pressed="true"], [data-style="frost"] .chips button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
[data-style="frost"] .cta { box-shadow: 0 8px 20px var(--gold-glow); }
[data-style="frost"] .cover { border-radius: 18px 18px 0 0; }
[data-style="frost"] .cta-bar { background: none; }
[data-style="frost"] .page { background: var(--bg); }
[data-style="frost"] .page::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(38% 30% at 12% 8%, var(--b1), transparent 70%), radial-gradient(34% 28% at 92% 22%, var(--b2), transparent 70%),
    radial-gradient(40% 32% at 20% 78%, var(--b3), transparent 70%), radial-gradient(34% 30% at 88% 92%, var(--b4), transparent 70%); }

/* ===== Bento Grid: har xil olchamli rangli bloklar ===== */
[data-style="bento"] { --r: 28px; --shadow: none; }
[data-style="bento"] .block, [data-style="bento"] .week, [data-style="bento"] .burn, [data-style="bento"] .news article, [data-style="bento"] .course,
[data-style="bento"] .line, [data-style="bento"] .stats > div, [data-style="bento"] .menu-item, [data-style="bento"] details.faq, [data-style="bento"] .minis button,
[data-style="bento"] .steps li, [data-style="bento"] .podium .spot, [data-style="bento"] .segment, [data-style="bento"] .chip-balance, [data-style="bento"] .round,
[data-style="bento"] .chips button, [data-style="bento"] .btn, [data-style="bento"] .bnav { box-shadow: none; border: 1px solid var(--line); }
[data-style="bento"] .bnav { border-radius: 30px; box-shadow: 0 6px 20px rgba(42, 22, 64, .1); }
[data-style="bento"] .cards.two { gap: 10px; }
[data-style="bento"] .cards.two .course:nth-child(5n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
[data-style="bento"] .cards.two .course:nth-child(5n+1) .cover { aspect-ratio: auto; min-height: 150px; height: 100%; }
[data-style="bento"] .cards.two .course:nth-child(5n+1) .body { align-content: center; padding: 14px; }
[data-style="bento"] .cards.two .course:nth-child(5n+1) .body h3 { font-size: 17px; }
[data-style="bento"] .cards.two .course:nth-child(5n+4) .cover { aspect-ratio: 1; }
[data-style="bento"] .stats3 { gap: 10px; grid-template-columns: 1.3fr 1fr 1fr; }
[data-style="bento"] .stats3 button { padding: 16px 14px; border: 0; border-radius: 28px; }
[data-style="bento"] .stats3 b { font-size: 22px; }
[data-style="bento"] .stats > div:nth-child(1), [data-style="bento"] .steps li:nth-child(1) { background: #ffe0ee; }
[data-style="bento"] .stats > div:nth-child(2), [data-style="bento"] .steps li:nth-child(2) { background: #ece1ff; }
[data-style="bento"] .stats > div:nth-child(3), [data-style="bento"] .steps li:nth-child(3) { background: #ffeed4; }
[data-style="bento"][data-theme="dark"] .stats > div:nth-child(1), [data-style="bento"][data-theme="dark"] .steps li:nth-child(1) { background: #3b2132; }
[data-style="bento"][data-theme="dark"] .stats > div:nth-child(2), [data-style="bento"][data-theme="dark"] .steps li:nth-child(2) { background: #2e2447; }
[data-style="bento"][data-theme="dark"] .stats > div:nth-child(3), [data-style="bento"][data-theme="dark"] .steps li:nth-child(3) { background: #3b2e22; }
[data-style="bento"] .steps li, [data-style="bento"] .burn { border: 0; }
[data-style="bento"] .minis button { width: 150px; }
[data-style="bento"] .minis button:nth-child(odd) .cover { aspect-ratio: 1; }
[data-style="bento"] .podium .spot, [data-style="bento"] .amount-box { border-radius: 28px; }

/* ===== OLED Black: sof qora, tejamkor, neon aksent ===== */
:root[data-style="oled"][data-theme] {
  --bg: #000; --surface: #0c0c0f; --surface-2: #17171c; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --ink: #f4f4f7; --text: #f4f4f7; --text2: #b4b4c0; --text3: #7a7a88;
  --gold: #ff4f93; --gold-bg: rgba(255, 79, 147, .13); --gold-glow: rgba(255, 79, 147, .3); --on-gold: #000;
  --grad: linear-gradient(135deg, #ff6aa6, #ff3d88); --shadow: none; --r: 20px;
}
[data-style="oled"] .block, [data-style="oled"] .week, [data-style="oled"] .burn, [data-style="oled"] .news article, [data-style="oled"] .course,
[data-style="oled"] .line, [data-style="oled"] .stats > div, [data-style="oled"] .menu-item, [data-style="oled"] details.faq, [data-style="oled"] .minis button,
[data-style="oled"] .steps li, [data-style="oled"] .podium .spot, [data-style="oled"] .segment, [data-style="oled"] .chip-balance, [data-style="oled"] .round,
[data-style="oled"] .chips button, [data-style="oled"] .btn, [data-style="oled"] .bnav, [data-style="oled"] .stats3 button, [data-style="oled"] .banner, [data-style="oled"] .sheet {
  background: var(--surface); border: 1px solid var(--line); box-shadow: none;
}
[data-style="oled"] .stats3 button:nth-child(n), [data-style="oled"] .banner, [data-style="oled"] .news article.pin, [data-style="oled"] .burn.hot,
[data-style="oled"] .podium .spot.first { background: var(--surface); }
[data-style="oled"] .burn.hot, [data-style="oled"] .podium .spot.first, [data-style="oled"] .line.me { border-color: var(--gold); box-shadow: 0 0 22px var(--gold-bg); }
[data-style="oled"] .bnav-item.active { box-shadow: 0 0 18px var(--gold-glow); }
[data-style="oled"] .cta { box-shadow: 0 0 24px var(--gold-glow); }
[data-style="oled"] .week .day.on i { box-shadow: 0 0 12px var(--gold-glow); }
[data-style="oled"] .cta-bar { background: linear-gradient(180deg, transparent, #000 32%); }
[data-style="oled"] .overlay { background: rgba(0, 0, 0, .7); }
[data-style="oled"] .level-card { box-shadow: 0 0 30px var(--gold-bg); }
[data-style="oled"] .toast { background: #f4f4f7; color: #000; }
[data-style="oled"] .segment button[aria-pressed="true"], [data-style="oled"] .chips button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }

/* uslub tanlagich */
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.styles button { display: grid; gap: 6px; padding: 8px; border-radius: 18px; text-align: left; background: var(--surface-2); border: 2px solid transparent; font-weight: 700; font-size: 12.5px; color: var(--ink); }
.styles button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-bg); }
.styles i { display: block; height: 46px; border-radius: 12px; }
.styles .s-classic { background: linear-gradient(135deg, #fff 0 50%, #f3eef9 50%); box-shadow: inset 0 0 0 1px rgba(42, 22, 64, .12); }
.styles .s-glass { background: radial-gradient(60% 80% at 20% 20%, #ff9ac2, transparent), radial-gradient(60% 80% at 85% 80%, #a99bff, transparent), rgba(255, 255, 255, .6); box-shadow: inset 0 2px 0 #fff, inset 0 -8px 12px rgba(255, 255, 255, .4); }
.styles .s-frost { background: radial-gradient(70% 90% at 80% 20%, #ffc7a8, transparent), radial-gradient(70% 90% at 15% 90%, #b7c6ff, transparent), rgba(255, 255, 255, .55); }
.styles .s-bento { background: linear-gradient(90deg, #ffe0ee 0 55%, transparent 55% 58%, #ece1ff 58%); box-shadow: inset 0 0 0 1px rgba(42, 22, 64, .08); }
.styles .s-oled { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), inset 0 0 14px rgba(255, 79, 147, .35); }
