/**
 * TRANS Price Simulator - Frontend Stylesheet
 * Scoped strictly under .tps-simulator and .tps-container
 */

:root {
  --tps-gold: #c9a84c;
  --tps-gold-light: #ecd783;
  --tps-gold-dark: #987a2d;
  --tps-bg-deep: #080808;
  --tps-bg-card: #121212;
  --tps-bg-subtle: #1a1a1a;
  --tps-border: rgba(201, 168, 76, 0.25);
  --tps-border-hover: rgba(201, 168, 76, 0.6);
  --tps-text-main: #f0f0f0;
  --tps-text-muted: #999999;
  --tps-text-dim: #666666;
}

.tps-simulator {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  box-sizing: border-box;
  font-family: "Helvetica Neue", "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  color: var(--tps-text-main);
  background: var(--tps-bg-deep);
  border: 1px solid var(--tps-border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(201, 168, 76, 0.05);
  overflow: hidden;
  position: relative;
  word-break: keep-all;
}

.tps-simulator *,
.tps-simulator *::before,
.tps-simulator *::after {
  box-sizing: border-box;
}

.tps-simulator-inner {
  padding: 36px 32px;
}

/* Header & Brand */
.tps-simulator .tps-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tps-border);
  padding-bottom: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.tps-simulator .tps-sim-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
}

.tps-simulator .tps-sim-logo-wrap img {
  max-height: 48px;
  width: auto;
  display: block;
}

.tps-simulator .tps-sim-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.2;
}

.tps-simulator .tps-sim-title span {
  color: var(--tps-gold);
}

.tps-simulator .tps-sim-subtitle {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--tps-gold-light);
  text-transform: uppercase;
}

/* Certificate Showcase (XPEL.png etc.) */
.tps-simulator .tps-certificate-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid var(--tps-border);
  border-radius: 10px;
  padding: 10px 16px;
  transition: all 0.3s ease;
}

.tps-simulator .tps-certificate-wrap:hover {
  border-color: var(--tps-border-hover);
  background: rgba(201, 168, 76, 0.1);
}

.tps-simulator .tps-certificate-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tps-simulator .tps-certificate-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tps-gold);
  text-transform: uppercase;
}

.tps-simulator .tps-certificate {
  display: inline-block;
  transition: transform 0.25s ease;
}

.tps-simulator .tps-certificate:hover {
  transform: scale(1.06);
}

.tps-simulator .tps-certificate img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.tps-simulator .tps-certificate-caption {
  font-size: 9px;
  color: var(--tps-text-muted);
  text-align: right;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.tps-simulator .tps-certificate-caption small {
  display: block;
  color: var(--tps-gold-light);
  font-size: 8px;
}

/* Loading State */
.tps-simulator .tps-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--tps-gold);
  gap: 16px;
}

.tps-simulator .tps-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201, 168, 76, 0.15);
  border-top-color: var(--tps-gold);
  border-radius: 50%;
  animation: tps-spin 0.8s linear infinite;
}

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

/* Step Layout */
.tps-simulator .tps-step {
  margin-bottom: 28px;
}

.tps-simulator .tps-step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #080808;
  background: linear-gradient(135deg, var(--tps-gold-light), var(--tps-gold));
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.tps-simulator .tps-step-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}

/* Country Filter Pill Bar */
.tps-simulator .tps-country-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tps-simulator .tps-country-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--tps-text-muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.tps-simulator .tps-country-pill:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.4);
  color: #ffffff;
}

.tps-simulator .tps-country-pill.active {
  background: linear-gradient(135deg, var(--tps-gold-light), var(--tps-gold));
  border-color: var(--tps-gold);
  color: #080808;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.35);
}

/* Dropdown Select (Used on Mobile or as alternative) */
.tps-simulator .tps-select-wrap {
  display: none; /* Hidden on desktop, active on mobile */
  margin-bottom: 12px;
  position: relative;
}

.tps-simulator .tps-select-maker,
.tps-simulator .tps-select-model {
  width: 100%;
  background: #111111;
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #ffffff;
  padding: 14px 40px 14px 16px;
  font-size: 14px;
  border-radius: 8px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  transition: all 0.2s ease;
}

.tps-simulator .tps-select-maker optgroup {
  background: #1a1a1a;
  color: var(--tps-gold-light);
  font-weight: 700;
  padding: 6px 0;
}

.tps-simulator .tps-select-maker option,
.tps-simulator .tps-select-model option {
  background: #111111;
  color: #ffffff;
  padding: 6px 12px;
}

.tps-simulator .tps-select-maker:focus,
.tps-simulator .tps-select-model:focus {
  border-color: var(--tps-gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.35);
}

.tps-simulator .tps-select-model:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #333333;
}

/* Desktop Maker & Model Selector (Button Grid) */
.tps-simulator .tps-maker-grid,
.tps-simulator .tps-model-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tps-simulator .tps-btn-select {
  background: var(--tps-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--tps-text-main);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tps-simulator .tps-btn-select:hover {
  border-color: var(--tps-border-hover);
  background: var(--tps-bg-subtle);
}

.tps-simulator .tps-btn-select.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.25), rgba(201, 168, 76, 0.08));
  border-color: var(--tps-gold);
  color: var(--tps-gold-light);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.25);
  font-weight: 700;
}

/* Mode Switch */
.tps-simulator .tps-mode-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  background: #0d0d0d;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tps-simulator .tps-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--tps-text-muted);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.tps-simulator .tps-mode-btn.active {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.3), rgba(201, 168, 76, 0.12));
  color: var(--tps-gold-light);
  border: 1px solid var(--tps-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Rule Alert (Front Set Explanations) */
.tps-simulator .tps-rule-alert {
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid var(--tps-gold);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: #e6e6e6;
  border-radius: 0 8px 8px 0;
  word-break: normal;
}

.tps-simulator .tps-rule-alert strong {
  color: var(--tps-gold-light);
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

/* Parts Selection Cards (Includes フロントセット, etc.) */
.tps-simulator .tps-parts-grid,
.tps-simulator .tps-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.tps-simulator .tps-part-card,
.tps-simulator .tps-option-card {
  background: var(--tps-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tps-simulator .tps-part-card:hover,
.tps-simulator .tps-option-card:hover {
  border-color: var(--tps-border-hover);
  background: var(--tps-bg-subtle);
}

.tps-simulator .tps-part-card.selected,
.tps-simulator .tps-option-card.selected {
  border-color: var(--tps-gold);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.03));
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.18);
}

.tps-simulator .tps-part-card.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.05);
}

.tps-simulator .tps-part-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tps-simulator .tps-part-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.tps-simulator .tps-checkbox-indicator {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tps-simulator .selected .tps-checkbox-indicator {
  border-color: var(--tps-gold);
  background: var(--tps-gold);
}

.tps-simulator .selected .tps-checkbox-indicator::after {
  content: "✓";
  color: #080808;
  font-size: 13px;
  font-weight: bold;
}

.tps-simulator .tps-part-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--tps-gold-light);
  letter-spacing: 0.02em;
}

.tps-simulator .tps-part-price.tps-na {
  color: var(--tps-text-dim);
  font-size: 13px;
  font-weight: 400;
}

/* Options Section */
.tps-simulator .tps-options-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tps-simulator .tps-options-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tps-gold);
  letter-spacing: 0.1em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

/* Full Package Highlight Card */
.tps-simulator .tps-full-card {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.16), rgba(201, 168, 76, 0.04));
  border: 1.5px solid var(--tps-gold);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.tps-simulator .tps-full-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.tps-simulator .tps-full-card-desc {
  font-size: 12px;
  color: var(--tps-text-muted);
  margin: 0;
  line-height: 1.4;
}

.tps-simulator .tps-full-card-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--tps-gold-light);
  text-align: right;
  white-space: nowrap;
}

/* Summary Card */
.tps-simulator .tps-summary-card {
  background: var(--tps-bg-card);
  border: 1px solid var(--tps-border);
  border-radius: 12px;
  padding: 24px 20px;
  margin-top: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.tps-simulator .tps-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.tps-simulator .tps-selected-vehicle .tps-lbl {
  font-size: 13px;
  color: var(--tps-text-muted);
}

.tps-simulator .tps-selected-vehicle .tps-val {
  font-size: 15px;
  color: #ffffff;
  font-weight: 600;
}

.tps-simulator .tps-reset-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--tps-text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.tps-simulator .tps-reset-btn:hover {
  color: #ffffff;
  border-color: var(--tps-gold);
}

.tps-simulator .tps-summary-breakdown {
  margin-bottom: 20px;
}

.tps-simulator .tps-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.tps-simulator .tps-breakdown-row .tps-item-name {
  color: #e0e0e0;
}

.tps-simulator .tps-breakdown-row .tps-item-price {
  color: var(--tps-gold-light);
  font-weight: 600;
  white-space: nowrap;
}

.tps-simulator .tps-breakdown-empty {
  color: var(--tps-text-dim);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

/* Total Price Display */
.tps-simulator .tps-total-wrap {
  text-align: center;
  padding: 18px 0 12px;
  border-top: 1px solid var(--tps-border);
}

.tps-simulator .tps-total-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--tps-gold-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tps-simulator .tps-total-amount {
  font-size: clamp(30px, 8vw, 50px);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.tps-simulator .tps-currency {
  font-size: 0.6em;
  color: var(--tps-gold);
}

.tps-simulator .tps-amount {
  color: #ffffff;
  font-feature-settings: "tnum";
}

.tps-simulator .tps-total-tax {
  font-size: 12px;
  color: var(--tps-text-muted);
  margin-top: 6px;
}

/* Action CTA */
.tps-simulator .tps-actions {
  margin-top: 20px;
}

.tps-simulator .tps-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--tps-gold-light), var(--tps-gold));
  color: #080808 !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
  transition: all 0.25s ease;
  user-select: none;
}

.tps-simulator .tps-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.55);
}

.tps-simulator .tps-arrow {
  transition: transform 0.2s ease;
}

.tps-simulator .tps-cta-btn:hover .tps-arrow {
  transform: translateX(4px);
}

/* Notes Section */
.tps-simulator .tps-notes {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.7;
  color: var(--tps-text-dim);
  word-break: normal;
}

.tps-simulator .tps-notes strong {
  color: var(--tps-gold-light);
}

/* =========================================================================
 * Mobile & Tablet Breakpoints: Dedicated Smartphone Dropdown Layout (Matching xpel-ppf)
 * ========================================================================= */
@media (max-width: 768px) {
  .tps-simulator {
    margin: 10px auto;
    border-radius: 10px;
  }
  .tps-simulator-inner {
    padding: 20px 14px;
  }
  .tps-simulator .tps-sim-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  .tps-simulator .tps-sim-brand {
    justify-content: flex-start;
  }
  .tps-simulator .tps-sim-title {
    font-size: 20px;
  }
  .tps-simulator .tps-certificate-wrap {
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
  }
  .tps-simulator .tps-certificate-info {
    align-items: flex-start;
  }
  .tps-simulator .tps-certificate-caption {
    text-align: left;
  }
  .tps-simulator .tps-certificate img {
    height: 36px;
  }

  /* 
   * Smartphone Layout for STEP 1 & STEP 2:
   * Show full-width luxury select dropdowns matching trans1129.jp/xpel-ppf/
   * Hide the wide button grid on mobile to eliminate any off-screen horizontal slide.
   */
  .tps-simulator .tps-select-wrap {
    display: block;
  }
  .tps-simulator .tps-maker-grid,
  .tps-simulator .tps-model-grid {
    display: none;
  }

  .tps-simulator .tps-parts-grid,
  .tps-simulator .tps-options-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tps-simulator .tps-part-card,
  .tps-simulator .tps-option-card {
    padding: 12px 14px;
  }

  .tps-simulator .tps-full-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .tps-simulator .tps-full-card-price {
    text-align: left;
    font-size: 22px;
  }

  .tps-simulator .tps-summary-card {
    padding: 18px 14px;
  }
  .tps-simulator .tps-cta-btn {
    padding: 14px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tps-simulator-inner {
    padding: 16px 12px;
  }
  .tps-simulator .tps-sim-title {
    font-size: 18px;
  }
}

/* =========================================================================
   Part Photo Trigger Bar & Ultra-Luxury Lightbox Modal
   ========================================================================= */
.tps-simulator .tps-part-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  gap: 8px;
}

.tps-simulator .tps-part-photo-wrap {
  margin-top: 10px;
  width: 100%;
}

/* Photo Trigger Bar (Full width button inside card) */
.tps-simulator .tps-photo-trigger-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.18) 0%, rgba(22, 22, 22, 0.95) 100%);
  border: 1px solid rgba(201, 168, 76, 0.55);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  outline: none;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.tps-simulator .tps-photo-trigger-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.tps-simulator .tps-photo-trigger-bar:hover::before {
  left: 150%;
}

.tps-simulator .tps-photo-trigger-bar:hover {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.32) 0%, rgba(32, 28, 20, 0.98) 100%);
  border-color: #ecd783;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.45), 0 6px 16px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
}

/* Thumbnail Box */
.tps-simulator .tps-photo-thumb-box {
  width: 46px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(201, 168, 76, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.tps-simulator .tps-photo-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tps-simulator .tps-photo-trigger-bar:hover .tps-photo-thumb-img {
  transform: scale(1.12);
}

.tps-simulator .tps-photo-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ecd783;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.tps-simulator .tps-photo-trigger-bar:hover .tps-photo-thumb-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.15);
}

/* Trigger Text */
.tps-simulator .tps-photo-trigger-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tps-simulator .tps-photo-trigger-main {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f7e8a9;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tps-simulator .tps-photo-trigger-main svg {
  color: #c9a84c;
  flex-shrink: 0;
}

.tps-simulator .tps-photo-trigger-sub {
  font-size: 10px;
  color: #999999;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tps-simulator .tps-photo-trigger-bar:hover .tps-photo-trigger-main {
  color: #ffffff;
}

.tps-simulator .tps-photo-trigger-bar:hover .tps-photo-trigger-sub {
  color: #c9a84c;
}

/* Arrow */
.tps-simulator .tps-photo-trigger-arrow {
  color: #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tps-simulator .tps-photo-trigger-bar:hover .tps-photo-trigger-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

/* Full Package Photo Trigger */
.tps-simulator .tps-full-photo-trigger {
  max-width: 340px;
}

/* Lightbox Modal Overlay */
.tps-photo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 4, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tps-photo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Lightbox Dialog Container */
.tps-photo-modal-dialog {
  background: linear-gradient(160deg, #161616 0%, #0d0d0d 100%);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 14px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(201, 168, 76, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tps-photo-modal-overlay.active .tps-photo-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Header */
.tps-photo-modal-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(18, 18, 18, 0.95);
  position: relative;
  box-sizing: border-box;
}

.tps-photo-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tps-photo-modal-title span.tps-badge {
  background: linear-gradient(135deg, #c9a84c, #987a2d);
  color: #080808;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tps-photo-modal-title span.tps-modal-title-text {
  color: #f5f5f5;
  font-size: 14px;
}

.tps-photo-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaaaaa;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  outline: none;
  flex-shrink: 0;
}

.tps-photo-modal-close:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: #c9a84c;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Image Body (Cinematic Black Box) */
.tps-photo-modal-body {
  flex: 1 1 auto;
  padding: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.tps-photo-modal-body img {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Caption Footer */
.tps-photo-modal-caption {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 13px;
  color: #cccccc;
  background: #0e0e0e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.5;
  box-sizing: border-box;
}

.tps-photo-modal-caption-text {
  flex: 1 1 auto;
}

.tps-photo-modal-brand-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #c9a84c;
  text-transform: uppercase;
  font-weight: 700;
}

/* Mobile Responsive Optimization for Photo Modal */
@media (max-width: 600px) {
  .tps-photo-modal-overlay {
    padding: 10px 8px;
  }
  .tps-photo-modal-dialog {
    max-width: 100%;
    border-radius: 10px;
  }
  .tps-photo-modal-header {
    padding: 10px 14px;
  }
  .tps-photo-modal-title {
    font-size: 13px;
    gap: 6px;
  }
  .tps-photo-modal-title span.tps-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  .tps-photo-modal-title span.tps-modal-title-text {
    font-size: 12px;
  }
  .tps-photo-modal-close {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .tps-photo-modal-body {
    min-height: 180px;
    max-height: 52vh;
  }
  .tps-photo-modal-body img {
    max-height: 52vh;
  }
  .tps-photo-modal-caption {
    padding: 10px 14px;
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .tps-photo-modal-brand-tag {
    font-size: 9px;
  }
}



