/* SportBash — дизайн как во Flutter (AppColors + EventsTheme) */
:root {
  --flag-blue: #2c5f9a;
  --flag-blue-dark: #1e4a78;
  --flag-green: #3a7d34;
  --kurai-gold: #e8b13e;
  --honey: #ffb347;
  --energy-red: #e63946;
  --surface: #f5f5f5;
  --surface-events: #f4f6f9;
  --card-border: #e8ecf1;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --text-hint: #bdc3c7;
  --text-events: #1a2b3c;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-btn: 14px;
  --shadow-card: 0 4px 28px rgba(0, 0, 0, 0.06), 0 4px 20px rgba(44, 95, 154, 0.08);
  --shadow-btn: 0 5px 16px rgba(0, 0, 0, 0.12);
  --app-max-width: 430px;
  --bottom-nav-h: 64px;
  --top-bar-h: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, #e8f4ff 0%, #f5faff 40%, #f5f5f5 100%);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ——— Auth (login_screen.dart) ——— */
.auth-scene {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px 16px 32px;
  position: relative;
  overflow: hidden;
}

.auth-scene::before,
.auth-scene::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-scene::before {
  width: 200px; height: 200px;
  top: -60px; right: -40px;
  background: radial-gradient(circle, rgba(44, 95, 154, 0.12), transparent 70%);
}

.auth-scene::after {
  width: 160px; height: 160px;
  bottom: 10%; left: -30px;
  background: radial-gradient(circle, rgba(44, 95, 154, 0.08), transparent 70%);
}

/* Premium login — login_screen.dart */
.auth-scene.auth-scene--login {
  align-items: center;
  padding: 20px;
  background: linear-gradient(145deg, #f5f7fa 0%, #ffffff 50%, #f0f2f6 100%);
  animation: auth-bg-shift 12s ease-in-out infinite alternate;
}

.auth-scene.auth-scene--login::before,
.auth-scene.auth-scene--login::after {
  display: none;
}

@keyframes auth-bg-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.auth-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.auth-blob--gold {
  width: 200px;
  height: 200px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(232, 177, 62, 0.06), rgba(232, 177, 62, 0.02), transparent 70%);
  animation: auth-blob-float-a 12s ease-in-out infinite alternate;
}

.auth-blob--blue {
  width: 160px;
  height: 160px;
  bottom: -60px;
  left: -30px;
  background: radial-gradient(circle, rgba(44, 95, 154, 0.04), rgba(44, 95, 154, 0.01), transparent 70%);
  animation: auth-blob-float-b 12s ease-in-out infinite alternate;
}

@keyframes auth-blob-float-a {
  from { transform: translate(0, 0); }
  to { transform: translate(12px, -16px); }
}

@keyframes auth-blob-float-b {
  from { transform: translate(0, 0); }
  to { transform: translate(-10px, 12px); }
}

.auth-frame--login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 40px);
  width: 100%;
}

.auth-header-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo-ring--premium {
  padding: 2px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--flag-blue), var(--flag-green));
  box-shadow: 0 4px 16px rgba(44, 95, 154, 0.15);
}

.auth-logo-inner--premium {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 0;
  overflow: hidden;
}

.auth-logo-inner--premium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-logo-fallback {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--flag-blue), var(--flag-green));
}

.auth-brand-premium {
  margin: 20px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.auth-tagline-premium {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-card--premium {
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: none;
}

.auth-card-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card--premium h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.auth-card--premium .subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-actions-premium {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-premium .material-symbols {
  font-size: 20px;
}

.btn-premium:active {
  transform: scale(0.98);
}

.btn-premium--email {
  background: linear-gradient(135deg, #0066ff, rgba(0, 102, 255, 0.85));
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.btn-premium--vk {
  background: linear-gradient(135deg, #4c75a8, rgba(76, 117, 168, 0.85));
  box-shadow: 0 4px 12px rgba(76, 117, 168, 0.2);
}

.btn-premium--tg {
  background: linear-gradient(135deg, #2ca5e0, rgba(44, 165, 224, 0.85));
  box-shadow: 0 4px 12px rgba(44, 165, 224, 0.2);
}

.auth-org-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 20px;
  color: var(--text-hint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.auth-org-divider::before,
.auth-org-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: #e9ecf0;
}

.btn-outline-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid #e9ecf0;
  background: #fff;
  color: #2c3e50;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-outline-premium .material-symbols {
  font-size: 20px;
}

.btn-outline-premium:active {
  transform: scale(0.98);
  background: rgba(44, 62, 80, 0.04);
}

.auth-legal-premium {
  text-align: center;
  margin: 24px 12px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-hint);
}

.auth-legal-premium a {
  color: var(--flag-blue);
  font-weight: 600;
  text-decoration: none;
}

.auth-frame {
  width: 100%;
  max-width: var(--app-max-width);
  position: relative;
  z-index: 1;
}

.auth-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.auth-logo-ring {
  padding: 3px;
  background: linear-gradient(135deg, var(--flag-blue), var(--flag-green), var(--kurai-gold));
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(44, 95, 154, 0.2);
}

.auth-logo-inner {
  width: 84px; height: 84px;
  background: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.auth-brand {
  margin: 20px 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, var(--flag-blue), var(--flag-green), var(--kurai-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-badge {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(44, 95, 154, 0.1);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.auth-card h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
}

.auth-card .subtitle {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 13px 18px;
  margin-bottom: 10px;
  border: none;
  border-radius: var(--radius-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-social:active { transform: scale(0.98); }

.btn-social .icon-wrap {
  padding: 9px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  display: flex;
}

.btn-email { background: linear-gradient(135deg, #4a90e2, #3a7bc8); }
.btn-vk { background: linear-gradient(135deg, #4c75a8, #3d6290); }
.btn-tg { background: linear-gradient(135deg, #2ca5e0, #2290c7); color: #fff; }
.btn-committee { background: linear-gradient(135deg, #2c3e50, #1a252f); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-hint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.auth-legal {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-hint);
  line-height: 1.6;
}

.tg-widget-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.tg-hint {
  text-align: center;
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.btn-social .material-symbols {
  font-size: 19px;
}

.form-hidden {
  display: none;
}

/* ——— Mobile app shell ——— */
.app-viewport {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: linear-gradient(160deg, #e8f4ff 0%, #f0f6fc 50%, #e8eef5 100%);
}

.app-device {
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  background: var(--surface);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-topbar {
  height: var(--top-bar-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  flex-shrink: 0;
  z-index: 10;
}

.app-topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.role-chip {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  text-decoration: none;
}

.role-chip.active {
  background: var(--kurai-gold);
  border-color: var(--kurai-gold);
  color: #1a2b3c;
}

.app-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--bottom-nav-h) + 16px);
  background: var(--surface-events);
}

.app-content {
  padding: 12px 12px 8px;
}

/* Gradient header (EventsPageHeader / EventsHubHeader) */
.flutter-header {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--flag-blue), var(--flag-blue-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(44, 95, 154, 0.25);
}

.flutter-header h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.flutter-header p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.flutter-header .row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.flutter-header .icon-box {
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 22px;
}

/* Cards */
.m-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.12s;
}

.m-card:active { transform: scale(0.99); }

.m-card.highlight-local {
  border-color: var(--flag-green);
  box-shadow: 0 4px 16px rgba(58, 125, 52, 0.15);
}

.m-card.dimmed { opacity: 0.65; }

.m-card-body { padding: 12px 14px; }

.m-card-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.m-card-stripe {
  width: 3px;
  min-height: 56px;
  border-radius: 4px;
  flex-shrink: 0;
}

.m-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.m-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-events);
  line-height: 1.3;
}

.m-card .meta {
  font-size: 12px;
  color: #5c6b7a;
  font-weight: 500;
}

.m-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
  margin-top: 6px;
}

.chip-blue { background: rgba(44, 95, 154, 0.12); color: var(--flag-blue); }
.chip-gold { background: rgba(232, 177, 62, 0.2); color: #8a6a12; }
.chip-green { background: rgba(58, 125, 52, 0.15); color: var(--flag-green); }

/* Filter chips */
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  text-decoration: none;
}

.filter-chip.active {
  background: var(--flag-blue);
  border-color: var(--flag-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(44, 95, 154, 0.28);
}

/* Flutter-style segmented tabs */
.tab-pills {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 16px 14px;
  background: #eef1f5;
  border-radius: 28px;
}

.tab-pills .filter-chip {
  flex: 1;
  text-align: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #6b7c8f;
  padding: 10px 8px;
  font-size: 12px;
}

.tab-pills .filter-chip.active {
  background: #fff;
  color: var(--flag-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sb-input,
.sb-select,
.schedule-date-bar input,
.m-card input[type="text"],
.m-card input[type="number"],
.m-card input[type="date"],
.m-card select,
.m-card textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #f8fafc;
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sb-input:focus,
.sb-select:focus,
.schedule-date-bar input:focus,
.m-card input:focus,
.m-card select:focus {
  outline: none;
  border-color: rgba(44, 95, 154, 0.45);
  box-shadow: 0 0 0 3px rgba(44, 95, 154, 0.12);
  background: #fff;
}

.btn-sm {
  padding: 8px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  min-height: auto !important;
  height: auto !important;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.progress-track {
  height: 8px;
  background: #e8ecf1;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--flag-green), #4caf50);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.panel-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.tariff-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tariff-row .tariff-info {
  flex: 1;
  min-width: 0;
}

.payment-expand {
  display: none;
  margin-bottom: 12px;
}

.payment-expand.is-open {
  display: block;
}

.app-content:has(.section-screen) {
  padding: 0;
}

/* Buttons */
.btn-primary-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--flag-blue), var(--flag-green));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(44, 95, 154, 0.3);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: #fff;
  color: var(--flag-blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 16px;
  background: #f8fafc;
}

/* Bottom navigation (Flutter BottomNavigationBar) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  height: var(--bottom-nav-h);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px env(safe-area-inset-bottom);
  z-index: 100;
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  text-decoration: none;
  color: #9e9e9e;
  font-size: 10px;
  font-weight: 500;
  position: relative;
  min-width: 0;
}

.bottom-nav a.active {
  color: var(--flag-blue);
  font-weight: 600;
}

.bottom-nav .material-symbols {
  font-size: 24px;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--energy-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alerts */
.flash {
  margin: 8px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.flash-success { background: #e8f5e9; color: #2e7d32; }
.flash-error { background: #fdecea; color: #c62828; }
.flash-info { background: #e3f2fd; color: #1565c0; }

/* Chat bubbles */
.chat-list { padding: 8px 0; }

.chat-bubble {
  max-width: 85%;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.chat-bubble.mine {
  margin-left: auto;
  background: #e3f2fd;
  border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
  background: #fff;
  border: 1px solid var(--card-border);
  border-bottom-left-radius: 4px;
}

.chat-compose {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid var(--card-border);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state .icon { font-size: 48px; opacity: 0.4; margin-bottom: 12px; }

.bottom-nav.nav-many a {
  font-size: 9px;
}
.bottom-nav.nav-many .material-symbols {
  font-size: 22px;
}

.stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.stat-box {
  flex: 1;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--flag-blue);
}
.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.sub-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.sub-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
}
.sub-tabs a.active {
  background: var(--flag-blue);
  color: #fff;
}

.ad-banner {
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ad-banner-media {
  position: relative;
  height: 168px;
  background: linear-gradient(135deg, #2c5f9a 0%, #1a3d66 100%);
}

.ad-banner-media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.ad-banner-placeholder {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.7;
}

.ad-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.ad-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ad-banner-title {
  font-size: 17px;
  display: block;
}

.ad-banner-desc {
  margin: 6px 0 0;
}

.ad-banner-cta {
  display: block;
  text-align: center;
  margin-top: 12px;
  height: 44px;
  line-height: 44px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 12px;
}

.ad-banner-body {
  padding: 12px 16px 14px;
}

.banner-warn {
  background: rgba(232, 177, 62, 0.2);
  border: 1px solid var(--kurai-gold);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  color: #6b5210;
}

.detail-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}
.detail-tile .tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(44, 95, 154, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }

@media (min-width: 500px) {
  .app-device { border-radius: 0; }
}

/* Акцент по роли (как отдельные shell во Flutter) */
.sportbash-role-director .app-topbar { border-bottom: 2px solid var(--flag-blue); }
.sportbash-role-coach .app-topbar { border-bottom: 2px solid #e67e22; }
.sportbash-role-athlete .app-topbar { border-bottom: 2px solid var(--flag-green); }
.sportbash-role-parent .app-topbar { border-bottom: 2px solid #8e44ad; }
.sportbash-role-admin_rb .app-topbar,
.sportbash-role-admin .app-topbar { border-bottom: 2px solid #1e3a5f; }
.sportbash-role-committee .app-topbar { border-bottom: 2px solid #00695c; }
.sportbash-role-director .bottom-nav a.active { color: var(--flag-blue); }
.sportbash-role-coach .bottom-nav a.active { color: #e67e22; }
.sportbash-role-athlete .bottom-nav a.active { color: var(--flag-green); }
.sportbash-role-parent .bottom-nav a.active { color: #8e44ad; }
.sportbash-role-admin_rb .bottom-nav a.active,
.sportbash-role-admin .bottom-nav a.active { color: #1e3a5f; }
.sportbash-role-committee .bottom-nav a.active { color: #00695c; }
