/* gooi.io — VIG-specific styles (pricing & dashboard) */
/* Extends /css/style.css design tokens */

/* ================================
   VIG Badge
   ================================ */

.vig-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ================================
   VIG Hero
   ================================ */

.vig-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.vig-hero h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.vig-tagline {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ================================
   Interval Toggle (Monthly/Yearly)
   ================================ */

.interval-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.interval-toggle span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.interval-toggle span.active {
  color: var(--text);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-switch.yearly::after {
  transform: translateX(22px);
}

.toggle-switch.yearly {
  background: var(--accent);
}

/* ================================
   Pricing Grid
   ================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ================================
   Pricing Card
   ================================ */

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px -10px rgba(99, 102, 241, 0.3);
}

.pricing-card.popular::before {
  content: 'Populair';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

.tier-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.tier-price {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.tier-interval {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tier-save {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.tier-features li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.tier-features li.check::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

.tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-cta:hover {
  background: var(--accent);
  color: white;
}

/* ================================
   Free Comparison
   ================================ */

.free-comparison {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.free-comparison strong {
  color: var(--text);
}

/* ================================
   Login Inline
   ================================ */

.login-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.login-inline h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.login-inline p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
  margin-bottom: 1rem;
}

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

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--gradient-primary);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px -4px rgba(99, 102, 241, 0.4);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px -4px rgba(99, 102, 241, 0.5);
}

.msg {
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-xs);
  margin-top: 1rem;
}

.msg.error {
  background: var(--error-glow);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.msg.success {
  background: rgba(34, 211, 238, 0.1);
  color: var(--secondary);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* ================================
   Dashboard Header
   ================================ */

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ================================
   Button: Ghost
   ================================ */

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ================================
   Button: Login Top (absolute)
   ================================ */

.btn-login-top {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-login-top:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ================================
   Status Card
   ================================ */

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.status-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ================================
   Perks List
   ================================ */

.perks-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.perks-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.perks-list li svg,
.perks-list li .perk-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

/* ================================
   Table Wrap + Table Styles
   ================================ */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table-wrap thead th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-wrap tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(46, 46, 74, 0.5);
  color: var(--text);
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover {
  background: var(--surface-hover);
}

/* ================================
   Status Badges
   ================================ */

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-complete {
  background: var(--secondary-glow);
  color: var(--secondary);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.status-uploading {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-disabled {
  background: var(--error-glow);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.status-expired {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-paid {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-cancelled {
  background: var(--error-glow);
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ================================
   Empty State
   ================================ */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ================================
   Pagination
   ================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.pagination button,
.pagination a {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination button:hover,
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.pagination button.active,
.pagination a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pagination button:disabled,
.pagination a.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ================================
   Button: Small
   ================================ */

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  border-radius: var(--radius-xs);
}

/* ================================
   Button: Danger
   ================================ */

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: var(--error-glow);
  border-color: var(--error);
}

/* ================================
   Change Plan Link
   ================================ */

.change-plan-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.change-plan-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ================================
   Responsive — 640px
   ================================ */

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .perks-list {
    grid-template-columns: 1fr;
  }

  .btn-login-top {
    position: static;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
  }
}
