/* ===== APP SHELL ===== */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-business {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ===== MAIN WRAPPER ===== */
.app-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.app-main--wide {
  max-width: 1080px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  margin-bottom: 32px;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.btn-sm {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-sm:hover {
  border-color: var(--fg-dim);
  color: var(--fg);
}

.btn-sm.btn-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-sm.btn-danger {
  border-color: #c0392b;
  color: #e74c3c;
}

.btn-sm.btn-danger:hover {
  background: rgba(231, 76, 60, 0.1);
}

/* ===== ALERTS ===== */
.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-error {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e88;
}

.alert-success {
  background: rgba(39, 174, 96, 0.12);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: #6d9;
}

/* ===== SIGNUP FORM ===== */
.form-container {
  max-width: 560px;
  margin: 0 auto;
}

.form-container--sm {
  max-width: 400px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.form-subtitle {
  color: var(--fg-muted);
  font-size: 1rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.field-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

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

.field-input::placeholder {
  color: var(--fg-dim);
}

/* ===== VERTICAL PICKER ===== */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.vertical-option {
  cursor: pointer;
}

.vertical-option input[type="radio"] {
  display: none;
}

.vertical-label {
  display: block;
  text-align: center;
  padding: 12px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-muted);
  transition: all 0.15s;
}

.vertical-option input[type="radio"]:checked + .vertical-label {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.vertical-option:hover .vertical-label {
  border-color: var(--fg-dim);
  color: var(--fg);
}

.form-fine {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-top: 8px;
}

/* ===== DASHBOARD HEADER ===== */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dash-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.dash-meta {
  color: var(--fg-muted);
  font-size: 0.9rem;
  text-transform: capitalize;
}

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

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.stat-card--accent {
  border-color: rgba(240, 192, 64, 0.2);
}

.stat-card--highlight {
  border-color: rgba(240, 192, 64, 0.4);
  background: var(--accent-glow);
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card--highlight .stat-card-value {
  color: var(--accent);
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-card-rate {
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.section-count {
  font-size: 0.8rem;
  color: var(--fg-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 2px 10px;
}

/* ===== CAMPAIGN CARDS ===== */
.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.campaign-card:hover {
  border-color: var(--fg-dim);
}

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

.campaign-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.campaign-date {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.cstat {
  text-align: center;
}

.cstat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.cstat--highlight .cstat-val {
  color: var(--accent);
}

.cstat-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.progress-bar-wrap {
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid;
}

.status-active {
  color: #6d9;
  border-color: rgba(102, 221, 153, 0.3);
  background: rgba(102, 221, 153, 0.08);
}

.status-paused {
  color: var(--fg-muted);
  border-color: var(--border);
  background: var(--bg-elevated);
}

.status-cancelled, .status-completed {
  color: var(--fg-dim);
  border-color: var(--border);
  background: transparent;
}

/* ===== ACTIVITY FEED ===== */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-dot--sent   { background: var(--fg-dim); }
.activity-dot--open   { background: #4dabf7; }
.activity-dot--reply  { background: #69db7c; }
.activity-dot--booked { background: var(--accent); }

/* ===== ADMIN TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: var(--bg-card);
}

.td-name {
  font-weight: 600;
  font-family: var(--font-display);
}

.td-muted {
  color: var(--fg-muted);
}

.td-booked {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: capitalize;
}

.tag-vertical {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(240, 192, 64, 0.2);
}

/* ===== ADMIN ACTIONS ===== */
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .app-main {
    padding: 32px 16px 60px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .campaign-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .vertical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-header {
    flex-direction: column;
    gap: 16px;
  }

  .app-nav {
    padding: 0 16px;
  }
}
