/* Apple Official Color Palette & Clean Aesthetic System */
:root {
  --bg-primary: #F5F5F7;                 /* Apple Light Gray background */
  --bg-card: #FFFFFF;                    /* Apple Pure White card background */
  --bg-card-sub: #FAFAFC;                /* Apple Subtle Card Secondary */
  --bg-card-border: rgba(0, 0, 0, 0.08); /* Apple Subtle border */
  --bg-input: #FFFFFF;                   /* Input background */
  --accent-apple: #0066CC;               /* Apple Royal Blue (#0066CC) */
  --accent-apple-hover: #0055B3;         /* Apple Darker Royal Blue */
  --accent-apple-glow: rgba(0, 102, 204, 0.12);
  --text-main: #1D1D1F;                  /* Apple Charcoal Text (#1D1D1F) */
  --text-sub: #515154;                   /* Apple Secondary Text */
  --text-muted: #86868B;                 /* Apple Muted Text */
  --danger: #FF3B30;                     /* Apple System Red */
  --success: #34C759;                    /* Apple System Green */
  --warning: #FF9500;                    /* Apple System Amber */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Outfit', sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', monospace;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

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

body.apple-theme {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.app-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header & Navbar (Apple Frosted Glass) */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 12px;
  z-index: 100;
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  background: #FFFFFF;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.mobile-menu-btn .menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn.is-open .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-apple);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.version-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #EBEBEF;
  padding: 4px;
  border-radius: 14px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  background: #FFFFFF;
  color: var(--accent-apple);
  box-shadow: var(--shadow-sm);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle-box {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #EBEBEF;
  padding: 4px;
  border-radius: 14px;
  border: 1.5px solid var(--accent-apple);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.12);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background: var(--accent-apple);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.admin-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 102, 204, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-apple);
  font-weight: 600;
}

.auth-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-apple);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.user-phone {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* View Panes Switcher */
.view-pane {
  display: none;
}

.view-pane.active {
  display: block;
  animation: appleFadeIn 0.3s ease;
}

@keyframes appleFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Apple Hero Section */
.hero-card {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 850px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(0, 102, 204, 0.08);
  color: var(--accent-apple);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.gradient-text {
  color: var(--accent-apple);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-features {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--bg-card-border);
}

.hero-image-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.03);
}

.card-image-box {
  position: relative;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.06);
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.service-card:hover .card-image-box img {
  transform: scale(1.05);
}

.card-image-box .media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.feature-chip {
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-sub);
  font-weight: 500;
}

.feature-chip.visitor-chip {
  background: rgba(0, 102, 204, 0.08);
  border-color: rgba(0, 102, 204, 0.18);
  color: var(--accent-apple);
}

.feature-chip.visitor-chip strong {
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

/* Site Footer / Visitor Counter */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 500;
}

.visitor-counter .visitor-icon {
  font-size: 1.05rem;
}

.visitor-counter strong {
  color: var(--accent-apple);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  min-width: 1.5ch;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Services Section */
.section-header {
  margin: 40px 0 20px 0;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Apple Clean Service Card (No empty black boxes) */
.service-card {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 102, 204, 0.3);
}

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

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #F5F5F7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.media-badge {
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(0, 102, 204, 0.08);
  color: var(--accent-apple);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.card-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-content p {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.5;
  flex-grow: 1;
}

.price-tag {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-tag strong {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 800;
}

/* Materials Section */
.section-card {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.materials-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.material-box {
  background: #F5F5F7;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.material-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.material-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #ffffff;
}

.material-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.material-box:hover .material-img-box img {
  transform: scale(1.05);
}

.material-box h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.material-box p {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* Contact Banner */
.contact-banner {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.contact-banner-text h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.contact-banner-text p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

.contact-banner-actions {
  display: flex;
  gap: 12px;
}

/* Service Store Layout */
.store-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; }
}

.store-selector-card, .store-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.service-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #F5F5F7;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-card:hover {
  background: #EBEBEF;
}

.option-card.active {
  border-color: var(--accent-apple);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.option-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
}

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

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-card-border);
  font-size: 0.95rem;
}

.summary-row .label {
  color: var(--text-sub);
}

.price-big {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-apple);
}

.summary-note {
  background: #F5F5F7;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 18px;
  line-height: 1.45;
}

.sample-img-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--accent-apple);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
  padding: 10px;
}

.sample-img-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  background: #FAFAFC;
  border-radius: 12px;
}

.sample-caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-apple);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 102, 204, 0.15);
}

/* Contact Cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-detail {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-apple);
}

.contact-detail a {
  color: inherit;
  text-decoration: none;
}

/* Integrated Admin Panel */
.admin-top-banner {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.admin-title h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.admin-title span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-tab {
  background: #F5F5F7;
  border: 1px solid transparent;
  color: var(--text-sub);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab.active {
  background: var(--accent-apple);
  color: #FFFFFF;
}

.admin-subpane {
  display: none;
}

.admin-subpane.active {
  display: block;
  animation: appleFadeIn 0.3s ease;
}

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

.modal-backdrop.hidden {
  display: none !important;
}

.modal {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 24px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 540px; }
.modal-lg { max-width: 820px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--bg-card-border);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  padding: 28px;
  flex-grow: 1;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover { color: var(--text-main); }

/* Bank Details Card in Checkout */
.bank-card {
  background: #FAFAFC;
  border: 1px solid rgba(0, 102, 204, 0.2);
  border-radius: 18px;
  padding: 20px;
}

.bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--bg-card-border);
  padding-bottom: 10px;
  color: var(--text-main);
}

.badge-advance {
  background: var(--accent-apple);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.bank-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.bank-row {
  display: flex;
  justify-content: space-between;
}

.mono-code {
  font-family: var(--font-mono);
  color: var(--accent-apple);
  font-size: 1.05rem;
  font-weight: 700;
}

.bank-footer {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--bg-card-border);
}

/* Apple Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 980px; /* Apple pill button */
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-apple);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-apple-hover);
}

.btn-secondary {
  background: #EBEBEF;
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #E0E0E6;
}

.btn-outline {
  background: transparent;
  color: var(--accent-apple);
  border: 1px solid rgba(0, 102, 204, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 102, 204, 0.06);
}

.google-auth-btn {
  min-height: 50px;
  background: #ffffff;
  color: #202124;
  border: 1px solid #dadce0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.12);
}

.google-auth-btn:hover {
  background: #f8faff;
  border-color: #b8c7e8;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.2);
  transform: translateY(-1px);
}

.google-auth-btn:active {
  background: #f1f3f4;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.16);
  transform: translateY(0);
}

.google-auth-btn:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.28);
  outline-offset: 2px;
}

.google-auth-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.google-auth-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; border-radius: 12px; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; border-radius: 14px; }

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  background: #FFFFFF;
  border-color: var(--accent-apple);
  box-shadow: 0 0 0 3px var(--accent-apple-glow);
}

.form-select {
  cursor: pointer;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
}

.checkout-sub {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--accent-apple);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bg-card-border);
}

.data-table th {
  background: #F5F5F7;
  color: var(--text-muted);
  font-weight: 600;
}

.data-table tr:hover td {
  background: #FAFAFC;
}

.mono-text { font-family: var(--font-mono); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.margin-top-16 { margin-top: 16px; }
.margin-top-20 { margin-top: 20px; }
.margin-top-32 { margin-top: 32px; }

.alert {
  padding: 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  white-space: pre-line;
  line-height: 1.45;
}

.alert-success { background: rgba(52, 199, 89, 0.12); border: 1px solid var(--success); color: #278a3d; }
.alert-error { background: rgba(255, 59, 48, 0.12); border: 1px solid var(--danger); color: #d70015; }

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  background: #F5F5F7;
  padding: 4px;
  border-radius: 12px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-sub);
  padding: 10px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--accent-apple);
  box-shadow: var(--shadow-sm);
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--bg-card-border);
}

.auth-divider span {
  position: relative;
  background: #FFFFFF;
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.otp-hint {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.45;
  margin: 0 0 16px 0;
  text-align: center;
  white-space: pre-line;
}

#otpCodeInput {
  letter-spacing: 0.35em;
  font-size: 1.35rem;
  text-align: center;
  font-weight: 600;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-weight: 600;
  cursor: pointer;
}

.btn-text:hover {
  color: var(--accent-apple);
}

.margin-top-8 { margin-top: 8px; }
.margin-top-12 { margin-top: 12px; }

/* ============================================================ */
/* Floating Web AI Chatbot Widget                               */
/* ============================================================ */
.web-chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  font-family: var(--font-sans);
}

.web-chat-fab {
  height: 64px;
  padding: 0 24px 0 18px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, #0071e3 0%, #6366f1 100%);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 102, 204, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.web-chat-fab:hover {
  filter: brightness(1.05);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.5);
}

.web-chat-fab-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.web-chat-fab-label {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.web-chat-fab.is-open {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  gap: 0;
}

.web-chat-fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 40px;
  border: 2px solid rgba(99, 102, 241, 0.45);
  animation: webChatPulse 2.2s ease-out infinite;
  pointer-events: none;
}

.web-chat-fab.is-open .web-chat-fab-pulse {
  border-radius: 50%;
}

@keyframes webChatPulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.web-chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 28px));
  height: min(540px, calc(100vh - 120px));
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: webChatSlideUp 0.22s ease;
}

@keyframes webChatSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.web-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0066CC 0%, #1a7ae6 100%);
  color: #fff;
}

.web-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.web-chat-header-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.web-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  opacity: 0.9;
}

.web-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.25);
}

.web-chat-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.web-chat-close:hover { opacity: 1; }

.web-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #F5F5F7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.web-chat-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.web-chat-bubble.bot {
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
  border-bottom-left-radius: 6px;
}

.web-chat-bubble.user {
  align-self: flex-end;
  background: var(--accent-apple);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.web-chat-bubble.typing {
  color: var(--text-muted);
  font-style: italic;
}

.web-chat-bubble img.web-chat-thumb {
  display: block;
  max-width: 180px;
  max-height: 160px;
  border-radius: 10px;
  margin-top: 6px;
  object-fit: cover;
}

.web-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--bg-card-border);
  background: #FFFFFF;
}

.web-chat-composer textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.35;
  max-height: 96px;
  outline: none;
  background: #FAFAFC;
  color: var(--text-main);
}

.web-chat-composer textarea:focus {
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow: 0 0 0 3px var(--accent-apple-glow);
}

.web-chat-attach,
.web-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.web-chat-attach {
  background: #F5F5F7;
  color: var(--text-sub);
  font-size: 1rem;
}

.web-chat-send {
  background: var(--accent-apple);
  color: #fff;
  font-size: 1rem;
}

.web-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.web-chat-hint {
  padding: 0 12px 10px;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  background: #FFFFFF;
}

/* Missing layout helpers */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

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

.gap-16 { gap: 16px; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.calc-card {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.table-responsive .data-table {
  min-width: 640px;
}

img, video, svg {
  max-width: 100%;
}

.hero-image-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sample-img-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
}

/* ============================================================ */
/* Mobile / Tablet Responsive                                   */
/* ============================================================ */
@media (max-width: 1100px) {
  .admin-badge span {
    display: none;
  }

  .nav-tab {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 980px) {
  body.apple-theme {
    padding: 12px 10px 24px;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    top: 8px;
    gap: 0;
  }

  .navbar-top {
    width: 100%;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-tabs,
  .header-right {
    display: none;
    width: 100%;
  }

  .navbar.menu-open .nav-tabs,
  .navbar.menu-open .header-right {
    display: flex;
    margin-top: 12px;
  }

  .nav-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px;
  }

  .nav-tab {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .header-right {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 4px;
  }

  .lang-toggle-box {
    width: 100%;
    justify-content: stretch;
  }

  .lang-btn {
    flex: 1;
    justify-content: center;
  }

  .admin-badge {
    justify-content: center;
    width: 100%;
  }

  .admin-badge span {
    display: inline;
  }

  .auth-box,
  .auth-box .btn {
    width: 100%;
  }

  .user-pill {
    width: 100%;
    justify-content: space-between;
  }

  .hero-card,
  .section-card,
  .store-selector-card,
  .store-summary-card,
  .contact-card,
  .calc-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-image-wrap img {
    height: 240px;
  }

  .services-grid,
  .materials-flex,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .contact-banner {
    padding: 20px 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .contact-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .contact-banner-actions .btn,
  .contact-banner-actions a {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .sample-img-card img {
    height: 240px;
  }

  .sample-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 0.78rem;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .modal {
    max-height: 92vh;
    border-radius: 20px 20px 16px 16px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

  .modal-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .modal-footer .btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .price-big {
    font-size: 1.35rem;
  }

  .option-card {
    padding: 14px;
    align-items: flex-start;
  }

  .option-info strong {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .admin-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .bank-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  body.apple-theme {
    padding: 8px 8px 20px;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .version-tag {
    font-size: 0.68rem;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .hero-image-wrap img {
    height: 200px;
  }

  .feature-chip {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .section-header h2 {
    font-size: 1.35rem;
  }

  .btn-lg {
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  .user-info {
    min-width: 0;
  }

  .user-name,
  .user-phone {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .web-chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .web-chat-fab {
    height: 54px;
    padding: 0 16px 0 12px;
    font-size: 1.35rem;
  }

  .web-chat-fab-label {
    font-size: 0.85rem;
  }

  .web-chat-panel {
    width: calc(100vw - 28px);
    height: min(72vh, 520px);
    right: 0;
  }

  .table-responsive .data-table {
    min-width: 560px;
  }

  .checkout-grid {
    gap: 16px;
  }

  .visitor-counter {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .lang-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .web-chat-fab-label {
    display: none;
  }

  .web-chat-fab {
    width: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
}

/* ============================================================ */
/* Shimmer / Skeleton Loading States                            */
/* ============================================================ */
@keyframes shimmer-slide {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.shimmer-surface,
.shimmer-block {
  background: linear-gradient(
    90deg,
    #ececf1 0%,
    #f7f7fa 35%,
    #e4e4ea 65%,
    #ececf1 100%
  );
  background-size: 200% 100%;
  animation: shimmer-slide 1.25s ease-in-out infinite;
  border-radius: 10px;
}

.img-shimmer-host {
  position: relative;
  overflow: hidden;
}

.img-shimmer-host > img {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.img-shimmer-host > img.is-loaded {
  opacity: 1;
}

.img-shimmer-host.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #e8e8ee 0%,
    #f6f6f9 40%,
    #dedee6 70%,
    #e8e8ee 100%
  );
  background-size: 200% 100%;
  animation: shimmer-slide 1.2s ease-in-out infinite;
}

.img-shimmer-host.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 3px solid rgba(0, 102, 204, 0.18);
  border-top-color: var(--accent-apple);
  animation: loader-spin 0.7s linear infinite;
  pointer-events: none;
}

.sample-img-card.img-shimmer-host.is-loading,
.card-image-box.img-shimmer-host.is-loading,
.hero-image-wrap.img-shimmer-host.is-loading {
  min-height: 160px;
}

.hero-image-wrap.img-shimmer-host.is-loading {
  min-height: 280px;
}

.media-shimmer-frame {
  position: relative;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f7;
}

.skeleton-row td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.skeleton-row .shimmer-block {
  height: 14px;
  width: 100%;
}

.skeleton-row .shimmer-block.short {
  width: 55%;
}

.skeleton-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--bg-card-border);
  margin-bottom: 12px;
  background: #fff;
}

.skeleton-card .shimmer-block {
  height: 12px;
  margin-bottom: 10px;
}

.skeleton-card .shimmer-block:last-child {
  margin-bottom: 0;
  width: 70%;
}

.content-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 600;
}

.content-loading-box .spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0, 102, 204, 0.16);
  border-top-color: var(--accent-apple);
  animation: loader-spin 0.7s linear infinite;
}
