/* ============================================================
   STAGGERSEC - dashboard.css
   Client dashboard & admin panel styles
============================================================ */

/* ============================================================
   DASHBOARD LAYOUT
============================================================ */
.db-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.db-header {
  padding: 2.5rem 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.db-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.db-subtitle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ============================================================
   LOGIN SCREEN
============================================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}

.login-box {
  width: min(420px, 100%);
  animation: fadeUp 0.4s ease both;
}

.login-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  display: block;
}
.login-logo span { color: var(--accent); }

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.login-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.login-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

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

.login-divider {
  display: flex; align-items: center; gap: 12px; margin: 4px 0;
}
.login-divider span {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-tertiary); white-space: nowrap;
}
.login-divider::before,
.login-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.login-footer {
  margin-top: 1.5rem;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   ORDER TIMELINE
============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 20px; bottom: 20px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
  padding-left: 1.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: border-color 0.2s;
}
.timeline-dot.done {
  background: var(--green-dim);
  border-color: var(--green);
}
.timeline-dot.done i { color: var(--green); font-size: 9px; }
.timeline-dot.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}
.timeline-dot.active i { color: var(--accent); font-size: 9px; }
.timeline-dot.pending { border-color: var(--border-hover); }

.timeline-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
  color: var(--text-primary);
}
.timeline-label.muted { color: var(--text-tertiary); }

.timeline-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ============================================================
   ORDER CARD
============================================================ */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
}
.order-card:hover { border-color: var(--border-hover); }

.order-card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.order-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

.order-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  margin-top: 4px;
}

.order-card-body { padding: 1.25rem 1.5rem; }
.order-card-footer {
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-price {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================================
   DELIVERY ZONE
============================================================ */
.delivery-zone {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.delivery-zone:hover,
.delivery-zone.drag-over {
  border-color: rgba(232,255,71,0.3);
  background: var(--accent-dim2);
}
.delivery-zone i { font-size: 2rem; color: var(--text-tertiary); margin-bottom: 0.75rem; display: block; }
.delivery-zone p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ============================================================
   PROOF ITEMS
============================================================ */
.proof-list { display: flex; flex-direction: column; gap: 8px; margin-top: 1rem; }
.proof-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.proof-item i { font-size: 16px; color: var(--accent); flex-shrink: 0; }
.proof-item-name { font-size: 13px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-item-meta { font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); white-space: nowrap; }
.proof-remove { background: none; border: none; color: var(--text-tertiary); cursor: pointer; padding: 2px; font-size: 14px; transition: color 0.15s; }
.proof-remove:hover { color: var(--red); }

/* ============================================================
   CONFIRMATION BOX
============================================================ */
.confirm-box {
  background: var(--green-dim);
  border: 1px solid rgba(151,196,89,0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.confirm-box h3 { color: var(--green); font-size: 15px; margin-bottom: 0.5rem; margin-top: 0; }
.confirm-box p { font-size: 13px; margin-bottom: 1rem; }
.confirm-box .confirm-meta {
  font-family: var(--mono); font-size: 11px;
  color: rgba(151,196,89,0.7); margin-bottom: 0;
  letter-spacing: 0.04em;
}

/* ============================================================
   ADMIN PANEL
============================================================ */
.admin-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.admin-tab {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  padding: 10px 20px;
  background: none; border: none;
  color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover { color: var(--text-primary); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-order-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  gap: 1rem; flex-wrap: wrap;
  transition: border-color 0.2s;
}
.admin-order-row:hover { border-color: var(--border-hover); }

.admin-order-info { flex: 1; min-width: 200px; }
.admin-order-id { font-family: var(--mono); font-size: 11px; color: var(--text-tertiary); margin-bottom: 3px; }
.admin-order-name { font-size: 14px; font-weight: 500; }
.admin-order-client { font-size: 13px; color: var(--text-secondary); }

.admin-order-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   DOMAIN / HOSTING FORM
============================================================ */
.hosting-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.25rem;
}
.hosting-form-title {
  font-family: var(--display);
  font-weight: 600; font-size: 15px;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 8px;
}
.hosting-form-title i { color: var(--accent); font-size: 18px; }

.hosting-choice {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.25rem;
}
.hosting-opt {
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.hosting-opt:hover { border-color: var(--border-hover); }
.hosting-opt.selected { border-color: var(--accent); background: var(--accent-dim2); }
.hosting-opt i { font-size: 22px; color: var(--text-secondary); display: block; margin-bottom: 8px; }
.hosting-opt.selected i { color: var(--accent); }
.hosting-opt-label { font-family: var(--display); font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.hosting-opt-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* ============================================================
   STATS ROW (admin overview)
============================================================ */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 2rem; }
.stats-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.stats-tile-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 8px; }
.stats-tile-value { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--text-primary); line-height: 1; }
.stats-tile-value.green { color: var(--green); }
.stats-tile-value.accent { color: var(--accent); }

/* ============================================================
   REVIEW STARS
============================================================ */
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-tertiary);
  padding: 2px;
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
}
.star-btn:hover,
.star-btn.active {
  color: var(--accent);
}
.star-btn:hover { transform: scale(1.15); }