/* ========================================= */
/* SHANAYA — MY VOUCHERS PAGE                */
/* ========================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background: #EAE6DF;
  color: #2E2A27;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ========================================= */
/* AMBIENT BACKGROUND                        */
/* ========================================= */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  filter: saturate(0.5) blur(3px);
}

.ambient-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F4F1EC 0%, rgba(244, 241, 236, 0.88) 100%);
}

/* ========================================= */
/* PAGE LAYOUT                               */
/* ========================================= */

.voucher-layout {
  position: relative;
  z-index: 1;
  width: min(1100px, 95%);
  margin: 0 auto;
  padding: 120px 0 80px;
}

/* ========================================= */
/* PAGE HEADER                               */
/* ========================================= */

.voucher-header {
  margin-bottom: 30px;
  text-align: center;
}

.voucher-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C4AB74;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.voucher-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #C4AB74;
}

.voucher-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  font-weight: 400;
  color: #1a1410;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.voucher-subtitle {
  font-size: 15px;
  color: rgba(46, 42, 39, 0.72);
  line-height: 1.6;
}

/* ========================================= */
/* MAIN CONTAINER WITH SIDEBAR               */
/* ========================================= */

.voucher-main {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 30px;
}

/* ========================================= */
/* SIDEBAR NAVIGATION                        */
/* ========================================= */

.voucher-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.voucher-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.voucher-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(46, 42, 39, 0.72);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.voucher-nav-item:hover {
  background: rgba(196, 171, 116, 0.08);
  border-color: rgba(196, 171, 116, 0.2);
}

.voucher-nav-item.active {
  background: rgba(196, 171, 116, 0.15);
  border-color: rgba(196, 171, 116, 0.3);
  color: #C4AB74;
}

.voucher-nav-item.logout {
  color: rgba(200, 100, 100, 0.75);
  margin-top: 8px;
  border-top: 1px solid rgba(196, 171, 116, 0.1);
  padding-top: 12px;
}

.voucher-nav-item.logout:hover {
  background: rgba(200, 100, 100, 0.08);
  border-color: rgba(200, 100, 100, 0.2);
  color: rgba(200, 100, 100, 1);
}

.nav-icon { font-size: 16px; flex-shrink: 0; }
.nav-label { flex: 1; }

/* ========================================= */
/* CONTENT AREA                              */
/* ========================================= */

.voucher-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========================================= */
/* TOP BAR: STATS + FILTER                   */
/* ========================================= */

.vchr-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vchr-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vchr-stat-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}

.vchr-stat-active {
  background: rgba(196, 171, 116, 0.12);
  color: #c4ab74;
}

.vchr-stat-used {
  background: rgba(129, 199, 132, 0.12);
  color: #4caf50;
}

.vchr-stat-expired {
  background: rgba(0, 0, 0, 0.05);
  color: #aaa;
}

.vchr-stat-num {
  font-size: 16px;
  font-weight: 700;
}

.vchr-stat-lbl {
  font-size: 11px;
  font-weight: 500;
}

.vchr-filter-row {
  display: flex;
  gap: 6px;
}

.vchr-filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(46, 42, 39, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.vchr-filter-btn:hover {
  border-color: #c4ab74;
  color: #c4ab74;
}

.vchr-filter-btn.is-active {
  background: #1d1d1d;
  border-color: #1d1d1d;
  color: white;
}

/* ========================================= */
/* VOUCHER LIST                              */
/* ========================================= */

.vchr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Voucher card — ticket style ── */
.vchr-item {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: visible;
  transition: box-shadow 0.25s, transform 0.2s;
}

.vchr-item:hover {
  box-shadow: 0 8px 32px rgba(196, 171, 116, 0.18);
  transform: translateY(-2px);
}

.vchr-item[data-status="used"],
.vchr-item[data-status="expired"] {
  opacity: 0.55;
}

.vchr-item[data-status="used"]:hover,
.vchr-item[data-status="expired"]:hover {
  transform: none;
  box-shadow: none;
}

/* tear line */
.vchr-tear {
  position: absolute;
  right: 190px;
  top: -8px;
  bottom: -8px;
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.vchr-notch-top,
.vchr-notch-bot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #EAE6DF;
  border: 1px solid rgba(196, 171, 116, 0.18);
  position: absolute;
  left: -8px;
}

.vchr-notch-top { top: 0; }
.vchr-notch-bot { bottom: 0; }

.vchr-dashes {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: -0.5px;
  border-left: 2px dashed rgba(196, 171, 116, 0.25);
}

/* left info panel */
.vchr-left {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 20px 20px;
  min-width: 0;
}

.vchr-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(196, 171, 116, 0.1);
  color: #C4AB74;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.vchr-info-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.vchr-category {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
}

/* status badges */
.vchr-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
}

.vchr-badge-active  { background: rgba(196, 171, 116, 0.12); color: #c4ab74; }
.vchr-badge-used    { background: rgba(129, 199, 132, 0.12); color: #4caf50; }
.vchr-badge-expired { background: rgba(0,0,0,0.05); color: #bbb; }

.vchr-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 500;
  color: #1a1410;
  line-height: 1.1;
  margin-bottom: 4px;
}

.vchr-desc {
  font-size: 12.5px;
  color: rgba(46, 42, 39, 0.6);
  line-height: 1.5;
  margin-bottom: 8px;
}

.vchr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #aaa;
}

.vchr-meta span { display: flex; align-items: center; gap: 4px; }
.vchr-meta-warn { color: #e57373 !important; }

.vchr-booking-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11.5px;
  color: #c4ab74;
  font-weight: 500;
  transition: color 0.2s;
}

.vchr-booking-link:hover { color: #b79a5d; }

/* right code panel */
.vchr-right {
  width: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 20px 18px;
}

.vchr-code-lbl {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ccc;
}

.vchr-code {
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  color: #1a1410;
  letter-spacing: 1.5px;
  word-break: break-all;
}

.vchr-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(196, 171, 116, 0.1);
  border: 1px solid rgba(196, 171, 116, 0.3);
  border-radius: 7px;
  color: #c4ab74;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: fit-content;
}

.vchr-copy-btn:hover {
  background: #c4ab74;
  color: white;
  border-color: #c4ab74;
}

.vchr-expiry {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
}

.vchr-expiry-dim { color: #bbb; }

.vchr-pts-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #c4ab74;
  background: rgba(196, 171, 116, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}

/* ========================================= */
/* EMPTY STATE                               */
/* ========================================= */

.vchr-empty {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 24px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  border: 1.5px dashed rgba(196, 171, 116, 0.2);
}

.vchr-empty-icon { font-size: 44px; color: #ddd; }

.vchr-empty-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 400;
  color: #aaa;
}

.vchr-empty-hint {
  font-size: 13px;
  color: #bbb;
  max-width: 300px;
  line-height: 1.6;
}

.vchr-empty-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  background: #1d1d1d;
  color: white;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  transition: background 0.2s;
}

.vchr-empty-btn:hover { background: #c4ab74; }

/* ========================================= */
/* REDEEM CTA                                */
/* ========================================= */

.vchr-redeem-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 171, 116, 0.15);
  border-radius: 14px;
  padding: 18px 22px;
}

.vchr-redeem-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: rgba(46, 42, 39, 0.65);
}

.vchr-redeem-cta-text strong {
  font-size: 14px;
  color: #1a1410;
  font-weight: 600;
}

.vchr-redeem-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #C4AB74;
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.vchr-redeem-cta-btn:hover {
  background: #b79a5d;
  transform: translateY(-1px);
}

/* ========================================= */
/* TOAST                                     */
/* ========================================= */

.vchr-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1d1d1d;
  color: white;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 1000;
}

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

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */

@media (max-width: 960px) {
  .voucher-main {
    grid-template-columns: 1fr;
  }

  .voucher-sidebar {
    position: static;
  }

  .voucher-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .voucher-nav-item {
    width: auto;
    padding: 8px 14px;
    font-size: 12px;
  }

  .vchr-tear { right: 160px; }
  .vchr-right { width: 160px; padding: 16px 14px; }
}

@media (max-width: 640px) {
  .voucher-layout { padding: 100px 0 60px; }
  .voucher-title { font-size: 36px; }

  .vchr-top-bar { flex-direction: column; align-items: flex-start; }

  .vchr-item { flex-direction: column; }
  .vchr-tear { display: none; }

  .vchr-left { padding: 16px 16px 0; }

  .vchr-right {
    width: 100%;
    padding: 14px 16px 16px;
    border-top: 2px dashed rgba(196, 171, 116, 0.2);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .vchr-code-lbl { width: 100%; }

  .vchr-redeem-cta { flex-direction: column; align-items: flex-start; }
  .vchr-redeem-cta-btn { width: 100%; justify-content: center; }
}
