.nav-item {
  text-decoration: none;
}

.sidebar-logout {
  margin: 0;
}

.account-role {
  margin-left: auto;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  color: #8e9ab3 !important;
  font-size: 8px !important;
  font-weight: 700;
}

.help-card a {
  color: #a997ff;
  font-size: 10px;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(25, 169, 116, .1);
}

.php-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 18px;
  align-items: start;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.kpi-card.featured {
  border-color: transparent;
  background: linear-gradient(145deg, #1d2946, var(--navy));
  color: #fff;
  box-shadow: 0 18px 35px rgba(17, 26, 46, .15);
}

.kpi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.featured .kpi-card-top {
  color: #a9b3c8;
}

.kpi-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--purple);
}

.featured .kpi-icon {
  background: rgba(255, 255, 255, .09);
  color: #b3a6ff;
}

.kpi-value {
  display: block;
  margin-top: 15px;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.7px;
}

.kpi-foot {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 8px;
}

.php-form {
  display: grid;
  gap: 17px;
}

.form-section {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 17px;
}

.step-number {
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.form-section-title h2 {
  margin: 1px 0 3px;
  font-size: 13px;
}

.form-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.field input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed #cbd1de;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
}

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

.radio-card {
  position: relative;
  display: flex;
  min-height: 105px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.radio-card:has(input:checked) {
  border-color: var(--purple);
  background: #faf9ff;
  box-shadow: 0 0 0 3px rgba(115, 87, 255, .08);
}

.radio-card input {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: var(--purple);
}

.radio-card strong {
  font-size: 10px;
}

.radio-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
  font-weight: 620;
}

.check-chip:has(input:checked) {
  border-color: rgba(115, 87, 255, .3);
  background: var(--purple-soft);
  color: var(--purple);
}

.check-chip input {
  accent-color: var(--purple);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 4px;
}

.table-name {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 10px;
}

.table-name-mark {
  display: grid;
  width: 37px;
  height: 37px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
}

.table-name strong,
.table-name small {
  display: block;
}

.table-name small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 8px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.empty-panel {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.empty-panel-icon {
  display: grid;
  width: 55px;
  height: 55px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 17px;
  background: var(--purple-soft);
  color: var(--purple);
}

.empty-panel h3 {
  margin: 0;
  font-size: 13px;
}

.empty-panel p {
  max-width: 360px;
  margin: 7px auto 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.bank-details {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.bank-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
}

.bank-detail small,
.bank-detail strong {
  display: block;
}

.bank-detail small {
  color: #7f8ba6;
  font-size: 7px;
  text-transform: uppercase;
}

.bank-detail strong {
  margin-top: 4px;
  font-size: 9px;
}

.bank-detail button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.creative-preview-panel {
  position: sticky;
  top: calc(var(--topbar) + 18px);
}

.server-ad-preview {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  padding: 20px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 85% 15%, rgba(115, 87, 255, .26), transparent 32%),
    linear-gradient(145deg, #fff, #f4f2ff);
}

.server-ad-preview::after {
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  border-radius: 42% 58% 63% 37%;
  background: linear-gradient(145deg, #8066ff, #ff8074);
  content: "";
  transform: rotate(-14deg);
}

.server-ad-preview-copy {
  position: relative;
  z-index: 1;
  max-width: 70%;
  margin-top: 35px;
}

.server-ad-preview-copy h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
}

.server-ad-preview-copy p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.server-ad-preview-copy span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.policy-copy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.policy-copy h2 {
  margin-top: 24px;
  color: var(--text);
  font-size: 15px;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(380px, .85fr) minmax(500px, 1.15fr);
  background: var(--bg);
}

.auth-brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px;
  background:
    radial-gradient(circle at 25% 12%, rgba(115, 87, 255, .34), transparent 27%),
    linear-gradient(145deg, #151f36, #0c1323);
  color: #fff;
}

.auth-brand-panel::after {
  position: absolute;
  right: -150px;
  bottom: -160px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  content: "";
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.auth-logo strong {
  font-size: 22px;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.auth-brand-copy h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -2.8px;
  line-height: .98;
}

.auth-brand-copy h1 span {
  color: #9c89ff;
}

.auth-brand-copy p {
  max-width: 470px;
  margin: 20px 0 0;
  color: #aeb8cb;
  font-size: 13px;
  line-height: 1.7;
}

.auth-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.auth-features span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
  color: #c3cbda;
  font-size: 9px;
}

.auth-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 35px;
}

.auth-card {
  width: min(100%, 455px);
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.auth-card h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.7px;
}

.auth-card > p {
  margin: 8px 0 23px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.auth-card .field {
  margin-bottom: 14px;
}

.auth-card .button {
  width: 100%;
  margin-top: 4px;
}

.auth-switch {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.auth-switch a {
  color: var(--purple);
  font-weight: 700;
}

.auth-note {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
  padding: 10px;
  border-radius: 10px;
  background: #fff6df;
  color: #8d641a;
  font-size: 9px;
  line-height: 1.5;
}

.chart-svg {
  width: 100%;
  height: 245px;
}

.chart-svg .grid {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-svg .area {
  fill: rgba(115, 87, 255, .11);
}

.chart-svg .line {
  fill: none;
  stroke: var(--purple);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-svg .dot {
  fill: #fff;
  stroke: var(--purple);
  stroke-width: 2;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .php-grid {
    grid-template-columns: 1fr;
  }

  .creative-preview-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-main {
    min-height: 100vh;
    padding: 18px;
  }

  .live-pill {
    display: none;
  }
}

@media (max-width: 620px) {
  .kpi-grid,
  .radio-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px 17px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }
}
