:root {
  --df-ink: #291b4a;
  --df-muted: #826f72;
  --df-soft: #fff8f5;
  --df-panel: rgba(255, 255, 255, .92);
  --df-line: #f2dcd5;
  --df-pink: #ee6f91;
  --df-pink-2: #f98c7f;
  --df-green: #2f9e62;
  --df-blue: #4a90e2;
  --df-warn: #b85b39;
  --df-shadow: 0 18px 46px rgba(80, 46, 42, .10);
  --df-radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--df-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 216, 226, .48), transparent 28rem),
    linear-gradient(135deg, #fffaf7 0%, #fff4f5 52%, #f8fbff 100%);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.df-v2-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.df-v2-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 18px;
  border-right: 1px solid var(--df-line);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(18px);
}

.df-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.df-brand img { width: 104px; height: auto; }
.df-brand small { display: block; color: var(--df-muted); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.df-nav-group { margin-top: 18px; }
.df-nav-title {
  margin: 0 0 8px 10px;
  color: #aa8088;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.df-nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--df-ink);
  font-weight: 900;
  text-align: left;
}
.df-nav-link:hover,
.df-nav-link.is-active {
  background: linear-gradient(135deg, rgba(238, 111, 145, .14), rgba(249, 140, 127, .10));
  color: #b13f63;
}
.df-nav-icon { width: 22px; text-align: center; }

.df-v2-main { min-width: 0; }
.df-v2-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--df-line);
  background: rgba(255, 250, 247, .82);
  backdrop-filter: blur(18px);
}
.df-top-left,
.df-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.df-search {
  min-width: 260px;
  max-width: 420px;
  flex: 1;
  border: 1px solid var(--df-line);
  border-radius: 999px;
  background: #fff;
  padding: 11px 15px;
  color: var(--df-ink);
  outline: none;
}
.df-control {
  min-height: 42px;
  border: 1px solid var(--df-line);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  color: var(--df-ink);
  font-weight: 800;
}
.df-primary,
.df-soft-btn,
.df-danger-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 0;
  padding: 0 16px;
  font-weight: 950;
}
.df-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--df-pink), var(--df-pink-2));
  box-shadow: 0 12px 24px rgba(238, 111, 145, .22);
}
.df-soft-btn { color: #b13f63; background: #fff; border: 1px solid var(--df-line); }
.df-danger-btn { color: #b74343; background: #fff0f0; border: 1px solid #ffd1d1; }

.df-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--df-line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  font-weight: 900;
}
.df-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #63a938;
  color: #fff;
  font-weight: 950;
}

.df-v2-content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 26px 28px 44px;
}
.df-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.df-page-head h1 {
  margin: 0;
  font-family: Fraunces, serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.04;
}
.df-page-head p {
  margin: 8px 0 0;
  color: var(--df-muted);
  font-size: 15px;
  max-width: 720px;
}
.df-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--df-line);
  color: #bd5271;
  font-size: 13px;
  font-weight: 950;
}

.df-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.df-filter { min-width: 150px; }

.df-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.df-kpi,
.df-panel {
  border: 1px solid var(--df-line);
  border-radius: var(--df-radius);
  background: var(--df-panel);
  box-shadow: var(--df-shadow);
}
.df-kpi { padding: 18px; min-height: 136px; }
.df-kpi small {
  display: block;
  color: var(--df-muted);
  font-size: 13px;
  font-weight: 900;
}
.df-kpi strong {
  display: block;
  margin-top: 8px;
  font-family: Fraunces, serif;
  font-size: 30px;
  line-height: 1;
}
.df-kpi span {
  display: block;
  margin-top: 10px;
  color: var(--df-muted);
  font-size: 13px;
}
.df-kpi.is-good strong { color: var(--df-green); }
.df-kpi.is-warn strong { color: var(--df-warn); }
.df-kpi.is-blue strong { color: var(--df-blue); }

.df-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 16px;
}
.df-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.df-panel { padding: 18px; margin-bottom: 16px; }
.df-panel h2,
.df-panel h3 {
  margin: 0 0 12px;
  font-family: Fraunces, serif;
  font-size: 22px;
}
.df-panel p { color: var(--df-muted); }

.df-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid #f4e1db; background: #fff; }
.df-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.df-table th,
.df-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f6e7e2;
  text-align: left;
  vertical-align: top;
}
.df-table th {
  color: #a76976;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.df-table tr:last-child td { border-bottom: 0; }
.df-money { font-weight: 950; white-space: nowrap; }
.df-muted { color: var(--df-muted); }
.df-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff4dc;
  color: #9b6831;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.df-status.is-ok { background: #e9f8ef; color: #28784c; }
.df-status.is-bad { background: #fff0f0; color: #b74343; }
.df-status.is-info { background: #edf5ff; color: #2e6eac; }

.df-upload {
  border: 2px dashed #f4aebe;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  background: linear-gradient(135deg, #fff, #fff7f8);
}
.df-upload input { display: none; }
.df-upload label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--df-pink), var(--df-pink-2));
}

.df-empty,
.df-lock {
  border: 1px dashed #edcfc6;
  border-radius: 18px;
  padding: 24px;
  color: var(--df-muted);
  background: rgba(255, 255, 255, .7);
}
.df-lock {
  max-width: 680px;
  margin: 70px auto;
  text-align: center;
  box-shadow: var(--df-shadow);
}
.df-lock h1 { font-family: Fraunces, serif; margin: 0 0 10px; }

.df-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.df-login-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--df-line);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--df-shadow);
}
.df-login-card img { width: 120px; }
.df-login-card h1 { font-family: Fraunces, serif; margin: 14px 0 8px; }
.df-field { margin-top: 14px; }
.df-field label { display: block; margin: 0 0 6px; font-weight: 950; }
.df-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--df-line);
  border-radius: 14px;
  padding: 0 13px;
  outline: none;
}
.df-error { color: #be3f50; font-weight: 900; }

@media (max-width: 1060px) {
  .df-v2-shell { grid-template-columns: 1fr; }
  .df-v2-sidebar {
    position: static;
    height: auto;
    display: block;
    padding: 16px;
  }
  .df-nav-group { margin-top: 12px; }
  .df-nav-group .df-nav-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .df-nav-title { margin-left: 2px; }
  .df-v2-topbar { grid-template-columns: 1fr; padding: 14px 16px; }
  .df-search { min-width: 100%; max-width: none; }
  .df-v2-content { padding: 20px 16px 34px; }
  .df-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .df-grid-2, .df-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .df-brand img { width: 92px; }
  .df-page-head { display: block; }
  .df-page-head h1 { font-size: 28px; }
  .df-kpis { grid-template-columns: 1fr; }
  .df-kpi strong { font-size: 26px; }
  .df-top-right { align-items: stretch; }
  .df-control, .df-soft-btn, .df-primary, .df-profile { width: 100%; justify-content: center; }
}
