/* =================================================================
   ROBOWORLD RENTAL · shared styles
   Used by: index.html (event), restaurant.html (F&B)
================================================================= */

:root {
  /* Default = DARK theme — warm wine-carbon */
  --rw-red:        #E8222B;
  --rw-red-deep:   #B11A20;
  --rw-red-glow:   #FF3A45;
  --rw-black:      #0E0A0C;
  --rw-bg:         #1A1216;
  --rw-bg-2:       #251A20;
  --rw-bg-3:       #33232A;
  --rw-line:       #4A323B;
  --rw-text:       #FFFFFF;
  --rw-muted:      #CCB5BC;
  --rw-dim:        #8A7378;
  --rw-gold:       #F5C842;
  --rw-card-overlay: rgba(255,255,255,0.04);
  --rw-card-overlay-2: rgba(232,34,43,0.05);
  --rw-shadow: rgba(0,0,0,0.45);
  --rw-grid-line: rgba(255,255,255,0.04);
  --rw-img-bg: radial-gradient(ellipse at center, rgba(232,34,43,0.22), transparent 70%), #1F1418;
}
[data-theme="light"] {
  --rw-red:        #D81E27;
  --rw-red-deep:   #A8161D;
  --rw-red-glow:   #FF3A45;
  --rw-black:      #1A0E0E;
  --rw-bg:         #FAF6F3;
  --rw-bg-2:       #F2E9E6;
  --rw-bg-3:       #E8D8D5;
  --rw-line:       #E0CFCB;
  --rw-text:       #1A0E0E;
  --rw-muted:      #6B4D4D;
  --rw-dim:        #9B7A7A;
  --rw-gold:       #C68F1C;
  --rw-card-overlay: rgba(0,0,0,0.02);
  --rw-card-overlay-2: rgba(232,34,43,0.04);
  --rw-shadow: rgba(180,40,40,0.15);
  --rw-grid-line: rgba(0,0,0,0.04);
  --rw-img-bg: radial-gradient(ellipse at center, rgba(232,34,43,0.08), transparent 70%), #FFFFFF;
}

html, body {
  background: var(--rw-bg);
  color: var(--rw-text);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  transition: background-color .35s ease, color .35s ease;
}
.font-display { font-family: 'Saira Condensed', 'Be Vietnam Pro', sans-serif; letter-spacing: -0.01em; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ============= BUTTONS ============= */
.btn-primary {
  background: var(--rw-red); color: #fff; font-weight: 600;
  padding: 14px 28px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s ease;
}
.btn-primary:hover {
  background: var(--rw-red-deep); transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(232,34,43,0.7), 0 0 0 1px rgba(232,34,43,0.3);
}
.btn-ghost {
  border: 1px solid var(--rw-line); color: var(--rw-text); font-weight: 500;
  padding: 13px 26px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; background: var(--rw-card-overlay);
}
.btn-ghost:hover { border-color: var(--rw-red); background: rgba(232,34,43,0.07); }

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rw-red); display: inline-flex; align-items: center; gap: 8px;
}
.tag::before { content:''; width:24px; height:1px; background: var(--rw-red); }

/* ============= AMBIENT BACKGROUND ============= */
.ambient-bg { position: relative; isolation: isolate; }
.ambient-bg::before {
  content:''; position: absolute; inset:-10% -20%;
  background: radial-gradient(ellipse at 30% 40%, rgba(232,34,43,0.32) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 70%, rgba(232,34,43,0.18) 0%, transparent 55%);
  filter: blur(40px); z-index:-1; pointer-events:none;
}
.grid-overlay {
  background-image:
    linear-gradient(var(--rw-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--rw-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
}
.noise::after {
  content:''; position: absolute; inset:0; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04; mix-blend-mode: overlay;
}

/* ============= ANIMATIONS ============= */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-slow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes pulse-red { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity:.95; transform: scale(1.06); } }
@keyframes scan {
  0% { transform: translateY(-100%); opacity:0; }
  10%{ opacity: 1;}
  100% { transform: translateY(100%); opacity:0; }
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity:0; transform: translateY(28px); } to {opacity:1; transform: none; } }
@keyframes fadeIn { from { opacity:0; } to {opacity:1; } }
@keyframes slideRight { from { transform: translateX(-30px); opacity:0; } to {transform: none; opacity:1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float-slow 8s ease-in-out infinite; }
.pulse-red { animation: pulse-red 2.6s ease-in-out infinite; }
.fade-up { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both; }
.marquee-track { display: flex; gap: 64px; animation: marquee 40s linear infinite; width: max-content; }

/* ============= ROBOT FRAME ============= */
.robot-frame {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(232,34,43,0.04));
  border: 1px solid var(--rw-line);
  border-radius: 12px; overflow: hidden;
}
.robot-frame::before {
  content:''; position:absolute; left:0; right:0; height:120px;
  background: linear-gradient(180deg, transparent, rgba(232,34,43,0.4), transparent);
  animation: scan 5s linear infinite;
  z-index: 2; pointer-events:none;
  filter: blur(3px); opacity: 0.55;
}

/* ============= PRICE BADGE ============= */
.price-strike { position: relative; color: var(--rw-dim); font-size: 14px; }
.price-strike::after {
  content:''; position:absolute; left:0; right:0; top:50%;
  height:1px; background: var(--rw-red); transform: rotate(-6deg);
}
.discount-badge {
  background: linear-gradient(135deg, var(--rw-red), var(--rw-red-deep));
  color: #fff; padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  display:inline-flex; gap:4px; align-items:center;
}

.section-mark { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--rw-dim); letter-spacing: 0.2em; }

/* ============= CALENDAR ============= */
.cal-day {
  aspect-ratio: 1/1; display:flex; align-items:center; justify-content:center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  border: 1px solid var(--rw-line); cursor: pointer;
  transition: all .15s; user-select: none; border-radius: 4px;
  background: var(--rw-card-overlay);
  position: relative;
}
.cal-day:hover { background: rgba(232,34,43,0.12); border-color: var(--rw-red); }
.cal-day.busy { background: rgba(232,34,43,0.18); color: #ff8888; cursor: not-allowed; opacity: 0.55; border-color: rgba(232,34,43,0.4); }
.cal-day.busy:hover { background: rgba(232,34,43,0.18); border-color: rgba(232,34,43,0.4); }
.cal-day.busy::after { content:'×'; position:absolute; right:4px; top:1px; font-size:14px; color:var(--rw-red); }
.cal-day.selected { background: var(--rw-red); color:#fff; border-color: var(--rw-red); font-weight:700; }
.cal-day.in-range { background: rgba(232,34,43,0.18); color:#fff; border-color: rgba(232,34,43,0.4); font-weight:600; }
.cal-day.in-range:hover { background: rgba(232,34,43,0.3); border-color: var(--rw-red); }
.cal-day.past { opacity: 0.25; cursor: not-allowed; pointer-events:none; }
.cal-day.empty { border:none; background: transparent; pointer-events:none; }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--rw-gold); }

/* ============= FIELD ERRORS (Step 7 validation) ============= */
.field-err {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #ff8888;
  margin-top: 6px;
  min-height: 16px;
}
.field-err:empty { min-height: 0; }
.input.input-err {
  border-color: #ff5555;
  background: rgba(232,34,43,0.06);
}

/* ============= ROBOT PICKER (Step 4) ============= */
.robot-pick-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.robot-pick-card {
  display: flex; align-items: stretch; gap: 14px;
  background: var(--rw-card-overlay);
  border: 2px solid var(--rw-line);
  border-radius: 10px; padding: 14px;
  transition: all .2s;
}
.robot-pick-card:hover { border-color: var(--rw-red); }
.robot-pick-card.selected { border-color: var(--rw-red); background: rgba(232,34,43,0.05); }
.robot-pick-card.unavailable { opacity: 0.55; }
.robot-pick-card.unavailable:hover { border-color: var(--rw-line); }
.robot-pick-thumb {
  width: 88px; height: 88px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--rw-img-bg); border-radius: 8px; overflow: hidden;
}
.robot-pick-thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.robot-pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.status-pill.ready { background: rgba(46,224,104,0.15); color: #2EE068; border: 1px solid rgba(46,224,104,0.3); }
.status-pill.busy { background: rgba(232,34,43,0.15); color: #ff8888; border: 1px solid rgba(232,34,43,0.3); }

/* ============= INPUTS ============= */
.input {
  width: 100%; background: var(--rw-card-overlay); border:1px solid var(--rw-line);
  border-radius: 6px; padding: 12px 14px; color: var(--rw-text); font-family: inherit;
  transition: all .2s; font-size: 14px;
}
.input:focus { outline: none; border-color: var(--rw-red); background: var(--rw-card-overlay-2); }
.input::placeholder { color: var(--rw-dim); }
[data-theme="light"] .input { background: #FFFFFF; }
[data-theme="light"] .input:focus { background: #FFF5F5; }
label.lbl { display:block; font-size: 12px; color: var(--rw-muted); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;}

/* ============= MODAL ============= */
.modal-overlay {
  position: fixed; inset:0; background: color-mix(in srgb, var(--rw-black) 85%, transparent);
  backdrop-filter: blur(8px); z-index: 100;
  display:flex; align-items: center; justify-content: center;
  animation: fadeIn .25s; padding: 16px;
}
.modal-card {
  background: var(--rw-bg-2);
  border: 1px solid var(--rw-line); border-radius: 12px;
  max-width: 980px; width: 100%; max-height: 92vh; overflow-y: auto;
  animation: fadeUp .3s; position: relative;
}
.modal-card::before {
  content:''; position: absolute; inset:0;
  background: radial-gradient(ellipse at 0% 0%, rgba(232,34,43,0.12) 0%, transparent 50%);
  pointer-events:none; z-index:0; border-radius: 12px;
}
.modal-card > * { position: relative; z-index: 1; }

/* ============= ROBOT CARD ============= */
.robot-card {
  border: 1px solid var(--rw-line); border-radius: 10px;
  background: linear-gradient(180deg, var(--rw-card-overlay), var(--rw-card-overlay-2));
  overflow: hidden; transition: all .3s; position: relative;
}
.robot-card:hover {
  border-color: var(--rw-red); transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(232,34,43,0.5);
}
.robot-card .img-wrap {
  height: 280px; background: var(--rw-img-bg);
  display:flex; align-items:flex-end; justify-content:center; overflow: hidden; position: relative;
  cursor: pointer;
}
.robot-card img { max-height: 95%; object-fit: contain; transition: transform .5s; filter: drop-shadow(0 20px 30px var(--rw-shadow)); }
.robot-card:hover img { transform: translateY(-6px) scale(1.04); }
.robot-card .play-overlay {
  position: absolute; inset:0; background: rgba(0,0,0,0.55);
  display:flex; align-items:center; justify-content:center; gap: 10px;
  opacity: 0; transition: opacity .25s; z-index: 5; backdrop-filter: blur(2px);
}
.robot-card .play-overlay svg { width: 64px; height: 64px; transition: transform .25s; }
.robot-card .img-wrap:hover .play-overlay { opacity: 1; }
.robot-card .img-wrap:hover .play-overlay svg { transform: scale(1.15); }
.robot-card .play-label { font-family:'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: white; text-transform: uppercase; }

.bar { height: 1px; background: linear-gradient(90deg, transparent, var(--rw-red), transparent); position: relative; }
.bar::after {
  content:''; position:absolute; right:0; top:-3px; width:8px; height:8px;
  background: var(--rw-red); border-radius:50%; box-shadow: 0 0 14px var(--rw-red);
}

/* ============= TOAST ============= */
#toast-container { position: fixed; top: 24px; right: 24px; z-index: 1000; display:flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--rw-bg-2); border: 1px solid var(--rw-red);
  padding: 14px 20px; border-radius: 8px;
  animation: slideRight .3s; max-width: 360px;
  box-shadow: 0 10px 30px -10px rgba(232,34,43,0.4);
}
.toast.success { border-color: #2EE068; box-shadow: 0 10px 30px -10px rgba(46,224,104,0.4);}
.toast.warn { border-color: var(--rw-gold); box-shadow: 0 10px 30px -10px rgba(245,200,66,0.4);}

/* ============= NAV ============= */
.nav-blur {
  background: color-mix(in srgb, var(--rw-bg) 70%, transparent); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rw-line);
}
.theme-toggle {
  width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid var(--rw-line); background: var(--rw-card-overlay);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--rw-red); background: rgba(232,34,43,0.07); }
.theme-toggle svg { width: 18px; height: 18px; color: var(--rw-text); }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }
.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }

/* ============= VIDEO MODAL ============= */
.video-modal-overlay {
  position: fixed; inset:0; background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px); z-index: 200;
  display:flex; align-items: center; justify-content: center;
  animation: fadeIn .25s; padding: 16px;
}
.video-modal-card {
  background: #000; border-radius: 12px;
  max-width: 1080px; width: 100%; aspect-ratio: 16/9;
  position: relative; animation: fadeUp .3s;
  box-shadow: 0 0 0 1px var(--rw-red), 0 30px 80px -20px rgba(232,34,43,0.4);
}
.video-modal-card iframe { width: 100%; height: 100%; border-radius: 12px; }
.video-modal-close {
  position: absolute; top: -12px; right: -12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rw-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; border: 2px solid var(--rw-bg);
  transition: transform .2s;
}
.video-modal-close:hover { transform: rotate(90deg) scale(1.1); }
.video-modal-title {
  position: absolute; top: -36px; left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--rw-red); letter-spacing: 0.2em;
}

/* ============= STAFF DAY PICKER ============= */
.staff-day-pill {
  padding: 6px 12px; border: 1px solid var(--rw-line);
  border-radius: 100px; cursor: pointer; user-select: none;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  transition: all .15s; background: var(--rw-card-overlay);
}
.staff-day-pill:hover { border-color: var(--rw-red); }
.staff-day-pill.active { background: var(--rw-red); color: #fff; border-color: var(--rw-red); }

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--rw-bg-2); }
::-webkit-scrollbar-thumb { background: var(--rw-line); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--rw-red); }

/* ============= UTILITIES ============= */
.text-muted { color: var(--rw-muted); }
.text-dim { color: var(--rw-dim); }
.t-strong { color: var(--rw-text); }
.divider { height:1px; background: var(--rw-line); }

/* ============= PAIN POINT CARDS (event + restaurant landings) ============= */
.pain-card {
  border: 1px solid var(--rw-line); border-radius: 10px;
  padding: 24px; background: var(--rw-card-overlay);
  transition: all .25s; position: relative;
}
.pain-card::before {
  content: '⚠'; position: absolute; top: 18px; right: 18px;
  color: var(--rw-red); font-size: 18px; opacity: 0.5;
}
.pain-card:hover { border-color: var(--rw-red); transform: translateY(-3px); }
.pain-card .pc-num {
  font-family: 'Saira Condensed', sans-serif; font-weight: 800;
  font-size: 36px; color: var(--rw-red); line-height: 1;
  margin-bottom: 8px;
}

.solution-card {
  border: 1px solid var(--rw-line); border-radius: 10px;
  padding: 24px; background: linear-gradient(135deg, rgba(232,34,43,0.06), transparent);
  transition: all .25s; position: relative;
}
.solution-card::before {
  content: '✓'; position: absolute; top: 18px; right: 18px;
  color: #2EE068; font-size: 22px; font-weight: bold;
}
.solution-card:hover { border-color: var(--rw-red); transform: translateY(-3px); }

@media (max-width: 768px) {
  .hero-headline { font-size: 56px !important; line-height: 0.95 !important; }
  .hero-sub { font-size: 16px !important; }
}

/* ============================================================
   v3 ADDITIONS · Persona Modal · Multi-Robot Booking · Admin
============================================================ */

/* Persona modal - cannot be dismissed by clicking outside */
.persona-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}
.persona-modal-card {
  background: var(--rw-bg-2); border: 2px solid var(--rw-red);
  border-radius: 16px; padding: 36px 28px;
  max-width: 720px; width: 100%; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(232, 34, 43, 0.5);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.persona-card {
  background: var(--rw-bg);
  border: 2px solid var(--rw-line);
  border-radius: 12px; padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.persona-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(232, 34, 43, 0.08));
  opacity: 0; transition: opacity 0.3s ease;
}
.persona-card:hover {
  border-color: var(--rw-red);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(232, 34, 43, 0.4);
}
.persona-card:hover::before { opacity: 1; }
.persona-card > * { position: relative; z-index: 1; }

/* Booking modal needs to scroll for long forms */
.modal-overlay { overflow-y: auto; padding: 20px 0; }
.modal-card { max-height: none; margin: 0 auto; }

/* Item picker rows */
.input::file-selector-button {
  background: var(--rw-bg-3); color: var(--rw-text);
  border: none; padding: 6px 12px; border-radius: 4px;
  cursor: pointer; margin-right: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.input::file-selector-button:hover { background: var(--rw-red); }

/* Code highlight in admin */
code {
  background: var(--rw-bg); padding: 2px 6px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  border: 1px solid var(--rw-line);
}

/* Details/summary tweaks */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { background: var(--rw-card-overlay); }

/* Admin tab badge */
.admin-tab-badge {
  background: var(--rw-red); color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 9999px;
  margin-left: 6px;
}

/* Region selector for booking */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Disabled buttons */
button:disabled { cursor: not-allowed !important; }

/* Input file specifically */
input[type="file"].input { padding: 6px 10px; line-height: 1.5; }

/* Mobile booking modal */
@media (max-width: 768px) {
  .persona-modal-card { padding: 24px 18px; }
  .modal-card { border-radius: 12px; margin: 0; }
}

/* Video modal fallback link - luôn visible đề phòng embed bị YouTube chặn */
.video-fallback-link {
  position: absolute; top: -36px; right: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--rw-muted);
  text-decoration: none;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  border: 1px solid rgba(232, 34, 43, 0.3);
  transition: all 0.2s ease;
  z-index: 100;
}
.video-fallback-link:hover {
  color: white;
  background: var(--rw-red);
  border-color: var(--rw-red);
}
.video-modal-card { position: relative; }

/* ============================================================
   v3.5 · GALLERY SLIDER MODAL
============================================================ */
.gallery-modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(8px);
  animation: fadeIn 0.25s ease;
}
.gallery-modal-card {
  position: relative;
  background: var(--rw-bg-2);
  border: 1px solid var(--rw-line);
  border-radius: 12px;
  width: 100%; max-width: 1100px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(232, 34, 43, 0.5);
  overflow: hidden;
}
.gallery-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid var(--rw-line);
  border-radius: 8px;
  font-size: 24px; line-height: 1;
  cursor: pointer; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.gallery-close:hover {
  background: var(--rw-red); border-color: var(--rw-red);
  transform: rotate(90deg);
}

.gallery-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 56px 14px 20px;
  border-bottom: 1px solid var(--rw-line);
  background: var(--rw-bg-2);
}
.gallery-title { flex: 1; min-width: 0; }
.gallery-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--rw-red);
  font-weight: 700;
  background: rgba(232, 34, 43, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(232, 34, 43, 0.3);
  white-space: nowrap;
  margin-left: 12px;
}

.gallery-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: #000;
  position: relative;
  min-height: 320px; max-height: 65vh;
  overflow: hidden;
}
.gallery-image {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-error {
  color: var(--rw-muted); font-size: 14px;
  padding: 40px 20px; text-align: center;
}
.gallery-video-wrap {
  width: 100%; height: 100%;
  position: relative;
  aspect-ratio: 16/9;
  max-width: 100%;
}
.gallery-video-wrap iframe,
.gallery-video-wrap video {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  border: 0;
}

.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border: 1px solid var(--rw-line);
  font-size: 32px; line-height: 1;
  cursor: pointer; z-index: 15;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  font-weight: 300;
}
.gallery-nav:hover:not(:disabled) {
  background: var(--rw-red); border-color: var(--rw-red);
  width: 56px;
}
.gallery-nav:disabled {
  opacity: 0.25; cursor: not-allowed;
}
.gallery-prev { left: 0; border-radius: 0 8px 8px 0; }
.gallery-next { right: 0; border-radius: 8px 0 0 8px; }

.gallery-dots {
  display: flex; gap: 6px;
  justify-content: center; align-items: center;
  padding: 14px 20px 18px;
  background: var(--rw-bg-2);
  border-top: 1px solid var(--rw-line);
  flex-wrap: wrap;
  max-height: 90px; overflow-y: auto;
}
.gallery-dot {
  min-width: 28px; height: 28px;
  background: var(--rw-bg-3);
  color: var(--rw-muted);
  border: 1px solid var(--rw-line);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-dot:hover {
  border-color: var(--rw-red);
  color: var(--rw-red);
}
.gallery-dot.active {
  background: var(--rw-red);
  color: white;
  border-color: var(--rw-red);
  box-shadow: 0 0 0 2px rgba(232, 34, 43, 0.25);
}
.gallery-dot.is-video {
  background: linear-gradient(135deg, var(--rw-bg-3), rgba(232, 34, 43, 0.2));
  color: var(--rw-red);
  font-size: 10px;
}
.gallery-dot.is-video.active {
  background: var(--rw-red); color: white;
}

.gallery-fallback-link {
  position: absolute; bottom: 100px; right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  border: 1px solid rgba(232, 34, 43, 0.4);
  z-index: 16;
  transition: all 0.2s ease;
}
.gallery-fallback-link:hover {
  background: var(--rw-red); border-color: var(--rw-red);
}

@media (max-width: 640px) {
  .gallery-modal-card { max-height: 96vh; }
  .gallery-nav { width: 40px; height: 50px; font-size: 24px; }
  .gallery-stage { min-height: 240px; max-height: 50vh; }
  .gallery-header { padding: 12px 50px 10px 14px; }
  .gallery-counter { font-size: 11px; }
  .gallery-fallback-link { bottom: 90px; right: 8px; font-size: 10px; }
}

/* ============================================================
   v3.6 · CUSTOMER SHOWCASE MARQUEE (auto-scroll slider)
============================================================ */
.showcase-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding: 8px 0;
}
.showcase-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: showcase-scroll linear infinite;
}
.showcase-track:hover { animation-play-state: paused; }
.showcase-slide {
  width: 320px; height: 240px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--rw-line);
  background: var(--rw-bg-3);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.showcase-slide::after {
  content: '🔍'; position: absolute; top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.7); color: white;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none;
}
.showcase-slide:hover {
  transform: scale(1.04);
  border-color: var(--rw-red);
  box-shadow: 0 16px 40px -12px rgba(232, 34, 43, 0.4);
}
.showcase-slide:hover::after { opacity: 1; }
.showcase-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes showcase-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .showcase-slide { width: 240px; height: 180px; }
}

/* ============================================================
   v3.7 · ADMIN DASHBOARD (KPI cards + bars)
============================================================ */
.kpi-card {
  background: var(--rw-bg-2);
  border: 1px solid var(--rw-line);
  border-radius: 10px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--rw-red), transparent);
}
.kpi-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--rw-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 700;
}
.kpi-value {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}
.kpi-sub {
  font-size: 11px;
  color: var(--rw-dim);
}
.dash-card {
  background: var(--rw-bg-2);
  border: 1px solid var(--rw-line);
  border-radius: 10px;
  padding: 20px;
}
.dash-title {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--rw-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rw-line);
}
.bar-track {
  height: 8px;
  background: var(--rw-bg-3);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ============================================================
   v3.8 · DYNAMIC BANNER ROBOTS (positions controlled by admin)
============================================================ */
.banner-robot {
  position: absolute;
  display: block;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  max-width: none;
}
.banner-robot:first-child { animation-name: float-slow; }

/* ============================================================
   ADMIN BANNER EDITOR (drag-drop preview)
============================================================ */
.banner-editor-wrap {
  background: var(--rw-bg);
  border: 1px solid var(--rw-line);
  border-radius: 8px;
  padding: 14px;
}
.banner-editor-stage {
  position: relative;
  background:
    linear-gradient(rgba(232,34,43,0.06) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(232,34,43,0.06) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(ellipse at center, rgba(232,34,43,0.15), var(--rw-black) 70%);
  border: 1px dashed rgba(232,34,43,0.3);
  border-radius: 8px;
  height: 460px;
  overflow: hidden;
  user-select: none;
}
.banner-editor-robot {
  position: absolute;
  cursor: grab;
  transition: filter 0.2s ease, outline 0.15s ease;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}
.banner-editor-robot:hover {
  filter: drop-shadow(0 6px 16px rgba(232,34,43,0.5));
  outline: 2px solid var(--rw-red);
  outline-offset: 4px;
}
.banner-editor-robot.dragging {
  cursor: grabbing;
  opacity: 0.85;
  outline: 2px solid var(--rw-gold);
}
.banner-editor-robot.selected {
  outline: 2px solid var(--rw-gold);
  outline-offset: 4px;
}
.banner-editor-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--rw-bg-2);
  border: 1px solid var(--rw-line);
  border-radius: 6px;
  font-size: 12px;
  align-items: center;
  margin-top: 10px;
}
.banner-editor-toolbar label {
  display: flex; align-items: center; gap: 6px;
  color: var(--rw-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.banner-editor-toolbar input[type="range"] {
  width: 110px;
  accent-color: var(--rw-red);
}
.banner-editor-toolbar input[type="number"] {
  width: 60px;
  background: var(--rw-bg);
  color: var(--rw-text);
  border: 1px solid var(--rw-line);
  padding: 4px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.banner-editor-help {
  font-size: 11px;
  color: var(--rw-dim);
  padding: 8px 10px;
  background: rgba(245,200,66,0.06);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 4px;
  margin-top: 8px;
}
