/* ── Shared Page Styles (non-landing pages) ── */

/* Page hero */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(192, 57, 43, 0.08) 0%, transparent 60%);
}
.page-hero.compact { padding: 120px 0 40px; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

/* Content widths */
.content-narrow { max-width: 720px; margin: 0 auto; }
.content-xs { max-width: 440px; margin: 0 auto; }

/* Page sections */
.page-section { padding: 60px 0 100px; }

/* ── Welcome Page ── */
.welcome-icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  font-size: 2rem; font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}

.info-card {
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  margin-bottom: 40px;
}
.info-card.highlight {
  border-color: rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.05);
}
.info-card h2 {
  font-size: 1.1rem; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}

.key-display {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.key-display code {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'Courier New', monospace;
  color: #2ecc71;
  letter-spacing: 1px;
  word-break: break-all;
}
.key-meta {
  display: flex; gap: 24px;
  font-size: 0.85rem; opacity: 0.6;
}
.key-meta strong { color: #fff; opacity: 1; }

.info-note {
  font-size: 0.85rem; opacity: 0.5;
  margin-top: 8px;
}

/* Setup steps */
.setup-step {
  display: flex; gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.step-number {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(192, 57, 43, 0.15);
  color: #c0392b;
  font-weight: 800; font-size: 1rem;
  border-radius: 50%;
}
.step-content h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-content p { font-size: 0.9rem; opacity: 0.7; margin-bottom: 8px; line-height: 1.6; }
.step-content a { color: #c0392b; text-decoration: underline; }

.check-list { margin: 12px 0; }
.check-list li {
  padding: 4px 0 4px 20px; position: relative;
  font-size: 0.9rem; opacity: 0.75;
}
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: #2ecc71; font-weight: 700; }

.code-block {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
}
.code-block code {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #e0e0e6;
}
.copy-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e0e0e6;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }

.help-footer {
  text-align: center; padding: 40px 0;
  font-size: 0.9rem; opacity: 0.6;
}
.help-footer a { color: #c0392b; text-decoration: underline; }

/* ── Login Page ── */
.auth-form {
  padding: 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #e0e0e6;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus {
  border-color: #c0392b;
}
.form-group input::placeholder { color: rgba(255,255,255,0.25); }

.form-error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.btn-full { width: 100%; text-align: center; }

.form-links {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 16px;
  font-size: 0.85rem;
}
.form-links a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.form-links a:hover { color: #c0392b; }
.form-links .divider { opacity: 0.3; }

.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.08);
}
.auth-divider span { font-size: 0.8rem; opacity: 0.4; }

.auth-alt {
  text-align: center;
}
.auth-alt p { font-size: 0.9rem; opacity: 0.6; margin-bottom: 16px; }

/* ── Legal Pages ── */
.legal-content h2 {
  font-size: 1.2rem; font-weight: 700; color: #fff;
  margin: 40px 0 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.legal-content h2:first-of-type { border-top: none; margin-top: 0; }
.legal-content h3 {
  font-size: 1rem; font-weight: 600; color: #fff;
  margin: 24px 0 12px;
}
.legal-content p {
  font-size: 0.9rem; opacity: 0.75; line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 8px 0 16px 20px;
  list-style: disc;
}
.legal-content ul li {
  font-size: 0.9rem; opacity: 0.75; line-height: 1.6;
  padding: 3px 0;
}
.legal-content a { color: #c0392b; text-decoration: underline; }
.legal-note {
  font-size: 0.85rem; opacity: 0.5;
  font-style: italic;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border-left: 3px solid rgba(192, 57, 43, 0.3);
}

/* ── Support Page ── */
.support-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 60px;
}
.support-card {
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-align: center;
}
.support-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.support-card p { font-size: 0.85rem; opacity: 0.6; margin-bottom: 16px; }
.support-card .btn { font-size: 0.8rem; }

/* FAQ */
.faq-section h2 {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin-bottom: 24px;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-item summary {
  padding: 16px 0;
  font-size: 0.95rem; font-weight: 600; color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 12px;
}
.faq-item summary::before {
  content: '+';
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 1rem; font-weight: 700;
  transition: background 0.2s;
}
.faq-item[open] summary::before { content: '\2212'; background: rgba(192, 57, 43, 0.2); color: #c0392b; }
.faq-answer {
  padding: 0 0 20px 36px;
}
.faq-answer p {
  font-size: 0.9rem; opacity: 0.7; line-height: 1.7;
  margin-bottom: 8px;
}
.faq-answer a { color: #c0392b; text-decoration: underline; }

/* ── Docs Page ── */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.docs-nav {
  position: sticky; top: 80px;
  padding: 20px 0;
}
.docs-nav h4 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  margin: 20px 0 8px;
}
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; }
.docs-nav li { padding: 3px 0; }
.docs-nav a {
  font-size: 0.85rem; opacity: 0.6;
  transition: opacity 0.2s;
}
.docs-nav a:hover { opacity: 1; color: #c0392b; }

.docs-content section {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.docs-content section:first-child { padding-top: 0; }
.docs-content h2 {
  font-size: 1.4rem; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.docs-content h3 {
  font-size: 1.05rem; font-weight: 600; color: #fff;
  margin: 24px 0 12px;
}
.docs-content p {
  font-size: 0.9rem; opacity: 0.75; line-height: 1.7;
  margin-bottom: 12px;
}
.docs-content ul, .docs-content ol {
  margin: 8px 0 16px 20px;
}
.docs-content li {
  font-size: 0.9rem; opacity: 0.75; line-height: 1.6;
  padding: 3px 0;
}
.docs-content a { color: #c0392b; text-decoration: underline; }
.docs-content code {
  background: rgba(0,0,0,0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.88rem;
}
.docs-table th {
  text-align: left;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}
.docs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0.75;
}

/* Docs callout box */
.docs-callout {
  padding: 20px 24px;
  background: rgba(192, 57, 43, 0.05);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-left: 4px solid #c0392b;
  border-radius: 8px;
  margin: 20px 0;
}
.docs-callout h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.docs-callout ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-callout li {
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.7;
  padding: 3px 0;
}
.docs-callout li strong {
  color: #fff;
  opacity: 1;
}

/* Docs notes box */
.docs-notes {
  padding: 20px 24px;
  background: rgba(46, 204, 113, 0.04);
  border: 1px solid rgba(46, 204, 113, 0.15);
  border-left: 4px solid #2ecc71;
  border-radius: 8px;
  margin: 20px 0;
}
.docs-notes h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.docs-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-notes li {
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.7;
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
}
.docs-notes li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #2ecc71;
  font-weight: 700;
}
.docs-notes a {
  color: #c0392b;
  text-decoration: underline;
}

/* ── Account Page ── */
.account-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 32px;
}
.account-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.account-tab:hover { color: rgba(255,255,255,0.8); }
.account-tab.active {
  background: rgba(192, 57, 43, 0.15);
  color: #c0392b;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.account-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.account-stat {
  padding: 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.account-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.4;
  margin-bottom: 6px;
}
.account-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-active { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.status-expiring { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.status-grace { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.status-expired { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }
.status-inactive { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }

.days-active { color: #2ecc71; }
.days-expiring { color: #f39c12; }
.days-grace { color: #f39c12; }
.days-expired { color: #e74c3c; }

/* Usage chart */
.usage-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding: 16px 0;
}
.usage-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.usage-bar {
  width: 100%;
  min-height: 3px;
  background: linear-gradient(to top, rgba(192, 57, 43, 0.6), rgba(192, 57, 43, 0.2));
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}
.usage-bar-wrap:hover .usage-bar {
  background: linear-gradient(to top, rgba(192, 57, 43, 0.9), rgba(192, 57, 43, 0.4));
}
.usage-bar-label {
  font-size: 0.65rem;
  opacity: 0.35;
  margin-top: 6px;
  white-space: nowrap;
}

/* Toast */
.account-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 10000;
  animation: toastIn 0.3s ease;
}
.account-toast.success { border-color: rgba(46, 204, 113, 0.3); }
.account-toast.error { border-color: rgba(231, 76, 60, 0.3); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── Responsive ── */
@media (max-width: 768px) {
  .support-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav {
    position: static;
    display: flex; flex-wrap: wrap; gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 20px;
  }
  .docs-nav h4 { width: 100%; margin-top: 12px; }
  .docs-nav ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .key-display { flex-direction: column; }
  .setup-step { flex-direction: column; gap: 12px; }
  .account-tabs { flex-wrap: wrap; }
  .account-tab { flex: 0 0 calc(50% - 4px); font-size: 0.82rem; padding: 8px 12px; }
  .account-stat-grid { grid-template-columns: 1fr; }
  .usage-bar-label { display: none; }
}
