/* ═══════════════════════════════════════════════════════
   AURO FEEDBACK & ADMIN — PREMIUM DARK GLASS STYLE
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --gold: #C5A059;
  --gold-light: #D4B47A;
  --gold-glow: rgba(197, 160, 89, 0.25);
  --dark-bg: #0A0A0A;
  --dark-card: rgba(255, 255, 255, 0.04);
  --dark-card-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(197, 160, 89, 0.18);
  --glass-border-active: rgba(197, 160, 89, 0.55);
  --text-main: #F2EAD8;
  --text-muted: rgba(242, 234, 216, 0.5);
  --text-dim: rgba(242, 234, 216, 0.25);
  --success: #4ade80;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Outfit', sans-serif;
  background: var(--dark-bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* ── BACKGROUND ───────────────────────────────────────── */
.bg-gradient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(197,160,89,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(197,160,89,0.05) 0%, transparent 60%),
    linear-gradient(160deg, #0C0B09 0%, #0A0A0A 50%, #0B0A0C 100%);
}

.orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(197,160,89,0.06) 0%, transparent 70%);
  filter: blur(60px);
  animation: orb-float 12s ease-in-out infinite alternate;
}
@keyframes orb-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.08); }
}

/* ── HEADER ───────────────────────────────────────────── */
header {
  position: fixed; top: 0; right: 0; left: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
  backdrop-filter: blur(10px);
}
.logo-small {
  height: 38px; width: auto;
  filter: brightness(0.95) drop-shadow(0 0 12px var(--gold-glow));
}

/* ── LAYOUT ───────────────────────────────────────────── */
.feedback-container, .admin-container {
  position: relative; z-index: 10;
  max-width: 560px;
  margin: 0 auto;
  padding: 110px 20px 60px;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.admin-container {
  max-width: 1200px;
  padding: 100px 30px 60px;
  justify-content: flex-start;
}

/* ── PROGRESS BAR ─────────────────────────────────────── */
.progress-wrap {
  width: 100%; margin-bottom: 40px;
}
.progress-steps {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 14px;
}
.progress-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--glass-border);
  position: relative;
  transition: all 0.5s cubic-bezier(.4,0,.2,1);
}
.progress-dot.active, .progress-dot.done {
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}
.progress-dot.active {
  width: 30px; border-radius: 5px;
}
.progress-bar-line {
  height: 2px; border-radius: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ── STEP CARD ────────────────────────────────────────── */
.step {
  display: none; animation: stepIn 0.45s cubic-bezier(.4,0,.2,1);
}
.step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.step-card {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center;
}

.step-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

.step-card h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
}
.step-card h2 .g { color: var(--gold); }

.step-card p.muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ── STAR RATING ──────────────────────────────────────── */
.stars-container {
  display: flex; justify-content: center; gap: 14px;
  margin: 28px 0 20px;
}
.star {
  font-size: 2.5rem;
  cursor: pointer;
  color: rgba(255,255,255,0.12);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 0 0 transparent);
  transform: scale(1);
  user-select: none;
}
.star:hover, .star.hovered { color: var(--gold-light); transform: scale(1.2); }
.star.selected {
  color: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
  transform: scale(1.25);
}

.rating-desc {
  font-size: 0.95rem;
  color: var(--gold-light);
  min-height: 1.6em;
  font-weight: 500;
  transition: opacity 0.3s;
}

/* ── EMOTION ICONS ────────────────────────────────────── */
.emotion-bar {
  display: flex; justify-content: center; gap: 18px;
  margin: 25px 0 10px;
}
.emotion {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: all 0.3s;
}
.emotion .emoji { font-size: 2rem; line-height: 1; }
.emotion:hover { background: var(--dark-card-hover); border-color: var(--glass-border); color: var(--text-main); }
.emotion.selected {
  background: rgba(197,160,89,0.1);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(197,160,89,0.12);
}

/* ── TEXTAREA & INPUT ─────────────────────────────────── */
.input-wrap {
  position: relative; margin-bottom: 22px; text-align: right;
}
.input-wrap label {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 8px; letter-spacing: 0.5px;
}
textarea, input[type="text"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: none;
  direction: rtl;
}
textarea { line-height: 1.7; min-height: 110px; }
textarea::placeholder, input::placeholder { color: var(--text-dim); }
textarea:focus, input[type="text"]:focus {
  border-color: var(--glass-border-active);
  background: rgba(197,160,89,0.05);
  box-shadow: 0 0 0 3px rgba(197,160,89,0.1);
}

.char-count {
  font-size: 0.75rem; color: var(--text-dim);
  text-align: left; margin-top: 5px;
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-next {
  width: 100%; padding: 15px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none; border-radius: var(--radius-sm);
  color: #0A0A0A; font-family: 'Tajawal', sans-serif;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(197,160,89,0.3);
  margin-top: 10px;
}
.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197,160,89,0.45);
}
.btn-next:active { transform: translateY(0); }
.btn-next:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none;
}

.btn-skip {
  background: none; border: none;
  color: var(--text-muted); font-size: 0.85rem;
  cursor: pointer; padding: 10px;
  display: block; margin: 8px auto 0;
  transition: color 0.2s;
  font-family: 'Tajawal', sans-serif;
}
.btn-skip:hover { color: var(--text-main); }

/* ── SUCCESS ──────────────────────────────────────────── */
.success-card { text-align: center; padding: 20px 0; }
.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(197,160,89,0.15), rgba(197,160,89,0.05));
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 24px;
  box-shadow: 0 0 40px rgba(197,160,89,0.2);
  animation: pop 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.confetti-line {
  font-size: 1.4rem; letter-spacing: 6px; margin-bottom: 20px;
}

/* ── ADMIN LOGIN ──────────────────────────────────────── */
#login-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-bg);
}
.login-card {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 44px 40px;
  width: 100%; max-width: 420px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
}
.login-card .logo { height: 50px; margin-bottom: 24px; }
.login-card h2 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 28px;
  color: var(--text-main);
}
.gold-text { color: var(--gold); }
.login-card input {
  width: 100%; margin-bottom: 14px;
}
.login-card .btn-next { margin-top: 6px; }
.login-err { color: var(--danger); font-size: 0.85rem; margin-bottom: 12px; min-height: 1.2em; }

/* ── ADMIN LAYOUT ─────────────────────────────────────── */
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.admin-header .brand { display: flex; align-items: center; gap: 14px; }
.admin-header .brand img { width: 44px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }
.btn-logout {
  background: none; border: 1px solid var(--glass-border);
  color: var(--text-muted); padding: 7px 18px;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.85rem; font-family: 'Tajawal', sans-serif;
  transition: all 0.25s;
}
.btn-logout:hover {
  border-color: var(--danger); color: var(--danger);
}

/* ── STATS GRID ───────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 36px;
}
.stat-box {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s;
}
.stat-box::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(197,160,89,0.05), transparent);
  pointer-events: none;
}
.stat-box:hover { border-color: var(--glass-border-active); }
.stat-num {
  font-size: 2.4rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  font-family: 'Outfit', sans-serif; margin-bottom: 6px;
}
.stat-lbl { font-size: 0.82rem; color: var(--text-muted); }
.stat-icon {
  position: absolute; top: 16px; left: 16px;
  font-size: 1.5rem; opacity: 0.25;
}

/* ── TABS ─────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 12px 24px;
  cursor: pointer; border-bottom: 2px solid transparent;
  color: var(--text-muted); font-size: 0.9rem;
  transition: all 0.25s; font-family: 'Tajawal', sans-serif;
  background: none; border-top: none; border-left: none; border-right: none;
  font-weight: 500;
}
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: var(--text-main); }

/* ── REVIEWS TABLE ────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; }
.reviews-cards { display: flex; flex-direction: column; gap: 14px; }
.review-card-admin {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  transition: border-color 0.3s;
}
.review-card-admin:hover { border-color: var(--glass-border-active); }
.review-card-admin.approved { border-right: 3px solid var(--success); }
.review-card-admin.rejected { border-right: 3px solid var(--danger); opacity: 0.6; }
.rv-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.rv-name { font-weight: 600; font-size: 0.95rem; }
.rv-stars { color: var(--gold); font-size: 0.9rem; }
.rv-date { font-size: 0.75rem; color: var(--text-muted); margin-right: auto; }
.rv-comment { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.rv-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-approve, .btn-reject {
  padding: 7px 14px; border-radius: 7px;
  cursor: pointer; font-size: 0.8rem;
  font-family: 'Tajawal', sans-serif; font-weight: 600;
  border: none; transition: all 0.25s;
  white-space: nowrap;
}
.btn-approve {
  background: rgba(74,222,128,0.12);
  color: var(--success); border: 1px solid rgba(74,222,128,0.25);
}
.btn-approve:hover { background: rgba(74,222,128,0.2); }
.btn-reject {
  background: rgba(248,113,113,0.1);
  color: var(--danger); border: 1px solid rgba(248,113,113,0.2);
}
.btn-reject:hover { background: rgba(248,113,113,0.18); }

.status-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.5px;
}
.badge-pending { background: rgba(255,200,80,0.12); color: #ffc850; border: 1px solid rgba(255,200,80,0.25); }
.badge-approved { background: rgba(74,222,128,0.1); color: var(--success); border: 1px solid rgba(74,222,128,0.2); }
.badge-rejected { background: rgba(248,113,113,0.1); color: var(--danger); border: 1px solid rgba(248,113,113,0.2); }

.empty-state {
  text-align: center; padding: 50px 20px;
  color: var(--text-muted); font-size: 0.95rem;
}
.empty-state .icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.4; }

/* ── VISITORS TABLE ───────────────────────────────────── */
.visitors-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}
.visitors-table th {
  padding: 12px 16px; text-align: right;
  color: var(--text-muted); font-weight: 500;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.8rem; letter-spacing: 0.5px;
}
.visitors-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-main);
}
.visitors-table tr:hover td { background: var(--dark-card-hover); }
.scroll-bar-mini {
  height: 6px; border-radius: 6px;
  background: rgba(255,255,255,0.07);
  overflow: hidden; min-width: 80px;
}
.scroll-bar-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.page-tag {
  display: inline-block; font-size: 0.75rem;
  padding: 3px 9px; border-radius: 20px;
  background: rgba(197,160,89,0.1);
  color: var(--gold); border: 1px solid rgba(197,160,89,0.2);
}

/* ── FILTER BAR ───────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; cursor: pointer;
  background: var(--dark-card); border: 1px solid var(--glass-border);
  color: var(--text-muted); transition: all 0.25s;
  font-family: 'Tajawal', sans-serif;
}
.filter-chip.active, .filter-chip:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(197,160,89,0.08);
}

/* ── UTILS ────────────────────────────────────────────── */
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
