/* ========================================================= */
/* 2. GIT CITY STYLE START SCREEN & 3D OVERLAY STYLES        */
/* ========================================================= */

#screen-hub {
  position: relative;
  overflow: hidden;
  background: #040711;
  width: 100vw;
  height: 100vh;
}

/* 3D Rotating Isometric City Canvas Background */
canvas#cityCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Floating UI Container over 3D City */
.city-ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 38px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  pointer-events: none;
  padding-bottom: 10px;
}

.city-ui-overlay * {
  pointer-events: auto;
}

/* Top Bar HUD */
.city-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.stat-pill-group {
  display: flex;
  gap: 10px;
}

.stat-pill {
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.8);
}

.stat-pill span {
  color: #f59e0b;
}

.top-right-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.live-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-silk);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Center Main Hero Content Box (Centered Spacing) */
.city-main-content {
  max-width: 660px;
  margin: auto auto;
  text-align: center;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.city-title-group {
  margin-bottom: 10px;
}

.city-hero-title {
  font-family: var(--font-pixel);
  font-size: 38px;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.9), 3px 3px 0px #000;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.city-hero-title span {
  color: #f59e0b;
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.6), 3px 3px 0px #000;
}

.city-hero-subtitle {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
}

.city-author {
  font-size: 10px;
  color: #f59e0b;
  font-weight: 700;
  margin-top: 3px;
}

/* ========================================================= */
/* GITHUB OAUTH & USER PROFILE DISPLAY CARD                  */
/* ========================================================= */
.auth-card-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 14px 0;
}

/* 1. Logged-Out State: GitHub Connect Pill Card */
.btn-github-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.94), rgba(9, 13, 22, 0.96));
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-github-pill:hover {
  background: linear-gradient(135deg, rgba(28, 36, 54, 0.96), rgba(15, 22, 36, 0.98));
  border-color: #f59e0b;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35), 0 0 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.btn-github-pill:active {
  transform: translateY(1px);
}

.github-pill-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.github-icon-hex {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #24292f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.btn-github-pill:hover .github-icon-hex {
  transform: scale(1.08) rotate(-4deg);
  background: #f59e0b;
  color: #000000;
  border-color: #f59e0b;
}

.github-pill-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.github-pill-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0px #000;
}

.btn-github-pill:hover .github-pill-title {
  color: #fcd34d;
}

.github-pill-sub {
  font-family: var(--font-silk);
  font-size: 8.5px;
  color: #a1a1aa;
  letter-spacing: 0.5px;
}

.github-pill-action {
  flex-shrink: 0;
}

.auth-action-chip {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  font-family: var(--font-silk);
  font-weight: 700;
  font-size: 9px;
  padding: 6px 12px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4), 2px 2px 0px rgba(0,0,0,0.5);
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-github-pill:hover .auth-action-chip {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.6);
}

/* 2. Logged-In State: User Profile Card */
.user-profile-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(8, 14, 24, 0.96), rgba(12, 22, 34, 0.96));
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(34, 197, 94, 0.45);
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(34, 197, 94, 0.15);
  animation: fadeInProfile 0.3s ease-out;
}

@keyframes fadeInProfile {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.profile-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 2px solid #22c55e;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.avatar-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #080e18;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 1.4s infinite;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-identity-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-handle {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #22c55e;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.profile-tier-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
  font-family: var(--font-silk);
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 4px;
}

.profile-status-sub {
  font-family: var(--font-silk);
  font-size: 8.5px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.profile-card-right {
  flex-shrink: 0;
}

.btn-signout-cyber {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-family: var(--font-pixel);
  font-size: 8.5px;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.btn-signout-cyber:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.btn-signout-cyber:active {
  transform: translateY(1px);
}

.signout-icon {
  font-size: 10px;
}

/* Progress Bar Card */
.progress-card {
  width: 100%;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 10px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.85);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #fff;
  margin-bottom: 8px;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 87%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a1a1aa;
  margin-top: 6px;
}

/* Central Entrance Box */
.entrance-box {
  width: 100%;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.85);
  margin-bottom: 10px;
}

.entrance-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #f59e0b;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.username-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.city-input {
  flex-grow: 1;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}

.city-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.btn-kaywat-lg {
  width: 100%;
  background: #f59e0b;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: bold;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-kaywat-lg:hover {
  transform: translateY(-2px);
  background: #fbbf24;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
}

/* Dual Action Cards Row */
.action-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
}

.action-btn-card {
  background: #f59e0b;
  color: #000000;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.action-btn-card:nth-child(2) {
  background: #22c55e;
}

.action-btn-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.action-btn-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #000000;
  font-weight: bold;
}

.action-btn-sub {
  font-size: 9px;
  color: rgba(0, 0, 0, 0.7);
}

/* Sub Navigation Buttons Row */
.sub-btn-row {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.btn-sub-city {
  background: rgba(5, 8, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sub-city:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.btn-sub-city-emerald {
  border-color: rgba(34, 197, 94, 0.6) !important;
  color: #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}
.btn-sub-city-emerald:hover {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.45);
}

.btn-sub-city-purple {
  border-color: rgba(168, 85, 247, 0.6) !important;
  color: #c084fc !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}
.btn-sub-city-purple:hover {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
}

.btn-sub-city-pending {
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}
.btn-sub-city-pending:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.profile-tier-pending {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

/* DJ Application & Verification Modal */
.dj-apply-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.dj-apply-form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

.dj-apply-input,
.dj-apply-select,
.dj-apply-textarea {
  width: 100%;
  background: #090c14;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dj-apply-input:focus,
.dj-apply-select:focus,
.dj-apply-textarea:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.dj-apply-textarea {
  min-height: 75px;
  resize: vertical;
}

.dj-apply-btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border: 1px solid #c084fc;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dj-apply-btn-primary:hover {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.5);
}

.dj-apply-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #475569;
  border-radius: 8px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.dj-apply-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dj-admin-badge {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #c084fc;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

/* FIXED ULTRA-THIN BOTTOM FOOTER BAR (Pin to viewport bottom) */
.city-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: rgba(4, 7, 17, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-sizing: border-box;
}

.bottom-player-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-player-btn {
  background: #f59e0b;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #000;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.bottom-track-info {
  font-size: 11px;
  color: #e2e8f0;
}

.activity-ticker {
  font-family: var(--font-terminal);
  font-size: 14px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Rotation Control Widget */
.rotation-control-widget {
  position: absolute;
  top: 70px;
  right: 20px;
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

/* Fly Mode Git City Styling */
.esc-back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(5, 8, 16, 0.92);
  border: 1px solid #f59e0b;
  color: #f59e0b;
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 120;
  display: none;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
  transition: all 0.2s;
}

.esc-back-btn:hover {
  background: #f59e0b;
  color: #000;
}

.city-ui-overlay.fly-mode-active .esc-back-btn {
  display: block;
}

.esc-back-btn.fly-airplane-btn {
  top: 62px;
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.esc-back-btn.fly-airplane-btn:hover {
  background: #38bdf8;
  color: #050810;
}

.city-ui-overlay.fly-mode-active .city-topbar,
.city-ui-overlay.fly-mode-active .city-main-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.action-btn-card.fly-card {
  background: #22c55e !important;
  color: #000000 !important;
  border: 1px solid #16a34a !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
}

.action-btn-card.fly-card .action-btn-title {
  color: #000000 !important;
}

.action-btn-card.fly-card .action-btn-sub {
  color: rgba(0, 0, 0, 0.8) !important;
}

.action-btn-card.fly-card:hover {
  transform: translateY(-2px);
  background: #4ade80 !important;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.6) !important;
}

/* Radio Feed Play / Stop Gray Icon Button */
.btn-radio-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}

.btn-radio-toggle:hover {
  background: #3f3f46;
  border-color: #52525b;
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.btn-radio-toggle:active {
  transform: scale(0.95);
}

.btn-radio-toggle .radio-icon-svg {
  display: block;
  margin-left: 2px;
}

.btn-radio-toggle.playing {
  background: #2a1517;
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.btn-radio-toggle.playing:hover {
  background: #38191c;
  border-color: #f87171;
  color: #fca5a5;
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.5);
}

.btn-radio-toggle.playing .radio-icon-svg {
  margin-left: 0;
}

/* Radio Feed Host Broadcast Record Icon Button */
.btn-record-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #ef4444;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}

.btn-record-toggle:hover {
  background: #2a1517;
  border-color: #ef4444;
  color: #f87171;
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.btn-record-toggle:active {
  transform: scale(0.95);
}

.btn-record-toggle .record-icon-svg {
  display: block;
}

