/* BoostVideo Styles */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --accent: #6c3cff;
  --accent-hover: #8b5cf6;
  --gold: #D4A017;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --border: #2a2a3a;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.logo .tagline {
  font-size: 12px;
  color: var(--text-secondary);
  margin-inline-start: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
}

.coin-icon {
  margin-inline-end: 4px;
}

.lang-toggle {
  color: var(--text-muted);
  font-size: 12px;
}

.lang-toggle a {
  color: var(--text-muted);
  text-decoration: none;
}

.lang-toggle a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--bg-primary);
}

.btn-gold:hover {
  background-color: #e6b422;
}

/* Main */
.main {
  min-height: calc(100vh - 160px);
}

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Features */
.features {
  padding: 60px 0;
  background-color: var(--bg-secondary);
}

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

.feature-card {
  background-color: var(--bg-tertiary);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
}

/* Cards */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
}

/* Wallet */
.wallet-balance {
  text-align: center;
  padding: 40px;
}

.wallet-amount {
  font-size: 64px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.wallet-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pricing-card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-card:hover,
.pricing-card.selected {
  border-color: var(--accent);
  transform: scale(1.02);
}

.pricing-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}

.pricing-amount span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Status badges */
.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-completed {
  background-color: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.status-pending {
  background-color: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.status-failed {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.status-refunded {
  background-color: rgba(108, 108, 123, 0.2);
  color: var(--text-muted);
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}

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

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

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

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Utilities */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ── Bootstrap-compatible Utility Layer ── */

/* Layout: Row / Col grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}
.row > [class*="col"] {
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
}
.col-12 { width: 100%; }
.col-sm-6 { width: 100%; }
.col-md-4 { width: 100%; }
.col-md-6 { width: 100%; }
.col-md-8 { width: 100%; }
.col-lg-4 { width: 100%; }

@media (min-width: 576px) {
  .col-sm-6 { width: 50%; }
}
@media (min-width: 768px) {
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666%; }
}
@media (min-width: 992px) {
  .col-lg-4 { width: 33.333%; }
}

.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }

/* Display */
.d-flex { display: flex; }
.d-none { display: none !important; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }

/* Spacing */
.py-5 { padding-top: 48px; padding-bottom: 48px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.ms-1 { margin-inline-start: 4px; }
.ms-2 { margin-inline-start: 8px; }
.me-2 { margin-inline-end: 8px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }

/* Text */
.text-muted { color: var(--text-muted) !important; }
.text-light { color: var(--text-secondary); }
.text-danger { color: var(--error); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: #38bdf8; }
.text-primary { color: var(--accent) !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Card extensions (card already exists in style.css) */
.card-body { padding: 24px; }
.card-img-top {
  width: 100%;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  object-fit: cover;
}
.card-text { font-size: 14px; color: var(--text-secondary); }
.h-100 { height: 100%; }

/* Badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.bg-success { background-color: rgba(34,197,94,.2) !important; color: var(--success); }
.bg-warning { background-color: rgba(245,158,11,.2) !important; color: var(--warning); }
.bg-info    { background-color: rgba(56,189,248,.15) !important; color: #38bdf8; }
.bg-primary { background-color: rgba(108,60,255,.2) !important; color: var(--accent); }
.bg-danger  { background-color: rgba(239,68,68,.2) !important; color: var(--error); }
.bg-secondary { background-color: var(--bg-secondary); }

/* Table */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid var(--border);
}
.table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }

/* Alert */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}
.alert-danger  { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); color: #fcd34d; }
.alert-info    { background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.2); color: #7dd3fc; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); color: #86efac; }

/* Progress bar */
.progress {
  width: 100%;
  background: var(--bg-tertiary);
  border-radius: 99px;
  overflow: hidden;
}
.progress .progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width .6s ease;
}
.progress .progress-bar.bg-info { background: linear-gradient(90deg, #38bdf8, var(--accent)); }

/* Spinner */
.spinner-border {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinBorder .75s linear infinite;
}
.spinner-border.text-primary { border-top-color: var(--accent); }
@keyframes spinBorder {
  to { transform: rotate(360deg); }
}

/* Button variants */
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-outline-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline-secondary:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline-primary:hover { background: rgba(108,60,255,.1); color: var(--accent-hover); }
.btn-info {
  background: rgba(56,189,248,.15);
  border: 1px solid rgba(56,189,248,.3);
  color: #38bdf8;
}
.btn-info:hover { background: rgba(56,189,248,.25); }
.btn-warning {
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--warning);
}
.btn-warning:hover { background: rgba(245,158,11,.25); }
.btn-success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--success);
}
.btn-danger {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: var(--error);
}

/* Form control */
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(108,60,255,.15);
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
[dir="rtl"] .toast-container { right: auto; left: 24px; }

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toastIn .35s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.toast.hiding { animation: toastOut .3s ease forwards; }

.toast-success { background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.toast-error   { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.toast-info    { background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.25); color: #7dd3fc; }
.toast-warning { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); color: #fcd34d; }

.toast-icon { font-size: 18px; flex-shrink: 0; line-height: 1; }
.toast-body { flex: 1; }
.toast-close {
  background: none; border: none; color: inherit; opacity: .6;
  cursor: pointer; font-size: 16px; line-height: 1; padding: 0;
  flex-shrink: 0;
}
.toast-close:hover { opacity: 1; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(16px) scale(.9); }
}

/* ── Button Loading State ── */
.btn.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinBorder .6s linear infinite;
  top: 50%; left: 50%;
  margin-top: -8px; margin-left: -8px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h2 { font-size: 32px; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav {
    display: none;
  }

  .nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 12px;
    z-index: 99;
    animation: slideDown .25s ease;
  }

  .hamburger-btn {
    display: flex;
  }

  .wallet-amount { font-size: 48px; }

  .toast-container {
    left: 12px; right: 12px; bottom: 12px;
  }
  .toast { min-width: unset; max-width: unset; }
}

@media (min-width: 769px) {
  .hamburger-btn { display: none !important; }
}

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

/* Hamburger button */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 20px;
  transition: background .15s;
}
.hamburger-btn:hover { background: var(--bg-tertiary); }

/* ── Accessibility ── */

/* Focus-visible outlines for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.chip:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10001;
  border-radius: 0 0 var(--radius) 0;
  font-size: 14px;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Additional Mobile Responsive ── */
@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .result-layout {
    grid-template-columns: 1fr;
  }

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

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

  .review-images-grid {
    grid-template-columns: 1fr;
  }

  .video-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .video-actions .btn { justify-content: center; }
}

/* ── Inline Validation ── */
.field-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,.15) !important;
}
.validation-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
  animation: toastIn .2s ease;
}
