@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --ruby-primary: #e11d48;
  --ruby-bright: #ff1e46;
  --ruby-deep: #9f1239;
  --ruby-dark: #4c0519;
  --ruby-glow: rgba(255, 30, 70, 0.45);
  --bg-obsidian: #070305;
  --bg-panel: rgba(18, 10, 15, 0.86);
  --bg-card: rgba(28, 15, 22, 0.78);
  --border-ruby: rgba(255, 45, 85, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --text-main: #fff1f2;
  --text-muted: #fda4af;
  --text-dim: #9ca3af;
  --gold-accent: #fbbf24;
  --wa-green: #25D366;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(225, 29, 72, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(159, 18, 57, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(225, 29, 72, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #090204 0%, #050103 100%);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 30, 70, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 30, 70, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Top Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 3, 6, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-ruby);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 25px rgba(225, 29, 72, 0.15);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 30, 70, 0.55));
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 1.8px;
  background: linear-gradient(90deg, #ffffff 0%, #ff4d6d 60%, #ff1e46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  border-color: var(--ruby-bright);
  background: rgba(225, 29, 72, 0.18);
}

.nav-btn.primary {
  background: linear-gradient(135deg, var(--ruby-bright) 0%, var(--ruby-deep) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.45);
}

/* Hero Banner */
.hero-banner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 18px auto 8px;
  padding: 22px 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(45, 8, 20, 0.85) 0%, rgba(12, 4, 8, 0.92) 65%, rgba(35, 6, 16, 0.85) 100%);
  border: 1px solid var(--border-ruby);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 0 40px rgba(225, 29, 72, 0.12);
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

.hero-logo-box {
  background: rgba(255, 255, 255, 0.96);
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(255, 30, 70, 0.5);
  border: 2px solid var(--ruby-bright);
  flex-shrink: 0;
}

.hero-logo-box img {
  height: 60px;
  width: auto;
  display: block;
}

.hero-copy h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.18rem, 2.2vw, 1.95rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-copy h1 span {
  display: block;
  margin-top: 5px;
  color: var(--ruby-bright);
  text-shadow: 0 0 18px rgba(255, 30, 70, 0.65);
}

.hero-copy p {
  color: #e5e7eb;
  font-size: 0.9rem;
  max-width: 780px;
  line-height: 1.55;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hero-pill {
  background: rgba(255, 30, 70, 0.15);
  border: 1px solid rgba(255, 30, 70, 0.4);
  color: #ffe4e6;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Main Studio Grid */
.studio-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 18px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

/* Left Column: Sticky 3D Viewport */
.viewer-column {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.viewer-card {
  position: relative;
  background: radial-gradient(circle at 50% 35%, #230912 0%, #0b0407 70%, #050203 100%);
  border: 1px solid var(--border-ruby);
  border-radius: 22px;
  height: 540px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(225, 29, 72, 0.15);
}

#three-canvas-container {
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#three-canvas-container:active {
  cursor: grabbing;
}

.viewer-Watermark {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(8, 3, 6, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-ruby);
  pointer-events: none;
}

.viewer-Watermark img {
  height: 24px;
  width: auto;
  background: #fff;
  padding: 2px 4px;
  border-radius: 5px;
}

.viewer-Watermark-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fff;
}

.viewer-Watermark-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* Floating Preview Badges in 3D Studio */
.viewer-accessory-badges {
  position: absolute;
  bottom: 64px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  gap: 8px;
}

.viewer-acc-badge {
  pointer-events: auto;
  background: rgba(10, 4, 7, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 45, 85, 0.4);
  border-radius: 12px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  max-width: 48%;
}

.viewer-acc-badge img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #fff;
  flex-shrink: 0;
}

.viewer-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.hud-btn {
  background: rgba(14, 6, 10, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hud-btn:hover, .hud-btn.active {
  border-color: var(--ruby-bright);
  background: rgba(225, 29, 72, 0.28);
  box-shadow: 0 0 12px rgba(255, 30, 70, 0.35);
}

.viewer-bottom-hud {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(10, 4, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 45, 85, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
}

.spec-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: #e5e7eb;
}

.spec-readout strong {
  color: var(--ruby-bright);
  font-family: 'JetBrains Mono', monospace;
}

.click-hint-badge {
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.3), rgba(251, 191, 36, 0.25));
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fef08a;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Live Summary Strip under 3D Viewer */
.live-summary-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-ruby);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-summary-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.live-price-pill {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(159, 18, 57, 0.4));
  border: 1px solid rgba(255, 77, 109, 0.55);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.25);
}

.live-price-pill strong {
  font-family: 'Orbitron', sans-serif;
  color: #4ade80;
  font-weight: 800;
  margin-left: 3px;
}

.live-price-note {
  font-size: 0.71rem;
  color: #fda4af;
  opacity: 0.85;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 6px;
}

.price-estimate-box {
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.14), rgba(15, 6, 10, 0.75));
  border: 1px solid rgba(255, 77, 109, 0.45);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.price-estimate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #fecdd3;
}

.price-estimate-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 7px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
}

.price-estimate-unit {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #fff;
}

.price-estimate-total {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #4ade80;
}

.price-estimate-disclaimer {
  font-size: 0.73rem;
  color: #fda4af;
  line-height: 1.4;
  margin-top: 2px;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.summary-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.color-preview-dot {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: inline-block;
  flex-shrink: 0;
}

/* Right Column: Customizer Controls & Order Form */
.controls-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.panel-card {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-ruby);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ruby-bright), var(--ruby-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 30, 70, 0.45);
}

.panel-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  padding: 4px 9px;
  border-radius: 99px;
  font-weight: 700;
  white-space: nowrap;
}

/* Slot Selector Grid */
.slot-selector-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.slot-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 4px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.slot-btn.active {
  background: linear-gradient(135deg, var(--ruby-bright) 0%, var(--ruby-deep) 100%);
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 30, 70, 0.5);
}

.custom-slot-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-ruby);
  background: rgba(225, 29, 72, 0.22);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.stepper-input {
  width: 56px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 6px;
  border-radius: 8px;
}

.layout-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.layout-opt {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #e5e7eb;
  padding: 10px;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.layout-opt.active {
  background: rgba(225, 29, 72, 0.22);
  border-color: var(--ruby-bright);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 30, 70, 0.3);
}

/* Quick Word Input & Per-Slot Letter Picker */
.quick-word-box {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fecdd3;
  margin-bottom: 8px;
}

.quick-word-input-wrap {
  display: flex;
  gap: 8px;
}

.text-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: var(--ruby-bright);
  box-shadow: 0 0 0 3px rgba(255, 30, 70, 0.2);
}

.slot-letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.slot-letter-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-letter-card.focused {
  border-color: var(--gold-accent);
  background: rgba(251, 191, 36, 0.12);
}

.slot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.slot-char-select {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 6px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

/* Gantungan Keychain Picker (Biji Lada, Ring Rantai, Ring) */
.gantungan-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

/* Paracord Design Photo Grid (Tanpa Paracord + Desain 1 - 6) */
.paracord-design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.photo-choice-card {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--text-main);
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.photo-choice-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.photo-choice-card.active {
  border-color: var(--ruby-bright);
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.28), rgba(159, 18, 57, 0.18));
  box-shadow: 0 0 18px rgba(255, 30, 70, 0.45);
}

.photo-choice-card.no-paracord-card {
  grid-column: span 3;
  flex-direction: row;
  justify-content: center;
  padding: 11px 14px;
  gap: 10px;
}

.photo-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.choice-num-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(9, 3, 6, 0.85);
  border: 1px solid rgba(255, 45, 85, 0.5);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.photo-choice-card.active .choice-num-badge {
  background: var(--ruby-bright);
  border-color: #fff;
}

.photo-zoom-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.68rem;
  cursor: pointer;
}

.choice-card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.choice-card-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

/* Color Swatch Buttons for Gantungan & Paracord */
.color-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.paracord-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.paracord-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  transition: all 0.2s;
}

.paracord-btn.active {
  border-color: #fff;
  background: rgba(225, 29, 72, 0.24);
  box-shadow: 0 0 15px rgba(255, 30, 70, 0.45);
}

.paracord-cord-visual {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.35), inset 0 -3px 5px rgba(0, 0, 0, 0.45);
}

.paracord-name {
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
}

/* 36 Filament Color Palette */
.color-target-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.target-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #e5e7eb;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.target-tab.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.32), rgba(159, 18, 57, 0.32));
  border-color: var(--ruby-bright);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 30, 70, 0.35);
}

.target-tab-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #fff;
}

.slot-color-scope-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(0, 0, 0, 0.38);
  padding: 8px 11px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.75rem;
}

.scope-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.scope-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.scope-pill.active {
  background: var(--ruby-bright);
  border-color: #fff;
}

.triangle-palette-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 12px 10px;
}

.triangle-palette-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px 5px;
  justify-items: center;
}

.tri-swatch-btn {
  width: 34px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease;
}

.tri-swatch-btn.active {
  transform: scale(1.22);
  filter: drop-shadow(0 0 7px #ffffff) drop-shadow(0 0 12px var(--ruby-bright));
  z-index: 5;
}

.tri-swatch-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.selected-color-bar {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
}

.ref-photo-details {
  margin-top: 10px;
}

.ref-photo-details summary {
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  user-select: none;
}

.ref-photo-details img {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
  border: 1px solid var(--border-subtle);
}

/* Order Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

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

.required-star {
  color: var(--ruby-bright);
}

.order-submit-btn {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ff1e46 0%, #be123c 50%, #881337 100%);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.5);
  transition: all 0.22s ease;
}

.order-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Floating Chat Admin RUBYPIXEL */
.floating-chat-wrapper {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.chat-widget-popup {
  width: min(340px, calc(100vw - 32px));
  background: #12070c;
  border: 1px solid var(--ruby-bright);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.88), 0 0 30px rgba(225, 29, 72, 0.35);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chat-widget-popup.open {
  display: flex;
}

.chat-popup-header {
  background: linear-gradient(135deg, var(--ruby-bright), var(--ruby-deep));
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.chat-admin-info img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

.chat-popup-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 320px;
  overflow-y: auto;
}

.chat-bubble-admin {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #f9fafb;
}

.chat-quick-Dynamic {
  background: rgba(225, 29, 72, 0.14);
  border: 1px dashed rgba(255, 30, 70, 0.45);
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 0.74rem;
  color: #fecdd3;
  line-height: 1.45;
}

.chat-popup-footer {
  padding: 11px 14px;
  border-top: 1px solid var(--border-subtle);
}

.wa-send-btn {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: none;
  padding: 11px 14px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.floating-chat-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* Modal Konfirmasi & Preview Foto */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #14080d;
  border: 1px solid var(--ruby-bright);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(225, 29, 72, 0.3);
}

.footer {
  text-align: center;
  padding: 26px 16px 95px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ======================== RESPONSIVE TABLET & SMARTPHONE (iOS / ANDROID) ======================== */
@media (max-width: 1080px) {
  .studio-container {
    grid-template-columns: 1fr;
    padding: 10px 14px 40px;
  }
  .viewer-column {
    position: relative;
    top: 0;
  }
  .viewer-card {
    height: 430px;
  }
}

@media (max-width: 680px) {
  .navbar {
    padding: 9px 12px;
  }
  .brand-logo {
    height: 34px;
  }
  .brand-title {
    font-size: 0.98rem;
    letter-spacing: 1px;
  }
  .brand-tagline {
    font-size: 0.58rem;
  }
  .nav-btn {
    padding: 7px 11px;
    font-size: 0.74rem;
    border-radius: 10px;
  }

  .hero-banner {
    margin: 10px 12px 6px;
    padding: 15px;
    border-radius: 18px;
  }
  .hero-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .hero-logo-box {
    padding: 7px 12px;
  }
  .hero-logo-box img {
    height: 42px;
  }
  .hero-copy h1 {
    font-size: 1.08rem;
  }
  .hero-copy p {
    font-size: 0.8rem;
  }

  .viewer-card {
    height: 360px;
    border-radius: 18px;
  }
  .viewer-Watermark {
    padding: 5px 9px;
    top: 8px;
    left: 8px;
  }
  .viewer-Watermark img {
    height: 20px;
  }
  .viewer-Watermark-text {
    font-size: 0.62rem;
  }
  .viewer-Watermark-sub {
    display: none;
  }
  .viewer-top-right {
    top: 8px;
    right: 8px;
  }
  .hud-btn {
    padding: 5px 8px;
    font-size: 0.66rem;
  }
  .viewer-accessory-badges {
    bottom: 52px;
    left: 8px;
    right: 8px;
  }
  .viewer-acc-badge {
    padding: 5px 7px;
  }
  .viewer-acc-badge img {
    width: 30px;
    height: 30px;
  }
  .viewer-bottom-hud {
    padding: 6px 10px;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }
  .spec-readout {
    font-size: 0.65rem;
  }
  .click-hint-badge {
    font-size: 0.64rem;
    padding: 3px 7px;
  }

  .panel-card {
    padding: 15px 14px;
    border-radius: 16px;
  }
  .panel-title {
    font-size: 0.82rem;
  }

  .slot-selector-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .layout-toggle {
    grid-template-columns: 1fr;
  }

  .gantungan-type-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }
  .paracord-design-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .photo-choice-card.no-paracord-card {
    grid-column: span 2;
  }
  .photo-img-wrap {
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .paracord-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .triangle-palette-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px 4px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Cegah iOS Safari auto-zoom saat klik input */
  .text-input,
  .slot-char-select,
  .stepper-input {
    font-size: 16px !important;
  }

  .floating-chat-wrapper {
    bottom: 12px;
    right: 12px;
  }
  .floating-chat-btn {
    padding: 10px 14px;
    font-size: 0.78rem;
  }
}
