:root {
  --bg-base: #0b0d11;
  --bg-surface: #11141a;
  --bg-card: #161b22;
  --bg-hover: #1c222c;
  --bg-dropzone: #13171f;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(56, 189, 248, 0.5);
  --text-primary: #f0f6fc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   Top Navigation (Clean Branding)
   ========================================== */
.top-nav {
  height: 52px;
  background: rgba(11, 13, 17, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-subtle-login {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-subtle-login:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================
   Main Application Layout
   ========================================== */
.app-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* ==========================================
   Controls Toolbar Header
   ========================================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.app-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-header-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-header-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

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

/* Clean Typography Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}

.btn-primary:hover {
  background: #0369a1;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.btn-quiet {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.btn-quiet.danger:hover {
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ==========================================
   The Tier Board
   ========================================== */
.tier-board-wrapper {
  background: #080a0e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.tier-board {
  display: flex;
  flex-direction: column;
}

.tier-row {
  display: flex;
  min-height: 84px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  position: relative;
  background: var(--bg-dropzone);
}

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

.tier-row.dragging-row {
  opacity: 0.3;
}

.tier-row.drag-row-over {
  outline: 2px dashed var(--accent-cyan);
}

/* Tier Label Box */
.tier-label-block {
  width: 100px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  user-select: none;
  cursor: pointer;
  position: relative;
  transition: filter 0.15s;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.3);
}

.tier-label-block:hover {
  filter: brightness(1.06);
}

.tier-row-locked .tier-label-block {
  cursor: default;
}

.tier-row-locked .tier-label-block:hover {
  filter: none;
}

.tier-label-text {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  word-break: break-word;
  outline: none;
  max-width: 100%;
}

.tier-color-trigger {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
}

.tier-label-block:hover .tier-color-trigger {
  opacity: 1;
}

/* Tier Dropzone */
.tier-dropzone {
  flex: 1;
  min-height: 84px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  padding: 4px;
  gap: 6px;
  transition: background-color 0.15s;
}

.tier-dropzone.drag-active {
  background-color: rgba(56, 189, 248, 0.08);
}

/* Tier Row Controls */
.tier-row-controls {
  width: 58px;
  min-width: 58px;
  background: #080a0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.row-ctrl-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 11px;
  width: 26px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.row-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.row-ctrl-btn.drag-handle {
  cursor: grab;
}

.row-ctrl-btn.btn-del-tier:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red);
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================
   Tier Items (Cards & Thumbnails)
   ========================================== */
.tier-item {
  width: 76px;
  height: 76px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.12s, box-shadow 0.12s;
}

.tier-item:active {
  cursor: grabbing;
}

.tier-item.dragging {
  opacity: 0.35;
  transform: scale(0.95);
}

.tier-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.tier-item-img-labelled {
  height: calc(100% - 18px);
}

.tier-item-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.68), rgba(2, 4, 8, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: var(--item-label-size, 8.5px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.95),
    1px -1px 0 rgba(0, 0, 0, 0.95),
    -1px 1px 0 rgba(0, 0, 0, 0.95),
    1px 1px 0 rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.9);
  -webkit-font-smoothing: antialiased;
  pointer-events: none;
}

.tier-item-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  word-break: break-word;
  background: linear-gradient(145deg, #1b222d, #141820);
}

.item-delete-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  border: none;
  font-size: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tier-item:hover .item-delete-btn {
  display: flex;
}

.item-delete-btn:hover {
  background: var(--accent-red);
}

/* ==========================================
   Unranked Items Pool
   ========================================== */
.pool-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pool-header {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pool-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pool-counter {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 10px;
}

.pool-controls {
  display: flex;
  gap: 6px;
}

.pool-dropzone {
  min-height: 110px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  position: relative;
  transition: background-color 0.15s;
}

.pool-dropzone.scroll-mode {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.pool-dropzone.drag-active {
  background-color: rgba(56, 189, 248, 0.05);
}

.pool-empty-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
  pointer-events: none;
}

/* ==========================================
   Word Bank & Bulk Generator
   ========================================== */
.word-bank-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.word-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.word-bank-header h3 {
  font-size: 14px;
  font-weight: 700;
}

.word-bank-textarea {
  width: 100%;
  height: 80px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 10px;
  resize: vertical;
  outline: none;
}

.word-bank-textarea:focus {
  border-color: var(--accent-cyan);
}

.word-bank-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==========================================
   Custom Presets UI Modal
   ========================================== */
.presets-dialog-card {
  max-width: 460px;
}

.modal-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.preset-save-box {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}

.preset-save-box label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.preset-input-row {
  display: flex;
  gap: 8px;
}

.preset-input-row input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 7px 10px;
  font-size: 13px;
  outline: none;
}

.preset-input-row input:focus {
  border-color: var(--accent-cyan);
}

.presets-section-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.presets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.preset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.preset-item:hover {
  border-color: var(--border-medium);
}

.preset-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preset-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.preset-meta {
  font-size: 11px;
  color: var(--text-muted);
}

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

/* ==========================================
   User Thumbnail (Roblox PFP) Modal
   ========================================== */
.pfp-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.pfp-input-wrap label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================
   Custom Hex Color Wheel Modal
   ========================================== */
.color-wheel-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 250;
}

.color-wheel-modal-backdrop.open {
  display: flex;
}

.color-wheel-card {
  width: 90%;
  max-width: 320px;
  background: #13171f;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.color-wheel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-wheel-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.wheel-canvas-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 6px 0;
  width: 100%;
}

.wheel-canvas-box {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  user-select: none;
  touch-action: none;
}

#color-wheel-canvas {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  cursor: crosshair;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: block;
  user-select: none;
  touch-action: none;
}

.wheel-picker-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.9), inset 0 0 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 10;
}

.wheel-slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wheel-slider-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.wheel-slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.wheel-hex-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wheel-preview {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.wheel-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-base);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 6px 10px;
}

.hex-hash {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-right: 4px;
}

#wheel-hex-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  text-transform: uppercase;
}

.wheel-swatches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swatches-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.swatches-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.swatch-chip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.1s;
}

.swatch-chip:hover {
  transform: scale(1.15);
}

.swatch-chip.active {
  outline: 2px solid #ffffff;
}

.wheel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* ==========================================
   Custom In-DOM Dialog Modal
   ========================================== */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 260;
}

.dialog-backdrop.open {
  display: flex;
}

.dialog-card {
  width: 90%;
  max-width: 380px;
  background: #141820;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-title {
  font-size: 16px;
  font-weight: 700;
}

.dialog-message {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.dialog-input-wrap {
  margin-top: 4px;
}

.dialog-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: #ffffff;
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
}

.dialog-input:focus {
  border-color: var(--accent-cyan);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.dialog-close-btn:hover {
  color: #ffffff;
}

/* Tier List Password Lock Modal */
#tier-lock-modal .dialog-card {
  max-width: 400px;
}

#tier-lock-modal .dialog-input {
  font-size: 15px;
  letter-spacing: 2px;
}

.lock-error-text {
  font-size: 12.5px;
  color: #ef4444;
  margin-top: 6px;
}

/* ==========================================
   Custom In-DOM Toast Notification
   ========================================== */
.custom-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #161c26;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 350;
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Login Drawer (Admin Vault Authentication)
   ========================================== */
.login-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 190;
}

.login-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.login-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #11141a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 16px 24px 32px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 200;
}

.login-drawer.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-handle {
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
  cursor: pointer;
}

.drawer-pill {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.drawer-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.drawer-close:hover {
  color: #ffffff;
}

.drawer-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.drawer-form input {
  background: #0b0d11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #ffffff;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.drawer-form input:focus {
  border-color: var(--accent-cyan);
}

.drawer-error {
  color: var(--accent-red);
  font-size: 12.5px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 8px 12px;
  border-radius: 4px;
}

.btn-drawer-submit {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-drawer-submit:hover {
  background: #0369a1;
}

.btn-drawer-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   Shared Tier List Banner
   ========================================== */
.shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #111620;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  animation: fadeIn 0.2s ease-out;
}

.shared-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shared-banner-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.shared-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.shared-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-dialog-card {
  max-width: 440px;
}

@media (max-width: 768px) {
  .app-main {
    padding: 14px 10px 60px;
  }
  .tier-label-block {
    width: 75px;
    min-width: 75px;
  }
  .tier-label-text {
    font-size: 15px;
  }
  .tier-item {
    width: 66px;
    height: 66px;
  }
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar-actions {
    width: 100%;
  }
}
