/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 14px; color: #1e293b; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.rn-section {
  width: 100%;
}

.rn-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.rn-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  flex-wrap: wrap;
}

.rn-col {
  flex: 1;
  min-width: 0;
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.rn-tabs-header {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 16px;
  overflow-x: auto;
}

.rn-tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.rn-tab-btn.active {
  color: var(--primary, #0891b2);
  border-bottom-color: var(--primary, #0891b2);
}

.rn-tab-btn:hover:not(.active) { color: #334155; }

.rn-tab-panel { padding: 0; }

/* ── Typography ──────────────────────────────────────────────────────────── */
.rn-heading { margin: 0 0 8px; line-height: 1.3; }
.rn-text    { margin: 0 0 8px; line-height: 1.6; }

/* ── Alert ───────────────────────────────────────────────────────────────── */
.rn-alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid;
}
.rn-alert-info    { background: #eff6ff; color: #1e40af; border-color: #3b82f6; }
.rn-alert-success { background: #f0fdf4; color: #166534; border-color: #22c55e; }
.rn-alert-warning { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.rn-alert-danger  { background: #fef2f2; color: #991b1b; border-color: #ef4444; }

/* ── Button ──────────────────────────────────────────────────────────────── */
.rn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--primary, #0891b2);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}
.rn-button:hover  { opacity: 0.88; }
.rn-button:active { transform: scale(0.98); }

/* ── Form fields ─────────────────────────────────────────────────────────── */
.rn-field { margin-bottom: 16px; }

.rn-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.rn-input,
.rn-textarea,
.rn-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.rn-input:focus,
.rn-textarea:focus,
.rn-select:focus {
  outline: none;
  border-color: var(--primary, #0891b2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #0891b2) 15%, transparent);
}

.rn-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.rn-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.rn-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  user-select: none;
}
.rn-check-row input { accent-color: var(--primary, #0891b2); width: 15px; height: 15px; cursor: pointer; }

/* ── Divider / Spacer ────────────────────────────────────────────────────── */
.rn-divider { border: none; border-top: 1px solid #e2e8f0; margin: 16px 0; }
.rn-spacer  { display: block; }

/* ── Image ───────────────────────────────────────────────────────────────── */
.rn-image-wrap { width: 100%; overflow: hidden; }
.rn-image-wrap img { display: block; width: 100%; height: auto; }

/* ── Video ───────────────────────────────────────────────────────────────── */
.rn-video-wrap { width: 100%; }
.rn-video-wrap iframe { display: block; border: 0; }

/* ── Carousel ────────────────────────────────────────────────────────────── */
.rn-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  border-radius: 8px;
}

.rn-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.rn-carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.rn-carousel-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.rn-carousel-iframe,
.rn-carousel-video {
  width: 100%; height: 100%;
  display: block; border: none;
}

.rn-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: white; font-size: 14px; font-weight: 500;
}

.rn-carousel-prev,
.rn-carousel-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: white; border: none;
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.rn-carousel-prev:hover,
.rn-carousel-next:hover { background: rgba(0,0,0,0.75); }
.rn-carousel-prev { left: 10px; }
.rn-carousel-next { right: 10px; }

.rn-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}

.rn-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.rn-carousel-dot.active {
  background: white; transform: scale(1.25);
}

.rn-carousel-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #475569; font-size: 13px;
}

/* ── Captive Portal — animations ─────────────────────────────────────────── */
@keyframes cpFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Captive Portal — shared gradient background ─────────────────────────── */
.cp-page-wrap,
.login-page-wrapper,
.login-layout-wrapper,
.register-wrapper,
.plan-wrapper,
.status-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #164e63 0%, #0e7490 30%, #155e75 60%, #1e293b 100%);
  padding: 16px;
  box-sizing: border-box;
  color: #1e293b;
}

/* ── Captive Portal — Splash page ────────────────────────────────────────── */
.cp-container {
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
}

.portal-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
  border: 1px solid #e2e8f0;
  animation: cpFadeInUp 0.6s ease;
}

/* ── Captive Portal — Login ───────────────────────────────────────────────── */
.login-page-card {
  max-width: 400px;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px 26px;
  box-shadow: 0 18px 40px rgba(15,23,42,.18);
  animation: cpFadeInUp 0.6s ease;
}

.login-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-align: center;
  margin: 0 0 4px;
}

.login-subtitle {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 20px;
}

.login-form-group { margin-bottom: 14px; }

.login-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}

.login-input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}

.login-input:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8,145,178,.15);
}

.login-button {
  width: 100%;
  padding: 12px 16px;
  background: #0891b2;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  min-height: 42px;
  box-shadow: 0 6px 14px rgba(8,145,178,.32);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 6px;
}

.login-button:hover {
  background: #0e7490;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8,145,178,.35);
}

/* ── Captive Portal — Access Options ─────────────────────────────────────── */
.login-layout-container {
  max-width: 900px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px 26px;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  animation: cpFadeInUp 0.6s ease;
}

.login-layout-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px;
}

.login-layout-boxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .login-layout-boxes { flex-direction: row; gap: 18px; }
}

.login-layout-box {
  flex: 1;
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(15,23,42,.03);
}

.login-layout-box-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px;
}

.login-layout-box p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.5;
}

.login-layout-box-button { text-align: left; }

.login-layout-button {
  width: 100%;
  padding: 10px 18px;
  background: #0891b2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  box-shadow: 0 4px 8px rgba(8,145,178,.25);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.login-layout-button:hover {
  background: #0e7490;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(8,145,178,.3);
}

/* ── Captive Portal — Register ───────────────────────────────────────────── */
.register-card {
  max-width: 400px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  border: 1px solid #e2e8f0;
  animation: cpFadeInUp 0.6s ease;
}

.register-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 20px;
  gap: 0;
}

.register-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.register-progress-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.2s;
}

.register-progress-circle.active {
  background: #0891b2;
  border-color: #0891b2;
}

.register-progress-circle.completed {
  background: #0891b2;
  border-color: #0891b2;
}

.register-progress-circle.completed::after {
  content: '✓';
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.register-progress-line {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.register-progress-label {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 5px;
  font-weight: 500;
}

.register-progress-label.active    { color: #0891b2; font-weight: 600; }
.register-progress-label.completed { color: #0891b2; font-weight: 600; }

.register-title-section { margin-bottom: 16px; }

.register-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 3px;
}

.register-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.register-form-group { margin-bottom: 14px; }

.register-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}

.register-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.register-input-wrapper:focus-within {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8,145,178,.15);
}

.register-country-code {
  flex-shrink: 0;
  padding: 10px 10px;
  background: #f8fafc;
  font-size: 13px;
  color: #374151;
  border-right: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.register-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.register-input:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8,145,178,.15);
}

/* inside a wrapper the input has no border of its own */
.register-input-wrapper .register-input { border: none; box-shadow: none; }

.register-terms {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

.register-terms a { color: #0891b2; text-decoration: none; }
.register-terms a:hover { text-decoration: underline; }

.register-button {
  width: 100%;
  padding: 11px 18px;
  background: #0891b2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  box-shadow: 0 4px 8px rgba(8,145,178,.25);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.register-button:hover {
  background: #0e7490;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(8,145,178,.3);
}

/* ── Captive Portal — OTP ─────────────────────────────────────────────────── */
.otp-section { text-align: center; margin-bottom: 16px; }

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.otp-input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.15s;
}

.otp-input:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8,145,178,.15);
  transform: scale(1.06);
}

.otp-resend {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0;
}

.otp-resend a { color: #0891b2; text-decoration: none; }
.otp-resend a:hover { text-decoration: underline; }

.otp-timer { display: inline-block; font-weight: 600; color: #0891b2; }

/* ── Captive Portal — Password strength ──────────────────────────────────── */
.pw-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pw-input-wrapper:focus-within {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8,145,178,.15);
}

.pw-input-wrapper .register-input { border: none; box-shadow: none; }

.pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  padding: 0;
}

.pw-toggle:hover { color: #0891b2; }

.pw-strength { margin-top: -4px; margin-bottom: 16px; }

.pw-strength-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 5px;
}

.pw-strength-bars { display: flex; gap: 4px; }

.pw-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}

.pw-bar-weak   { background: #f97316; }
.pw-bar-fair   { background: #eab308; }
.pw-bar-good   { background: #22c55e; }
.pw-bar-strong { background: #0891b2; }

/* ── Captive Portal — Plan Selection ─────────────────────────────────────── */
.plan-card {
  max-width: 400px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  animation: cpFadeInUp 0.6s ease;
}

.plan-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 3px;
}

.plan-subtitle {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 20px;
}

.plan-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.plan-option {
  padding: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.plan-option:hover {
  border-color: #0891b2;
  background: #f0f9ff;
  transform: translateX(4px);
  box-shadow: 0 4px 8px rgba(8,145,178,.15);
}

.plan-option-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
}

.plan-option-description {
  font-size: 13px;
  color: #6b7280;
}

/* ── Captive Portal — Submit / common button ─────────────────────────────── */
.submit-btn {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: #0891b2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.submit-btn:hover {
  background: #0e7490;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(8,145,178,.35);
}

.cp-form-section { margin-top: 16px; }

/* ── Inline status message (injected by portal.js) ───────────────────────── */
.cp-status-msg {
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,.04);
  display: none;
}

/* ── Button loading state ─────────────────────────────────────────────────── */
button.loading,
.login-button.loading,
.register-button.loading,
.submit-btn.loading {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Plan details (injected by portal.js _displayPlanDetails) ─────────────── */
.plan-details { display: none; }
.plan-details.show { display: block; }

.plan-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.plan-summary-body { padding: 14px; }

.plan-status-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.plan-status-card.inactive { background: linear-gradient(135deg, #dc2626, #ef4444); }
.plan-status-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.plan-status-text-title   { font-size: 13px; font-weight: 600; }
.plan-status-text-subtitle { font-size: 11px; opacity: .85; }

.plan-primary-quota-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.plan-primary-quota-title { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; }
.plan-speed-chip {
  font-size: 11px; font-weight: 600; color: #0891b2;
  background: #e0f2fe; border-radius: 20px; padding: 2px 10px;
}
.plan-validity-text { font-size: 11px; color: #6b7280; margin-bottom: 10px; }

.plan-quota-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.plan-quota-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; text-align: center;
}
.plan-quota-label      { font-size: 9px;  font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.plan-quota-value-main { font-size: 16px; font-weight: 700; color: #111827; }
.plan-quota-value-sub  { font-size: 10px; color: #6b7280; }

.plan-progress-bar {
  height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 4px;
}
.plan-progress-fill { height: 100%; background: linear-gradient(90deg,#0891b2,#0e7490); border-radius: 3px; transition: width .4s ease; }
.plan-usage-text { font-size: 11px; color: #6b7280; text-align: right; }

/* ── Voucher form show/hide ───────────────────────────────────────────────── */
.voucher-form,
#voucherForm { display: none; }
.voucher-form.show,
#voucherForm.show { display: block; }

/* ── Captive Portal — Success ─────────────────────────────────────────────── */
.success-container { text-align: center; }

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
}

.success-message { text-align: center; }

.success-message h1 {
  font-size: 20px;
  font-weight: 700;
  color: #10b981;
  margin: 0 0 8px;
}

.success-message p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.info-box p {
  font-size: 13px;
  color: #475569;
  margin: 0 0 8px;
  line-height: 1.5;
}

.info-box p:last-child { margin-bottom: 0; }

/* ── Captive Portal — Status ──────────────────────────────────────────────── */
.status-card {
  max-width: 450px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  text-align: center;
  animation: cpFadeInUp 0.6s ease;
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.status-icon svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
}

.status-icon.failure {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.status-title {
  font-size: 24px;
  font-weight: 700;
  color: #10b981;
  text-align: center;
  margin: 0 0 8px;
}

.status-title.failure { color: #ef4444; }

.status-message {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  margin: 0 0 20px;
}

.reason-box {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.reason-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #92400e;
  margin-bottom: 6px;
}

.reason-text {
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
}

.status-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.3s;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.status-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(8,145,178,.35);
}

.status-btn.failure {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.status-btn.failure:hover {
  box-shadow: 0 8px 16px rgba(239,68,68,.35);
}
