* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f13; color: #e8e8ec; min-height: 100vh;
  display: flex; justify-content: center; align-items: center;
}
.container { max-width: 520px; width: 92%; padding: 32px 0; }
.brand {
  font-size: 13px; letter-spacing: 4px; color: #00c853; font-weight: 700;
  margin-bottom: 24px; text-align: center;
}
h1 { font-size: 26px; text-align: center; margin-bottom: 12px; }
.sub { color: #888; text-align: center; font-size: 15px; margin-bottom: 28px; line-height: 1.5; }
.muted { color: #666; text-align: center; font-size: 14px; }
.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; color: #00c853; }
.green { color: #00c853; }

/* Entry tabs */
.entry-tabs {
  display: flex; gap: 12px; margin-bottom: 32px;
}
.tab-btn {
  flex: 1; padding: 20px 16px; border: 1px solid #2a2a35; border-radius: 14px;
  background: #1a1a24; color: #888; cursor: pointer; text-align: center;
  transition: all 0.2s; font-family: inherit;
}
.tab-btn:hover { border-color: #00c853; color: #e8e8ec; }
.tab-btn.active {
  border-color: #00c853; background: #0a1f0a; color: #e8e8ec;
  box-shadow: 0 0 16px rgba(0,200,83,0.15);
}
.tab-icon { display: block; font-size: 28px; margin-bottom: 6px; }
.tab-lang { display: block; font-size: 15px; font-weight: 600; }
.tab-lang-ar { display: block; font-size: 13px; color: #666; margin-top: 2px; direction: rtl; }
.panel { display: block; }
.panel h1 { font-size: 22px; }
.error-msg {
  margin-top: 12px; padding: 12px; background: #2a0a0a; border: 1px solid #c85353;
  border-radius: 8px; color: #ff6b6b; font-size: 13px; text-align: center;
}

/* Forms */
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 14px 16px; margin-bottom: 12px; border: 1px solid #2a2a35;
  border-radius: 10px; background: #1a1a24; color: #e8e8ec; font-size: 15px;
  outline: none; transition: border 0.2s;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: #00c853;
}
.lead-form textarea { min-height: 80px; resize: vertical; }
.lead-form select option { background: #1a1a24; }

/* Buttons */
.btn {
  display: inline-block; width: 100%; padding: 16px; margin-top: 8px;
  background: #00c853; color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
  text-align: center; transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Cards */
.card {
  background: #1a1a24; border-radius: 16px; padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Badge */
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 16px;
  border-radius: 20px; margin-bottom: 20px; text-align: center;
}
.badge.live { background: #00c853; color: #fff; animation: pulse 2s infinite; }
.badge.paid { background: #00c853; color: #fff; }
.live-badge {
  display: block; width: fit-content; margin: 0 auto 20px;
  font-size: 18px; font-weight: 800; padding: 10px 32px;
  border-radius: 30px; background: #00c853; color: #fff;
  text-align: center; letter-spacing: 1px;
  animation: pulse 1.5s infinite; box-shadow: 0 0 20px rgba(0,200,83,0.4);
}

@keyframes pulse { 0%{opacity:1} 50%{opacity:0.6} 100%{opacity:1} }

/* Spinner */
.spinner {
  width: 48px; height: 48px; border: 4px solid #2a2a35;
  border-top-color: #00c853; border-radius: 50%; animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Status card */
.status-card {
  background: #1a1a24; border-radius: 12px; padding: 20px; margin: 20px 0;
}
.status-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  border-bottom: 1px solid #2a2a35; font-size: 14px;
}
.status-row:last-child { border-bottom: none; }
.status-row .label { color: #888; }
.status-row .value { color: #e8e8ec; font-weight: 500; }

/* Info box */
.info-box {
  background: #252530; border-radius: 10px; padding: 16px; margin: 16px 0;
  font-size: 14px; line-height: 2;
}
.info-box .masked { color: #666; font-style: italic; }

/* TOS */
.tos-section { margin: 16px 0; border: 1px solid #2a2a35; border-radius: 12px; overflow: hidden; }
.tos-header {
  background: #1a1a24; padding: 12px 16px; font-size: 13px; font-weight: 700;
  color: #00c853; letter-spacing: 0.5px; border-bottom: 1px solid #2a2a35;
}
.tos-scroll {
  max-height: 240px; overflow-y: auto; padding: 16px;
  background: #0f0f13; font-size: 12px; color: #aaa; line-height: 1.7;
}
.tos-scroll p { margin-bottom: 12px; }
.tos-scroll p:last-child { margin-bottom: 0; }
.tos-scroll strong { color: #e8e8ec; }
.tos-accept-row { padding: 12px 16px; background: #1a1a24; border-top: 1px solid #2a2a35; }
.btn-accept { background: #2a2a35; color: #00c853; font-size: 13px; padding: 12px; }
.btn-accept:hover { background: #353545; }
.tos-accepted-badge {
  padding: 12px 16px; font-size: 14px; font-weight: 700; color: #00c853;
  background: #0a1f0a; text-align: center; letter-spacing: 0.5px;
}

/* Detail text */
.detail { color: #888; font-size: 14px; margin-bottom: 20px; text-align: center; }

/* Foot note */
.footnote { font-size: 12px; color: #666; text-align: center; margin-top: 16px; }

/* Invoice */
.invoice-card { text-align: left; }
.invoice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.invoice-header .brand { margin-bottom: 0; }
.divider { height: 2px; background: #00c853; margin: 16px 0; }
.section { margin: 16px 0; }
.section h3 { font-size: 12px; color: #888; letter-spacing: 2px; margin-bottom: 6px; }
.section p { font-size: 14px; color: #e8e8ec; line-height: 1.6; }
.invoice-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.invoice-table th { background: #00c853; color: #fff; padding: 10px; font-size: 12px; text-align: center; }
.invoice-table td { padding: 10px; text-align: center; border: 1px solid #2a2a35; font-size: 13px; }
.invoice-table tfoot td { font-weight: 700; background: #00c853; color: #fff; border: none; }
.status-badge { font-size: 13px; font-weight: 700; color: #00c853; text-align: center; margin: 12px 0; }
.invoice-actions { display: flex; gap: 12px; margin: 20px 0; }
.invoice-actions .btn { flex: 1; }
.footer-text { font-size: 11px; color: #555; text-align: center; margin-top: 20px; }

/* Dashboard */
.purchase-card {
  background: #1a1a24; border-radius: 12px; padding: 20px; margin-bottom: 12px;
}
.purchase-card h3 { font-size: 16px; margin-bottom: 8px; }
.purchase-card p { font-size: 13px; color: #aaa; line-height: 1.6; }
.purchase-card a { color: #00c853; text-decoration: none; }
