/* ═══════════════════════════════════════════════
   Twonight Sinchon — Design System
   Dark theme, mobile-first, nightlife vibes
   ═══════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────── */
:root {
  /* Primary */
  --color-primary: #7c3aed;
  --color-primary-light: #a78bfa;
  --color-primary-dark: #5b21b6;

  /* Background — Dark theme */
  --color-bg: #16162a;
  --color-bg-card: #1f1f35;
  --color-bg-elevated: #2c2c48;

  /* Text */
  --color-text-primary: #eeeef5;
  --color-text-secondary: #b0b0cc;
  --color-text-tertiary: #7878a0;

  /* Status */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Plan type colors */
  --color-club: #ec4899;
  --color-bar: #f59e0b;
  --color-pocha: #22c55e;
  --color-karaoke: #8b5cf6;
  --color-chill: #06b6d4;

  /* Misc */
  --color-border: #32324e;
  --color-ad-bg: #1a1a2e;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 20px;
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img {
  max-width: 100%;
  height: auto;
}

h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.mt-sm { margin-top: 8px; }

/* ── Header ───────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 22, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 0 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 600px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.logo-sub {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  font-weight: 400;
}

.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
}

.header-avatar .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-avatar .avatar-icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-secondary);
}

.btn-login-header {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

/* ── Bottom Nav ───────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  background: rgba(22, 22, 42, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--color-text-tertiary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--color-primary-light); }
.nav-item:hover { color: var(--color-text-primary); text-decoration: none; }

.nav-item-create svg { color: var(--color-primary); }
.nav-item-create.active svg { color: var(--color-primary-light); }

/* ── Main Content ─────────────────────────────── */
.main-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 80px;
  min-height: calc(100vh - 56px);
}

/* ── Flash Messages ───────────────────────────── */
.flash-message {
  margin: 0 auto 12px;
  max-width: 600px;
  padding: 12px 40px 12px 16px;
  border-radius: var(--radius);
  position: relative;
  font-size: 0.875rem;
}

.flash-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--color-success);
}

.flash-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-danger);
}

.flash-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
}

/* ── Filter Chips ─────────────────────────────── */
.filter-section {
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-elevated);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.chip:hover {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  text-decoration: none;
}

.chip-active {
  background: var(--color-primary);
  color: white;
}

.chip-active:hover {
  background: var(--color-primary-light);
  color: white;
}

/* ── Plan Card ────────────────────────────────── */
.plan-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--type-color, var(--color-primary));
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: transform var(--transition), box-shadow var(--transition);
}

.plan-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.plan-card-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.type-emoji { font-size: 1.1rem; }
.plan-card-dot { color: var(--color-text-tertiary); }
.area-label { color: var(--color-text-secondary); font-weight: 400; }

.plan-card-time {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.plan-card-pitch {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-card-avatars {
  display: flex;
  align-items: center;
}

.avatar-tiny {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-bg-card);
  margin-left: -8px;
  flex-shrink: 0;
}

.avatar-tiny:first-child { margin-left: 0; }

.avatar-tiny img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-tiny .avatar-placeholder,
.avatar-more {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
  color: var(--color-text-tertiary);
  font-size: 0.65rem;
  font-weight: 600;
}

.plan-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.participant-count {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.plan-card-venue {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}

/* ── Status Badges ────────────────────────────── */
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-confirmed { background: rgba(34,197,94,0.15); color: var(--color-success); }
.badge-full { background: rgba(239,68,68,0.15); color: var(--color-danger); }
.badge-active { background: rgba(124,58,237,0.15); color: var(--color-primary-light); }
.badge-expired { background: rgba(107,107,128,0.15); color: var(--color-text-tertiary); }
.badge-cancelled { background: rgba(107,107,128,0.15); color: var(--color-text-tertiary); }

.status-badge-sm {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-transform: capitalize;
}

/* ── Empty State ──────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--color-text-secondary); margin-bottom: 24px; }

/* ── FAB ──────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 76px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
  z-index: 90;
  transition: transform var(--transition), background var(--transition);
  text-decoration: none;
}

.fab:hover {
  transform: scale(1.05);
  background: var(--color-primary-light);
  text-decoration: none;
}

.fab svg { width: 24px; height: 24px; }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-primary);
  color: white;
}
.btn-primary:hover { background: var(--color-primary-light); }

.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  pointer-events: none;
}

.btn-disabled {
  background: var(--color-bg-elevated);
  color: var(--color-text-tertiary);
  cursor: not-allowed;
}

.btn-messenger {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  width: 100%;
}
.btn-messenger:hover { background: rgba(34, 197, 94, 0.25); }

.btn-google {
  background: white;
  color: #333;
  font-weight: 600;
  border: 1px solid #ddd;
  padding: 14px 24px;
}
.btn-google:hover { background: #f5f5f5; }
.btn-google svg { flex-shrink: 0; }

.btn-full { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.link { color: var(--color-primary-light); }
.link:hover { text-decoration: underline; }

/* ── Plan Detail ──────────────────────────────── */
.detail-container {
  padding-bottom: 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-decoration: none;
}

.back-link:hover { color: var(--color-text-primary); }
.back-link svg { width: 16px; height: 16px; }

.detail-header {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--type-color, var(--color-primary));
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.detail-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.type-emoji-lg { font-size: 1.5rem; }
.type-label-lg { text-transform: uppercase; letter-spacing: 0.5px; }

.detail-time {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.detail-venue {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.detail-venue svg { width: 14px; height: 14px; }

.detail-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}

/* ── Host Card ────────────────────────────────── */
.host-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
}

.host-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.host-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.host-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.host-name {
  font-weight: 600;
  display: block;
}

.host-instagram {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}

.plan-pitch {
  color: var(--color-text-secondary);
  font-style: italic;
  font-size: 0.95rem;
}

/* ── Pinned Message ───────────────────────────── */
.pinned-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
}

.pinned-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-warning);
  margin-bottom: 8px;
}

.pinned-label svg { width: 14px; height: 14px; }

.pinned-content { color: var(--color-text-secondary); font-size: 0.9rem; }

/* ── Messenger Section ────────────────────────── */
.messenger-section {
  margin-bottom: 20px;
}

/* ── Participants Grid ────────────────────────── */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.participant-card {
  text-align: center;
  position: relative;
}

.participant-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.participant-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-bg-card);
}

.participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-name {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.participant-info {
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
}

.kick-form {
  position: absolute;
  top: -4px;
  right: -4px;
}

.btn-kick {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-danger);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-kick svg { width: 12px; height: 12px; }

/* ── Avatar Placeholders ──────────────────────── */
.avatar-placeholder,
.avatar-placeholder-lg,
.avatar-placeholder-xl {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-elevated);
  color: var(--color-primary-light);
  font-weight: 700;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar-placeholder { font-size: 0.75rem; }
.avatar-placeholder-lg { font-size: 1.2rem; width: 48px; height: 48px; }
.avatar-placeholder-xl { font-size: 2rem; width: 96px; height: 96px; }

/* ── Comments ─────────────────────────────────── */
.comments-list {
  margin-bottom: 16px;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.comment:last-child { border-bottom: none; }

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-body { flex: 1; min-width: 0; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
}

.host-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(124, 58, 237, 0.2);
  color: var(--color-primary-light);
  font-weight: 600;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.comment-content {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  word-wrap: break-word;
}

.comment-delete-form { display: inline; }

.btn-delete-comment {
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: 2px;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.btn-delete-comment:hover { opacity: 1; color: var(--color-danger); }
.btn-delete-comment svg { width: 14px; height: 14px; }

.comment-form { margin-top: 8px; }

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

.comment-input {
  flex: 1;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  outline: none;
}

.comment-input:focus { border-color: var(--color-primary); }

/* ── Sticky CTA ───────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 56px;
  left: 0;
  right: 0;
  padding: 12px 16px env(safe-area-inset-bottom, 12px);
  background: rgba(22, 22, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  z-index: 95;
  max-width: 600px;
  margin: 0 auto;
}

.cta-joined-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cta-joined-row .btn-success { flex: 1; }

/* ── Host Manage Panel ────────────────────────── */
.host-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.manage-form { display: flex; flex-direction: column; gap: 12px; }
.cancel-form { margin-top: 16px; }

/* ── Forms ────────────────────────────────────── */
.form-section { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.form-input,
.form-select {
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--color-primary);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a0a0b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.form-input {
  resize: vertical;
  min-height: 60px;
}

.form-errors {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  color: var(--color-danger);
  font-size: 0.85rem;
}

.form-errors p { margin-bottom: 4px; }
.form-errors p:last-child { margin-bottom: 0; }

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.input-prefix-group {
  display: flex;
  align-items: center;
}

.input-prefix {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 12px 14px;
  color: var(--color-text-tertiary);
  font-size: 0.9rem;
}

.input-prefix-group .form-input {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Type & Area Selectors (Create) ───────────── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.type-option, .area-option {
  cursor: pointer;
}

.type-option input, .area-option input {
  display: none;
}

.type-card, .area-card {
  text-align: center;
  padding: 14px 8px;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  font-size: 0.85rem;
  font-weight: 500;
}

.type-card .type-emoji-lg {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.type-option input:checked + .type-card,
.area-option input:checked + .area-card {
  border-color: var(--color-primary);
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-primary-light);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* ── Range Input ──────────────────────────────── */
.form-range {
  width: 100%;
  appearance: none;
  height: 6px;
  background: var(--color-bg-elevated);
  border-radius: 3px;
  outline: none;
}

.form-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
}

.form-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

/* ── Char Count & Pitch Examples ──────────────── */
.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.pitch-examples {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Similar Plans ────────────────────────────── */
.similar-plans-section {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.similar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-warning);
  margin-bottom: 12px;
}

.similar-plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.similar-plan-item:last-child { border-bottom: none; }

.similar-plan-info {
  font-size: 0.85rem;
}

.similar-hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  text-align: center;
}

/* ── Checkbox Grid (Languages) ────────────────── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  padding: 4px 0;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

/* ── Login ────────────────────────────────────── */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 20px;
  text-align: center;
}

.login-card {
  width: 100%;
  max-width: 360px;
}

.login-logo { margin-bottom: 32px; }

.logo-icon-lg { font-size: 3rem; display: block; margin-bottom: 12px; }

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-subtitle {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.login-terms {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
}

.login-browse {
  margin-top: 24px;
}

/* ── Profile ──────────────────────────────────── */
.profile-container { padding-bottom: 40px; }

.profile-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name { margin-bottom: 4px; }
.profile-nationality { color: var(--color-text-secondary); margin-bottom: 4px; }
.profile-languages { font-size: 0.85rem; color: var(--color-text-tertiary); margin-bottom: 8px; }

.profile-instagram {
  display: inline-block;
  color: var(--color-primary-light);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.profile-bio {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.stat { text-align: center; }
.stat-value { font-size: 1.25rem; font-weight: 700; display: block; }
.stat-label { font-size: 0.75rem; color: var(--color-text-tertiary); }

.profile-section { margin-bottom: 24px; }

/* ── Plan Row (compact list) ──────────────────── */
.plans-list-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--color-bg-card);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: background var(--transition);
}

.plan-row:hover { background: var(--color-bg-elevated); text-decoration: none; }

.plan-row-type { font-size: 1.2rem; }

.plan-row-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  min-width: 0;
}

/* ── My Plans ─────────────────────────────────── */
.my-plans-container { padding-bottom: 40px; }
.my-plans-section { margin-bottom: 32px; }

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.profile-complete-container {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.profile-actions { margin-top: 24px; }

/* ── About ────────────────────────────────────── */
.about-container {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.about-hero {
  text-align: center;
  padding: 40px 0;
}

.about-hero h1 { margin-bottom: 4px; }
.tagline { color: var(--color-text-secondary); font-size: 1.1rem; }

.about-section {
  margin-bottom: 32px;
}

.about-section h2 {
  margin-bottom: 12px;
  color: var(--color-primary-light);
}

.about-section p {
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.about-steps,
.safety-list,
.rules-list {
  padding-left: 20px;
  color: var(--color-text-secondary);
}

.about-steps li,
.safety-list li,
.rules-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.about-footer-info {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* ── Error Page ───────────────────────────────── */
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.error-title { margin-bottom: 8px; }
.error-message { color: var(--color-text-secondary); margin-bottom: 24px; }

/* ── AdSense ──────────────────────────────────── */
.adsense-container {
  background: var(--color-ad-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px;
  margin: 12px 0;
  position: relative;
  min-height: 60px;
}

.ad-label {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 0.6rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Responsive ───────────────────────────────── */
@media (min-width: 480px) {
  .type-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .area-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .checkbox-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .participants-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

@media (min-width: 768px) {
  .main-content {
    max-width: 640px;
  }

  .bottom-nav {
    max-width: 640px;
    margin: 0 auto;
  }
}
