/* ── Shell ── */
.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding:
    calc(24px + env(safe-area-inset-top))
    calc(18px + env(safe-area-inset-right))
    calc(48px + env(safe-area-inset-bottom))
    calc(18px + env(safe-area-inset-left));
}

/* ── Shared flex layouts ── */
.topbar, .hero-card, .tabs, .deck-toolbar,
.filters, .bulk-actions, .section-heading,
.status-row, .dialog-actions {
  display: flex;
  align-items: center;
}

/* ── Topbar ── */
.topbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 100;
}

.topbar-logo {
  height: 44px;
  width: auto;
  max-width: min(220px, 42vw);
  display: block;
  object-fit: contain;
}

/* ── Sync status bar ── */
.sync-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.76rem;
  margin-bottom: 12px;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.sync-bar--local {
  color: rgba(190, 203, 255, .9);
  border-color: rgba(141, 124, 255, .22);
  background: rgba(141, 124, 255, .07);
}

.sync-bar--synced {
  background: rgba(0, 255, 135, 0.06);
  border: 1px solid rgba(0, 255, 135, 0.15);
  color: rgba(0, 255, 135, 0.7);
}

.sync-bar--pending {
  background: rgba(255, 190, 50, 0.06);
  border: 1px solid rgba(255, 190, 50, 0.2);
  color: rgba(255, 190, 50, 0.8);
}

.sync-bar--error {
  background: rgba(255, 58, 110, 0.06);
  border: 1px solid rgba(255, 58, 110, 0.2);
  color: rgba(255, 58, 110, 0.8);
}

.sync-bar--offline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

.sync-bar__icon {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1;
  opacity: .9;
}

.sync-bar__copy { display: grid; min-width: 0; gap: 1px; }
.sync-bar__text { font-size: .78rem; letter-spacing: .035em; }
.sync-bar__detail { overflow: hidden; color: var(--muted); font-family: var(--font-body); font-size: .67rem; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.sync-bar__retry {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: 800 .66rem var(--font-body);
  cursor: pointer;
}
.sync-bar__retry:hover, .sync-bar__retry:focus-visible { background: rgba(255,255,255,.08); outline: none; }
}

/* ── Shared Buttons ── */
.icon-button, .ghost-button, .tab, .action {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  transition: all 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-button:hover, .ghost-button:hover,
.tab:hover, .action:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
  border-color: var(--line-glow);
  box-shadow: var(--shadow-glow);
}

.icon-button {
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ── Notification bell + dropdown ── */
.notif-wrap {
  position: relative;
}

.notif-bell {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 160ms ease;
}

.notif-bell:hover {
  background: var(--surface-strong);
  border-color: rgba(0, 225, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 225, 255, 0.18);
}

.notif-bell:active {
  transform: scale(0.96);
}

.notif-bell[aria-expanded="true"] {
  border-color: rgba(0, 225, 255, 0.5);
  background: var(--surface-strong);
  box-shadow: 0 0 16px rgba(0, 225, 255, 0.2);
}

.notif-bell__icon {
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: color 200ms;
}

.notif-bell:hover .notif-bell__icon,
.notif-bell[aria-expanded="true"] .notif-bell__icon {
  color: var(--accent-2);
}

.notif-bell__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  border: 2px solid var(--bg);
  animation: notif-pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 58, 110, 0.45);
}

@keyframes notif-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes notif-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notif-dropdown,
.notif-center {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(500px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 100px));
  border: 1px solid rgba(117, 213, 255, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(25, 39, 86, 0.98), rgba(11, 17, 42, 0.99) 48%, rgba(8, 13, 32, 0.99));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(141, 124, 255, 0.08),
    0 0 44px rgba(0, 225, 255, 0.09);
  z-index: 9990;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: top right;
  animation: notif-panel-in 160ms ease-out;
}

body.light .notif-dropdown,
body.light .notif-center {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.98));
  border-color: rgba(100, 120, 220, 0.22);
  box-shadow:
    0 20px 48px rgba(60, 70, 140, 0.18),
    0 0 0 1px rgba(141, 124, 255, 0.08);
}

.notif-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 14px 14px 17px;
  border-bottom: 1px solid rgba(161, 183, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(141, 124, 255, 0.12), rgba(0, 225, 255, 0.06) 55%, transparent);
}

.notif-dropdown__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body.light .notif-dropdown__header {
  background:
    linear-gradient(135deg, rgba(141, 124, 255, 0.1), rgba(0, 180, 220, 0.05) 55%, transparent);
}

.notif-dropdown__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1;
}

.notif-dropdown__summary {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(0, 225, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 225, 255, 0.09);
  color: var(--accent-2);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.notif-dropdown__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-dropdown__mark-read {
  background: rgba(0, 225, 255, 0.06);
  border: 1px solid rgba(0, 225, 255, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 11px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color 150ms, border-color 150ms, background 150ms, box-shadow 150ms;
}

.notif-dropdown__mark-read:hover {
  color: var(--text);
  border-color: rgba(0, 225, 255, 0.4);
  background: rgba(0, 225, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 225, 255, 0.12);
}

.notif-dropdown__close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
  transition: color 150ms, background 150ms, border-color 150ms;
}

.notif-dropdown__mark-read:focus-visible,
.notif-dropdown__close:focus-visible,
.notif-filter:focus-visible,
.notif-item:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.notif-dropdown__close:hover {
  color: var(--text);
  background: rgba(255, 58, 110, 0.1);
  border-color: rgba(255, 58, 110, 0.28);
}

.notif-center__filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(161, 183, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 225, 255, 0.045), transparent 18%, transparent 82%, rgba(141, 124, 255, 0.07)),
    rgba(4, 10, 28, 0.26);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.notif-center__filters::-webkit-scrollbar {
  display: none;
}

.notif-filter {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(161, 183, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 150ms, color 150ms, border-color 150ms, box-shadow 150ms, transform 150ms ease;
  white-space: nowrap;
}

.notif-filter__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.78;
}

.notif-filter__label {
  line-height: 1;
}

.notif-filter:hover {
  color: var(--text);
  border-color: rgba(0, 225, 255, 0.42);
  background: rgba(0, 225, 255, 0.085);
  transform: translateY(-1px);
}

.notif-filter.active {
  color: #061018;
  background: linear-gradient(135deg, #7ff0ff, var(--accent-2) 54%, #8bdbff);
  border-color: transparent;
  box-shadow: 0 5px 16px rgba(0, 225, 255, 0.25), inset 0 1px rgba(255, 255, 255, 0.48);
}

.notif-filter.active .notif-filter__icon {
  opacity: 1;
}

.notif-filter--unread:not(.active) {
  border-color: rgba(255, 183, 77, 0.28);
  color: #ffd58c;
}

.notif-filter--unread:not(.active):hover {
  border-color: rgba(255, 183, 77, 0.6);
  background: rgba(255, 183, 77, 0.08);
}

body.light .notif-center__filters {
  background:
    linear-gradient(90deg, rgba(0, 180, 220, 0.055), transparent 18%, transparent 82%, rgba(141, 124, 255, 0.075)),
    rgba(239, 244, 255, 0.62);
}

body.light .notif-filter {
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(91, 113, 196, 0.2);
}

body.light .notif-filter--unread:not(.active) {
  color: #a15e00;
  border-color: rgba(191, 117, 0, 0.35);
}

body.light .notif-filter.active {
  color: #061018;
}

.notif-dropdown__list {
  overflow-y: auto;
  padding: 10px;
  flex: 1;
  min-height: 140px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 225, 255, 0.25) transparent;
}

.notif-dropdown__end {
  text-align: center;
  font-size: 0.66rem;
  color: var(--muted);
  padding: 14px 0 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
}

.notif-dropdown__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 40px 20px;
  margin: 0;
  min-height: 180px;
}

.notif-dropdown__empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 225, 255, 0.18), transparent 70%),
    rgba(141, 124, 255, 0.1);
  border: 1px solid rgba(0, 225, 255, 0.18);
}

.notif-dropdown__empty-icon svg {
  width: 22px;
  height: 22px;
}

.notif-dropdown__empty-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.notif-dropdown__empty-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.4;
}

.notif-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 15px;
  transition: background 150ms, border-color 150ms, transform 120ms;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  margin-bottom: 6px;
}

.notif-item::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent-2);
  box-shadow: 0 0 12px rgba(0, 225, 255, 0.7);
  content: "";
  opacity: 0;
  transform: scaleY(0.65);
  transition: opacity 150ms ease, transform 150ms ease;
}

.notif-item:last-child {
  margin-bottom: 0;
}

.notif-item:hover {
  background: linear-gradient(105deg, rgba(0, 225, 255, 0.09), rgba(141, 124, 255, 0.07));
  border-color: rgba(0, 225, 255, 0.24);
  transform: translateY(-1px);
}

body.light .notif-item:hover {
  background: rgba(80, 100, 200, 0.06);
}

.notif-item:active {
  transform: scale(0.995);
}

.notif-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.notif-item__icon svg {
  width: 18px;
  height: 18px;
}

.notif-item__icon--social { color: #7dd3fc; background: rgba(125, 211, 252, 0.12); border-color: rgba(125, 211, 252, 0.16); }
.notif-item__icon--news { color: #c4b5fd; background: rgba(167, 139, 250, 0.14); border-color: rgba(167, 139, 250, 0.18); }
.notif-item__icon--collection { color: #86efac; background: rgba(134, 239, 172, 0.12); border-color: rgba(134, 239, 172, 0.16); }
.notif-item__icon--squads { color: #fcd34d; background: rgba(252, 211, 77, 0.12); border-color: rgba(252, 211, 77, 0.16); }
.notif-item__icon--alerts { color: #fca5a5; background: rgba(252, 165, 165, 0.14); border-color: rgba(252, 165, 165, 0.18); }

.notif-item__img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.notif-item__img--news {
  width: 84px;
  height: 52px;
  border-radius: 12px;
}

.notif-item--news {
  align-items: stretch;
}

.notif-item--media .notif-item__desc {
  -webkit-line-clamp: 2;
}

.notif-item__body {
  flex: 1;
  min-width: 0;
}

.notif-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notif-item__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.25;
  color: var(--text);
}

.notif-item__state {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: transparent;
  font-size: 0;
  overflow: hidden;
}

.notif-item__state--unread {
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(0, 225, 255, 0.65);
}

.notif-item__desc {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.notif-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.notif-item__action {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

.notif-item__action::after {
  content: "→";
  margin-left: 5px;
  transition: transform 140ms ease;
}

.notif-item:hover .notif-item__action::after {
  transform: translateX(2px);
}

.notif-item__action--secondary {
  color: var(--muted);
  font-weight: 600;
}

.notif-item__action--secondary::after {
  content: none;
}

.notif-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.notif-item__category,
.notif-item__source {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: rgba(0, 225, 255, 0.08);
  border: 1px solid rgba(0, 225, 255, 0.14);
  border-radius: 999px;
  padding: 2px 7px;
}

.notif-item__date {
  font-size: 0.6rem;
  color: var(--muted);
  opacity: 0.9;
}

.notif-item--unread {
  background: linear-gradient(105deg, rgba(0, 225, 255, 0.09), rgba(141, 124, 255, 0.055));
  border-color: rgba(0, 225, 255, 0.18);
}

.notif-item--unread::before {
  opacity: 1;
  transform: scaleY(1);
}

.notif-item--unread .notif-item__title {
  color: var(--text);
}

body.light .notif-item--unread {
  background: rgba(0, 180, 220, 0.06);
  border-color: rgba(0, 180, 220, 0.12);
}

@media (max-width: 480px) {
  /* Let the panel position against the topbar (scrolls with the page)
     instead of the viewport (which left it floating while the background moved). */
  .notif-wrap {
    position: static;
  }

  .notif-dropdown,
  .notif-center {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    right: auto;
    width: min(400px, calc(100vw - 24px));
    max-height: min(70vh, calc(100vh - 110px - env(safe-area-inset-top)));
    border-radius: 16px;
    transform-origin: top center;
    translate: -50% 0;
  }
}

/* ── Hero Card ── */
.hero-card {
  position: relative;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line-glow);
  background:
    linear-gradient(135deg, var(--surface-strong), var(--surface));
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent-3), transparent);
  animation: shimmer 4s linear infinite;
}

.progress-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1rem;
  color: var(--muted);
}

.progress-line strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 10vw, 4.2rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--bg) 52%, transparent 54%),
    conic-gradient(var(--success) var(--progress, 0deg), rgba(255, 255, 255, 0.08) 0deg);
  border: 2px solid var(--line);
  flex: 0 0 auto;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.15);
}

.ring span {
  font-weight: 900;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

/* ── Tabs ── */
.tabs {
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
  -webkit-mask-image: none;
  mask-image: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tab__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.85;
}

.tab__label {
  line-height: 1;
}

.tab:hover {
  color: var(--text);
  border-color: var(--line-glow);
  box-shadow: 0 0 14px rgba(0, 225, 255, 0.12);
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
  box-shadow:
    0 0 22px rgba(0, 225, 255, 0.35),
    0 4px 16px rgba(0, 225, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.tab.active .tab__icon {
  opacity: 1;
}

.tab.active:hover {
  box-shadow:
    0 0 30px rgba(0, 225, 255, 0.45),
    0 6px 20px rgba(0, 225, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.tab.tab--more { display: none; }

/* ── Views ── */
.main-views {
  position: relative;
  touch-action: pan-y;
  --view-swipe-x: 0px;
}

.main-views--swiping {
  transition: none;
}

.main-views--swiping > .view.active {
  transform: translate3d(var(--view-swipe-x), 0, 0);
  will-change: transform;
}

.view { display: none; }
.view.active {
  display: block;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

/* ── Forms ── */
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

select:focus, input:focus, textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 12px rgba(0, 225, 255, 0.15);
}

select { max-width: 260px; }
