:root {
  --bg-color: #0f1115;
  --card-bg: #181b22;
  --card-border: #282d37;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --gold-primary: #d4af37;
  --gold-hover: #b8972e;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.app-header {
  background: rgba(24, 27, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  font-size: 26px;
  background: #232731;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-primary);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
  background: linear-gradient(135deg, #fff 40%, var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Stepper */
.stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 20px;
  background: var(--card-bg);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}

.step-item.active {
  color: var(--gold-primary);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2a2f3d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.step-item.active .step-num {
  background: var(--gold-primary);
  color: #000;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--card-border);
  margin: 0 16px;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.staff-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.staff-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.staff-avatar-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid var(--gold-primary);
}

.staff-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.staff-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.staff-role {
  color: var(--gold-primary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.staff-hours {
  font-size: 12px;
  color: var(--text-muted);
  background: #232731;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Services */
.services-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-block {
  margin-bottom: 24px;
}

.category-name {
  font-size: 18px;
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-card:hover {
  border-color: #4b5563;
}

.service-card.selected {
  border-color: var(--gold-primary);
  background: #232733;
}

.service-title {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.service-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.service-meta {
  text-align: right;
  min-width: 90px;
}

.service-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-primary);
}

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

.service-check {
  margin-left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.service-card.selected .service-check {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #000;
}

/* Sticky Summary Card */
.services-summary-card {
  position: sticky;
  bottom: 20px;
  background: #1c202a;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.summary-details {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.summary-label {
  color: var(--text-muted);
  margin-right: 6px;
}

.price-highlight {
  color: var(--gold-primary);
  font-size: 18px;
}

/* Calendar & Slots */
.calendar-booking-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

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

.quick-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.quick-date-btn {
  background: #232731;
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-date-btn.active, .quick-date-btn:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
  font-weight: 600;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.slot-btn {
  background: #232731;
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

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

.slot-btn.selected {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

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

.summary-services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.divider {
  height: 1px;
  background: var(--card-border);
  margin: 16px 0;
}

.total-line {
  font-size: 18px;
  font-weight: 700;
}

.gold-text {
  color: var(--gold-primary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: #232731;
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
}

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

.form-row {
  display: flex;
  gap: 16px;
}

.col-6 {
  flex: 1;
}

/* Payment Switch in Form */
.payment-selection-box {
  background: #20242e;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 20px 0;
}

.payment-selection-box h4 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #fff;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #181b22;
  border: 1px solid var(--card-border);
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.payment-title {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.payment-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gold {
  background: var(--gold-primary);
  color: #000;
}

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

.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #2a2f3d;
  color: #fff;
}

.btn-secondary:hover {
  background: #363c4e;
}

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

.btn-outline-gold:hover {
  background: var(--gold-primary);
  color: #000;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid var(--card-border);
}

.btn-large {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* Admin Styles */
.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px;
  flex-wrap: wrap;
  gap: 16px;
}

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

.studio-settings-card {
  margin-bottom: 20px;
  border: 1px solid #374151;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.setting-title-icon {
  font-size: 28px;
  background: #252a36;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #374151;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--accent-green);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.badge-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #282d37;
  color: var(--text-muted);
}

.badge-status.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

/* Admin Calendar Table */
.admin-calendar-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-online { background: var(--accent-blue); }
.dot-phone { background: var(--gold-primary); }
.dot-completed { background: var(--accent-green); }

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--card-border);
}

.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.badge-tag.online { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-tag.phone { background: rgba(212, 175, 55, 0.2); color: var(--gold-primary); }

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 24px;
}

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

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.hidden { display: none !important; }

/* Responsive */
@media (max-width: 768px) {
  .calendar-booking-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .services-summary-card {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .summary-details {
    justify-content: space-between;
  }
  .stepper-bar {
    overflow-x: auto;
  }
}

/* Admin Navigation Tabs */
.admin-tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
  border-color: var(--gold-light);
}

.admin-tab-btn.active {
  background: var(--gold-primary);
  color: #121417;
  border-color: var(--gold-light);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

/* Share & QR Code Studio Box */
.share-tools-box {
  margin-top: 15px;
}
.share-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.share-input-row input {
  flex: 1;
  min-width: 240px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold-light);
  font-family: monospace;
}
.qr-display-container {
  display: flex;
  justify-content: flex-start;
}
.qr-card {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 240px;
}
.qr-code-img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}
.qr-caption {
  color: #1a1a1a;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.qr-card .btn {
  width: 100%;
}
