:root {
  --navy: #07182d;
  --navy-2: #0b2747;
  --gold: #c49a3a;
  --gold-soft: #f5ead0;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e2ec;
  --bg: #f5f7fa;
  --white: #fff;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 18px 48px rgba(7, 24, 45, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; min-height: 100%; overflow-x: hidden; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button, input, select, textarea { font: inherit; }
button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 40px;
  padding: 0 13px;
  cursor: pointer;
}
button:hover { border-color: var(--gold); }
button:disabled { opacity: .58; cursor: wait; }
.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.24); }
.hidden { display: none !important; }
.edoc-app { min-height: 100vh; }

.auth-screen {
  min-height: 100vh;
  display: block;
  padding: 0;
  background:
    linear-gradient(180deg, #fff 0, #f7f9fc 48%, #eef3f8 100%);
  color: var(--ink);
}
.public-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 52px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(7,24,45,.06);
  backdrop-filter: blur(14px);
}
.public-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-weight: 950; min-width: 0; }
.public-logo img { width: 82px; max-width: 28vw; height: auto; object-fit: contain; }
.public-logo span { overflow-wrap: anywhere; }
.public-header nav { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.public-header nav a {
  color: #344054;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius);
}
.public-header nav a:hover { color: var(--navy); background: #f1f5f9; }
.language-toggle { background: var(--navy); color: #fff; border-color: var(--navy); min-width: 46px; }
.auth-card, .public-section, .verify-strip { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 440px);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  padding: clamp(30px, 6vw, 82px) clamp(16px, 5vw, 72px) clamp(18px, 4vw, 42px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7,24,45,.98), rgba(11,39,71,.95) 58%, rgba(196,154,58,.52)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.16), transparent 24%),
    var(--navy);
}
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.akf-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy);
  font-weight: 950;
}
.akf-mark.small { width: 42px; height: 42px; color: #fff; background: var(--navy); }
.hero-copy p, .hero-copy h1, .hero-copy span { margin: 0; }
.hero-copy p, .section-title p { color: var(--gold-soft); font-weight: 900; text-transform: uppercase; font-size: 13px; }
.hero-copy h1 { max-width: 900px; font-size: clamp(34px, 5vw, 66px); line-height: 1.05; letter-spacing: 0; overflow-wrap: anywhere; }
.hero-copy > span { max-width: 760px; color: rgba(255,255,255,.82); font-size: clamp(16px, 2vw, 19px); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.link-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}
.link-button.primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.ghost-light { background: rgba(255,255,255,.08); }
.provider-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.provider-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  font-weight: 800;
}
.provider-row img { width: 52px; height: 24px; object-fit: contain; padding: 2px 4px; border-radius: 6px; background: #fff; }
.auth-card { display: grid; gap: 14px; padding: 28px; background: var(--white); color: var(--ink); border: 1px solid rgba(7,24,45,.1); }
.verify-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fff;
}
.verify-strip div, .verify-strip form { min-width: 0; }
.verify-strip strong, .verify-strip span { display: block; }
.verify-strip span { color: var(--muted); margin-top: 4px; line-height: 1.45; }
.verify-strip form { display: flex; gap: 8px; }
.public-section {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: clamp(18px, 4vw, 34px);
  background: #fff;
}
.section-title { display: grid; gap: 6px; margin-bottom: 18px; }
.section-title p { color: #7a5600; margin: 0; }
.section-title h2 { margin: 0; color: var(--navy); font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}
.feature-grid article:hover { border-color: var(--gold); box-shadow: 0 12px 26px rgba(7,24,45,.08); }
.feature-grid img { width: 42px; height: 42px; object-fit: contain; }
.feature-grid strong { color: var(--navy); font-size: 16px; }
.feature-grid span { color: var(--muted); line-height: 1.48; font-size: 14px; }
.flow-timeline {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-timeline li {
  counter-increment: step;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #344054;
  font-weight: 800;
}
.flow-timeline li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 950;
}
.security-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.security-grid span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #f1f5f9;
  color: var(--navy);
  font-weight: 850;
}
.public-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--navy);
  color: rgba(255,255,255,.84);
}
.public-footer div { display: grid; gap: 6px; min-width: 0; }
.public-footer img { width: 88px; height: auto; background: #fff; border-radius: 6px; padding: 4px; }
.public-footer strong { color: #fff; }
.public-footer address { display: grid; gap: 6px; font-style: normal; text-align: right; }
.public-footer a { color: #fff; }
.panel-title, .card-head, .top, .button-row, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title span { font-weight: 900; font-size: 20px; }
label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; line-height: 1.55; }
.error { min-height: 20px; margin: 0; color: var(--danger); }
.notice { min-height: 22px; margin: 0; color: var(--success); overflow-wrap: anywhere; }

.workspace { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.side {
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 28px rgba(7,24,45,.05);
  min-width: 0;
}
.brand-mini { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.side nav { display: grid; gap: 4px; padding: 10px; }
.side a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #344054;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.side a:hover, .side a.active { color: var(--navy); background: #f1f5f9; box-shadow: inset 3px 0 0 var(--gold); }
.content { min-width: 0; padding: 18px; }
.top { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.top h2 { margin: 2px 0 0; font-size: 24px; letter-spacing: 0; }
.top span { color: var(--muted); font-size: 13px; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.view { display: grid; gap: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; }
.metric, .card, .editor-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(7,24,45,.06);
}
.metric { display: grid; gap: 9px; padding: 18px; position: relative; overflow: hidden; }
.metric::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background: var(--gold); }
.metric img { width: 34px; height: 34px; }
.metric strong { font-size: 28px; }
.metric span { color: var(--muted); font-size: 13px; font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 14px; }
.card, .editor-card { padding: 16px; min-width: 0; }
.card h3 { margin: 0; font-size: 16px; }
.list, .doc-list, .cards, .provider-cards { display: grid; gap: 9px; }
.list:empty::before, .doc-list:empty::before { content: "Məlumat yoxdur"; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; }
.item, .doc-item, .provider-card, .template-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fff;
}
.doc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; cursor: pointer; }
.doc-item:hover { border-color: var(--gold); }
.doc-item h4 { margin: 0 0 5px; font-size: 15px; }
.doc-item p { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: #eef4ff; color: var(--navy-2); font-size: 12px; font-weight: 800; }
.badge.gold { background: var(--gold-soft); color: #7a5600; }
.badge.red { background: #fee4e2; color: var(--danger); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag-row span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; color: var(--muted); font-size: 12px; font-weight: 700; background: #f8fafc; }
.toolbar { flex-wrap: wrap; justify-content: flex-start; }
.toolbar input { flex: 1 1 280px; }
.toolbar select { width: auto; min-width: 180px; }
.editor-card { display: grid; gap: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metadata-grid { grid-template-columns: 1.1fr 1.1fr .8fr 1fr; }
.check { display: inline-flex; align-items: center; grid-template-columns: auto 1fr; gap: 8px; }
.check input { width: auto; }
.button-row { justify-content: flex-start; flex-wrap: wrap; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 14px; }
.provider-settings { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.provider-settings img { width: 80px; height: 36px; object-fit: contain; }
.provider-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; }
.provider-card img { max-width: 70px; max-height: 34px; object-fit: contain; }
.provider-card strong, .provider-card span { display: block; }
.provider-card span { color: var(--muted); font-size: 12px; }
.verify-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(130deg, rgba(7,24,45,.96), rgba(11,39,71,.94)),
    var(--navy);
}
.verify-box {
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
}
.verify-box h1 { margin: 0; }
.verify-box p { margin: 0; color: #344054; }
.verify-box code { overflow-wrap: anywhere; color: var(--navy); }
.verify-logo { width: 120px; max-width: 60%; height: auto; }

@media (max-width: 1100px) {
  .public-header { grid-template-columns: 1fr auto; }
  .public-header nav { grid-column: 1 / -1; justify-content: flex-start; }
  .public-hero, .verify-strip, .public-footer { grid-template-columns: 1fr; }
  .feature-grid, .flow-timeline, .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 4; }
  .side nav { grid-template-columns: repeat(8, minmax(120px, 1fr)); overflow-x: auto; }
  .side a { justify-content: center; white-space: nowrap; }
  .metric-grid, .form-grid, .split, .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .content { padding: 12px; }
  .public-header { padding: 10px 12px; }
  .public-logo img { width: 66px; }
  .public-header nav { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 2px; }
  .public-header nav a { white-space: nowrap; }
  .public-hero { padding: 24px 12px; }
  .auth-card, .public-section, .verify-strip { padding: 16px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-actions > *, .verify-strip form > * { flex: 1 1 100%; }
  .verify-strip form { flex-wrap: wrap; }
  .top, .doc-item { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .top-actions > *, .button-row > *, .toolbar > * { flex: 1 1 100%; }
  .metric-grid, .form-grid, .split, .settings-grid, .feature-grid, .flow-timeline, .security-grid { grid-template-columns: 1fr; }
  .public-footer address { text-align: left; }
}

/* Premium public landing refinement */
.auth-screen {
  background:
    linear-gradient(180deg, #ffffff 0, #f7f9fc 52%, #eef2f6 100%);
}
.public-header {
  width: min(1220px, calc(100% - 28px));
  margin: 14px auto 0;
  position: sticky;
  top: 10px;
  min-height: 66px;
  border-radius: 10px;
  border: 1px solid rgba(217,226,236,.86);
  box-shadow: 0 14px 38px rgba(7,24,45,.08);
}
.public-logo img { width: 74px; }
.public-logo span { font-size: 14px; letter-spacing: .02em; }
.public-header nav a { font-weight: 800; color: #475467; }
.public-hero {
  width: min(1220px, calc(100% - 28px));
  min-height: clamp(560px, 74vh, 760px);
  margin: 14px auto 0;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(217,226,236,.9);
  border-radius: 14px;
  color: var(--ink);
  background:
    linear-gradient(90deg, #ffffff 0 57%, rgba(7,24,45,.98) 57% 100%);
  box-shadow: 0 22px 70px rgba(7,24,45,.12);
}
.hero-logo {
  width: clamp(104px, 16vw, 160px);
  height: auto;
  margin-bottom: 4px;
}
.hero-copy { align-content: center; gap: 16px; }
.hero-copy p {
  color: #7a5600;
  letter-spacing: .08em;
}
.hero-copy h1 {
  max-width: 780px;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
}
.hero-copy > span {
  max-width: 680px;
  color: #475467;
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero-actions { margin-top: 6px; }
.link-button {
  border-color: var(--line);
  color: var(--navy);
  background: #fff;
}
.link-button.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.provider-row {
  margin-top: 8px;
  gap: 8px;
}
.provider-row span {
  min-height: 38px;
  padding: 6px 10px;
  border-color: var(--line);
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
}
.provider-row img { width: 46px; height: 22px; }
.auth-card {
  align-self: center;
  margin-left: auto;
  width: min(100%, 390px);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.auth-card::before {
  content: "AKF E-Doc";
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.verify-strip, .public-section, .public-footer {
  width: min(1220px, calc(100% - 28px));
  margin-top: 14px;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(7,24,45,.06);
}
.verify-strip {
  padding: 16px 18px;
  border-color: rgba(196,154,58,.38);
}
.public-section {
  padding: clamp(22px, 4vw, 42px);
}
.section-title {
  max-width: 700px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: clamp(24px, 3vw, 36px);
}
.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.feature-grid article {
  min-height: 220px;
  padding: 18px;
  border-color: rgba(217,226,236,.85);
  background:
    linear-gradient(180deg, #fff, #fbfcfe);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.feature-grid strong { font-size: 17px; }
.feature-grid span { font-size: 14px; }
.flow-timeline {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.flow-timeline li {
  min-height: 118px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: 13px;
}
.flow-timeline li:last-child { border-right: 0; }
.security-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.security-grid span {
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
}
.public-footer {
  margin-bottom: 0;
}
@media (max-width: 1100px) {
  .public-hero {
    grid-template-columns: 1fr;
    background: #fff;
  }
  .auth-card {
    margin-left: 0;
    box-shadow: 0 18px 48px rgba(7,24,45,.16);
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .public-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    top: 6px;
  }
  .public-hero,
  .verify-strip,
  .public-section,
  .public-footer {
    width: calc(100% - 20px);
  }
  .public-hero { min-height: auto; padding: 22px; }
  .hero-copy h1 { font-size: 33px; }
  .feature-grid,
  .flow-timeline,
  .security-grid { grid-template-columns: 1fr; }
  .flow-timeline li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .flow-timeline li:last-child { border-bottom: 0; }
}

/* Government premium landing v2 */
:root {
  --gov-navy: #06162b;
  --gov-navy-2: #0a2442;
  --gov-navy-3: #11385f;
  --gov-gold: #d7b56d;
  --gov-gold-2: #b99142;
  --gov-white: #ffffff;
  --gov-soft: #f4f7fb;
  --gov-line: rgba(255,255,255,.16);
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--gov-navy);
}

img, svg, video, canvas {
  max-width: 100%;
}

button, input, select, textarea {
  font-size: 16px;
}

input, select, textarea {
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.auth-screen {
  min-height: 100svh;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(6,22,43,.99) 0%, rgba(10,36,66,.98) 54%, rgba(6,22,43,.99) 100%);
  background-size: 42px 42px, 42px 42px, auto;
  position: relative;
  isolation: isolate;
}

.auth-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 48%, rgba(215,181,109,.12) 48% 48.4%, transparent 48.4% 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 32%, rgba(0,0,0,.22));
}

.public-header {
  width: min(1240px, calc(100% - 32px));
  min-height: 64px;
  margin: 16px auto 0;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--gov-line);
  border-radius: 8px;
  background: rgba(6,22,43,.9);
  box-shadow: 0 18px 54px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

.public-logo {
  color: #fff;
  gap: 10px;
}

.public-logo img {
  width: 58px;
  max-width: 58px;
  padding: 3px;
  border-radius: 8px;
  background: #fff;
}

.public-logo span {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
}

.public-header nav {
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  overflow: visible;
}

.public-header nav a {
  min-height: 36px;
  padding: 0 10px;
  color: rgba(255,255,255,.82);
  background: transparent;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
}

.public-header nav a:hover,
.public-header nav a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(215,181,109,.4);
}

.language-toggle {
  min-width: 44px;
  min-height: 38px;
  border-color: rgba(215,181,109,.5);
  background: var(--gov-gold);
  color: var(--gov-navy);
  font-weight: 900;
}

.public-hero {
  width: min(1240px, calc(100% - 32px));
  min-height: auto;
  margin: 38px auto 0;
  padding: 34px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 390px);
  gap: 28px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  background: transparent;
}

.hero-copy {
  gap: 18px;
  align-content: center;
}

.hero-logo {
  width: 112px;
  max-width: 34vw;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.hero-copy p {
  color: var(--gov-gold);
  letter-spacing: .08em;
  font-size: 12px;
}

.hero-copy h1 {
  max-width: 780px;
  color: #fff;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy > span {
  max-width: 660px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  gap: 10px;
}

.link-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: none;
}

.link-button.primary {
  color: var(--gov-navy);
  background: linear-gradient(180deg, #ecd28f, var(--gov-gold));
  border-color: rgba(255,255,255,.2);
}

.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.provider-row span {
  min-height: 34px;
  min-width: 132px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  box-shadow: none;
  transition: opacity .18s ease, transform .18s ease;
}

.provider-row span:hover {
  opacity: .9;
  box-shadow: none;
  transform: translateY(-1px);
}

.provider-row img {
  width: 122px;
  height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,.22));
}

.provider-row .provider-badge-asan img { width: 128px; height: 32px; }
.provider-row .provider-badge-sima img { width: 102px; height: 31px; }
.provider-row .provider-badge-mygov img { width: 118px; height: 32px; }

.auth-card {
  width: min(100%, 390px);
  margin-left: auto;
  align-self: center;
  gap: 13px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,251,.98));
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
  color: var(--ink);
}

.auth-card::before {
  content: "Rəsmi giriş";
  color: #7a5600;
  letter-spacing: .12em;
}

.panel-title span {
  color: var(--gov-navy);
}

label {
  color: #26364a;
}

input, select, textarea {
  min-height: 46px;
  border-radius: 8px;
  border-color: #cfd9e7;
  color: #0f172a;
  background: #fff;
  line-height: 1.25;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gov-gold-2);
  box-shadow: 0 0 0 3px rgba(215,181,109,.22);
  outline: 0;
}

.verify-strip {
  width: min(1240px, calc(100% - 32px));
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(215,181,109,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 54px rgba(0,0,0,.16);
}

.verify-strip strong {
  color: var(--gov-navy);
}

.verify-strip span {
  color: #506176;
}

.verify-strip button,
.auth-card button.primary {
  border-radius: 8px;
  background: var(--gov-navy);
  border-color: var(--gov-navy);
  color: #fff;
  font-weight: 900;
}

.public-section {
  width: min(1240px, calc(100% - 32px));
  margin-top: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-title {
  max-width: 760px;
}

.section-title p {
  color: var(--gov-gold);
  letter-spacing: .08em;
  font-size: 12px;
}

.section-title h2 {
  color: #fff;
  font-size: 34px;
  line-height: 1.16;
}

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

.feature-grid article {
  min-height: 238px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 48px rgba(0,0,0,.18);
}

.feature-grid article:hover {
  border-color: rgba(215,181,109,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 20px 58px rgba(0,0,0,.24);
}

.feature-grid img {
  width: 48px;
  height: 48px;
}

.feature-grid strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.feature-grid span {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.55;
}

.flow-timeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.flow-timeline li {
  min-height: 112px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

.flow-timeline li::before {
  background: var(--gov-gold);
  color: var(--gov-navy);
}

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

.security-grid span {
  min-height: 56px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #fff;
}

.public-footer {
  width: 100%;
  margin-top: 54px;
  padding: 24px max(16px, calc((100% - 1240px) / 2));
  border-radius: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(2,10,20,.86);
}

.public-footer img {
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .public-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .public-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .public-hero {
    grid-template-columns: 1fr;
    margin-top: 24px;
    padding-top: 20px;
  }

  .auth-card {
    margin-left: 0;
  }

  .feature-grid,
  .flow-timeline,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    min-width: 0;
  }

  .public-header,
  .public-hero,
  .verify-strip,
  .public-section {
    width: calc(100% - 20px);
  }

  .public-header {
    margin-top: 10px;
    padding: 10px;
    top: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .public-logo {
    gap: 8px;
  }

  .public-logo img {
    width: 50px;
    max-width: 50px;
  }

  .public-logo span {
    font-size: 13px;
  }

  .public-header nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .public-header nav a {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    padding: 0 6px;
    white-space: normal;
    text-align: center;
    font-size: 12px;
    line-height: 1.15;
  }

  .public-hero {
    gap: 18px;
    padding: 20px 0 10px;
  }

  .hero-logo {
    width: 92px;
    max-width: 92px;
  }

  .hero-copy {
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .hero-copy > span {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .link-button {
    width: 100%;
  }

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

  .provider-row span {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .provider-row img,
  .provider-row .provider-badge-asan img,
  .provider-row .provider-badge-sima img,
  .provider-row .provider-badge-mygov img {
    max-width: min(160px, 82vw);
  }

  .auth-card {
    width: 100%;
    padding: 18px;
  }

  .verify-strip {
    grid-template-columns: 1fr;
  }

  .verify-strip form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .feature-grid,
  .flow-timeline,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 27px;
  }

  .feature-grid article {
    min-height: auto;
  }

  .flow-timeline li {
    border-bottom: 1px solid rgba(255,255,255,.14);
  }

  input, select, textarea {
    font-size: 16px;
  }

  .public-footer {
    grid-template-columns: 1fr;
    padding: 22px 10px;
  }

  .public-footer address {
    text-align: left;
  }
}
