/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --gold-dark: #a07830;
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --text: #e8e0d0;
  --text-muted: #9a8f7c;
  --border: rgba(201,168,76,0.2);
  --shadow: 0 8px 32px rgba(0,0,0,0.8);
}

html { scroll-behavior: smooth; }

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

/* === HEADER === */
.header {
  background: linear-gradient(180deg, #000 0%, var(--dark) 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px 0;
  text-align: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.brand-since {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
}

.social-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px 0;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  letter-spacing: 0.5px;
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.insta-btn {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
}

.insta-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.google-btn {
  background: #fff;
  color: #333;
}

.google-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* === CAMPAIGNS === */
.campaigns-wrapper {
  padding: 12px 0;
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
}

.campaigns-scroll {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.campaign-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.campaign-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.campaign-card-body {
  padding: 10px 12px;
}

.campaign-card-body h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 0.95rem;
}

.campaign-card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === CATEGORY NAV === */
.category-nav {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-btn {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.cat-btn:hover { border-color: var(--gold); color: var(--gold); }

.cat-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 600;
}

/* === MENU MAIN === */
.menu-main {
  padding: 0 0 80px;
}

.menu-section {
  padding: 24px 16px 8px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  text-align: center;
}

.section-icon { display: none; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

/* === MEZELER SPECIAL BUTTON === */
.meze-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  width: 100%;
  text-align: left;
  margin-top: 4px;
}

.meze-trigger:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,168,76,0.15);
}

.meze-trigger-left { display: flex; align-items: center; gap: 14px; }

.meze-trigger-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.meze-trigger-text h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.05rem;
}

.meze-trigger-text p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.meze-trigger-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

/* === GRID === */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

.item-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}

.item-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.15);
}

.item-card:active { transform: scale(0.97); }

.item-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark3);
}

.item-img-wrap.bg-black {
  background: #000;
}

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

.item-img-wrap.bg-black .item-img {
  object-fit: contain;
  padding: 6px;
}

.item-img-wrap.bg-contain {
  background: var(--dark3);
}

.item-img-wrap.bg-contain .item-img {
  object-fit: contain;
}

.item-img-wrap.bg-white-item {
  background: #fff;
}

.item-img-wrap.bg-white-item .item-img {
  object-fit: contain;
  padding: 6px;
}

.item-img-wrap.bg-cover {
  background: #f08040;
}

.item-img-wrap.bg-cover .item-img {
  object-fit: cover;
}

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

.item-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.item-body {
  padding: 10px;
}

.item-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}

.item-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}

/* === MEZE DRAWER === */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.meze-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 2px solid var(--gold);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.meze-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
}

.drawer-close {
  background: var(--dark3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.drawer-close:hover { border-color: var(--gold); color: var(--gold); }

.drawer-items {
  overflow-y: auto;
  padding: 16px;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: start;
}

/* === ITEM MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.item-modal {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.25s;
}

.modal-overlay.active .item-modal { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--dark3);
  padding: 8px;
}

.modal-info {
  padding: 16px 20px 20px;
}

.modal-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

/* === FOOTER === */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: 80;
}

.admin-link {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.admin-link:hover { opacity: 1; }

/* === ADMIN === */
.admin-body {
  background: var(--black);
  min-height: 100vh;
}

.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(201,168,76,0.3);
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus { border-color: var(--gold); }

.btn-gold {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}

.btn-gold:hover { background: var(--gold-light); }

.error-msg {
  color: #e05555;
  font-size: 0.8rem;
  margin-top: 10px;
}

/* === ADMIN PANEL === */
.admin-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.1rem;
}

.btn-sm {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger {
  background: transparent;
  border: 1px solid rgba(220,50,50,0.4);
  color: #e05555;
}

.btn-danger:hover { background: rgba(220,50,50,0.1); }

.admin-content {
  padding: 20px 16px 100px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 0 0 auto;
  padding: 9px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Admin cards */
.admin-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-card-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1rem;
}

.admin-actions { display: flex; gap: 8px; }

/* Item list */
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.item-row:last-child { border-bottom: none; }

.item-row-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--dark3);
  flex-shrink: 0;
}

.item-row-info { flex: 1; min-width: 0; }

.item-row-name {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-row-price {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

/* Edit form in modal */
.edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.edit-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.edit-modal {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 24px 20px 40px;
  transform: translateY(40px);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}

.edit-modal-overlay.active .edit-modal { transform: translateY(0); }

.edit-modal-title {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.upload-area:hover { border-color: var(--gold); }

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-area p { font-size: 0.82rem; color: var(--text-muted); }

.upload-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  display: none;
}

/* Campaign card admin */
.campaign-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.campaign-row:last-child { border-bottom: none; }

.campaign-row-img {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--dark3);
  flex-shrink: 0;
}

.campaign-row-info { flex: 1; min-width: 0; }

.campaign-row-name {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 2px;
}

.campaign-row-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-green { background: rgba(60,180,80,0.15); color: #4caf68; border: 1px solid rgba(60,180,80,0.3); }
.badge-gray { background: rgba(150,150,150,0.1); color: var(--text-muted); border: 1px solid rgba(150,150,150,0.2); }

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  z-index: 500;
  opacity: 0;
  transition: all 0.3s;
  white-space: nowrap;
}

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

.select-input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.select-input:focus { border-color: var(--gold); }

textarea.form-input {
  resize: vertical;
  min-height: 70px;
}

.section-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
