:root {
  --bg-main: #0D0B10;
  --bg-card: #15111B;
  --bg-card-hover: #1D1726;
  --bg-subtle: #191421;
  
  --border-light: rgba(232, 165, 152, 0.12);
  --border-active: #E8A598;
  --border-gold: #D4AF37;
  
  --accent-rose: #E8A598;
  --accent-rose-hover: #F2BDB3;
  --accent-gold: #D4AF37;
  --accent-silk: #FCECE9;
  --accent-green: #10B981;
  
  --text-main: #FDFBFB;
  --text-muted: #A39BA8;
  --text-subtle: #736979;
  
  --font-display: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(232, 165, 152, 0.22);
  
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(90px + var(--safe-bottom));
}

.app-shell {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  background-color: var(--bg-main);
  min-height: 100vh;
}

/* PWA Install Banner */
.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, #1C121A 0%, #291823 100%);
  border-bottom: 1px solid rgba(232, 165, 152, 0.4);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.install-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.install-icon {
  font-size: 20px;
}
.install-title {
  font-weight: 700;
  font-size: 13px;
  color: #FFF;
}
.install-subtitle {
  font-size: 11px;
  color: var(--accent-rose);
}
.btn-install {
  background: linear-gradient(135deg, var(--accent-rose) 0%, #D48C7E 100%);
  color: #120910;
  border: none;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.btn-install-close {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

/* Header */
.app-header {
  padding: 18px 18px 12px 18px;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 165, 152, 0.12);
  border: 1px solid rgba(232, 165, 152, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-rose);
  line-height: 1.2;
}
.pulse-sparkle {
  font-size: 13px;
  animation: sparkle 2.5s infinite;
}
@keyframes sparkle {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 0.6; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.header-actions {
  display: flex;
  gap: 8px;
}
.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--accent-rose);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.header-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-rose);
  transform: scale(1.05);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
}
.guide-step {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  line-height: 1.4;
}
.guide-step strong {
  color: var(--accent-rose);
  font-size: 13px;
}
.guide-step span {
  color: #D1D5DB;
}
.guide-step b {
  color: #FFFFFF;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.brand-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.brand-address {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-rose);
}

/* Hero Section */
.hero-section {
  padding: 0 18px 16px 18px;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 185px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 16, 0.25) 0%, rgba(13, 11, 16, 0.92) 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
}
.hero-tag {
  display: inline-block;
  background: rgba(232, 165, 152, 0.2);
  border: 1px solid var(--accent-rose);
  color: var(--accent-rose);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 8px;
  line-height: 1.35;
}
.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.perk-item {
  font-size: 11px;
  color: var(--accent-silk);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Booking Flow */
.booking-flow {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-rose);
  background: rgba(232, 165, 152, 0.15);
  border: 1px solid rgba(232, 165, 152, 0.35);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.step-title-wrap {
  flex: 1;
}
.step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.step-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.control-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Masters List */
.masters-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.master-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.master-card:hover {
  border-color: rgba(232, 165, 152, 0.4);
}
.master-card.active {
  background: rgba(232, 165, 152, 0.12);
  border-color: var(--accent-rose);
  box-shadow: 0 0 16px rgba(232, 165, 152, 0.2);
}
.master-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
  flex-shrink: 0;
}
.master-card.active .master-avatar {
  border-color: var(--accent-rose);
}
.master-info {
  flex: 1;
  min-width: 0;
}
.master-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 2px;
}
.master-role {
  font-size: 11px;
  color: var(--accent-rose);
  font-weight: 600;
  margin-bottom: 2px;
}
.master-exp {
  font-size: 11px;
  color: var(--text-muted);
}
.master-addon {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  text-align: right;
  flex-shrink: 0;
}

/* Services List */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-item {
  display: flex;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.service-item:hover {
  border-color: rgba(232, 165, 152, 0.3);
}
.service-item.selected {
  background: rgba(232, 165, 152, 0.08);
  border-color: var(--accent-rose);
}
.service-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.service-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}
.service-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-rose);
  background: rgba(232, 165, 152, 0.18);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.service-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 6px;
}
.service-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-rose);
}
.service-duration {
  font-size: 11px;
  color: var(--text-subtle);
}
.service-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.service-item.selected .service-checkbox {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #120910;
  font-weight: 800;
}

/* Date Selector */
.date-selector {
  margin-bottom: 14px;
}
.date-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.date-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.date-chip.active {
  background: rgba(232, 165, 152, 0.15);
  border-color: var(--accent-rose);
}
.date-chip-day {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}
.date-chip-date {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
  display: block;
}
.date-chip.active .date-chip-date {
  color: var(--accent-rose);
}

/* Time Grid */
.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.time-slot {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.time-slot:hover {
  border-color: rgba(232, 165, 152, 0.4);
}
.time-slot.active {
  background: linear-gradient(135deg, var(--accent-rose) 0%, #D48C7E 100%);
  border-color: var(--accent-rose);
  color: #120910;
  font-weight: 700;
}
.time-slot.active .time-text {
  color: #120910;
}
.time-text {
  font-family: var(--font-display);
  font-size: 13px;
  color: #FFFFFF;
}

/* Form Inputs */
.form-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.input-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.app-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.app-input:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 2px rgba(232, 165, 152, 0.2);
}
.app-input::placeholder {
  color: var(--text-subtle);
  font-size: 13px;
}

/* Standards Section */
.standards-section {
  padding: 8px 4px 16px 4px;
}
.standards-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.standards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.standard-item {
  display: flex;
  gap: 12px;
  background: rgba(21, 17, 27, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
}
.standard-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.standard-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.standard-text strong {
  font-size: 13px;
  color: #FFFFFF;
}
.standard-text span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Sticky Bottom Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 11, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(232, 165, 152, 0.2);
  padding: 12px 18px calc(12px + var(--safe-bottom)) 18px;
  z-index: 90;
}
.bottom-bar-content {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.price-summary {
  display: flex;
  flex-direction: column;
}
.price-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}
.price-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--accent-rose);
}
.time-estimate {
  font-size: 11px;
  color: var(--text-muted);
}
.btn-book-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-rose) 0%, #D48C7E 100%);
  color: #120910;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(232, 165, 152, 0.35);
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-book-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(232, 165, 152, 0.45);
}
.btn-book-primary:active {
  transform: scale(0.98);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-rose);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.modal-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(232, 165, 152, 0.15);
  border: 1px solid var(--accent-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.modal-icon {
  font-size: 24px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.ticket-box {
  background: var(--bg-subtle);
  border: 1px dashed rgba(232, 165, 152, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 12px;
  color: #F3EEF5;
  margin-bottom: 16px;
  white-space: pre-line;
  line-height: 1.45;
}
.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-dispatch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-wa {
  background: #25D366;
  color: #FFFFFF;
}
.btn-wa:hover {
  background: #22BF5B;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}
.btn-tg {
  background: #0088CC;
  color: #FFFFFF;
}
.btn-tg:hover {
  background: #0077B5;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
}
.btn-phone {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.btn-phone:hover {
  background: var(--bg-card-hover);
}
