/* AR RESTAURANT - Premium Dining Experience */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-light: #ff6b6b;
  --gold: #ffd700;
  --gold-light: #ffed4e;
  --bg: #f8f9fa;
  --bg-dark: #0f0f1a;
  --text: #1a1a1a;
  --text-light: #e0e0e0;
  --muted: #6c757d;
  --shadow: 0 10px 40px rgba(0,0,0,.15);
  --shadow-sm: 0 4px 15px rgba(0,0,0,.08);
  --r: 20px;
  --r-lg: 28px;
  --yellow: #ffd700;
  --orange: #ff6b35;
  --red: #e94560;
  --green: #25D366;
  --green-light: #4ade80;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--text);
  overflow-x: hidden;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  backdrop-filter: blur(10px);
}

.nav-logo-text h2 {
  font-family: 'Righteous', cursive;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(255,215,0,.3);
}

.nav-logo-text p {
  color: #ccc;
  font-size: .65rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cart {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .9rem;
  box-shadow: 0 4px 15px rgba(233,69,96,.4);
  transition: all .3s;
}

.nav-cart .bdg {
  background: var(--gold);
  color: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(255,215,0,.5);
}

.hamburger {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.mob-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 899;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-110%);
  transition: transform .35s ease;
  padding: 15px;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow);
}

.mob-menu.open {
  transform: translateY(0);
}

.mob-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  transition: background .2s;
}

.mob-menu a:hover {
  background: rgba(233,69,96,.3);
}

/* Hero Section */
.hero {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 25px 18px 20px;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-family: 'Righteous', cursive;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 3px 15px rgba(255,215,0,.4);
}

.hero-sub {
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 10px;
}
.hero-seo {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  opacity: .85;
}

.hero-slider {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.info-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .3s;
}

.info-card i {
  color: var(--gold);
  font-size: 1.4rem;
}

.info-card strong {
  display: block;
  font-size: .85rem;
}

.info-card span {
  font-size: .72rem;
  opacity: .85;
}

.hero-btns {
  display: flex;
  gap: 10px;
}

.hbtn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 50px;
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.hbtn-call {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(233,69,96,.4);
}

.hbtn-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
}

.hbtn-menu {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(255,215,0,.4);
}

/* Sections */
section {
  padding: 25px 15px;
}

.sec-title {
  text-align: center;
  margin-bottom: 20px;
}

.sec-title h2 {
  font-family: 'Righteous', cursive;
  font-size: 1.8rem;
  color: var(--primary);
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.sec-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
}

.sec-title p {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 5px;
}

.search-box {
  background: #fff;
  border-radius: 50px;
  padding: 5px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  margin-bottom: 15px;
}

.search-box i {
  color: var(--muted);
}

.search-box input {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  outline: none;
}

.cat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 15px;
  scrollbar-width: none;
}

.cat-row::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all .3s;
  box-shadow: var(--shadow-sm);
}

.cat-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--gold);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(26,26,46,.3);
}

/* Food Grid */
.food-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.food-card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  border: 1px solid rgba(0,0,0,.05);
}

.food-card:active {
  transform: scale(.97);
}

.food-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.fcard-img {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.fcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.food-card:hover .fcard-img img {
  transform: scale(1.08);
}

.fcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(233,69,96,.4);
}

.fcard-badge.hot {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
}

.fcard-body {
  padding: 10px;
}

.fcard-title {
  font-weight: 800;
  font-size: .88rem;
  margin-bottom: 3px;
  line-height: 1.2;
}

.fcard-desc {
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sz-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sz-btn {
  padding: 3px 7px;
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: .62rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.sz-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--gold);
  border-color: var(--primary);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
}

.add-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--gold);
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  box-shadow: 0 4px 12px rgba(26,26,46,.3);
}

.add-btn:active {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: scale(.9);
}

/* Deals */
.deals-bg {
  background: linear-gradient(135deg, #fff5f5, #f8f9fa);
}

.deals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.deal-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--r-lg);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,215,0,.2);
}

.deal-num {
  position: absolute;
  top: -10px;
  right: 15px;
  font-family: 'Righteous', cursive;
  font-size: 4rem;
  color: rgba(255,255,255,.1);
  line-height: 1;
}

.deal-name {
  font-family: 'Righteous', cursive;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.deal-list {
  list-style: none;
  margin-bottom: 15px;
}

.deal-list li {
  padding: 4px 0;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 900;
}

.deal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.deal-price {
  font-family: 'Righteous', cursive;
  font-size: 2rem;
  color: var(--gold);
}

.deal-order-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 800;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(233,69,96,.4);
}

.deal-order-btn:active {
  transform: scale(.95);
}

.deal-order-btn:hover {
  box-shadow: 0 6px 20px rgba(233,69,96,.5);
}

/* Gallery */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gal-item {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  border: 1px solid rgba(0,0,0,.05);
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.gal-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.gal-item:hover img {
  transform: scale(1.08);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 35px 18px 25px;
  position: relative;
  overflow: hidden;
}

.ft-logo {
  font-family: 'Righteous', cursive;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(255,215,0,.3);
}

.ft-info p {
  margin-bottom: 8px;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ft-info i {
  color: var(--gold);
  width: 22px;
}

.social-row {
  display: flex;
  gap: 12px;
  margin: 15px 0;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background .2s;
}

.social-row a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: translateY(-3px);
}

.ft-copy {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .8rem;
  text-align: center;
  color: rgba(255,255,255,.7);
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 800;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 8px 25px rgba(37,211,102,.5);
  text-decoration: none;
  animation: floatY 3s ease-in-out infinite;
  transition: all .3s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Cart */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 28px 28px 0 0;
  z-index: 1501;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  padding: 24px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
}

.cart-panel.open {
  transform: translateY(0);
}

.cart-handle {
  width: 40px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 0 auto 15px;
}

.cart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cart-hdr h3 {
  font-family: 'Righteous', cursive;
  font-size: 1.3rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ci-img {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.ci-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ci-info {
  flex: 1;
}

.ci-name {
  font-weight: 800;
  font-size: .9rem;
}

.ci-size {
  font-size: .72rem;
  color: var(--muted);
}

.ci-price {
  color: var(--accent);
  font-weight: 800;
  font-size: .9rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.qty-btn:active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--gold);
  border-color: var(--primary);
}

.cart-foot {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Righteous', cursive;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.total-row span:last-child {
  color: var(--accent);
}

.order-form {
  background: linear-gradient(135deg, #f8f9fa, #fff5f5);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,.05);
}

.order-form h4 {
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-form h4 i {
  color: #25D366;
}

.ff {
  margin-bottom: 12px;
}

.ff label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.ff input,
.ff textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}

.ff input:focus,
.ff textarea:focus {
  border-color: var(--accent);
}

.wa-send {
  width: 100%;
  padding: 18px;
  border: none;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(37,211,102,.4);
  transition: all .3s;
}

.wa-send:active {
  transform: scale(.98);
}

.wa-send:hover {
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
}

.place-order-btn {
  width: 100%;
  padding: 18px;
  border: none;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(27,94,32,.35);
  transition: all .3s;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 10px;
}

.place-order-btn:disabled {
  opacity: .7;
  cursor: wait;
}

.place-order-btn:active {
  transform: scale(.98);
}

.wa-optional {
  width: 100%;
  padding: 12px;
  border: 2px solid #25D366;
  background: transparent;
  color: #128C7E;
  border-radius: 12px;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  transition: all .2s;
}

.wa-optional:hover {
  background: rgba(37,211,102,.08);
}

/* POS / Electron live orders */
.pos-dock {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: #1a1a1a;
  border-left: 3px solid var(--green-light);
  z-index: 9000;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.4);
}

.pos-dock.open {
  display: flex;
}

body.pos-mode {
  padding-right: min(400px, 40vw);
}

.pos-dock.pulse {
  animation: posPulse .5s ease 3;
}

@keyframes posPulse {
  0%, 100% { border-left-color: var(--green-light); }
  50% { border-left-color: var(--yellow); }
}

.pos-dock-hdr {
  padding: 16px 18px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.pos-badge {
  background: var(--yellow);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 900;
}

.pos-dock-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-empty {
  color: #666;
  text-align: center;
  padding: 40px 20px;
  font-size: .88rem;
}

.order-alert-popup {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  max-width: 420px;
  width: calc(100% - 40px);
}

.order-alert-popup.show {
  display: block;
  animation: alertSlide .4s ease;
}

@keyframes alertSlide {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.order-alert-inner {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  border: 3px solid var(--green-light);
  position: relative;
}

.order-alert-hdr {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 6px;
}

.order-alert-name {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
}

.order-alert-meta {
  color: #666;
  font-size: .85rem;
  margin-bottom: 6px;
}

.order-alert-items {
  font-size: .82rem;
  color: #444;
  line-height: 1.4;
}

.order-alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #eee;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .8rem;
}

.order-c.order-new {
  border: 2px solid var(--green-light);
  animation: newOrderGlow 2s ease infinite;
}

@keyframes newOrderGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(74,222,128,0); }
  50% { box-shadow: 0 0 12px rgba(74,222,128,.4); }
}

.order-c-detail {
  font-size: .76rem;
  color: #888;
  margin: 6px 0;
  line-height: 1.5;
}

.order-c-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.empty-cart {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.empty-cart i {
  font-size: 3rem;
  color: #ddd;
  display: block;
  margin-bottom: 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--gold);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  z-index: 9999;
  opacity: 0;
  transition: all .3s;
  white-space: nowrap;
  box-shadow: var(--shadow);
  pointer-events: none;
  border: 1px solid rgba(255,215,0,.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* DB Status */
.db-status {
  position: fixed;
  top: 68px;
  right: 10px;
  z-index: 850;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all .3s;
}

.db-status.connecting {
  background: rgba(255,215,0,.9);
  color: var(--primary);
}

.db-status.online {
  background: rgba(37,211,102,.9);
  color: #fff;
}

.db-status.offline {
  background: rgba(229,0,26,.9);
  color: #fff;
}

.fb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* PIN Modal */
#pinModal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

#pinModal.open {
  display: flex;
}

.pin-box {
  background: #1E1E1E;
  border-radius: 28px;
  padding: 32px 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.pin-logo {
  font-family: 'Righteous', cursive;
  color: var(--yellow);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.pin-sub {
  color: #777;
  font-size: .82rem;
  margin-bottom: 22px;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  min-height: 24px;
}

.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #444;
  transition: all .2s;
}

.pin-dot.filled {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.15);
}

.pin-dot.error {
  background: var(--red);
  border-color: var(--red);
  animation: shake .4s ease;
}

.pin-dot.success {
  background: var(--green-light);
  border-color: var(--green-light);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.pin-key {
  height: 62px;
  background: #2A2A2A;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Nunito', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pin-key:active {
  background: var(--orange);
  transform: scale(.93);
}

.pin-key.del {
  background: #333;
  font-size: 1.1rem;
  color: #bbb;
}

.pin-key.del:active {
  background: var(--red);
}

.pin-key.empty {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.pin-err {
  color: var(--red);
  font-size: .82rem;
  min-height: 18px;
}

.pin-att {
  color: #777;
  font-size: .75rem;
  margin-top: 4px;
}

.pin-locked-msg {
  color: var(--red);
  font-weight: 700;
  font-size: .88rem;
  margin-top: 6px;
}

.pin-cancel {
  background: transparent;
  border: none;
  color: #555;
  font-size: .85rem;
  cursor: pointer;
  margin-top: 14px;
  font-family: 'Nunito', sans-serif;
  padding: 4px 12px;
}

/* Admin Panel */
#adminPanel {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: #111;
  display: none;
  flex-direction: column;
  font-family: 'Nunito', sans-serif;
}

#adminPanel.open {
  display: flex;
}

.adm-hdr {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,215,0,.2);
}

.adm-hdr h2 {
  font-family: 'Righteous', cursive;
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-logout {
  padding: 8px 16px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: .85rem;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(233,69,96,.3);
  transition: all .3s;
}

.adm-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.adm-tabs {
  display: flex;
  background: #181818;
  border-top: 1px solid #2A2A2A;
  flex-shrink: 0;
}

.adm-tab {
  flex: 1;
  padding: 11px 4px 9px;
  background: none;
  border: none;
  color: #555;
  font-size: .62rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all .2s;
}

.adm-tab i {
  font-size: 1rem;
}

.adm-tab.active {
  color: var(--gold);
}

.adm-sec {
  display: none;
}

.adm-sec.active {
  display: block;
}

.adm-card {
  background: #1E1E1E;
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,215,0,.1);
}

.adm-card h3 {
  font-family: 'Righteous', cursive;
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.af {
  margin-bottom: 11px;
}

.af label {
  display: block;
  color: #888;
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.af input,
.af select,
.af textarea {
  width: 100%;
  padding: 10px 13px;
  background: #2A2A2A;
  border: 1.5px solid #333;
  color: #fff;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
}

.af input:focus,
.af select:focus,
.af textarea:focus {
  border-color: var(--accent);
}

.af select option {
  background: #2A2A2A;
}

.sz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.abtn {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: .86rem;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.abtn:active {
  transform: scale(.96);
}

.abtn-g {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,211,102,.3);
}

.abtn-o {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(233,69,96,.3);
}

.abtn-r {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(233,69,96,.3);
}

.abtn-y {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(255,215,0,.3);
}

.abtn-full {
  width: 100%;
  justify-content: center;
}

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

.stat-c {
  background: #1E1E1E;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.stat-n {
  font-family: 'Righteous', cursive;
  font-size: 2rem;
  color: var(--gold);
}

.stat-l {
  color: #777;
  font-size: .76rem;
  margin-top: 2px;
}

.adm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-li {
  background: #1E1E1E;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.05);
}

.adm-li-img {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: #2A2A2A;
}

.adm-li-info {
  flex: 1;
  min-width: 0;
}

.adm-li-name {
  color: #fff;
  font-weight: 700;
  font-size: .86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-li-sub {
  color: #777;
  font-size: .7rem;
  margin-top: 2px;
}

.adm-li-acts {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ico-btn {
  width: 33px;
  height: 33px;
  border: none;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .82rem;
  transition: all .2s;
}

.ico-btn:active {
  transform: scale(.9);
}

.ico-edit {
  background: #2A2A2A;
  color: var(--gold);
}

.ico-del {
  background: #2A1A1A;
  color: var(--red);
}

.order-c {
  background: #1E1E1E;
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 10px;
}

.order-c-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.order-c-name {
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
}

.order-c-time {
  color: #555;
  font-size: .7rem;
}

.order-c-items {
  color: #999;
  font-size: .78rem;
  margin-bottom: 5px;
}

.order-c-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-c-total {
  color: var(--gold);
  font-weight: 800;
}

.o-status {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
}

.o-new {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
}

.o-done {
  background: #2A2A2A;
  color: #666;
}

.set-item {
  padding: 12px;
  background: #1E1E1E;
  border-radius: 12px;
  margin-bottom: 8px;
}

.set-item label {
  display: block;
  color: #777;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.set-item input {
  width: 100%;
  padding: 10px;
  background: #2A2A2A;
  border: 1.5px solid #333;
  color: #fff;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: .86rem;
  outline: none;
}

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

.admin-tap {
  position: fixed;
  bottom: 95px;
  left: 16px;
  z-index: 799;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: var(--gold);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 4px 15px rgba(26,26,46,.4);
  transition: all .3s;
}

.no-items {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  grid-column: 1/-1;
}

.no-items i {
  font-size: 2.5rem;
  color: #ddd;
  display: block;
  margin-bottom: 10px;
}

.spin-box {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  grid-column: 1/-1;
}

.spin-box i {
  font-size: 2rem;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
  animation: spinA 1s linear infinite;
}

@keyframes spinA {
  to { transform: rotate(360deg); }
}

.img-prev {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  margin-top: 8px;
  display: none;
  border: 2px solid #333;
}

/* Auth Modal */
#authModal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

#authModal.open {
  display: flex;
}

.auth-box {
  background: #1E1E1E;
  border-radius: 28px;
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.auth-logo {
  font-family: 'Righteous', cursive;
  color: var(--yellow);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.auth-sub {
  color: #777;
  font-size: .82rem;
  margin-bottom: 22px;
}

.auth-form {
  margin-bottom: 15px;
}

.auth-err {
  color: var(--red);
  font-size: .82rem;
  min-height: 18px;
  margin-top: 10px;
}

.auth-cancel {
  background: transparent;
  border: none;
  color: #555;
  font-size: .85rem;
  cursor: pointer;
  margin-top: 14px;
  font-family: 'Nunito', sans-serif;
  padding: 4px 12px;
}
