/* ============================================================
   BreakView — Единый премиальный стиль (золотая тема)
   ============================================================ */

/* === CSS Variables === */
:root {
  /* Фоны */
  --bg-primary: #0a0a0f;
  --bg-card: #14141a;
  --bg-element: #1c1c24;
  --bg-hover: #24242e;
  --bg-overlay: rgba(10, 10, 15, 0.85);

  /* Золотая палитра */
  --gold: #d4a843;
  --gold-light: #f0d68a;
  --gold-dark: #b8922e;
  --gold-gradient: linear-gradient(135deg, #d4a843, #f0d68a);
  --gold-glow: 0 4px 20px rgba(212, 168, 67, 0.25);

  /* Текст */
  --text-primary: #e8e6e3;
  --text-secondary: #8a8a8a;
  --text-muted: #5a5a5a;

  /* Статусы */
  --success: #2ecc71;
  --success-bg: rgba(46, 204, 113, 0.12);
  --error: #e74c3c;
  --error-bg: rgba(231, 76, 60, 0.12);
  --warning: #f39c12;
  --warning-bg: rgba(243, 156, 18, 0.12);

  /* Границы */
  --border: #2a2a32;
  --border-gold: rgba(212, 168, 67, 0.25);
  --border-gold-strong: rgba(212, 168, 67, 0.5);

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.2);

  /* Радиусы */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Шрифты */
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
}

/* === Keyframe Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes goldShimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Stagger Animation Delay Classes === */
.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}
.stagger-5 {
  animation-delay: 0.5s;
}
.stagger-6 {
  animation-delay: 0.6s;
}

/* === Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Фоновый градиент с радиальным свечением */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(212, 168, 67, 0.03) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 80%,
      rgba(212, 168, 67, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* === Typography === */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 28px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(212, 168, 67, 0.15);
  animation: fadeInUp 0.6s ease forwards;
}

h2 {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 15px;
}

/* Gold shimmer для заголовков */
.gold-shimmer {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold-light) 50%,
    var(--gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s ease-in-out infinite;
}

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  animation: fadeInUp 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

/* Лёгкое золотое свечение сверху */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark),
    transparent
  );
  opacity: 0.5;
}

.card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(-2px);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.3s ease,
    opacity 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0a0a0f;
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.btn-gold:hover:not(:disabled) {
  box-shadow: 0 6px 25px rgba(212, 168, 67, 0.5);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0a0a0f;
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 25px rgba(212, 168, 67, 0.5);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover:not(:disabled) {
  box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-success:hover:not(:disabled) {
  box-shadow: 0 6px 25px rgba(46, 204, 113, 0.5);
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #0a0a0f;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover:not(:disabled) {
  box-shadow: 0 6px 25px rgba(243, 156, 18, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(212, 168, 67, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-element);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* === Forms === */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-element);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-main);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

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

input:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Messages === */
.error {
  background: var(--error-bg);
  color: var(--error);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid rgba(231, 76, 60, 0.2);
  animation: slideInTop 0.4s ease forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error::before {
  content: "⚠";
  font-size: 16px;
  flex-shrink: 0;
}

.success {
  background: var(--success-bg);
  color: var(--success);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid rgba(46, 204, 113, 0.2);
  animation: slideInTop 0.4s ease forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.success::before {
  content: "✓";
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.warning {
  background: var(--warning-bg);
  color: var(--warning);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 14px;
  border: 1px solid rgba(243, 156, 18, 0.2);
  animation: slideInTop 0.4s ease forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning::before {
  content: "⚡";
  font-size: 16px;
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

/* === Loading Spinner === */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--gold);
  font-size: 16px;
  animation: fadeIn 0.4s ease forwards;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

/* === Status Badges === */
.status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-badge.active {
  background: rgba(46, 204, 113, 0.15);
  color: var(--success);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.expired {
  background: rgba(231, 76, 60, 0.15);
  color: var(--error);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-badge.trial {
  background: rgba(243, 156, 18, 0.15);
  color: var(--warning);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.status-badge.none {
  background: rgba(90, 90, 90, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(90, 90, 90, 0.3);
}

/* === Navigation Links === */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 25px;
  animation: fadeInUp 0.8s ease forwards;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

/* === Info Rows === */
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-secondary);
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* === Price Display === */
.price {
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin: 15px 0;
  text-shadow: 0 2px 10px rgba(212, 168, 67, 0.15);
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* === Features Grid === */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
  text-align: left;
}

.feature-item {
  background: var(--bg-element);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
  border: 1px solid transparent;
}

.feature-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-gold);
}

.feature-item .check {
  color: var(--gold);
  font-weight: bold;
}

/* === Gold Divider === */
.gold-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark),
    var(--gold),
    var(--gold-dark),
    transparent
  );
  margin: 20px 0;
  opacity: 0.5;
}

/* === Decorative Chart Lines (SVG background) === */
.decorative-chart {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
}

.decorative-chart svg {
  width: 100%;
  height: 100%;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  h1 {
    font-size: 22px;
  }

  .card {
    padding: 20px;
  }

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

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }

  .card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .price {
    font-size: 28px;
  }
}
