:root {
  --df-red-dark: #780F1D;
  --df-red: #B11226;
  --df-red-bright: #E13B4D;
  --df-red-light: #F06A78;
  --df-ink: #111111;
  --df-muted: #62666f;
  --df-line: #e7e8eb;
  --df-soft: #f7f7f8;
  --df-white: #ffffff;
  --df-success: #176b3a;
  --df-warning: #8a5a00;
  --df-danger: #991b1b;
  --df-shadow: 0 18px 55px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--df-ink);
  background: var(--df-white);
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.df-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.df-topbar {
  border-bottom: 1px solid var(--df-line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.df-topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.df-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.df-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--df-red);
  color: white;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.df-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.df-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.df-btn:hover {
  transform: translateY(-1px);
}

.df-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.df-btn-primary {
  background: var(--df-red);
  color: white;
  box-shadow: 0 10px 24px rgba(177, 18, 38, 0.18);
}

.df-btn-dark {
  background: var(--df-ink);
  color: white;
}

.df-btn-outline {
  border: 1px solid var(--df-line);
  background: white;
  color: var(--df-ink);
}

.df-btn-danger {
  background: #fff1f2;
  color: var(--df-danger);
  border: 1px solid #fecdd3;
}

.df-btn-small {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.df-hero {
  padding: 76px 0 58px;
  background:
    radial-gradient(circle at 80% 15%, rgba(225, 59, 77, 0.11), transparent 34%),
    linear-gradient(180deg, #fff, #fafafa);
}

.df-eyebrow {
  margin: 0 0 14px;
  color: var(--df-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.df-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 52px;
  align-items: center;
}

.df-hero h1,
.df-auth-card h1,
.df-dashboard-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.df-hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--df-muted);
}

.df-hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.df-rule-card,
.df-card,
.df-auth-card,
.df-stat,
.df-panel {
  border: 1px solid var(--df-line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--df-shadow);
}

.df-rule-card {
  padding: 26px;
}

.df-rule-card h2,
.df-card h2,
.df-panel h2 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.df-rule-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.df-rule-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--df-line);
}

.df-rule-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.df-rule-list span {
  color: var(--df-muted);
}

.df-section {
  padding: 70px 0;
}

.df-section-soft {
  background: var(--df-soft);
}

.df-section-title {
  max-width: 760px;
  margin-bottom: 32px;
}

.df-section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.df-section-title p {
  margin: 14px 0 0;
  color: var(--df-muted);
  font-size: 17px;
}

.df-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.df-card {
  padding: 24px;
  box-shadow: none;
}

.df-card p {
  color: var(--df-muted);
  margin: 10px 0 0;
}

.df-number {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff1f2;
  color: var(--df-red);
  font-weight: 900;
  margin-bottom: 18px;
}

.df-form-card {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--df-line);
  border-radius: 22px;
  padding: 30px;
  background: white;
  box-shadow: var(--df-shadow);
}

.df-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.df-field {
  display: grid;
  gap: 7px;
}

.df-field-full {
  grid-column: 1 / -1;
}

.df-field label {
  font-weight: 800;
  font-size: 14px;
}

.df-field input,
.df-field select,
.df-field textarea {
  width: 100%;
  border: 1px solid #d5d7dc;
  border-radius: 10px;
  min-height: 46px;
  padding: 11px 12px;
  background: white;
  color: var(--df-ink);
  outline: none;
}

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

.df-field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.df-field input:focus,
.df-field select:focus,
.df-field textarea:focus {
  border-color: var(--df-red);
  box-shadow: 0 0 0 3px rgba(177, 18, 38, 0.08);
}

.df-help {
  color: var(--df-muted);
  font-size: 13px;
}

.df-message {
  display: none;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.df-message[data-state="success"] {
  display: block;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: var(--df-success);
}

.df-message[data-state="error"] {
  display: block;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: var(--df-danger);
}

.df-message[data-state="info"] {
  display: block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.df-auth-wrap {
  min-height: calc(100vh - 73px);
  display: grid;
  place-items: center;
  padding: 48px 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(177, 18, 38, 0.09), transparent 35%),
    var(--df-soft);
}

.df-auth-card {
  width: min(520px, 100%);
  padding: 34px;
}

.df-auth-card h1 {
  font-size: clamp(34px, 6vw, 52px);
}

.df-auth-card > p {
  color: var(--df-muted);
}

.df-dashboard {
  padding: 38px 0 72px;
  background: var(--df-soft);
  min-height: calc(100vh - 73px);
}

.df-dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.df-dashboard-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.df-dashboard-hero p {
  margin: 10px 0 0;
  color: var(--df-muted);
}

.df-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.df-stat {
  padding: 18px;
  box-shadow: none;
}

.df-stat-label {
  color: var(--df-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.df-stat-value {
  margin-top: 7px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.df-dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.df-panel {
  padding: 22px;
  box-shadow: none;
}

.df-panel + .df-panel {
  margin-top: 18px;
}

.df-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.df-copy-row input {
  min-width: 0;
  border: 1px solid var(--df-line);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--df-soft);
  color: var(--df-ink);
}

.df-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap;
}

.df-badge-pending {
  background: #fff7ed;
  color: var(--df-warning);
}

.df-badge-approved,
.df-badge-paid,
.df-badge-active {
  background: #ecfdf3;
  color: var(--df-success);
}

.df-badge-cancelled,
.df-badge-rejected,
.df-badge-suspended,
.df-badge-disabled {
  background: #fff1f2;
  color: var(--df-danger);
}

.df-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.df-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  font-size: 14px;
}

.df-table th,
.df-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--df-line);
  vertical-align: top;
}

.df-table th {
  color: var(--df-muted);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.df-table tr:last-child td {
  border-bottom: 0;
}

.df-empty {
  color: var(--df-muted);
  padding: 18px 0;
}

.df-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.df-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.df-admin-stack {
  display: grid;
  gap: 18px;
}

.df-admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--df-line);
  border-radius: 14px;
  background: #ffffff;
}

.df-admin-section-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--df-soft);
  color: var(--df-ink);
  font-size: 12px;
  font-weight: 800;
}

.df-admin-section-nav a:hover {
  background: #fff1f2;
  color: var(--df-red);
}

.df-admin-overview {
  margin-bottom: 18px;
}

.df-admin-priority-panel {
  border-color: #efb8c1;
  box-shadow: 0 16px 38px rgba(116, 12, 30, 0.08);
}

.df-admin-internal-panel {
  margin-top: 18px;
  background: #f8fafc;
  border-style: dashed;
}

.df-admin-disclosure {
  margin-top: 18px;
  border-top: 1px solid var(--df-line);
  padding-top: 14px;
}

.df-admin-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 850;
}

.df-admin-count {
  min-width: 30px;
  display: inline-grid;
  place-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
}

section[id] {
  scroll-margin-top: 88px;
}

.df-note {
  border-left: 3px solid var(--df-red);
  background: #fff8f9;
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  color: #4b252c;
  font-size: 14px;
}

.df-method-card,
.df-withdraw-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--df-line);
  border-radius: 12px;
  padding: 14px;
  background: var(--df-soft);
}

.df-method-card > div,
.df-withdraw-box > div {
  display: grid;
  gap: 3px;
}

.df-method-card strong,
.df-withdraw-box strong {
  font-size: 18px;
}

.df-withdraw-box {
  margin-top: 20px;
  background: #fff8f9;
  border-color: #f4cbd2;
}

.df-footer {
  border-top: 1px solid var(--df-line);
  padding: 26px 0 36px;
  color: var(--df-muted);
  font-size: 14px;
}

.df-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .df-hero-grid,
  .df-dashboard-grid,
  .df-admin-grid {
    grid-template-columns: 1fr;
  }

  .df-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .df-shell {
    width: min(100% - 22px, 1160px);
  }

  .df-topbar-inner {
    min-height: 64px;
  }

  .df-brand span:last-child {
    font-size: 14px;
  }

  .df-hero {
    padding: 48px 0 42px;
  }

  .df-section {
    padding: 50px 0;
  }

  .df-grid-3,
  .df-form-grid,
  .df-field-group,
  .df-stats {
    grid-template-columns: 1fr;
  }

  .df-form-card,
  .df-auth-card {
    padding: 22px;
  }

  .df-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .df-copy-row {
    grid-template-columns: 1fr;
  }

  .df-method-card,
  .df-withdraw-box {
    align-items: stretch;
    flex-direction: column;
  }

  .df-nav-actions .df-btn-outline {
    display: none;
  }
}
