:root {
  --bg: #f8f8f8;
  --bg-soft: #fcfcfc;
  --card: #ffffff;
  --text: #111111;
  --muted: #7a7a7a;
  --line: #e7e7e7;
  --line-dark: #d8d8d8;
  --primary: #111111;
  --primary-soft: #f3f3f3;
  --accent: #7c3aed;
  --accent-soft: #fcf8ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --warning: #d97706;
  --warning-soft: #fff7ed;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .04);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .06);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.hidden {
  display: none !important;
}

/* ======================================
   LAYOUT GERAL
====================================== */

.page-wrap {
  min-height: 100vh;
  background: var(--bg);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.page-section {
  padding: 32px 0;
}

.page-head {
  margin-bottom: 26px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
}

.page-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ======================================
   AUTH / PÁGINAS PÚBLICAS
====================================== */

.auth-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  background: #fff;
}

.auth-card {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #fff;
}

.auth-left {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .35)),
    url('../images/background.png') center center / cover no-repeat;
}

.auth-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, .42));
}

.quote-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  z-index: 2;
}

.auth-left-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  color: #fff;
  z-index: 2;
}

.quote-link {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  margin-bottom: 14px;
}

.quote-text {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.quote-author {
  font-size: 14px;
  opacity: .9;
}

.quote-progress {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.quote-progress span {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
}

.quote-progress span.active {
  background: #ff4d8d;
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  background: #fff;
}

.auth-form-wrap {
  width: 100%;
  max-width: 520px;
}

.top-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 30px;
}

.top-tab {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.top-tab:hover {
  background: #f4f4f4;
}

.top-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-head {
  text-align: center;
  margin-bottom: 30px;
}

.panel-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.panel-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.form-separator {
  margin: 28px 0 18px;
}

.form-separator-line {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin-bottom: 16px;
}

.form-separator-text {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.form-separator-subtext {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.tab-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input,
textarea.input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: .2s ease;
}

textarea.input {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.input::placeholder,
textarea.input::placeholder {
  color: #9a9a9a;
}

.input:focus,
textarea.input:focus {
  border-color: #ccc;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .03);
}

.input.input-error {
  border-color: #f5b5b5;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06);
}

.input.input-ok {
  border-color: #b7e4c7;
  background: #f8fff9;
}

.mini-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

/* ======================================
   CAPTCHA / OTP
====================================== */

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.captcha-box {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #fff;
}

.refresh-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  transition: .2s ease;
}

.refresh-btn:hover {
  background: #fafafa;
}

.otp-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 20px;
}

.otp-input {
  width: 56px;
  height: 56px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  outline: none;
  transition: .2s ease;
}

.otp-input:focus {
  border-color: #d8b4fe;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .10);
}

/* ======================================
   PASSWORD STRENGTH
====================================== */

.password-strength {
  margin: 4px 0 10px;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fafafa;
}

.strength-bar {
  width: 100%;
  height: 8px;
  background: #ebebeb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.strength-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  transition: width .25s ease, background .25s ease;
  background: #d1d5db;
}

.strength-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.strength-text {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.password-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.password-rules li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}

.password-rules li::before {
  content: "○";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  color: #9ca3af;
}

.password-rules li.ok {
  color: #166534;
}

.password-rules li.ok::before {
  content: "✓";
  color: #16a34a;
  font-weight: 700;
}

.password-rules li.fail {
  color: #991b1b;
}

.password-rules li.fail::before {
  content: "•";
  color: #dc2626;
  font-weight: 700;
}

/* ======================================
   BOTÕES
====================================== */

.main-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 0 18px;
  transition: .2s ease;
}

.main-btn {
  width: 100%;
  margin-top: auto;
}

.main-btn:hover,
.btn:hover {
  opacity: .94;
}

.main-btn:disabled,
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-light {
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
}

.btn-light:hover {
  background: #fafafa;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-ok {
  background: var(--ok);
  color: #fff;
}

.btn-soft {
  background: #f4f4f4;
  color: #111;
  border: 1px solid #ececec;
}

.btn-sm {
  height: 38px;
  min-width: auto;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ======================================
   VOLTAR
====================================== */

.step-back {
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.step-back svg {
  width: 24px;
  height: 24px;
}

/* ======================================
   CARDS DE ESCOLHA / CATEGORIAS
====================================== */

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.choice-card {
  position: relative;
  min-height: 128px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  transition: .2s ease;
}

.choice-card:hover {
  border-color: #cfcfcf;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.choice-card input {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: #7c3aed;
}

.choice-card:has(input:checked) {
  border-color: #d9b8ff;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, .12);
  background: #fcf8ff;
}

.choice-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.choice-icon svg {
  width: 20px;
  height: 20px;
}

.choice-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.choice-sub {
  font-size: 12px;
  color: #7a7a7a;
  line-height: 1.45;
}

.category-grid.compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.category-chip {
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
  transition: .2s ease;
}

.category-chip input {
  accent-color: #111;
}

.category-chip span {
  font-size: 14px;
  font-weight: 600;
}

.category-chip:hover {
  background: #fafafa;
}

/* ======================================
   SELECT2
====================================== */

.select2-container .select2-selection--single {
  height: 52px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  background: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 50px !important;
  padding-left: 12px !important;
  color: #111 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 50px !important;
  right: 10px !important;
}

.select2-dropdown {
  z-index: 9999;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
}

/* ======================================
   FEEDBACK / ALERTAS / MENSAGENS
====================================== */

.feedback {
  display: none;
  position: relative;
  margin-top: 10px;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  border: 1px solid transparent;
}

.feedback.ok,
.feedback.erro,
.feedback.warn {
  display: block;
}

.feedback.ok::before,
.feedback.erro::before,
.feedback.warn::before {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 700;
}

.feedback.ok {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.feedback.ok::before {
  content: "✓";
  color: #16a34a;
}

.feedback.erro {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

.feedback.erro::before {
  content: "!";
  color: #dc2626;
}

.feedback.warn {
  color: #92400e;
  background: #fff7ed;
  border-color: #fed7aa;
}

.feedback.warn::before {
  content: "!";
  color: #d97706;
}

.mensagem {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  display: none;
  z-index: 9999;
  box-shadow: var(--shadow-md);
}

.sucesso {
  background: #16a34a;
}

.erro {
  background: #dc2626;
}

/* ======================================
   NAV ADMIN
====================================== */

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
}

.admin-sidebar {
  background: #111;
  color: #fff;
  padding: 24px 18px;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.admin-brand {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 26px;
}

.admin-brand small {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: .2s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, .08);
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-topbar-left h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.admin-topbar-left p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f6f6f6;
  font-size: 13px;
  font-weight: 600;
}

.admin-content {
  padding: 24px;
}

/* ======================================
   CARDS / STATS
====================================== */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.card-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.card-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.card-body {
  padding: 20px;
}

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

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ======================================
   FILTROS / TOOLBAR
====================================== */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filters-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}

.filters-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr auto auto;
  gap: 12px;
  align-items: end;
}

.filters-grid .field {
  margin: 0;
}

/* ======================================
   TABELAS
====================================== */

.table-wrap {
  width: 100%;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.table th {
  background: #fafafa;
  color: #444;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 800;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  vertical-align: top;
}

.table tbody tr:hover {
  background: #fcfcfc;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-ok {
  background: #dcfce7;
  color: #166534;
}

.badge-off {
  background: #f3f4f6;
  color: #4b5563;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #ffedd5;
  color: #9a3412;
}

.badge-soft {
  background: #ede9fe;
  color: #5b21b6;
}

/* ======================================
   FORMULÁRIOS ADMIN
====================================== */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.checkbox-row input {
  accent-color: #111;
}

/* ======================================
   LOGIN ADMIN
====================================== */

.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #fafafa, #f3f3f3);
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 30px;
}

.admin-login-head {
  text-align: center;
  margin-bottom: 24px;
}

.admin-login-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.admin-login-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ======================================
   LANDING / PÁGINA PÚBLICA SIMPLES
====================================== */

.hero-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #ffffff, #f7f7f7);
}

.hero-card {
  width: 100%;
  max-width: 780px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.4px;
}

.hero-card p {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ======================================
   EMPTY STATE
====================================== */

.empty-state {
  background: #fff;
  border: 1px dashed #ddd;
  border-radius: 18px;
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* ======================================
   MODAIS SIMPLES
====================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.modal-body {
  padding: 20px;
}

.modal-foot {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ======================================
   RESPONSIVO
====================================== */

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .auth-left {
    min-height: 300px;
  }

  .auth-right {
    padding: 40px 25px;
  }

  .auth-form-wrap {
    max-width: 100%;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    position: relative;
  }

  .admin-content {
    padding: 18px;
  }

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

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-right {
    padding: 26px 18px;
    align-items: flex-start;
  }

  .auth-left {
    min-height: 220px;
  }

  .panel-head h1 {
    font-size: 28px;
  }

  .page-head h1,
  .admin-login-head h1,
  .hero-card h1 {
    font-size: 28px;
  }

  .hero-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

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

  .category-grid.compact {
    grid-template-columns: 1fr;
  }

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

  .otp-group {
    gap: 8px;
  }

  .otp-input {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .password-strength {
    padding: 12px 14px;
  }

  .password-rules li {
    font-size: 12px;
  }

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

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-left,
  .toolbar-right {
    width: 100%;
  }

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

  .admin-topbar {
    padding: 14px 16px;
  }

  .admin-topbar-left h1 {
    font-size: 20px;
  }

  .card-head,
  .card-body {
    padding: 16px;
  }

  .admin-login-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
}