/* Cafe Admin Dashboard & QR Stand Styling */
.admin-body {
  background: #090e1a;
  min-height: 100vh;
  padding: 16px 24px;
}

.admin-layout {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.admin-header {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-icon {
  font-size: 1.6rem;
}

.brand-saas {
  font-size: 0.8rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

.cafe-crumb {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

/* Admin Grid */
.admin-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.admin-right-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-section {
  padding: 24px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.section-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.section-title-wrap h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.section-title-wrap p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Color Presets */
.color-presets {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.color-radio {
  cursor: pointer;
}

.color-radio input {
  display: none;
}

.color-swatch {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.2s ease;
}

.color-radio input:checked + .color-swatch {
  border-color: white;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Subscription Card */
.subscription-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.sub-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 6px;
}

.sub-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.sub-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sub-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.benefit-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.benefit-item span {
  color: var(--primary);
  font-weight: 900;
}

/* Acrylic Stand Mockup */
.stand-preview-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

.acrylic-stand-mockup {
  position: relative;
  width: 260px;
  margin: 0 auto;
}

.stand-acrylic-glass {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  color: #0f172a;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 2;
}

.stand-acrylic-base {
  height: 18px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-radius: 6px;
  margin-top: -6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
}

.stand-bell {
  font-size: 2rem;
  display: block;
  margin-bottom: 4px;
}

.stand-cafe-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.stand-cafe-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 12px;
}

.stand-qr-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-block;
  margin-bottom: 14px;
}

.stand-qr-image {
  width: 150px;
  height: 150px;
  display: block;
}

.stand-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  margin-bottom: 14px;
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 8px;
}

.stand-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e293b;
}

.step-num {
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.stand-footer {
  font-size: 0.68rem;
  color: #94a3b8;
}

.stand-footer strong {
  color: var(--primary);
}

/* Stand Actions */
.stand-actions-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.direct-link-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.direct-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.direct-input {
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  font-family: var(--font-latin);
}

/* Modal Checkout */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.8rem;
  cursor: pointer;
}

.plan-toggle-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.plan-option {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.plan-option.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

.plan-option strong {
  display: block;
  font-size: 0.95rem;
}

.plan-option span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.card-icons {
  position: absolute;
  left: 14px;
  font-size: 1.4rem;
}

.instant-activate-note {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #a7f3d0;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ========================================================
   Smart Monthly & Weekly Calendar Order Tracking Styles
   ======================================================== */
.calendar-section {
  position: relative;
}

.calendar-content-wrap {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.calendar-content-wrap.is-locked {
  filter: blur(5px);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.calendar-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 14, 26, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 25;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.calendar-day-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 10px 8px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.calendar-day-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.calendar-day-card.is-today {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.09);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.calendar-day-card.is-selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.calendar-day-card.is-empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
  opacity: 0.2;
}

.cal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-day-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: #e2e8f0;
  font-family: var(--font-latin);
}

.cal-today-badge {
  font-size: 0.65rem;
  background: #10b981;
  color: #fff;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 800;
}

.cal-orders-pill {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
  width: fit-content;
}

.cal-orders-pill.low {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.cal-orders-pill.mid {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.cal-orders-pill.high {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.cal-prep-speed {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .stand-preview-container {
    grid-template-columns: 1fr;
  }
  .sub-benefits {
    grid-template-columns: 1fr;
  }
  .calendar-weekdays, #calendar-days-grid {
    grid-template-columns: repeat(7, minmax(80px, 1fr)) !important;
  }
}
