:root {
  --bg: #08111f;
  --bg2: #122238;
  --panel: rgba(8, 15, 29, 0.88);
  --line: rgba(255, 255, 255, 0.14);
  --text: #eef5ff;
  --muted: #b2c5df;
  --accent: #f3c56f;
  --accent2: #ffdca2;
  --ok: #9ce8c2;
  --warn: #ffc2ad;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(243, 197, 111, 0.2), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(135, 176, 255, 0.2), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg2));
}

.connect-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.connect-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(5, 12, 24, 0.7);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.top-links {
  display: flex;
  gap: 16px;
}

.top-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.hero {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(140deg, rgba(20, 34, 56, 0.92), rgba(6, 11, 20, 0.92));
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--accent2);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.hero p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}

.split-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--panel);
}

.card h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
}

.card-copy {
  margin: 8px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select,
textarea,
.stripe-mount {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.78rem 0.86rem;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(243, 197, 111, 0.4);
  border-color: transparent;
}

select {
  color-scheme: dark;
}

select option {
  background: #0f1f33;
  color: var(--text);
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 500;
}

.checkbox-row input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #111827;
}

.status {
  min-height: 1.4em;
  margin: 0;
  font-weight: 700;
  color: var(--ok);
}

.status.error {
  color: var(--warn);
}

.cashapp {
  display: inline-flex;
  margin-bottom: 16px;
  text-decoration: none;
  color: #0b1a0e;
  background: #5cf58a;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.setup-note,
.fees-note {
  color: var(--muted);
  line-height: 1.6;
}

.fees-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

@media (max-width: 940px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

.data-table-wrap {
  display: grid;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.data-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.request-filter,
.request-action-form {
  display: flex;
  align-items: end;
  gap: 8px;
}

.request-filter {
  margin-bottom: 14px;
}

.request-action-form {
  margin-top: 10px;
}

.request-action-form input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
}

.request-action-form .btn {
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
}

.manual-entry-form {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.badge {
  display: inline-block;
  margin: 4px 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(243, 197, 111, 0.18);
  color: var(--accent2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge-succeeded {
  background: rgba(156, 232, 194, 0.18);
  color: var(--ok);
}

.badge-failed {
  background: rgba(255, 194, 173, 0.18);
  color: var(--warn);
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.gallery-admin-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.gallery-admin-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

@media (max-width: 560px) {
  .connect-shell {
    width: min(100% - 16px, 1180px);
  }

  .connect-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
