@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #120002;
  --bg-velvet: radial-gradient(circle at center, #2e0007 0%, #0d0002 100%);
  --gold-primary: #D4AF37;
  --gold-gradient: linear-gradient(135deg, #FFE39F 0%, #D4AF37 50%, #AA771C 100%);
  --gold-gradient-hover: linear-gradient(135deg, #FFF0D0 0%, #E5C060 50%, #C5933A 100%);
  --silver-primary: #C0C0C0;
  --silver-gradient: linear-gradient(135deg, #FFFFFF 0%, #C0C0C0 50%, #8A8A8A 100%);
  --text-light: #F7EFE2;
  --text-muted: #B39B9D;
  --border-color: rgba(212, 175, 55, 0.2);
  --glass-bg: rgba(46, 0, 7, 0.4);
  --glass-border: rgba(212, 175, 55, 0.15);
  --error-color: #FF5A5A;
  --success-color: #10B981;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  background-image: var(--bg-velvet);
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0002;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

/* Header Ornate Borders */
.ornate-header {
  padding: 10px 10px 5px 10px;
  text-align: center;
  position: relative;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5px;
}

.logo-container svg, .logo-image {
  max-width: 140px;
  height: auto;
  border-radius: 0px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
  border: none;
  object-fit: contain;
}

.title-main {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.title-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Containers */
.container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 15px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
}

.container.compact {
  flex-grow: 0;
  margin: 5px auto;
  padding-top: 0;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.card.silver::before {
  background: var(--silver-gradient);
}

/* Typography */
h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Inputs & Form Fields */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

input, select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-light);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Button & Slide Lock Elements */
.btn {
  background: var(--gold-gradient);
  color: #120002;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

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

.btn:disabled {
  background: #2e1d20;
  color: #574144;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Slide Lock Slider UI */
.slider-container {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  height: 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  margin-top: 15px;
}

.slider-text {
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
  font-weight: 500;
  transition: opacity 0.3s;
}

.slider-handle {
  position: absolute;
  left: 3px;
  width: 54px;
  height: 54px;
  background: var(--gold-gradient);
  border-radius: 50%;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 3;
  transition: transform 0.1s ease;
  color: #120002;
  font-size: 20px;
}

.slider-handle:active {
  cursor: grabbing;
}

/* Modal Popup Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 0, 2, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: #1f0005;
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-body {
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--gold-primary);
}

/* Terms and Conditions Style */
.tc-document {
  padding: 30px;
}

.tc-header {
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.tc-section-title {
  color: var(--gold-primary);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 25px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

.tc-schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 13px;
}

.tc-schedule-table th, .tc-schedule-table td {
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 8px 12px;
  text-align: left;
}

.tc-schedule-table th {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
}

/* Slider for Logout */
.logout-slider-box {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.2);
}

.logout-slider {
  position: relative;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.3);
  height: 40px;
  width: 180px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.logout-slider-text {
  font-size: 11px;
  color: var(--error-color);
  pointer-events: none;
  z-index: 2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logout-slider-handle {
  position: absolute;
  left: 2px;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #FF7E7E 0%, #FF3B30 100%);
  border-radius: 50%;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #FFF;
  font-size: 14px;
}

/* Live prices items */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

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

.price-label {
  display: flex;
  flex-direction: column;
}

.price-title {
  font-weight: 600;
  font-size: 15px;
}

.price-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.price-value-box {
  text-align: right;
}

.price-large {
  font-size: 22px;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-change-down {
  font-size: 11px;
  color: var(--success-color);
  font-weight: 600;
}

/* Key-value metrics list */
.metric-list {
  margin-top: 10px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.metric-item:last-child {
  margin-bottom: 0;
}

.metric-name {
  color: var(--text-muted);
}

.metric-val {
  font-weight: 600;
}

/* Ornate Frame logo background */
.gold-emblem-svg {
  display: block;
  margin: 0 auto;
}

/* Alerts and status blocks */
.alert-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-color);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.alert-box.warning {
  background: rgba(255, 90, 90, 0.1);
  border-color: var(--error-color);
  color: var(--text-light);
}

/* Admin Dashboard layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background: #140003;
  border-right: 1px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
}

.admin-content {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
  margin-top: 20px;
}

.sidebar-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
  color: var(--text-muted);
  border-left: 3px solid transparent;
}

.sidebar-item.active, .sidebar-item:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  border-left-color: var(--gold-primary);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 12px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Admin Customer table */
.vj-table-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  background: rgba(0, 0, 0, 0.3);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-primary);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: #5df7c4;
}

.badge.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffe082;
}

.badge.locked {
  background: rgba(156, 39, 176, 0.2);
  color: #e1bee7;
}

.badge.redeemed {
  background: rgba(187, 187, 187, 0.2);
  color: #fff;
}

/* PDF Invoice print styles */
@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
  }
  .no-print {
    display: none !important;
  }
  .invoice-print-container {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Outfit', sans-serif;
    color: #000;
  }
  .print-header {
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  .print-table th, .print-table td {
    border: 1px solid #ddd;
    padding: 10px;
    color: #000 !important;
  }
}

/* Fix dropdown numbers visibility */
select option {
  color: #120002 !important;
  background-color: #FFFFFF !important;
}

/* Fix DOB dropdown overflow container on mobile sizes */
.dob-row {
  display: flex !important;
  gap: 8px !important;
  width: 100%;
}
.dob-row select {
  flex: 1 !important;
  min-width: 0 !important;
  height: 38px !important;
  padding: 6px 12px !important;
  font-size: 14px !important;
}

/* Form input placeholder and text color adjustments */
input, select {
  color: #F7EFE2 !important;
}
input::placeholder, select::placeholder {
  color: #8E7C7E !important;
  opacity: 1;
}
input:-ms-input-placeholder, select:-ms-input-placeholder {
  color: #8E7C7E !important;
}
input::-ms-input-placeholder, select::-ms-input-placeholder {
  color: #8E7C7E !important;
}

/* Modal Close cross button formatting */
.modal-close {
  font-size: 32px !important;
  font-weight: bold !important;
  color: var(--gold-primary) !important;
  z-index: 9999 !important;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.modal-close:hover {
  opacity: 1;
}


