/* ==========================================================================
   DESIGN SYSTEM: GLASSMORPHISM & PREMIUM DARK
   ========================================================================== */
:root {
  --primary: #24A1DE;
  --primary-hover: #1c82b3;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --accent-gradient: linear-gradient(135deg, #24A1DE 0%, #0ea5e9 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Rarity Colors */
  --rarity-legendary: #f59e0b;
  --rarity-epic: #a855f7;
  --rarity-rare: #3b82f6;
  --rarity-common: #94a3b8;
  --rarity-basic: #ffffff;
}

.main-price-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  contain: content;
}

/* ==========================================================================
   INFO SECTION
   ========================================================================== */
.info-price {
  text-align: center;
  margin-bottom: 50px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 40px;
  border-radius: 30px;
  box-shadow: var(--glass-shadow);
}

.info-price h1 {
    font-family: 'Days One', sans-serif;
    margin-bottom: 15px;
    font-size: 2.2rem; /* РЕСТАВРАЦИЯ РАЗМЕРА */
}

/* ==========================================================================
   STEP NAVIGATOR
   ========================================================================== */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-glass);
  transition: var(--transition);
}

.step-dot.active {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  transform: scale(1.3);
}

/* ==========================================================================
   CALCULATOR CONTAINER
   ========================================================================== */
.calc-container-new {
  display: flex;
  justify-content: center;
  align-items: start;
}

.step-container {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 40px;
  min-height: 550px;
  width: 100%;
  max-width: 900px;
  position: relative;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.step {
  display: none;
  will-change: transform, opacity;
}

.step.active {
  display: block;
  animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Step Headers */
.step-header {
  margin-bottom: 30px;
}

.step-header h2 {
  font-family: 'Days One', sans-serif;
  font-size: 24px; /* РЕСТАВРАЦИЯ РАЗМЕРА */
  margin-bottom: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   INTERACTIVE CARDS & RARITY
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.selection-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 180px;
}

.selection-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.selection-card.active {
  border: 2px solid var(--primary); /* ТОЛЩЕ ГРАНИЦА */
  background: rgba(36, 161, 222, 0.12); /* ЧУТЬ ГУЩЕ ЦВЕТ */
  box-shadow: 0 0 25px rgba(36, 161, 222, 0.4), inset 0 0 10px rgba(36, 161, 222, 0.2); /* СВЕЧЕНИЕ */
  transform: scale(1.02);
}

/* Rarity Badges/Themes */
.rarity-tag {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Rarity Color Themes (FORCED CONSISTENCY) */
.selection-card.rarity-legendary { border-color: rgba(245, 158, 11, 0.3); }
.selection-card.rarity-legendary.active { border-color: var(--rarity-legendary); box-shadow: 0 0 30px rgba(245, 158, 11, 0.3); }
.selection-card.rarity-legendary .card-icon, .selection-card.rarity-legendary .rarity-tag { color: var(--rarity-legendary); }

.selection-card.rarity-epic { border-color: rgba(168, 85, 247, 0.3); }
.selection-card.rarity-epic.active { border-color: var(--rarity-epic); box-shadow: 0 0 30px rgba(168, 85, 247, 0.3); }
.selection-card.rarity-epic .card-icon, .selection-card.rarity-epic .rarity-tag { color: var(--rarity-epic); }

.selection-card.rarity-rare { border-color: rgba(59, 130, 246, 0.3); }
.selection-card.rarity-rare.active { border-color: var(--rarity-rare); box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
.selection-card.rarity-rare .card-icon, .selection-card.rarity-rare .rarity-tag { color: var(--rarity-rare); }

.selection-card.rarity-common { border-color: rgba(148, 163, 184, 0.3); }
.selection-card.rarity-common.active { border-color: var(--rarity-common); }
.selection-card.rarity-common .card-icon, .selection-card.rarity-common .rarity-tag { color: var(--rarity-common); }

.card-icon {
  font-size: 40px; /* РЕСТАВРАЦИЯ РАЗМЕРА */
  margin-bottom: 15px;
  transition: var(--transition);
}

.card-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.15rem; /* РЕСТАВРАЦИЯ РАЗМЕРА */
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Rarity Text colors for Review */
.review-value.rarity-legendary, .review-value .rarity-legendary { color: var(--rarity-legendary); font-weight: 700; }
.review-value.rarity-epic, .review-value .rarity-epic { color: var(--rarity-epic); font-weight: 700; }
.review-value.rarity-rare, .review-value .rarity-rare { color: var(--rarity-rare); font-weight: 700; }
.review-value.rarity-common, .review-value .rarity-common { color: var(--rarity-common); font-weight: 700; }
.review-value.rarity-basic, .review-value .rarity-basic { color: var(--rarity-basic); font-weight: 700; }

.card-price {
    display: block;
    margin-top: 15px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
}

.size-visual {
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 15px;
}

.size-bar {
    width: 30px;
    background: var(--primary);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 0 15px rgba(36,161,222,0.3);
}

/* ==========================================================================
   INPUT FIELDS (ENFORCED GLASS DESIGN)
   ========================================================================== */
.shipping-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.glass-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 16px;
    color: white !important;
    font-size: 1rem;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 20px rgba(36, 161, 222, 0.15);
}

/* Autofill styling */
.glass-input:-webkit-autofill,
.glass-input:-webkit-autofill:hover, 
.glass-input:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  -webkit-box-shadow: 0 0 0px 1000px rgba(0,0,0,0.5) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================================================
   STEP ACTIONS & SIDEBAR
   ========================================================================== */
.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
}

.btn-nav {
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-prev { background: transparent; border: 1px solid var(--border-glass); color: var(--text-main); }
.btn-next { background: var(--primary); border: none; color: white; box-shadow: 0 4px 15px rgba(36, 161, 222, 0.3); }

.btn-reset {
    width: fit-content;
    margin: 30px auto 0;
    background: transparent;
    border: 1px dashed #ef4444;
    color: #ef4444;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reset:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   RESPONSIVE (SCOPED MOBILE OPTIMIZATION)
   ========================================================================== */
@media (max-width: 1100px) {
  .calc-container-new { 
      flex-direction: column; 
      gap: 20px; 
  }
}

@media (max-width: 768px) {
  .main-price-page { padding: 0 15px; margin: 20px auto; }
  .info-price { padding: 18px 20px; margin-bottom: 20px; border-radius: 20px; }
  .info-price h1 { font-size: 1.3rem; }
  
  .step-container { padding: 20px; border-radius: 20px; }
  
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .selection-card { padding: 14px 10px; min-height: 150px; }

  .step-actions { 
      flex-direction: column; 
      gap: 12px; 
      margin-top: 30px; 
      border-top: 1px solid var(--border-glass); 
      padding-top: 20px; 
  }
  .btn-nav { width: 100%; justify-content: center; }
  
  .btn-next { order: 1; }
  .btn-prev { order: 2; }
}
