/* GLOBAL */

body {
  margin: 0;
  background: #0F172A; /* dashboard background */
  font-family: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #E5E7EB;
}

/* Topbar */

.topbar {
  border-bottom: 1px solid #111827;
  background: #0F172A;
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-image: url("https://bytehosting.cloud/assets/images/icon.png");
  background-size: cover;
  background-position: center;
}

.logo-text {
  font-weight: 600;
  font-size: 0.98rem;
}

.topbar-divider {
  width: 1px;
  height: 18px;
  background: #1F2937;
}

.topbar-page {
  font-size: 0.9rem;
  color: #9CA3AF;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-link {
  color: #9CA3AF;
  font-size: 0.88rem;
  text-decoration: none;
}

.topbar-link:hover {
  color: #E5E7EB;
}

/* Page layout */

.page {
  min-height: calc(100vh - 50px);
}

.page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* Header text */

.page-header {
  margin-bottom: 18px;
}

.page-eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6B7280;
}

.page-title {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #F9FAFB;
}

.page-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #CBD5F5;
}

/* Card */

.card {
  background: #0B101E;              /* darker panel */
  border: 1px solid #475569;        /* like sidebar color */
  border-radius: 10px;
  padding: 18px 18px 20px;
}

/* Make the form area narrower and centred */
.card .form,
.card .summary-row,
.card .step-header,
.card .table,
.card .info-box,
.card .helper-box {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Step header */

.step-header {
  margin-bottom: 16px;
}

.step-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #0B1120;
  color: #CBD5E1;
  border: 1px solid #1F2937;
  margin-bottom: 6px;
}

.step-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #F9FAFB;
}

.step-text {
  margin: 0;
  font-size: 0.92rem;
  color: #CBD5E1;
}

.step-error {
  font-size: 0.9rem;
  color: #FECACA;
  background: #7F1D1D;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 10px auto;
  max-width: 720px;
}

/* Forms */

.form {
  margin-top: 10px;
}

.form-group {
  margin-bottom: 16px;
}

.label {
  display: block;
  font-size: 0.86rem;
  color: #E5E7EB;
  margin-bottom: 5px;
}

.input,
.textarea,
select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 6px;
  border: 1px solid #1F2937;
  background: #020617;
  color: #F9FAFB;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.input::placeholder,
.textarea::placeholder {
  color: #6B7280;
}

.input:focus,
.textarea:focus,
select:focus {
  border-color: #8B5CF6;
  outline: none;
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */

.btn-primary,
.btn-secondary {
  border-radius: 6px;
  padding: 9px 18px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary {
  background: rgba(139, 92, 246, 0.75);
  color: white;
}

.btn-primary:hover {
  background: #7C3AED;
}

.btn-secondary {
  background: #1E293B;
  color: #E5E7EB;
}

.btn-secondary:hover {
  background: #374151;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

/* Flash messages */

.flash-box {
  margin-bottom: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.flash {
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.flash-error {
  background: #7F1D1D;
  border: 1px solid #B91C1C;
}

.flash-success {
  background: #065F46;
  border: 1px solid #10B981;
}

/* Summary row */

.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summary-item {
  padding: 8px 10px;
  border-radius: 6px;
  background: #020617;
  border: 1px solid #1F2937;
}

.summary-label {
  font-size: 0.76rem;
  color: #9CA3AF;
  margin-bottom: 2px;
}

.summary-value {
  font-size: 0.9rem;
  color: #E5E7EB;
}

/* Radios */

.radio-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.radio-card {
  border-radius: 6px;
  border: 1px solid #1F2937;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  cursor: pointer;
  background: #020617;
}

.radio-card input {
  margin-top: 3px;
}

.radio-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #F9FAFB;
}

.radio-text {
  grid-column: 2;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.radio-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.radio-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

/* Helper boxes (PayPal/Stripe/CoinPayments + refund reason) */

.helper-box {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #020617;
  border: 1px solid #1F2937;
}

.helper-warning {
  background: #111827;
  border-color: #B91C1C;
}

.helper-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #F9FAFB;
}

.helper-text {
  font-size: 0.86rem;
  margin: 0;
  color: #CBD5E1;
}

/* Info box (under reason, above button) */

.info-box {
  background: #1E293B;   /* better contrast */
  border: 1px solid #334155;
  padding: 12px 14px;
  border-radius: 6px;
  color: #CBD5E1;
  font-size: 0.9rem;
  margin-top: 14px;
  margin-bottom: 18px; /* ensures spacing above button */
  box-sizing: border-box;
}

/* Tables (admin list) */

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid #1F2937;
  text-align: left;
}

.table th {
  background: #020617;
  color: #9CA3AF;
}

.table tr:hover td {
  background: #020617;
}

.table-link {
  color: #8B5CF6;
  text-decoration: none;
  font-size: 0.9rem;
}

.table-link:hover {
  text-decoration: underline;
}

/* Inline form (admin list filter) */

.form-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.form-group-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.label-inline {
  font-size: 0.85rem;
  color: #E5E7EB;
}

.input-inline {
  width: auto;
}

.info-warning {
  background: #7F1D1D;
  border: 1px solid #B91C1C;
  color: #FECACA;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-sizing: border-box;
}

/* Ensure warning/info boxes follow same width as content */
.info-warning,
.info-box,
.helper-box,
.step-error,
.flash-box {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
