/* =============================================
   كوفتشينو - Main Stylesheet
   Premium Coffee Theme | RTL | Mobile-First
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  --brown-900: #2C1810;
  --brown-800: #3E2218;
  --brown-700: #4A2C2A;
  --brown-600: #5D3A2E;
  --brown-500: #6F4E37;
  --brown-400: #8B6914;
  --brown-300: #A0845C;
  --brown-200: #C4A882;
  --brown-100: #DCC8A0;
  --cream-100: #FFF8F0;
  --cream-200: #F5EDE0;
  --cream-300: #EDE2D0;
  --gold: #D4A853;
  --gold-light: #E8C97A;
  --gold-dark: #B8922F;
  --green: #4CAF50;
  --green-light: #E8F5E9;
  --red: #E53935;
  --red-light: #FFEBEE;
  --orange: #FF9800;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-400: #BDBDBD;
  --gray-500: #9E9E9E;
  --gray-600: #757575;
  --gray-700: #616161;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Cairo', 'Tajawal', sans-serif;
  --header-height: 60px;
  --nav-height: 65px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--cream-100);
  color: var(--brown-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.hidden { display: none !important; }

/* ---- Splash Screen ---- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 25%, #2a150c 0%, #170b06 60%, #0d0603 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-backdrop-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.22) 0%, rgba(111, 78, 55, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
  width: 100%;
  animation: splashFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-logo-container {
  position: relative;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.splash-logo {
  width: 125px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 12px rgba(212, 168, 83, 0.3));
  transition: transform 0.3s ease;
}

.splash-logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.splash-logo-text-ar {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(212, 168, 83, 0.5);
}

.splash-logo-text-en {
  font-size: 14px;
  font-weight: 400;
  color: var(--cream-200);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.splash-welcome-block {
  margin-bottom: 16px;
}

.splash-welcome-sub {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: #DCC8A0;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.splash-welcome-title {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.splash-tagline {
  color: #C4A882;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.splash-cup-wrapper {
  margin: 6px 0 22px 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-cup-img {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(212, 168, 83, 0.65);
  box-shadow: 0 0 25px rgba(212, 168, 83, 0.35), 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: floatCup 4s ease-in-out infinite alternate;
}

@keyframes floatCup {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.splash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F0DEC5 0%, #D8BA90 100%);
  color: #2C1810;
  padding: 13px 44px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(212, 168, 83, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.splash-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 168, 83, 0.45);
  background: linear-gradient(135deg, #F5E6D3 0%, #DFC39D 100%);
}

.splash-btn:active {
  transform: translateY(0) scale(0.98);
}

.splash-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.splash-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ---- App Header ---- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  height: var(--header-height);
  background: #FFFDF9;
}

.header-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 2px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(44, 24, 16, 0.2));
}

.header-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--brown-700);
}

.header-branch-select {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6F4E37;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.header-branch-select:hover {
  background: var(--cream-200);
}

.header-branch-select svg {
  color: #8B6914;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: #2C1810;
  transition: var(--transition);
  cursor: pointer;
}

.header-btn:hover {
  background: var(--cream-200);
}

/* Admin Button with Gear Icon matching mockup */
.header-admin-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #381E15;
  border-radius: 12px;
  color: #E8C97A;
  box-shadow: 0 3px 8px rgba(56, 30, 21, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.header-admin-btn:hover {
  background: #4A281C;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(56, 30, 21, 0.35);
  color: #FFE6A8;
}

.header-admin-btn:active {
  transform: translateY(0);
}

/* ---- Search ---- */
.search-container {
  padding: 0 16px 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream-100);
  border: 1.5px solid var(--cream-300);
  border-radius: 50px;
  padding: 10px 16px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--brown-400);
  box-shadow: 0 0 0 3px rgba(139,105,20,0.1);
}

.search-bar svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--brown-900);
}

.search-bar input::placeholder {
  color: var(--gray-400);
}

.search-clear {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  color: var(--gray-600);
  font-size: 12px;
  transition: var(--transition);
}

/* ---- Main Content ---- */
.app-content {
  padding-top: var(--header-height);
  padding-bottom: calc(76px + max(12px, env(safe-area-inset-bottom)));
  min-height: 100vh;
}

/* ---- Bottom Navigation (Solid, Strong & Indestructible) ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 999;
  background: #FFFFFF;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(72px + max(8px, env(safe-area-inset-bottom)));
  padding: 6px 10px calc(max(8px, env(safe-area-inset-bottom)));
  box-shadow: 0 -4px 25px rgba(39, 20, 11, 0.1);
  border-top: 1.5px solid rgba(220, 205, 185, 0.45);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.nav-item {
  flex: 1;
  max-width: 85px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.nav-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #7C6656;
}

.nav-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: #7C6656;
  transition: stroke 0.2s ease;
}

.nav-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #7C6656;
  transition: color 0.2s ease, font-weight 0.2s ease;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.nav-item.active .nav-icon-box {
  background: #27140B;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(39, 20, 11, 0.35);
}

.nav-item.active .nav-icon-box svg {
  stroke: #FFFFFF;
  stroke-width: 2.2px;
}

.nav-item.active .nav-label {
  color: #27140B;
  font-weight: 800;
  font-size: 12px;
}

.nav-item:active {
  transform: scale(0.94);
}

/* ---- Home Hero Announcement Carousel (New Design & Scrollable) ---- */
.hero-carousel-container {
  position: relative;
  margin: 12px 16px 18px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(24, 12, 6, 0.45);
  border: 1px solid rgba(212, 168, 83, 0.25);
  background: #180C06;
}

.hero-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.hero-carousel-track::-webkit-scrollbar {
  display: none;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  position: relative;
  cursor: pointer;
  user-select: none;
  aspect-ratio: 1024 / 444;
  overflow: hidden;
  background: #180C06;
}

/* Master Slide (Image 2) */
.hero-slide-master {
  position: relative;
}

.hero-slide-master-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay-clickable {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

/* Offer Slides */
.hero-slide-card {
  background: linear-gradient(135deg, #1C0F08 0%, #2B160C 50%, #150904 100%);
  display: flex;
  align-items: center;
}

.hero-slide-card.combo-theme {
  background: linear-gradient(135deg, #180E07 0%, #2A170F 50%, #140803 100%);
}

.hero-slide-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 14px 18px 26px 12px;
  box-sizing: border-box;
}

.hero-slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  flex: 1;
  max-width: 62%;
}

.hero-slide-badge {
  font-size: 11px;
  font-weight: 700;
  color: #E6B978;
  background: rgba(212, 168, 83, 0.18);
  border: 1px solid rgba(212, 168, 83, 0.35);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.hero-slide-badge.badge-gold {
  color: #FFD580;
  background: rgba(255, 183, 77, 0.18);
  border-color: rgba(255, 183, 77, 0.4);
}

.hero-slide-title {
  font-size: clamp(14px, 4.2vw, 20px);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
}

.hero-slide-desc {
  font-size: clamp(10px, 2.7vw, 12px);
  color: #DFC39D;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-slide-price {
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 900;
  color: #E6B978;
  background: rgba(230, 185, 120, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(230, 185, 120, 0.3);
}

.hero-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E4B877;
  color: #1F110B;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(228, 184, 119, 0.35);
  transition: all 0.2s ease;
}

.hero-slide-btn:active {
  transform: scale(0.96);
}

.hero-slide-visual {
  width: 38%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-slide-photo {
  width: 95%;
  height: 90%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1.5px solid rgba(212, 168, 83, 0.3);
}

/* Dots Styling matching Image 2 */
.hero-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  background: rgba(19, 9, 4, 0.45);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot.active {
  width: 22px;
  border-radius: 6px;
  background: #E4B877;
  box-shadow: 0 0 10px rgba(228, 184, 119, 0.7);
}

/* ---- Section Headers (Matching Mockup) ---- */
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-icon {
  color: #4A281C;
  flex-shrink: 0;
}

.section-trend-icon {
  color: #D4A853;
  flex-shrink: 0;
}

.section-title-text {
  font-size: 19px;
  font-weight: 800;
  color: #27140B;
}

.section-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #A07640;
  font-size: 13.5px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.section-view-all-link:hover {
  color: #6F4E37;
  transform: translateX(-2px);
}

/* ---- Categories Cards Scroll (Matching Mockup) ---- */
.categories-cards-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 0 14px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-cards-scroll::-webkit-scrollbar {
  display: none;
}

.category-card-item {
  background: #27140B;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(39, 20, 11, 0.22);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  padding-bottom: 10px;
  border: 1px solid rgba(212, 168, 83, 0.1);
  min-width: 78px;
}

.category-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(39, 20, 11, 0.35);
  border-color: rgba(212, 168, 83, 0.3);
}

.category-card-item:active {
  transform: translateY(0);
}

.category-card-photo-box {
  width: 100%;
  height: 82px;
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #170B06;
}

.category-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card-item:hover .category-card-photo {
  transform: scale(1.08);
}

.category-card-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #27140B;
  border: 1.5px solid #C59A45;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -17px;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.category-card-name {
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
  padding: 0 3px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Most Popular Cards Grid (Matching Mockup) ---- */
.featured-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 20px;
}

.featured-item-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(220, 205, 185, 0.4);
  display: flex;
  flex-direction: column;
}

.featured-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.featured-item-photo-box {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
  background: #27140B;
}

.featured-item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-item-card:hover .featured-item-photo {
  transform: scale(1.05);
}

.featured-item-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(39, 20, 11, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.featured-item-fav-btn:hover {
  transform: scale(1.1);
  background: rgba(39, 20, 11, 0.7);
}

.featured-item-fav-btn.active svg {
  fill: #E53935;
  stroke: #E53935;
}

.featured-item-details {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background: #FFFDFB;
}

.featured-item-heading {
  margin-bottom: 8px;
}

.featured-item-name {
  font-size: 14px;
  font-weight: 800;
  color: #27140B;
  margin-bottom: 2px;
}

.featured-item-desc {
  font-size: 11px;
  color: #8C7868;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.featured-item-price {
  font-size: 15px;
  font-weight: 800;
  color: #27140B;
}

.featured-item-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #CCA050;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #27140B;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(204, 160, 80, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.featured-item-add-btn:hover {
  background: #DEB464;
  transform: scale(1.08);
}

.featured-item-add-btn:active {
  transform: scale(0.95);
}

/* ---- Menu Categories Scroll & Chips ---- */
.menu-categories-wrapper {
  background: #FFFDF9;
  border-bottom: 1.5px solid rgba(220, 205, 185, 0.45);
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  box-shadow: 0 4px 15px rgba(39, 20, 11, 0.04);
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 50px;
  background: #FFFFFF;
  border: 1.5px solid #EADBCC;
  color: #5C4332;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.category-chip:hover {
  border-color: #C59A45;
  transform: translateY(-1px);
}

.category-chip.active {
  background: #27140B;
  color: #FFFFFF;
  border-color: #27140B;
  box-shadow: 0 4px 14px rgba(39, 20, 11, 0.3);
}

.category-chip-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #27140B;
  border: 1.5px solid #C59A45;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.category-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5EDE0;
  color: #27140B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1.5px solid #EADBCC;
}

.category-chip.active .category-chip-icon {
  background: #3D2214;
  color: #D4A853;
  border-color: #D4A853;
}

.category-chip-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.menu-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
}

.menu-category-title {
  font-size: 17px;
  font-weight: 800;
  color: #27140B;
}

.menu-items-count {
  font-size: 12px;
  font-weight: 700;
  color: #8C7868;
  background: #F3EAE0;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---- Product Cards (Standardized & Perfectly Proportioned) ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 14px 20px;
}

.product-card {
  background: #FFFFFF;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(220, 205, 185, 0.45);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(39, 20, 11, 0.12);
  border-color: rgba(212, 168, 83, 0.5);
}

.product-card:active {
  transform: scale(0.98);
}

.product-card-photo-box {
  width: 100%;
  height: 135px;
  position: relative;
  overflow: hidden;
  background: #27140B;
  border-radius: 18px 18px 0 0;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #27140B 0%, #4A281C 100%);
  font-size: 38px;
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #D4A853 0%, #C59A45 100%);
  color: #27140B;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.product-fav-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(39, 20, 11, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-fav-btn:hover {
  transform: scale(1.1);
  background: rgba(39, 20, 11, 0.8);
}

.product-fav-btn.active {
  background: rgba(229, 57, 53, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
}

.product-fav-btn.active svg {
  fill: #FFFFFF;
  stroke: #FFFFFF;
}

.product-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background: #FFFDFB;
}

.product-card-heading {
  margin-bottom: 8px;
}

.product-card-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #27140B;
  margin-bottom: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 11px;
  color: #8C7868;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

.product-card-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #27140B;
}

.product-card-price .currency {
  font-size: 11px;
  font-weight: 600;
  color: #8C7868;
  margin-right: 2px;
}

.product-card-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #CCA050;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #27140B;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(204, 160, 80, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.product-card-action-btn:hover {
  background: #DEB464;
  transform: scale(1.08);
}

.product-card-action-btn:active {
  transform: scale(0.95);
}

/* ---- Featured Section ---- */
.featured-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  min-width: 160px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.featured-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--cream-200);
}

.featured-card-body {
  padding: 10px;
}

.featured-card-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.featured-card-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--brown-700);
}

/* ---- Product Detail Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Product Showcase Modal (Showcase & Description Only) ---- */
.modal-content {
  background: var(--white);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

@media (min-width: 768px) {
  .modal-content {
    border-radius: 28px;
    margin-bottom: 4vh;
  }
}

@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.product-showcase-card {
  display: flex;
  flex-direction: column;
}

.product-showcase-media {
  position: relative;
  width: 100%;
  height: 280px;
  background: #22130B;
  overflow: hidden;
}

.product-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.showcase-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(39, 20, 11, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-modal-close:hover {
  background: rgba(39, 20, 11, 0.85);
  transform: scale(1.08);
}

.product-showcase-content {
  padding: 22px 20px 24px;
}

.product-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(220, 205, 185, 0.35);
  padding-bottom: 14px;
}

.product-showcase-names {
  flex: 1;
}

.product-showcase-title {
  font-size: 22px;
  font-weight: 900;
  color: #27140B;
  line-height: 1.25;
  margin-bottom: 4px;
}

.product-showcase-en {
  font-size: 13px;
  font-weight: 500;
  color: #A0845C;
  letter-spacing: 0.5px;
}

.product-showcase-price {
  font-size: 20px;
  font-weight: 900;
  color: #D4A853;
  background: #27140B;
  padding: 6px 14px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(39, 20, 11, 0.2);
}

.product-showcase-desc-wrap {
  background: #FFFDF9;
  border: 1px solid rgba(220, 205, 185, 0.5);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 22px;
}

.product-showcase-desc-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #4A281C;
  margin-bottom: 8px;
}

.product-showcase-desc-text {
  font-size: 14px;
  line-height: 1.75;
  color: #5C4535;
  font-weight: 500;
}

.product-showcase-actions {
  display: flex;
  gap: 12px;
}

.product-showcase-fav-btn {
  flex: 1;
  height: 48px;
  background: #FFF8F0;
  border: 1.5px solid #E8DDD0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #4A281C;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-showcase-fav-btn:hover {
  background: #F5EDE0;
  border-color: #D4A853;
}

.product-showcase-fav-btn.active {
  background: #FFEBEE;
  border-color: #E53935;
  color: #C62828;
}

.product-showcase-close-btn {
  flex: 1;
  height: 48px;
  background: #27140B;
  border: none;
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(39, 20, 11, 0.25);
}

.product-showcase-close-btn:hover {
  background: #3D2214;
  transform: translateY(-1px);
}


/* ---- Offers & Ads Page ---- */
.offers-page-header {
  padding: 18px 16px 8px;
}

.offers-page-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.offers-badge {
  background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.3);
}

.offers-page-title {
  font-size: 22px;
  font-weight: 900;
  color: #27140B;
}

.offers-page-sub {
  font-size: 12.5px;
  color: #8C7868;
}

.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 14px 24px;
}

.offer-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(39, 20, 11, 0.08);
  border: 1px solid rgba(220, 205, 185, 0.45);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 20, 11, 0.14);
}

.offer-card-photo-box {
  width: 100%;
  height: 185px;
  position: relative;
  overflow: hidden;
  background: #27140B;
}

.offer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.offer-card:hover .offer-card-img {
  transform: scale(1.04);
}

.offer-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #27140B 0%, #4A281C 100%);
  font-size: 44px;
}

.offer-card-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.45);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.offer-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FFFDFB;
}

.offer-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #27140B;
  line-height: 1.3;
}

.offer-card-desc {
  font-size: 12.5px;
  color: #6D5647;
  line-height: 1.55;
}

.offer-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(220, 205, 185, 0.55);
}

.offer-price-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.offer-orig-price {
  font-size: 13px;
  color: #9E9E9E;
  text-decoration: line-through;
  font-weight: 600;
}

.offer-discount-price {
  font-size: 18px;
  font-weight: 900;
  color: #D4A853;
}

.offer-card-btn {
  background: #27140B;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(39, 20, 11, 0.2);
}

.offer-card-btn:hover {
  background: #3E2218;
  transform: translateY(-1px);
}

.offer-card-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #8C7868;
  background: #F3EAE0;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---- No Ads Rising Logo Animation (Cinematic & Professional) ---- */
.no-ads-container {
  min-height: calc(100vh - var(--header-height) - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
  text-align: center;
}

.no-ads-animation-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.no-ads-glow-ambient {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.38) 0%, rgba(111, 78, 55, 0.12) 50%, transparent 70%);
  animation: glowPulse 2.8s infinite alternate ease-in-out;
  pointer-events: none;
}

.no-ads-glow-ring {
  position: absolute;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 168, 83, 0.4);
  animation: ringRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.no-ads-logo-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-ads-rising-logo {
  width: 115px;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(39, 20, 11, 0.4)) drop-shadow(0 0 16px rgba(212, 168, 83, 0.35));
  animation: logoRiseUpSmooth 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.no-ads-rising-text {
  font-size: 32px;
  font-weight: 900;
  color: #D4A853;
  animation: logoRiseUpSmooth 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoRiseUpSmooth {
  0% {
    opacity: 0;
    transform: translateY(90px) scale(0.72);
    filter: blur(10px);
  }
  50% {
    opacity: 0.85;
    filter: blur(2px);
  }
  75% {
    transform: translateY(-8px) scale(1.04);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 15px 30px rgba(39, 20, 11, 0.4)) drop-shadow(0 0 16px rgba(212, 168, 83, 0.35));
  }
}

.no-ads-text-block {
  max-width: 320px;
  opacity: 0;
  animation: splashFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.no-ads-title {
  font-size: 20px;
  font-weight: 800;
  color: #27140B;
  margin-bottom: 8px;
}

.no-ads-desc {
  font-size: 13px;
  color: #7C6656;
  line-height: 1.6;
  margin-bottom: 22px;
}

.no-ads-browse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #27140B;
  color: #FFFFFF;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(39, 20, 11, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.no-ads-browse-btn:hover {
  background: #3E2218;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 20, 11, 0.4);
}

/* ---- Favorites Page ---- */
.favorites-page {
  padding: 16px;
}

.favorites-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brown-800);
  margin-bottom: 16px;
}

/* ---- Empty State ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-600);
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 20px;
}

.retry-btn {
  padding: 10px 24px;
  background: var(--brown-700);
  color: var(--white);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

/* ---- Toast ---- */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
  max-width: 320px;
  text-align: center;
}

.toast.success {
  background: var(--green);
  color: var(--white);
}

.toast.error {
  background: var(--red);
  color: var(--white);
}

.toast.info {
  background: var(--brown-700);
  color: var(--white);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.fade-out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-20px); }
}

/* ---- Loading ---- */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--cream-300);
  border-top-color: var(--brown-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---- Skeleton Loading ---- */
.skeleton {
  background: linear-gradient(90deg, var(--cream-200) 25%, var(--cream-300) 50%, var(--cream-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Responsive ---- */
@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .modal-content {
    max-width: 500px;
    border-radius: var(--radius-xl);
    margin-bottom: 5vh;
  }
  .modal-overlay {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .app-content {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ---- Admin PIN Modal ---- */
.admin-pin-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 90%;
  max-width: 360px;
  padding: 28px 22px 22px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: pinModalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

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

.pin-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5EFE6;
  border: none;
  cursor: pointer;
  color: #6F4E37;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pin-modal-close:hover {
  background: #EDE2D0;
  color: #2C1810;
}

.admin-pin-header {
  margin-bottom: 20px;
}

.admin-pin-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #FBF4E8;
  border: 1.5px solid #E8C97A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #8B6914;
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.2);
}

.admin-pin-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #2C1810;
  margin-bottom: 4px;
}

.admin-pin-header p {
  font-size: 13px;
  color: #7A6555;
}

.admin-pin-input-group {
  margin-bottom: 14px;
}

.admin-pin-input {
  width: 100%;
  height: 52px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 6px;
  font-weight: 800;
  border: 2px solid #E8DDD0;
  border-radius: 14px;
  background: #FAF7F2;
  color: #2C1810;
  outline: none;
  transition: all 0.2s ease;
}

.admin-pin-input:focus {
  border-color: #CCA050;
  box-shadow: 0 0 0 3px rgba(204, 160, 80, 0.25);
  background: #FFFFFF;
}

.admin-pin-input.shake {
  animation: shakeInput 0.4s ease-in-out;
  border-color: #E53935;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.admin-pin-error {
  color: #C62828;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  background: #FFEBEE;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(229, 57, 53, 0.2);
}

.admin-pin-submit-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #3B1F13 0%, #25130B 100%);
  color: #F0DFC7;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 19, 11, 0.35);
}

.admin-pin-submit-btn:hover {
  background: #4D2B1C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 19, 11, 0.45);
}

.admin-pin-submit-btn:active {
  transform: translateY(0);
}

.admin-pin-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-pin-hint {
  font-size: 12.5px;
  color: #8A7565;
  margin-top: 14px;
}

.admin-pin-hint strong {
  color: #CCA050;
  font-size: 14px;
}

.admin-pin-alt {
  margin-top: 12px;
}

.admin-pin-link {
  font-size: 12px;
  color: #9C7244;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.admin-pin-link:hover {
  color: #6F4E37;
}

