/* ═══════════════════════════════════════════════════════════════
   LEGACY COMPONENTS — Vlast Design Bridge
   Maps old class names to the new Glassmorphism aesthetic.
   Depends on: main-theme.css (CSS variables must be loaded first)
═══════════════════════════════════════════════════════════════ */

/* ===== LAYOUT ===== */

.container {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  opacity: 1;
  transform: none;
  flex: 1;
}

.page.active {
  opacity: 1;
  transform: none;
}

/* ===== HERO BLOCK (страничный заголовок) ===== */

.hero.fade-in,
.hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 3.5rem 2rem 3rem !important;
  margin-bottom: 2.5rem !important;
  position: relative !important;
  opacity: 1 !important;
  min-height: auto !important;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7 50%, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.15;
  filter: drop-shadow(0 0 30px rgba(126,184,247,0.25));
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== BUTTON (.btn) ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(126, 184, 247, 0.35);
  background: linear-gradient(135deg,
    rgba(14, 40, 120, 0.55) 0%,
    rgba(20, 60, 180, 0.45) 50%,
    rgba(14, 40, 120, 0.55) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.35),
    0 1px 0 rgba(255,255,255,0.12) inset;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.35) 50%,
    transparent);
  pointer-events: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.08) 0%,
    transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover {
  border-color: rgba(126, 184, 247, 0.65);
  background: linear-gradient(135deg,
    rgba(20, 60, 180, 0.7) 0%,
    rgba(30, 80, 210, 0.6) 50%,
    rgba(20, 60, 180, 0.7) 100%);
  transform: translateY(-3px);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.4),
    0 0 25px rgba(126,184,247,0.15),
    0 1px 0 rgba(255,255,255,0.15) inset;
  color: #fff;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: translateY(-1px);
}

.btn i {
  font-size: 1rem;
  flex-shrink: 0;
}

.btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.05rem;
}

.btn .btn-text .main-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.btn .btn-text .sub-text {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.2;
}

.btn.btn-primary {
  background: linear-gradient(135deg,
    rgba(14, 40, 120, 0.7) 0%,
    rgba(56, 130, 255, 0.55) 100%);
  border-color: rgba(126, 184, 247, 0.5);
}

.btn.btn-secondary {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.btn.btn-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== PRICING / PLAN CARDS ===== */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan {
  position: relative;
  overflow: visible;
  background: var(--glass-fill);
  backdrop-filter: blur(32px) saturate(1.6) brightness(1.08);
  -webkit-backdrop-filter: blur(32px) saturate(1.6) brightness(1.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    0 1px 0 var(--glass-highlight) inset;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plan::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.30) 30%,
    rgba(255,255,255,0.50) 50%,
    rgba(255,255,255,0.30) 70%,
    transparent);
  pointer-events: none;
}

.plan:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-8px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(126,184,247,0.08),
    0 1px 0 rgba(255,255,255,0.25) inset;
}

.plan h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan > p:not(.price) {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.plan .price {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7 60%, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ===== NEWS CARDS ===== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--glass-fill);
  backdrop-filter: blur(32px) saturate(1.6) brightness(1.08);
  -webkit-backdrop-filter: blur(32px) saturate(1.6) brightness(1.08);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 8px 32px var(--glass-shadow),
    0 1px 0 var(--glass-highlight) inset;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.40) 50%, transparent);
  pointer-events: none;
}

.news-card:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.45),
    0 0 30px rgba(126,184,247,0.07),
    0 1px 0 rgba(255,255,255,0.22) inset;
}

.news-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== UPDATE CARDS ===== */

.updates-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.update-card {
  background: var(--glass-fill);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  transform: none !important;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px var(--glass-shadow), 0 1px 0 var(--glass-highlight) inset;
}

.update-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35) 50%, transparent);
  pointer-events: none;
}

.update-card:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px) !important;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.45),
    0 0 28px rgba(126,184,247,0.07),
    0 1px 0 rgba(255,255,255,0.22) inset;
}

.update-card.visible {
  opacity: 1;
  transform: none;
}

.update-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== UPDATES SECTION CONTROLS ===== */

.updates {
  width: 100%;
}

.updates-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: rgba(126,184,247,0.4);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(126,184,247,0.08);
}

.search-box i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.22s ease;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  color: var(--text-primary);
}

.filter-btn.active {
  background: rgba(126,184,247,0.15);
  border-color: rgba(126,184,247,0.35);
  color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(126,184,247,0.12);
}

/* ===== GALLERY GRID ===== */

.gallery,
.gallery.fade-in {
  opacity: 1;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  aspect-ratio: 16/10;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(126,184,247,0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(3,6,15,0.85) 0%, transparent 100%);
}

.gallery-item-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.gallery-item-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

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

/* ===== FORM GROUPS ===== */

.form-group {
  margin-bottom: 1.4rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(126,184,247,0.45);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(126,184,247,0.10);
}

.form-group select option {
  background: #0d1a3a;
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-group-inner {
  margin-bottom: 1.2rem;
  position: relative;
}

.form-group-inner input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}

.form-group-inner input:focus {
  border-color: rgba(126,184,247,0.45);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(126,184,247,0.10);
}

.form-group-inner label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

/* ===== APPLY FORM CONTAINER ===== */

.apply-form-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--glass-fill);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px var(--glass-shadow), 0 1px 0 var(--glass-highlight) inset;
  position: relative;
}

.apply-form-container::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35) 50%, transparent);
  pointer-events: none;
}

.apply-form-container h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7 50%, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.apply-form-container > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ===== FIELDSET / TOGGLE GROUPS ===== */

fieldset {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.4rem;
  background: rgba(255,255,255,0.03);
}

fieldset legend {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding: 0 0.5rem;
  text-transform: uppercase;
}

.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.radio-group label:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: var(--text-primary);
}

.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--accent-blue);
}

.criteria-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.6rem 0;
}

.criteria-checkbox input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent-blue);
  width: auto;
}

.criteria-checkbox label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.spam-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* ===== MODAL ===== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3, 6, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal.closing .modal-content {
  animation: modalOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes modalOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to   { opacity: 0; transform: scale(0.92) translateY(20px); }
}

.modal-content {
  background: rgba(8, 12, 30, 0.90);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  width: 90%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 1px 0 rgba(255,255,255,0.12) inset;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close,
.close {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover,
.close:hover {
  background: rgba(255,255,255,0.14);
  color: var(--text-primary);
}

.modal-body,
.modal-form {
  padding: 1.75rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* ===== FILE UPLOAD ===== */

.file-upload-area {
  position: relative;
  border: 2px dashed rgba(126,184,247,0.25);
  border-radius: var(--r-md);
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(126,184,247,0.03);
}

.file-upload-area:hover {
  border-color: rgba(126,184,247,0.5);
  background: rgba(126,184,247,0.06);
}

.file-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  pointer-events: none;
}

.upload-placeholder i {
  font-size: 2.5rem;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.7;
}

.upload-placeholder p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.file-preview {
  position: relative;
  display: inline-block;
}

.file-preview img {
  max-width: 100%;
  border-radius: var(--r-sm);
  max-height: 200px;
  object-fit: cover;
}

.remove-file {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(220,60,60,0.85);
  border: none;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-file:hover {
  background: rgba(220,60,60,1);
  transform: scale(1.1);
}

/* ===== RULES PAGE ===== */

.rules-warning {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.rules-warning strong {
  color: #fcd34d;
}

.rules-warning a {
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(126,184,247,0.3);
  transition: border-color 0.2s ease;
}

.rules-warning a:hover {
  border-color: rgba(126,184,247,0.7);
}

/* ===== THANKS STAND ===== */

.thanks-stand {
  margin-top: 2rem;
}

.thanks-stand h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.thanks-card {
  background: var(--glass-fill);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 8px 32px var(--glass-shadow), 0 1px 0 var(--glass-highlight) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thanks-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35) 50%, transparent);
  pointer-events: none;
}

.thanks-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.22) inset;
}

.player-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.player-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(126,184,247,0.4);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(126,184,247,0.25);
}

.crown {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fcd34d;
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px rgba(252,211,77,0.6));
}

.avatar-frame {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(126,184,247,0.25);
  animation: pulse-frame 3s ease-in-out infinite;
}

@keyframes pulse-frame {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.player-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.thanks-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.thanks-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(252,211,77,0.1);
  border: 1px solid rgba(252,211,77,0.25);
  border-radius: 20px;
  color: #fcd34d;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ===== FEATURES, GALLERY SECTIONS (фадины страниц) ===== */

.features.fade-in,
.news.fade-in,
.gallery.fade-in,
.updates.fade-in,
.fade-in {
  opacity: 1;
  transform: none;
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NOTIFICATION CONTAINERS ===== */

.notification-container {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

/* ===== SUCCESS / ERROR MESSAGES ===== */

#success-message,
#error-message {
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#success-message {
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.3);
  color: var(--accent-green);
}

#error-message {
  background: rgba(252, 165, 165, 0.12);
  border: 1px solid rgba(252, 165, 165, 0.3);
  color: var(--accent-rose);
}

/* ===== WELCOME MODAL (old pages) ===== */

.welcome-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3,6,15,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.welcome-modal.active {
  display: flex;
}

.welcome-modal-content {
  background: rgba(8, 12, 30, 0.92);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  max-width: 560px;
  width: 90%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 1px 0 rgba(255,255,255,0.12) inset;
  position: relative;
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.welcome-modal-title {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7 50%, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.welcome-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.welcome-modal-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.welcome-modal-body .highlight {
  color: var(--accent-blue);
  font-weight: 600;
}

.welcome-modal-footer {
  margin-top: 2rem;
  text-align: center;
}

.welcome-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.welcome-modal-close:hover {
  background: rgba(255,255,255,0.14);
  color: var(--text-primary);
}

.welcome-modal-btn {
  padding: 0.75rem 2rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(126,184,247,0.4);
  background: linear-gradient(135deg, rgba(14,40,120,0.6), rgba(56,130,255,0.5));
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-modal-btn:hover {
  border-color: rgba(126,184,247,0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(126,184,247,0.2);
}

/* ===== PLAN NOTE ===== */

.plan-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 2rem auto;
  max-width: 800px;
  line-height: 1.5;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.07);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .container {
    padding: 90px 1.25rem 3rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

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

  .plan {
    padding: 2rem 1.5rem;
  }

  .thanks-card {
    flex-direction: column;
    text-align: center;
  }

  .updates-controls {
    flex-direction: column;
  }

  .apply-form-container {
    padding: 1.75rem 1.25rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .form-actions {
    flex-direction: column-reverse;
  }
}

/* ===== RULES SECTIONS & ITEMS ===== */

.rule-section {
  background: var(--glass-fill) !important;
  backdrop-filter: blur(32px) saturate(1.6) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) brightness(1.08) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: 0 8px 32px var(--glass-shadow) !important;
  padding: 2.5rem !important;
  margin-bottom: 2rem !important;
}

.rule-section h3 {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #e0eeff, #7eb8f7) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
  margin-bottom: 2rem !important;
}

.rule-item {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: 4px solid var(--accent-green) !important;
  border-radius: var(--r-md) !important;
  padding: 1.25rem 1.5rem !important;
  margin: 1rem 0 !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
}

.rule-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateX(6px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(126, 184, 247, 0.05) !important;
}

.rule-item.severity-red {
  border-left-color: #f44336 !important;
  background: rgba(244, 67, 54, 0.03) !important;
}

.rule-item.severity-yellow {
  border-left-color: #ff9800 !important;
  background: rgba(255, 152, 0, 0.03) !important;
}

.rule-item.severity-green {
  border-left-color: #4caf50 !important;
  background: rgba(76, 175, 80, 0.03) !important;
}

.rule-code {
  color: var(--accent-gold) !important;
  font-weight: 750 !important;
  text-shadow: 0 0 10px rgba(252, 211, 77, 0.2) !important;
}

.rule-examples {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-left: 3px solid #ff5722 !important;
  border-radius: var(--r-sm) !important;
  padding: 1rem !important;
  margin-top: 1rem !important;
}

.rule-examples h4 {
  color: #ff5722 !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

.admin-section {
  background: rgba(167, 139, 250, 0.04) !important;
  border: 1px solid rgba(167, 139, 250, 0.2) !important;
  border-radius: var(--r-lg) !important;
  padding: 2.2rem !important;
}

.admin-section h3 {
  color: var(--accent-violet) !important;
  font-weight: 800 !important;
}

