/* ==========================================================================
   ATLAS VISUAL — APPLE DESIGN SYSTEM (DARK MODE)
   Minimalist, static, content-first, inspired by macOS & iOS HIG
   ========================================================================== */

:root {
  /* System Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Apple Dark Palette */
  --canvas: #000000;
  --surface-bar: rgba(22, 22, 24, 0.82);
  --surface-primary: #161618;
  --surface-secondary: #1c1c1e;
  --surface-tertiary: #2c2c2e;
  --surface-hover: #262629;
  --surface-elevated: #242426;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-active: rgba(255, 255, 255, 0.28);

  /* Typography Colors */
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #636366;
  --text-quaternary: #48484a;

  /* Apple System Accents */
  --accent-blue: #0a84ff;
  --accent-blue-subtle: rgba(10, 132, 255, 0.12);
  --accent-green: #30d158;
  --accent-green-subtle: rgba(48, 209, 88, 0.12);
  --accent-yellow: #ffd60a;
  --accent-orange: #ff9f0a;
  --accent-red: #ff453a;

  /* Layout Constants */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === BASE RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-system);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* === TOP BAR (macOS / iPadOS TOOLBAR) === */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-bar);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.app-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 52px;
}

/* Brand */
.bar-leading {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: -0.01em;
  display: none;
}
@media (min-width: 960px) {
  .brand-sub { display: inline; }
}

.brand-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-tertiary);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}

/* Search Field */
.bar-center {
  flex: 1;
  max-width: 440px;
  margin: 0 auto;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  transition: var(--transition);
}

.search-field:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
}

.search-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 8px;
}

.search-field input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
}

.search-field input::placeholder {
  color: var(--text-secondary);
}

.kbd-hint {
  font-family: var(--font-system);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  user-select: none;
}

/* Trailing Actions */
.bar-trailing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--surface-secondary);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.action-btn.active {
  background: var(--surface-tertiary);
  border-color: var(--border-active);
  color: var(--accent-yellow);
}

.fav-count-badge {
  font-size: 10px;
  font-weight: 600;
  background: var(--surface-tertiary);
  color: var(--accent-yellow);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.action-label {
  display: none;
}
@media (min-width: 840px) {
  .action-label { display: inline; }
}

/* Dropdown Menu */
.dropdown-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  padding: 4px;
  min-width: 180px;
  z-index: 150;
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  background: transparent;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--surface-tertiary);
}

/* === CONTROLS & SEGMENTED FILTER BAR === */
.controls-bar {
  background: var(--canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.controls-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Segmented Control (Apple Native Style) */
.segmented-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.segmented-scroll::-webkit-scrollbar { display: none; }

.segmented-control {
  display: inline-flex;
  align-items: center;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.segment-item {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.segment-item:hover {
  color: var(--text-primary);
}

.segment-item.active {
  background: var(--surface-tertiary);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Secondary Inline Filters */
.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.select-wrapper select:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.select-wrapper select:focus {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-tertiary);
  border-bottom: 1.5px solid var(--text-tertiary);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.status-indicator {
  margin-left: auto;
}

.results-text {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* === MAIN CARDS GALLERY (STATIC & ELEGANT) === */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Static Card Component */
.style-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  /* Strictly Static — No float, no translateY, no drop shadow */
  transition: border-color var(--transition), background-color var(--transition);
  display: flex;
  flex-direction: column;
}

.style-card:hover {
  border-color: var(--border-medium);
  background-color: var(--surface-hover);
}

/* Pure 16:9 Image (Zero Floating Badges) */
.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0d0e;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* Card Body */
.card-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-fav-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  padding: 2px 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: var(--transition);
  border-radius: 4px;
}

.card-fav-btn:hover {
  color: var(--text-primary);
}

.card-fav-btn.is-fav {
  color: var(--accent-yellow);
}

.card-category-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.card-meta-row {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.card-difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.difficulty-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
}
.difficulty-dot.iniciante { background-color: var(--accent-green); }
.difficulty-dot.intermediario { background-color: var(--accent-yellow); }
.difficulty-dot.avancado { background-color: var(--accent-orange); }

.card-cost-text {
  color: var(--text-tertiary);
}
.card-cost-text strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}

.btn-secondary {
  background: var(--surface-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--border-medium);
}

/* === INSPECTOR SHEET (APPLE MODAL SHEET) === */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.sheet-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

.hidden {
  display: none !important;
}

.sheet-container {
  background: var(--surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 1040px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.sheet-header {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-secondary);
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-tertiary);
  margin: 0 auto;
}

.sheet-close {
  background: var(--surface-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.sheet-close:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.sheet-content {
  overflow-y: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 840px) {
  .sheet-content {
    grid-template-columns: 420px 1fr;
    gap: 32px;
    padding: 32px;
  }
}

/* Left Column: Visual Asset & Color Palette */
.sheet-visual-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sheet-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.sheet-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sheet-palette-box {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-palette-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sheet-palette-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.palette-swatch {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition);
}

.palette-swatch:hover {
  transform: scale(1.1);
}

.sheet-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sheet-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Right Column: Specifications & Guidance */
.sheet-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sheet-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-main-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.sheet-subtitle-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.sheet-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-section-heading {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sheet-paragraph {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Minimal Grid Info */
.sheet-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sheet-info-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.sheet-info-kicker {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.sheet-info-val {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Prompt Box (Developer Code Block Style) */
.sheet-prompt-box {
  background: #0d0d0e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  position: relative;
}

.sheet-prompt-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d1d1d6;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.sheet-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.sheet-copy-btn:hover {
  background: var(--border-medium);
}

/* Callout Boxes */
.sheet-callout-box {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--text-tertiary);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sheet-callout-box.blue {
  border-left-color: var(--accent-blue);
}

.sheet-callout-box.green {
  border-left-color: var(--accent-green);
}

/* Tool Tags Row */
.tools-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-badge {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tool-badge.free {
  color: var(--accent-green);
}

.tool-badge.paid {
  color: var(--accent-yellow);
}

/* === COMPARISON SHEET === */
.compare-sheet {
  max-width: 960px;
}

.sheet-title-group h2 {
  font-size: 16px;
  font-weight: 600;
}

.sheet-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
}

.compare-col {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-col img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* === DYNAMIC ISLAND TOAST (APPLE HIG) === */
.toast-capsule {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(30, 30, 32, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s var(--transition), transform 0.22s var(--transition);
}

.toast-capsule.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .app-bar-inner {
    padding: 8px 16px;
  }
  .controls-bar {
    padding: 10px 16px;
  }
  .main-content {
    padding: 16px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  .select-wrapper select {
    width: 100%;
  }
  .status-indicator {
    margin-left: 0;
    text-align: center;
  }
}

/* ==========================================================================
   APPLE GATEKEEPER (LICENSE KEY AUTHENTICATION)
   ========================================================================== */
.gatekeeper-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gatekeeper-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.gatekeeper-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: gatekeeperSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gatekeeperSlideIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.gatekeeper-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--surface-secondary);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-blue);
}

.gatekeeper-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.gatekeeper-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.gatekeeper-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 26px;
}

.gatekeeper-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gatekeeper-input {
  width: 100%;
  background: var(--surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color var(--transition);
  text-transform: uppercase;
}

.gatekeeper-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.gatekeeper-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.gatekeeper-btn:hover {
  background: #ffffff;
  transform: scale(1.015);
}

.gatekeeper-error {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--accent-red);
  background: rgba(255, 69, 58, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 69, 58, 0.25);
  display: none;
}

.gatekeeper-error.visible {
  display: block;
}

.gatekeeper-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.gatekeeper-footer a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}

.gatekeeper-footer a:hover {
  text-decoration: underline;
}

/* User Status Pill in App Bar */
.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.user-status-pill.admin {
  background: rgba(48, 209, 88, 0.14);
  color: var(--accent-green);
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.user-status-pill.buyer {
  background: rgba(10, 132, 255, 0.14);
  color: var(--accent-blue);
  border: 1px solid rgba(10, 132, 255, 0.3);
}

