/* Premium refinements for NAKLO Control and My Account */

/* ---------- Shared ---------- */
.control-suite,
.account-page {
  --ui-green: #0f7a43;
  --ui-green-dark: #06462a;
  --ui-green-soft: #eef8f2;
  --ui-ink: #111813;
  --ui-muted: #687169;
  --ui-line: #dfe6e1;
  --ui-bg: #f5f7f5;
  --ui-card: #ffffff;
}

/* ---------- Command center ---------- */
.control-suite {
  background: var(--ui-bg);
}

.control-suite .control-sidebar {
  background: linear-gradient(180deg, #073321 0%, #05291b 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  width: 232px;
}

.control-suite .control-brand {
  padding: 20px 18px 16px;
}

.control-suite .control-logo img {
  max-height: 36px;
}

.control-suite .control-nav {
  padding: 0 12px 18px;
}

.control-suite .control-nav-group {
  margin-bottom: 14px;
}

.control-suite .control-nav-group > span {
  color: rgba(255,255,255,.5);
  font-size: 10px;
  letter-spacing: .08em;
  margin: 0 10px 7px;
}

.control-suite .control-nav-group a {
  border-radius: 9px;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  gap: 10px;
  min-height: 39px;
  padding: 8px 10px;
}

.control-suite .control-nav-group a:hover,
.control-suite .control-nav-group a.active {
  background: rgba(35, 166, 94, .24);
  color: #fff;
}

.control-suite .control-nav-group a i {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  font-size: 9px;
  height: 25px;
  width: 25px;
}

.control-suite .control-main {
  margin-left: 232px;
}

.control-suite .control-topbar {
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--ui-line);
  min-height: 72px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.control-suite .control-topbar-title span {
  color: var(--ui-green);
  font-size: 10px;
  letter-spacing: .06em;
}

.control-suite .control-topbar-title strong {
  font-size: 16px;
}

.control-suite .control-topbar-actions {
  gap: 8px;
}

.control-suite .control-topbar-actions a {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: 9px;
  color: var(--ui-ink);
  font-size: 11px;
  min-height: 36px;
  padding: 0 13px;
}

.control-suite .control-topbar-actions a:first-child {
  background: var(--ui-green);
  border-color: var(--ui-green);
  color: #fff;
}

.control-suite .control-content {
  margin: 0 auto;
  max-width: 1480px;
  padding: 24px 28px 54px;
}

.control-suite .ops-dashboard {
  gap: 16px;
}

.control-suite .ops-page-head {
  align-items: center;
  margin-bottom: 2px;
}

.control-suite .ops-page-head h1 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-top: 5px;
}

.control-suite .ops-period {
  background: #fff;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(19, 42, 27, .05);
  min-width: 160px;
  padding: 13px 15px;
}

.control-suite .ops-kpi-grid,
.control-suite .ops-review-grid {
  gap: 12px;
}

.control-suite .ops-kpi,
.control-suite .ops-review-card,
.control-suite .ops-panel,
.control-suite .ops-stage,
.control-suite .ops-bottom-strip article {
  border: 1px solid var(--ui-line);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(18, 43, 27, .045);
}

.control-suite .ops-kpi {
  min-height: 104px;
  padding: 15px;
}

.control-suite .ops-kpi i {
  background: var(--ui-green-soft);
  color: var(--ui-green-dark);
  height: 42px;
  width: 42px;
}

.control-suite .ops-kpi span,
.control-suite .ops-review-card span,
.control-suite .ops-panel .eyebrow {
  color: var(--ui-green-dark);
  font-size: 10px;
  letter-spacing: .03em;
}

.control-suite .ops-kpi strong {
  font-size: 27px;
}

.control-suite .ops-kpi small,
.control-suite .ops-review-card small {
  color: var(--ui-muted);
  font-size: 10px;
}

.control-suite .ops-review-card {
  min-height: 135px;
  padding: 16px 17px;
}

.control-suite .ops-review-card > div strong {
  font-size: 30px;
}

.control-suite .ops-review-card a,
.control-suite .ops-panel-head a {
  color: var(--ui-green-dark);
  font-size: 10px;
  font-weight: 850;
}

.control-suite .ops-panel {
  padding: 17px;
}

.control-suite .ops-panel-head h2,
.control-suite .ops-section-head h2 {
  font-size: 18px;
  letter-spacing: -.02em;
}

.control-suite .ops-table {
  font-size: 10px;
}

.control-suite .ops-table th {
  color: var(--ui-muted);
  font-size: 9px;
  letter-spacing: .04em;
  padding: 9px 8px;
}

.control-suite .ops-table td {
  padding: 10px 8px;
}

.control-suite .ops-status {
  border-radius: 999px;
  font-size: 9px;
  padding: 4px 7px;
}

.control-suite .ops-stage-grid {
  gap: 12px;
}

.control-suite .ops-stage {
  padding: 15px;
}

.control-suite .ops-stage h3 {
  font-size: 14px;
}

.control-suite .ops-stage p,
.control-suite .ops-stage dl,
.control-suite .ops-stage-list {
  font-size: 9px;
}

.control-suite .ops-bottom-strip {
  gap: 10px;
}

.control-suite .ops-bottom-strip article {
  padding: 14px;
}

.control-suite .ops-bottom-strip span {
  font-size: 9px;
}

.control-suite .ops-bottom-strip strong {
  font-size: 17px;
}

/* ---------- Account profile ---------- */
.account-page {
  margin: 0 auto;
  max-width: 1420px;
  padding: 20px clamp(16px, 3vw, 36px) 64px;
}

.account-page .account-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
  border: 1px solid var(--ui-line);
  border-radius: 17px;
  box-shadow: 0 12px 34px rgba(18, 43, 27, .05);
  min-height: 132px;
  padding: 22px 26px;
}

.account-page .account-hero h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -.04em;
  line-height: 1;
  margin-top: 7px;
}

.account-page .account-identity {
  background: #102018;
  border-radius: 13px;
  gap: 12px;
  min-width: 320px;
  padding: 13px 16px;
}

.account-page .profile-photo.large {
  background: var(--ui-green);
  border: 3px solid rgba(255,255,255,.17);
  height: 58px;
  width: 58px;
}

.account-page .account-identity strong {
  font-size: 15px;
}

.account-page .account-identity span,
.account-page .account-identity small {
  font-size: 10px;
}

.account-page .account-status-grid {
  gap: 12px;
  margin-top: 14px;
}

.account-page .account-status-grid article,
.account-page .account-hub,
.account-page .info-panel,
.account-page .form-panel {
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 43, 27, .045);
}

.account-page .account-status-grid article {
  min-height: 96px;
  padding: 16px 17px;
}

.account-page .account-status-grid article > span {
  color: var(--ui-green-dark);
  font-size: 10px;
  letter-spacing: .04em;
}

.account-page .account-status-grid strong {
  font-size: 27px;
}

.account-page .account-hub {
  margin-top: 14px;
  padding: 18px;
}

.account-page .section-heading {
  align-items: center;
  margin-bottom: 13px;
}

.account-page .section-heading h2 {
  font-size: 20px;
}

.account-page .account-hub-actions {
  gap: 8px;
}

.account-page .account-hub-actions .button {
  min-height: 38px;
  padding: 0 15px;
}

.account-page .account-mini-stats {
  gap: 9px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.account-page .account-mini-stats article {
  background: #f7faf8;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  color: var(--ui-ink);
  min-height: 82px;
  padding: 12px;
}

.account-page .account-mini-stats span {
  color: var(--ui-muted);
  font-size: 9px;
}

.account-page .account-mini-stats strong {
  color: var(--ui-green-dark);
  font-size: 21px;
}

.account-page .account-activity-grid {
  gap: 12px;
  margin-top: 13px;
}

.account-page .info-panel {
  padding: 15px;
}

.account-page .panel-heading h2,
.account-page .info-panel h2,
.account-page .form-panel h2 {
  font-size: 17px;
  letter-spacing: -.02em;
}

.account-page .panel-heading a {
  color: var(--ui-green-dark);
  font-size: 10px;
  font-weight: 800;
}

.account-page .compact-activity-list a,
.account-page .account-listing-row {
  border-top: 1px solid #edf0ed;
  padding: 10px 0;
}

.account-page .compact-activity-list strong {
  font-size: 11px;
}

.account-page .compact-activity-list span,
.account-page .compact-activity-list small {
  font-size: 9px;
}

.account-page .account-layout {
  gap: 14px;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, .55fr);
  margin-top: 14px;
}

.account-page .form-panel {
  padding: 18px;
}

.account-page fieldset {
  border: 1px solid var(--ui-line);
  border-radius: 11px;
  margin: 12px 0 0;
  padding: 13px;
}

.account-page legend {
  color: var(--ui-green-dark);
  font-size: 10px;
  font-weight: 850;
  padding: 0 6px;
}

.account-page label {
  font-size: 10px;
  gap: 5px;
}

.account-page input,
.account-page select,
.account-page textarea {
  border: 1px solid #d8dfda;
  border-radius: 8px;
  font-size: 11px;
  min-height: 38px;
  padding: 8px 10px;
}

.account-page .account-side {
  gap: 12px;
}

.account-page .account-facts div {
  padding: 8px 0;
}

.account-page .account-facts dt,
.account-page .account-facts dd,
.account-page .account-checklist li {
  font-size: 10px;
}

@media (max-width: 1180px) {
  .control-suite .ops-kpi-grid,
  .control-suite .ops-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .control-suite .control-sidebar {
    width: 76px;
  }

  .control-suite .control-main {
    margin-left: 76px;
  }

  .control-suite .control-brand > span,
  .control-suite .control-logo span,
  .control-suite .control-nav-group > span,
  .control-suite .control-nav-group a:not(.active) { font-size: 0; }

  .control-suite .control-nav-group a {
    justify-content: center;
    padding: 8px;
  }

  .control-suite .control-topbar {
    padding: 0 16px;
  }

  .control-suite .control-content {
    padding: 18px 16px 42px;
  }

  .control-suite .control-topbar-actions a:nth-child(2) {
    display: none;
  }

  .account-page .account-hero {
    align-items: stretch;
    gap: 16px;
    flex-direction: column;
  }

  .account-page .account-identity {
    min-width: 0;
  }

  .account-page .account-layout,
  .account-page .account-activity-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .control-suite .control-sidebar {
    display: none;
  }

  .control-suite .control-main {
    margin-left: 0;
  }

  .control-suite .control-topbar-title {
    display: none;
  }

  .control-suite .control-topbar-actions {
    width: 100%;
  }

  .control-suite .control-topbar-actions a {
    flex: 1;
    justify-content: center;
  }

  .control-suite .ops-kpi-grid,
  .control-suite .ops-review-grid,
  .control-suite .ops-table-grid,
  .control-suite .ops-money-grid,
  .control-suite .ops-stage-grid,
  .control-suite .ops-bottom-strip {
    grid-template-columns: 1fr;
  }

  .control-suite .ops-page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .control-suite .ops-period {
    min-width: 0;
  }

  .account-page {
    padding: 12px 12px 48px;
  }

  .account-page .account-hero {
    border-radius: 13px;
    padding: 17px;
  }

  .account-page .account-status-grid,
  .account-page .account-mini-stats,
  .account-page .form-row {
    grid-template-columns: 1fr;
  }

  .account-page .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .account-page .account-hub-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
