:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: #0f1626;
  --surface-2: #162036;
  --border: rgba(148, 163, 184, 0.2);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.16);
  --link: #7dd3fc;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-rounded: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 18% 0%, #101e38 0%, var(--bg) 56%);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.sim-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
  font-size: 0.75rem;
  font-weight: 600;
}

.sim-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:hover { background: #1e2d4a; text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-ghost { background: transparent; }
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-color: transparent;
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); background: linear-gradient(135deg, #22c55e, #15803d); }

/* ==================== PAGE LAYOUT ==================== */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.hero-strip {
  margin-bottom: 16px;
}

.hero-kicker {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86efac;
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0;
  max-width: 92ch;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-desc code, .phone-caption code, .inspector-body code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: rgba(148, 163, 184, 0.14);
  padding: 1px 5px;
  border-radius: 5px;
  color: #e2e8f0;
}

/* ==================== GUIDED TOUR BAR ==================== */
.tour-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.tour-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: 4px;
}

.tour-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tour-pill:hover {
  background: rgba(34, 197, 94, 0.12);
  color: #fff;
}

.tour-pill.active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.7);
  color: #bbf7d0;
}

/* ==================== MAIN WORKSPACE GRID ==================== */
.workspace-grid {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ==================== SMARTPHONE BEZEL ==================== */
.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-bezel {
  width: 390px;
  max-width: 100%;
  background: linear-gradient(145deg, #272d3d, #0f131c);
  padding: 12px;
  border-radius: 48px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 750px;
  border-radius: 38px;
  overflow: hidden;
  background: #0a0e18;
  display: flex;
  flex-direction: column;
}

.ios-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  z-index: 20;
  pointer-events: none;
}

.ios-statusbar.light-text-dark { color: #111827; }

.dynamic-island {
  width: 96px;
  height: 24px;
  background: #000;
  border-radius: 999px;
}

.ios-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
}

.phone-app-body {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  z-index: 20;
  pointer-events: none;
}

.home-indicator.dark { background: rgba(17, 24, 39, 0.45); }

.phone-caption {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 376px;
  line-height: 1.45;
}

/* ==================== SWIFTUI SCREEN FAITHFULNESS ==================== */

/* 1. ContentView & MainView (home2 stadium aesthetic) */
.eu-home-screen {
  min-height: 100%;
  padding: 52px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #0b1326;
  background-image:
    linear-gradient(180deg, rgba(6, 12, 26, 0.56) 0%, rgba(6, 12, 26, 0.34) 48%, rgba(6, 12, 26, 0.72) 100%),
    url("assets/stadium-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.eu-app-title {
  margin: 8px 0 18px;
  font-size: 2.05rem;
  font-weight: 800;
  color: rgb(217, 217, 217);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.92);
  letter-spacing: -0.02em;
}

.eu-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 126px);
  gap: 18px 22px;
  justify-content: center;
}

.eu-tile-btn {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgb(217, 217, 217);
  transition: transform 0.14s ease;
}

.eu-tile-btn:hover { transform: translateY(-2px); }
.eu-tile-btn:active { transform: scale(0.97); }

.eu-tile-img {
  width: 118px;
  height: 118px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #9ca3af;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.52);
  background: #111827;
}

.eu-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eu-tile-label {
  font-size: 0.96rem;
  font-weight: 700;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.92);
}

.eu-auth-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
  margin-top: auto;
}

.eu-btn-green-gray {
  width: 100%;
  border: none;
  border-radius: 20px;
  padding: 13px 18px;
  font-size: 1.06rem;
  font-weight: 700;
  color: rgb(230, 230, 230);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.84), #6b7280);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.eu-btn-green-gray:hover { filter: brightness(1.07); }
.eu-btn-green-gray:active { transform: scale(0.98); }

.eu-main-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.eu-pill-badge {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.84), #6b7280);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  max-width: 215px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eu-pill-logout {
  border: none;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.84), #6b7280);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.eu-pill-logout:hover { filter: brightness(1.08); }

/* 2. LoginView & RegisterView (login1 dark stadium aesthetic) */
.eu-auth-screen {
  min-height: 100%;
  padding: 58px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #080d18;
  background-image:
    linear-gradient(180deg, rgba(5, 9, 18, 0.68) 0%, rgba(5, 9, 18, 0.56) 52%, rgba(5, 9, 18, 0.82) 100%),
    url("assets/stadium-bg.jpg");
  background-size: cover;
  background-position: center bottom;
  color: #fff;
}

.eu-auth-heading {
  margin: 18px 0 28px;
  font-size: 2.15rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.eu-auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.eu-custom-input {
  width: 84%;
  padding: 13px 18px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.25));
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.eu-custom-input::placeholder { color: rgba(255, 255, 255, 0.72); }

.eu-auth-meta-row {
  width: 82%;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.86);
  padding: 2px 6px;
}

.eu-btn-green-dark {
  width: 66%;
  margin-top: 8px;
  border: none;
  border-radius: 40px;
  padding: 13px 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.86), rgba(0, 0, 0, 0.58));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.eu-btn-green-dark:hover { filter: brightness(1.1); }

.eu-auth-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.eu-link-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.84rem;
  padding: 8px 12px;
  cursor: pointer;
}

.eu-link-btn:hover { text-decoration: underline; }

.eu-alert {
  width: 86%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.eu-alert.error {
  background: rgba(239, 68, 68, 0.24);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.eu-alert.success {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.55);
  color: #dcfce7;
}

/* 3. MatchesTabView & Dark Neon Polygon Screens (matches bg3) */
.eu-neon-screen {
  min-height: 100%;
  padding: 46px 12px 26px;
  background-color: #0b0d13;
  background-image:
    linear-gradient(180deg, rgba(7, 9, 14, 0.32), rgba(7, 9, 14, 0.48)),
    url("assets/neon-mesh-bg.svg");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.eu-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.eu-back-btn {
  background: transparent;
  border: none;
  color: #60a5fa;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
}

.eu-back-btn:hover { text-decoration: underline; }

.eu-nav-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
}

.eu-segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.eu-seg-btn {
  border: none;
  border-radius: 7px;
  padding: 7px 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eu-seg-btn.active {
  background: rgba(156, 163, 175, 0.5);
  color: #fff;
}

.eu-card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eu-dark-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 13px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.eu-dark-card:hover {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(96, 165, 250, 0.45);
}

.eu-dark-card.static { cursor: default; }
.eu-dark-card.static:hover { background: rgba(0, 0, 0, 0.58); border-color: rgba(255, 255, 255, 0.08); }

.eu-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.eu-team-side {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.eu-team-side.right { justify-content: flex-end; text-align: right; }

.eu-badge-24 { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.eu-badge-32 { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.eu-badge-40 { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }

.eu-vs { font-size: 0.74rem; color: #cbd5e1; flex-shrink: 0; }

.eu-match-score {
  margin-top: 7px;
  text-align: center;
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
}

.eu-match-sub {
  margin-top: 2px;
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
}

/* MatchDetailView */
.eu-detail-score {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  margin: 12px 0 4px;
}

.eu-detail-poss {
  text-align: center;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.eu-event-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.eu-event-row:last-child { border-bottom: none; }

.eu-avatar-24 {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.eu-avatar-24 img, .eu-avatar-50 img, .eu-avatar-60 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eu-assist-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #cbd5e1;
}

/* LeagueStandingView & TeamsView */
.eu-standing-row, .eu-team-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.eu-standing-stats {
  font-size: 0.75rem;
  color: #e2e8f0;
  margin-top: 2px;
}

.eu-team-rating {
  font-size: 0.78rem;
  font-weight: 600;
  color: #60a5fa;
  margin-top: 2px;
}

/* TeamDetailView */
.eu-avatar-50 {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid #3b82f6;
}

/* PlayerListView & FilterMenuView */
.eu-filter-box {
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 10px 8px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eu-filter-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.eu-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.74rem;
  font-weight: 600;
}

.eu-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #f8fafc;
}

.eu-slider-row input[type="range"] {
  flex: 1;
  accent-color: #ffffff;
}

.eu-players-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.eu-player-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.58);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  color: #fff;
  cursor: pointer;
  min-height: 156px;
  transition: border-color 0.14s ease, transform 0.12s ease;
}

.eu-player-card:hover {
  border-color: rgba(96, 165, 250, 0.65);
  transform: translateY(-1px);
}

.eu-avatar-60 {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.eu-p-name {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eu-p-meta {
  font-size: 0.63rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 4. NewsView (Light iOS List) */
.eu-news-screen {
  min-height: 100%;
  padding: 46px 14px 26px;
  background: #f2f2f7;
  color: #111827;
}

.eu-news-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 4px 0 12px;
  color: #111827;
}

.eu-news-list {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.eu-news-item {
  padding: 13px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.eu-news-item:last-child { border-bottom: none; }

.eu-news-item h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
  color: #111827;
}

.eu-news-item p {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: #374151;
}

.eu-news-date {
  font-size: 0.72rem;
  color: #6b7280;
}

/* 5. ProfileView (dark violet/emerald neon glow backdrop) */
.eu-profile-screen {
  min-height: 100%;
  padding: 48px 14px 28px;
  background:
    radial-gradient(circle at 82% 16%, rgba(168, 85, 247, 0.42), transparent 52%),
    radial-gradient(circle at 18% 84%, rgba(34, 197, 94, 0.38), transparent 54%),
    linear-gradient(160deg, #090d1f 0%, #07191a 100%);
  color: #fff;
  box-shadow: inset 0 0 22px rgba(168, 85, 247, 0.35), inset 0 -18px 26px rgba(34, 197, 94, 0.25);
}

.eu-profile-card {
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.eu-profile-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 4px;
}

.eu-profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.eu-cam-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
}

.eu-prof-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.eu-prof-input, .eu-prof-select, .eu-prof-textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-family: inherit;
}

.eu-prof-input:disabled { opacity: 0.65; cursor: not-allowed; }
.eu-prof-select option { background: #0f172a; color: #fff; }
.eu-prof-textarea { resize: vertical; min-height: 62px; }

.eu-btn-blue {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px;
  background: #2563eb;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.eu-btn-blue:hover { background: #1d4ed8; }

.eu-profile-locked {
  margin-top: 120px;
  text-align: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 18px;
}

/* ==================== INSPECTOR PANEL ==================== */
.inspector-shell {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.inspector-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.inspector-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.inspector-tab[aria-selected="true"] {
  background: var(--surface-2);
  border-color: var(--border);
  color: #fff;
}

.inspector-body {
  padding: 16px 18px 20px;
}

.inspector-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.meta-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
}

.meta-k {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-v {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  word-break: break-word;
}

.badge-sim {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  margin-right: 6px;
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.badge-warn {
  background: rgba(251, 146, 60, 0.18);
  color: #fdba74;
}

.code-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 12px 0 6px;
}

.code-block {
  margin: 0;
  padding: 12px 14px;
  background: #080c16;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #e2e8f0;
  overflow-x: auto;
  max-height: 280px;
  line-height: 1.5;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  cursor: pointer;
  text-align: left;
}

.history-item.active {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.1);
  color: #fff;
}

.info-banner {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.32);
  font-size: 0.8rem;
  color: #e0f2fe;
  margin-bottom: 12px;
  line-height: 1.5;
}

.arch-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
}

.arch-card h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #86efac;
}

.arch-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.81rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.arch-card li { margin-bottom: 5px; }

.step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.step-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.step-pill.active {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.65);
  color: #bbf7d0;
}

/* ==================== FOOTER ==================== */
.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .inspector-meta-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .page { padding: 14px 12px 28px; }
  .topbar-inner { padding: 10px 12px; }
  .phone-bezel { width: 100%; padding: 9px; border-radius: 38px; }
  .phone-screen { height: 710px; border-radius: 30px; }
  .eu-tile-grid { grid-template-columns: repeat(2, minmax(0, 118px)); gap: 14px; }
  .eu-tile-img { width: 108px; height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
