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

:root {
  --primary: #8B5CF6;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --accent: #F43F5E;
  --gold: #F59E0B;
  --green: #10B981;
  --orange: #F97316;
  --purple: #A78BFA;
  --dark: #09090b;
  --dark2: #18181b;
  --dark3: #27272a;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --radius: 32px;
  --radius-sm: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.screen.active { display: flex; }

/* ── AURORA FLOWING BACKGROUND ── */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #120e2e 0%, var(--dark) 100%);
  z-index: -2;
}
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3C%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  z-index: -1;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: liquid 20s infinite alternate;
}
.a1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  left: -100px;
}
.a1.green {
  background: var(--green);
}
.a2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -150px;
  right: -100px;
  animation-duration: 25s;
  animation-delay: -5s;
}
.a3 {
  width: 400px;
  height: 400px;
  background: var(--orange);
  top: 40%;
  left: 50%;
  animation-duration: 18s;
  animation-delay: -2s;
}

@keyframes liquid {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(100px, 80px) scale(1.2) rotate(120deg); }
  66% { transform: translate(-80px, 120px) scale(0.8) rotate(240deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

/* ── RATING CONTAINER ── */
.rating-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pharmacy-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, #c084fc 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  position: relative;
  box-shadow: 0 8px 30px var(--primary-glow);
}
.logo-glow {
  position: absolute;
  inset: -2px;
  background: inherit;
  filter: blur(8px);
  opacity: 0.6;
  z-index: -1;
  border-radius: 22px;
}
.logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #d8b4fe);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 8px;
}

/* Card glassmorphism & soft gradient border */
.rating-card {
  position: relative;
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.card-glow-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 50%, rgba(139,92,246,0.2) 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.rating-header h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  background: linear-gradient(to right, #ffffff, #e4e4e7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating-header p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}
.emoji-bounce {
  font-size: 48px;
  margin-bottom: 12px;
  animation: emojiWave 2.5s infinite;
  display: inline-block;
}

@keyframes emojiWave {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(15deg) scale(1.1); }
  40% { transform: rotate(-10deg) scale(1.1); }
  60% { transform: rotate(10deg) scale(1.1); }
  80% { transform: rotate(-5deg) scale(1.05); }
}

/* ── STARS ANIMATION ── */
.stars-section {
  margin: 36px 0;
}
.stars-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.star-container {
  position: relative;
  cursor: pointer;
}
.star {
  font-size: 82px;
  color: rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  user-select: none;
}
.star-container:hover .star,
.star-container.hovered .star {
  color: var(--gold);
  transform: scale(1.2) rotate(8deg);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}
.star-container.selected .star {
  color: var(--gold);
  transform: scale(1.2);
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.9);
  animation: starImpact 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes starImpact {
  0% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.4) rotate(-15deg); }
  100% { transform: scale(1.2) rotate(0); }
}

.rating-label-wrap {
  min-height: 30px;
}
.rating-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
  animation: pulseLabel 2s infinite alternate;
}
@keyframes pulseLabel {
  from { transform: scale(0.97); opacity: 0.8; }
  to { transform: scale(1.03); opacity: 1; }
}

/* ── COMMENT SECTION ── */
.comment-section {
  display: none !important;
}
.submit-btn {
  display: none !important;
}
.textarea-wrap {
  position: relative;
}
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 16px;
  font-family: inherit;
  font-size: 15px;
  resize: none;
  height: 90px;
  outline: none;
  transition: background 0.3s, border-color 0.3s;
}
textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.5);
}
.textarea-line {
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--primary);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}
textarea:focus + .textarea-line {
  width: 100%;
}
.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── SUBMIT BUTTON ── */
.submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(90deg, var(--primary) 0%, #c084fc 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}
.submit-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
  transition: transform 0.3s;
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5);
}
.submit-btn:hover:not(:disabled) svg {
  transform: translateX(6px);
}
.submit-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.submit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
}
.submit-btn:hover:not(:disabled) .btn-shimmer {
  left: 150%;
  transition: 0.75s;
}

/* Admin Link */
.admin-link {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
  opacity: 0.4;
  z-index: 100;
}
.admin-link:hover {
  opacity: 1;
  background: rgba(255,255,255,0.1);
  transform: rotate(45deg);
}

/* ── THANK YOU SCREEN ── */
#confettiContainer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.thankyou-container {
  position: relative;
  z-index: 10;
  width: 90vw;
  max-width: 500px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.thankyou-card {
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.check-ring {
  width: 100px; height: 100px;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.check-ring-inner {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--green) 0%, #34d399 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}
.checkmark-svg {
  width: 44px; height: 44px;
}
.checkmark-circle-svg {
  stroke-width: 2;
  stroke: rgba(255,255,255,0.2);
}
.checkmark-check {
  stroke-width: 4;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.3s;
}
@keyframes strokeCheck {
  to { stroke-dashoffset: 0; }
}

.thankyou-card h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(to right, #ffffff, #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.thankyou-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.countdown-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.countdown-fill {
  height: 100%;
  background: var(--green);
  width: 100%;
}
.countdown-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── PIN SCREEN ── */
.pin-container {
  position: relative;
  z-index: 10;
}
.pin-card {
  background: rgba(20, 20, 25, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  width: 380px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.pin-icon-wrap {
  font-size: 40px;
  margin-bottom: 12px;
}
.pin-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.pin-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.pin-dots {
  display: flex; gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}
.dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}
.dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  transform: scale(1.15);
}
.pin-error {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.pin-error.show { opacity: 1; }
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.num-btn {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.num-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.num-btn:active {
  transform: translateY(1px);
}
.clear-btn { color: var(--accent); }
.back-btn { color: var(--text-muted); }

/* ── DASHBOARD BENTO GRID ── */
#dashboardScreen { display: none; }
#dashboardScreen.active { display: flex; }
.dash-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 10%, #0d0d16 0%, #050508 100%);
  z-index: -2;
}
.dashboard-layout {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100vh;
}
.dash-sidebar {
  width: 260px;
  min-width: 260px;
  background: rgba(10, 10, 12, 0.5);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 32px 20px;
  backdrop-filter: blur(20px);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 8px;
  margin-bottom: 40px;
  font-size: 20px; font-weight: 900;
}
.sidebar-logo .logo-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  font-size: 20px;
}
.sidebar-nav {
  flex: 1; display: flex;
  flex-direction: column; gap: 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}
.nav-item:hover {
  background: rgba(255,255,255,0.03);
  color: white;
}
.nav-item.active {
  background: rgba(139, 92, 246, 0.15);
  color: white;
  border: 1px solid rgba(139, 92, 246, 0.2);
}
.sidebar-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.15);
  color: var(--accent);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.sidebar-logout:hover {
  background: rgba(244, 63, 94, 0.2);
}

.dash-main {
  flex: 1;
  overflow-y: auto;
}
.tab-content { display: none; padding: 40px; }
.tab-content.active { display: block; }

.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.dash-header h1 { font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.dash-header p { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.btn-clear-data {
  padding: 10px 20px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 12px;
  color: var(--accent);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-clear-data:hover { background: rgba(244, 63, 94, 0.2); }

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(130px, auto);
  gap: 16px;
  margin-bottom: 32px;
}
.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}
.bento-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bento-value {
  font-size: 40px;
  font-weight: 900;
  margin-top: 8px;
  letter-spacing: -1px;
}
.bento-icon {
  position: absolute;
  bottom: 16px; right: 16px;
  font-size: 32px;
  opacity: 0.15;
}
.bento-stars {
  font-size: 18px;
  color: var(--gold);
  margin-top: 4px;
  letter-spacing: 2px;
}

/* Bento specifics */
.b-avg { background: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, transparent 100%); }
.b-satisfaction { background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, transparent 100%); }
.b-bars {
  grid-column: span 2;
  grid-row: span 2;
}
.b-line {
  grid-column: span 2;
  grid-row: span 2;
}
.chart-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

/* Bars Chart */
.bars-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.bar-label { width: 32px; font-weight: 600; color: var(--text-muted); }
.bar-track {
  flex: 1; height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 4px;
  width: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-fill.star5 { background: var(--green); }
.bar-fill.star4 { background: var(--primary); }
.bar-fill.star3 { background: var(--orange); }
.bar-fill.star2 { background: var(--purple); }
.bar-fill.star1 { background: var(--accent); }
.bar-count { width: 28px; text-align: right; color: var(--text-muted); font-size: 13px; }

/* Comments section */
.comments-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.comments-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comment-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  animation: fadeIn 0.4s ease;
}
.comment-stars { font-size: 14px; color: var(--gold); }
.comment-text { font-size: 14px; color: var(--text-muted); flex: 1; line-height: 1.5; }
.comment-time { font-size: 12px; color: rgba(255,255,255,0.25); }

/* History Filters */
.history-filters { display: flex; gap: 12px; margin-bottom: 24px; }
.history-filters select,
.history-filters input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.history-table-wrapper {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
}
.history-table th {
  text-align: left;
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.01);
}
.history-table td {
  padding: 18px 20px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.history-table tr:hover td { background: rgba(255,255,255,0.01); }

/* Settings */
.settings-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 32px;
  margin-bottom: 24px;
  max-width: 500px;
}
.settings-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 24px; }
.setting-row { margin-bottom: 20px; }
.setting-row label { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.setting-row input {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}
.setting-row input:focus { border-color: var(--primary); }
.save-btn {
  padding: 14px 28px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.save-btn:hover {
  box-shadow: 0 8px 20px var(--primary-glow);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet landscape (≤ 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .b-bars, .b-line { grid-column: span 2; }
  .dash-sidebar { width: 220px; min-width: 220px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet portrait (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  body { overflow: auto; }

  /* Rating screen */
  .rating-container { gap: 16px; padding: 12px; }
  .rating-card { padding: 36px 24px; border-radius: 24px; }
  .rating-header h1 { font-size: 28px; }
  .star { font-size: 68px; }
  .stars-wrapper { gap: 10px; }

  /* Dashboard sidebar to top header */
  .dashboard-layout { flex-direction: column; }
  .dash-sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
  }
  .sidebar-logo { margin-bottom: 0; }
  .sidebar-nav { flex-direction: row; }
  .nav-item { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
  .dash-main { overflow-y: auto; height: calc(100vh - 80px); }
  .tab-content { padding: 20px; }

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

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .rating-card { padding: 24px 16px; border-radius: 20px; }
  .star { font-size: 50px; }
  .stars-wrapper { gap: 6px; }
  .rating-header h1 { font-size: 22px; }
  .emoji-bounce { font-size: 36px; }
  .logo-icon { width: 44px; height: 44px; font-size: 22px; }
  .logo-text { font-size: 18px; }

  .bento-grid { grid-template-columns: 1fr; }
  .b-bars, .b-line { grid-column: span 1; }
  .nav-item span:not(.nav-icon) { display: none; }
  .sidebar-logout span:last-child { display: none; }
}
