@font-face {
    font-family: iranyekan;
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url("kardad-fonts/iranyekanwebregular.woff") format("woff");
}

@font-face {
    font-family: iranyekan;
    font-display: swap;
    font-style: normal;
    font-weight: 500;
    src: url("kardad-fonts/iranyekanwebmedium.woff") format("woff");
}

@font-face {
    font-family: iranyekan;
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    src: url("kardad-fonts/iranyekanwebbold.woff") format("woff");
}

@font-face {
    font-family: iranyekan;
    font-display: swap;
    font-style: normal;
    font-weight: 800;
    src: url("kardad-fonts/iranyekanwebextrabold.woff") format("woff");
}

:root {
    --black: #101210;
    --charcoal: #181a18;
    --charcoal-2: #22241f;
    --navy: #163145;
    --navy-2: #204d68;
    --gold: #bc9d59;
    --gold-dark: #96783b;
    --gold-light: #e2c985;
    --gold-pale: #f7f0df;
    --cream: #f7f5f0;
    --paper: #fff;
    --ink: #182026;
    --muted: #6c7478;
    --muted-light: #999c98;
    --line: #e2dfd7;
    --line-dark: rgba(255, 255, 255, .12);
    --green: #297051;
    --green-soft: #e8f4ed;
    --red: #a63c35;
    --red-soft: #fbefed;
    --blue-soft: #edf4f7;
    --shadow-sm: 0 5px 18px rgba(22, 25, 22, .055);
    --shadow: 0 18px 45px rgba(22, 25, 22, .09);
    --shadow-dark: 0 25px 70px rgba(0, 0, 0, .28);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 20%, rgba(188, 157, 89, .05), transparent 24rem),
        var(--cream);
    color: var(--ink);
    font-family: iranyekan, Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

body::selection { background: var(--gold-light); color: var(--black); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.svg-sprite { height: 0; left: -100%; overflow: hidden; position: absolute; top: -100%; width: 0; }
.container { margin-inline: auto; max-width: 1220px; padding-inline: 24px; width: 100%; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.55; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.28rem, 2.5vw, 1.72rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-right: 1.3rem; }
.muted { color: var(--muted); }
.small { font-size: .83rem; }
.eyebrow {
    align-items: center;
    color: var(--gold-dark);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: .015em;
    margin-bottom: 11px;
}
.eyebrow::before { background: var(--gold); content: ""; height: 2px; width: 26px; }

/* Header */
.site-header {
    background: rgba(16, 18, 16, .97);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
    color: #f7f4ed;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-accent { background: linear-gradient(90deg, transparent, var(--gold), transparent); height: 2px; opacity: .75; }
.nav { align-items: center; display: flex; gap: 38px; min-height: 78px; }
.brand { align-items: center; display: inline-flex; flex: 0 0 auto; gap: 11px; }
.brand-seal {
    align-items: center;
    background: radial-gradient(circle, rgba(188, 157, 89, .18), transparent 70%);
    border: 1px solid rgba(188, 157, 89, .5);
    border-radius: 50%;
    display: flex;
    height: 49px;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    width: 49px;
}
.brand-seal img { height: 100%; object-fit: contain; width: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { color: #fff; font-size: 1.2rem; font-weight: 800; }
.brand-copy small { color: var(--gold-light); font-size: .68rem; font-weight: 500; }
.nav-links { align-items: stretch; align-self: stretch; display: flex; gap: 4px; }
.nav-links > a { align-items: center; color: #d4d3cd; display: flex; font-size: .86rem; font-weight: 500; padding: 0 13px; position: relative; }
.nav-links > a::after { background: var(--gold); bottom: -2px; content: ""; height: 2px; left: 50%; position: absolute; transform: translateX(-50%) scaleX(0); transition: transform .22s ease; width: 28px; }
.nav-links > a:hover, .nav-links > a.active { color: var(--gold-light); }
.nav-links > a.active::after { transform: translateX(-50%) scaleX(1); }
.nav-actions { align-items: center; display: flex; gap: 9px; margin-right: auto; }
.icon-button, .mobile-menu-button {
    align-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: #f5f3ed;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    position: relative;
    width: 42px;
}
.icon-button:hover, .icon-button.active { border-color: rgba(188, 157, 89, .7); color: var(--gold-light); }
.icon-button svg, .mobile-menu-button svg { height: 20px; width: 20px; }
.notification-dot {
    align-items: center;
    background: var(--gold);
    border: 2px solid var(--black);
    border-radius: 20px;
    color: var(--black);
    display: flex;
    font-size: .6rem;
    font-weight: 800;
    height: 19px;
    justify-content: center;
    min-width: 19px;
    padding: 0 4px;
    position: absolute;
    right: -5px;
    top: -5px;
}
.account-menu { position: relative; }
.account-menu > summary { align-items: center; cursor: pointer; display: flex; gap: 8px; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary > svg { color: #a7aaa5; height: 15px; width: 15px; }
.account-avatar {
    align-items: center;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    border: 1px solid #ecd998;
    border-radius: 50%;
    color: #19160f;
    display: flex;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}
.account-name { font-size: .8rem; max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-popover {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-dark);
    color: var(--ink);
    left: 0;
    min-width: 245px;
    overflow: hidden;
    padding: 8px;
    position: absolute;
    top: calc(100% + 16px);
}
.account-popover::before { border-bottom: 8px solid #fff; border-left: 8px solid transparent; border-right: 8px solid transparent; content: ""; left: 18px; position: absolute; top: -8px; }
.account-popover__head { border-bottom: 1px solid var(--line); display: flex; flex-direction: column; margin: 0 5px 5px; padding: 9px 7px 13px; }
.account-popover__head span { color: var(--muted); direction: ltr; font-size: .73rem; text-align: right; }
.account-popover a { align-items: center; border-radius: 8px; display: flex; font-size: .82rem; gap: 10px; padding: 8px 9px; }
.account-popover a:hover { background: var(--gold-pale); color: var(--gold-dark); }
.account-popover a svg { height: 17px; width: 17px; }
.account-popover form { border-top: 1px solid var(--line); margin: 6px 5px 0; padding-top: 6px; }
.account-popover form button { background: transparent; border: 0; color: var(--red); cursor: pointer; font-size: .8rem; padding: 7px; text-align: right; width: 100%; }
.mobile-menu-button { cursor: pointer; display: none; }
.mobile-menu { background: #151715; display: none; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-menu.is-open { max-height: 620px; }
.mobile-menu nav { display: grid; padding-bottom: 16px; }
.mobile-menu a { border-top: 1px solid rgba(255, 255, 255, .08); color: #dddcd6; padding: 10px 2px; }

.workspace-nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); position: sticky; top: 80px; z-index: 35; }
.workspace-nav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.workspace-nav__inner::-webkit-scrollbar { display: none; }
.workspace-nav a { align-items: center; border-bottom: 2px solid transparent; color: var(--muted); display: flex; flex: 0 0 auto; font-size: .8rem; gap: 7px; padding: 12px 13px 10px; }
.workspace-nav a svg { height: 17px; width: 17px; }
.workspace-nav a:hover, .workspace-nav a.active { border-bottom-color: var(--gold); color: var(--ink); }

/* Controls */
.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    font-size: .86rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 45px;
    padding: 9px 19px;
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.btn svg { height: 18px; width: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--charcoal); border-color: var(--charcoal); color: #fff; box-shadow: 0 9px 20px rgba(16, 18, 16, .14); }
.btn-primary:hover { background: #282a26; border-color: #282a26; box-shadow: 0 12px 26px rgba(16, 18, 16, .22); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: #d7bb71; box-shadow: 0 9px 22px rgba(188, 157, 89, .2); color: #1a1710; }
.btn-gold:hover { box-shadow: 0 12px 28px rgba(188, 157, 89, .34); }
.btn-outline { background: #fff; border-color: #cbc7be; color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-danger { background: var(--red-soft); border-color: #ebc9c4; color: var(--red); }
.btn-sm { font-size: .78rem; min-height: 38px; padding: 6px 13px; }
.btn-block { width: 100%; }
.button-row { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; }

input, select, textarea {
    background: #fff;
    border: 1px solid #d3d0c8;
    border-radius: 10px;
    color: var(--ink);
    min-height: 47px;
    outline: none;
    padding: 9px 13px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    width: 100%;
}

/* Searchable, keyboard-accessible selector used across every Kardad workflow. */
.kardad-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.kardad-select {
    position: relative;
    width: 100%;
}

.kardad-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 47px;
    padding: 9px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d3d0c8;
    border-radius: 10px;
    cursor: pointer;
    text-align: right;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.kardad-select__trigger:hover,
.kardad-select.is-open .kardad-select__trigger {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(188, 157, 89, .12);
}

.kardad-select__trigger:disabled {
    color: var(--muted-light);
    background: #efede7;
    cursor: not-allowed;
}

.kardad-select__trigger.is-placeholder .kardad-select__value {
    color: var(--muted);
}

.kardad-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kardad-select__chevron {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.kardad-select.is-open .kardad-select__chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.kardad-select__dropdown {
    position: absolute;
    z-index: 80;
    top: calc(100% + 7px);
    right: 0;
    display: none;
    width: max(100%, 220px);
    max-width: min(92vw, 440px);
    padding: 7px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.kardad-select.is-open .kardad-select__dropdown {
    display: block;
}

.kardad-select__search {
    min-height: 40px;
    margin-bottom: 6px;
    padding: 7px 10px;
    background: var(--cream);
}

.kardad-select__options {
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.kardad-select__group {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 9px 10px 5px;
    color: var(--gold-dark);
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 900;
}

.kardad-select__option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-align: right;
}

.kardad-select__option:hover,
.kardad-select__option:focus,
.kardad-select__option.is-selected {
    color: #19160f;
    background: var(--gold-pale);
    outline: none;
}

.kardad-select__option.is-selected {
    font-weight: 700;
}

.kardad-select__option:disabled {
    color: var(--muted-light);
    cursor: not-allowed;
}

.kardad-select__empty {
    padding: 12px;
    color: var(--muted);
    text-align: center;
}
input::placeholder, textarea::placeholder { color: #a0a29f; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(188, 157, 89, .12); }
textarea { min-height: 125px; resize: vertical; }
.textarea-lg { min-height: 220px; }
label { color: #353a39; font-size: .82rem; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field-end { justify-content: flex-end; }
.form-grid { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { align-items: flex-start; cursor: pointer; display: flex; gap: 9px; }
.check input { accent-color: var(--gold-dark); flex: 0 0 auto; min-height: auto; margin-top: 7px; width: auto; }

/* Shared page surfaces */
main { min-height: calc(100vh - 430px); }
.page { padding-bottom: 76px; padding-top: 42px; }
.page-narrow { max-width: 980px; }
.page-compact { max-width: 900px; }
.page-head { align-items: flex-start; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 25px; }
.page-head h1, .page-head h2 { margin-bottom: 5px; }
.page-head p { margin-bottom: 0; max-width: 720px; }
.page-heading {
    background:
        linear-gradient(90deg, rgba(16, 18, 16, .96), rgba(24, 26, 24, .9)),
        radial-gradient(circle at 15% 20%, rgba(188, 157, 89, .2), transparent 30%);
    color: #fff;
    overflow: hidden;
    padding: 42px 0 40px;
    position: relative;
}
.page-heading::after { border: 1px solid rgba(188, 157, 89, .16); border-radius: 50%; content: ""; height: 310px; left: 6%; position: absolute; top: -185px; width: 310px; }
.page-heading h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.65rem); margin-bottom: 4px; }
.page-heading p { color: #c5c7c2; margin-bottom: 0; }
.page-heading .eyebrow { color: var(--gold-light); }

.card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 23px;
}
.card + .card { margin-top: 17px; }
.card h2 { font-size: 1.2rem; }
.card h3 { margin-top: 18px; }
.card--flat { box-shadow: none; }
.card--dark { background: linear-gradient(145deg, #252621, #171917); border-color: rgba(188, 157, 89, .34); color: #eeece4; }
.card--dark h2, .card--dark h3 { color: #fff; }
.grid { display: grid; gap: 19px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sidebar-grid { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 340px; }
.sticky-card { position: sticky; top: 142px; }
.span-all { grid-column: 1 / -1; }
.section { padding: 74px 0; }
.section--white { background: #fff; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.section--dark { background: var(--black); color: #e8e6df; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin-bottom: 0; max-width: 620px; }
.section-head--center { display: block; margin-inline: auto; max-width: 720px; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { background: var(--gold); content: ""; height: 2px; width: 26px; }

.badge { align-items: center; background: #efefeb; border: 1px solid transparent; border-radius: 999px; color: #4f5553; display: inline-flex; font-size: .7rem; font-weight: 700; gap: 5px; line-height: 1.6; padding: 3px 10px; }
.badge.gold { background: var(--gold-pale); border-color: #eadbb5; color: #755c28; }
.badge.success { background: var(--green-soft); border-color: #c6e2d1; color: var(--green); }
.badge.danger { background: var(--red-soft); border-color: #f0d2ce; color: var(--red); }
.badge.dark { background: var(--charcoal); color: #fff; }
.meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: .78rem; gap: 7px 16px; }
.meta-item { align-items: center; display: inline-flex; gap: 5px; }
.meta-item svg { color: var(--gold-dark); height: 16px; width: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.prose { white-space: pre-wrap; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.pt-2 { padding-top: 16px; }
.otp-code { letter-spacing: 3px; }
.inline-form { align-items: center; display: flex; gap: 6px; }
.compact-select { min-height: 36px; padding: 5px 8px; }

.list-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 17px; justify-content: space-between; min-height: 74px; padding: 14px 2px; transition: background .18s ease, padding .18s ease; }
a.list-row:hover { background: #faf8f3; padding-inline: 10px; }
.list-row:first-child { padding-top: 2px; }
.list-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.list-row__main { align-items: center; display: flex; gap: 13px; min-width: 0; }
.list-row.is-unread { background: #fffbf1; border-right: 3px solid var(--gold); padding-right: 10px; }
.conversation-list__meta { align-items: flex-end; display: flex; flex-direction: column; gap: 6px; }
.list-icon { align-items: center; background: var(--gold-pale); border-radius: 10px; color: var(--gold-dark); display: flex; flex: 0 0 auto; height: 40px; justify-content: center; width: 40px; }
.list-icon svg { height: 20px; width: 20px; }
.empty { color: var(--muted); padding: 46px 20px; text-align: center; }
.empty-icon { align-items: center; background: var(--gold-pale); border-radius: 50%; color: var(--gold-dark); display: flex; height: 64px; justify-content: center; margin: 0 auto 16px; width: 64px; }
.empty-icon svg { height: 28px; width: 28px; }
.empty a { color: var(--gold-dark); font-weight: 700; }

.stat { background: linear-gradient(145deg, #fff, #f8f6f1); border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 13px; min-height: 110px; padding: 18px; }
.stat-icon { align-items: center; background: var(--charcoal); border-radius: 12px; color: var(--gold-light); display: flex; flex: 0 0 auto; height: 45px; justify-content: center; width: 45px; }
.stat-icon svg { height: 22px; width: 22px; }
.stat strong { color: var(--ink); display: block; font-size: 1.75rem; line-height: 1.25; }
.stat span { color: var(--muted); font-size: .78rem; }

.alert { align-items: flex-start; border: 1px solid; border-radius: 12px; display: flex; gap: 10px; padding: 11px 15px; }
.alert > svg { flex: 0 0 auto; height: 19px; margin-top: 5px; width: 19px; }
.alert ul { margin-bottom: 0; }
.alert-success { background: var(--green-soft); border-color: #bcdac8; color: #255f45; }
.alert-error { background: var(--red-soft); border-color: #eac2bd; color: #86332d; }
.toast-wrap { margin: 14px auto 0; max-width: 1220px; padding-inline: 24px; }

/* Public landing */
.hero {
    background-color: var(--black);
    background-image:
        linear-gradient(90deg, rgba(14, 15, 14, .2) 0%, rgba(14, 15, 14, .92) 47%, rgba(14, 15, 14, .52) 100%),
        url("main-home.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: 650px;
    overflow: hidden;
    padding: 80px 0 58px;
    position: relative;
}
.hero::before { background: radial-gradient(circle at 15% 20%, rgba(188, 157, 89, .13), transparent 28%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.hero-grid { align-items: center; display: grid; gap: 55px; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); position: relative; }
.hero-copy { max-width: 740px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.5vw, 4.45rem); line-height: 1.35; margin-bottom: 16px; text-shadow: 0 3px 20px rgba(0, 0, 0, .32); }
.hero h1 strong { color: var(--gold-light); }
.hero-copy > p { color: #d3d4cf; font-size: 1.02rem; line-height: 2.05; max-width: 670px; }
.hero-search {
    backdrop-filter: blur(16px);
    background: rgba(24, 26, 24, .91);
    border: 1px solid rgba(188, 157, 89, .48);
    border-radius: 17px;
    box-shadow: var(--shadow-dark);
    margin-top: 29px;
    padding: 12px;
}
.hero-search__row { align-items: center; background: rgba(10, 11, 10, .8); border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; display: grid; gap: 6px; grid-template-columns: 42px 1fr auto; padding: 6px; }
.hero-search__row > svg { color: var(--gold); height: 22px; margin-inline: auto; width: 22px; }
.hero-search input { background: transparent; border: 0; box-shadow: none; color: #fff; min-height: 48px; }
.hero-search input:focus { box-shadow: none; }
.hero-search .btn { min-width: 122px; }
.hero-search__quick { color: #aaa9a4; display: flex; flex-wrap: wrap; font-size: .72rem; gap: 8px 15px; padding: 9px 8px 0; }
.hero-search__quick a { color: #d4bf84; }
.hero-panel {
    backdrop-filter: blur(12px);
    background: linear-gradient(145deg, rgba(35, 36, 32, .92), rgba(18, 19, 18, .94));
    border: 1px solid rgba(188, 157, 89, .45);
    border-radius: 20px;
    box-shadow: 0 24px 65px rgba(0, 0, 0, .34);
    padding: 25px;
}
.hero-panel__head { align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .1); display: flex; gap: 12px; margin-bottom: 5px; padding-bottom: 18px; }
.hero-panel__icon { align-items: center; background: var(--gold); border-radius: 11px; color: var(--black); display: flex; height: 42px; justify-content: center; width: 42px; }
.hero-panel__icon svg { height: 23px; width: 23px; }
.hero-panel h2 { color: #fff; font-size: 1.13rem; margin: 0; }
.hero-panel__head small { color: #aaa9a4; display: block; }
.step { display: grid; gap: 12px; grid-template-columns: 31px 1fr; padding: 13px 0; position: relative; }
.step:not(:last-child)::after { background: rgba(188, 157, 89, .25); bottom: -8px; content: ""; height: 21px; position: absolute; right: 15px; width: 1px; }
.step .num { align-items: center; background: rgba(188, 157, 89, .13); border: 1px solid rgba(188, 157, 89, .55); border-radius: 50%; color: var(--gold-light); display: flex; font-size: .73rem; font-weight: 800; height: 31px; justify-content: center; width: 31px; }
.step strong { color: #f5f3ec; display: block; font-size: .84rem; }
.step .small { color: #aeadA7; line-height: 1.8; }
.hero-stats { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.hero-stat { border-left: 1px solid rgba(255, 255, 255, .13); display: flex; flex-direction: column; padding: 3px 16px; }
.hero-stat:first-child { padding-right: 0; }
.hero-stat:last-child { border-left: 0; }
.hero-stat strong { color: var(--gold-light); font-size: 1.15rem; }
.hero-stat span { color: #aaa9a4; font-size: .7rem; }

.feature-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; min-height: 220px; padding: 25px; position: relative; transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.feature-card:hover { border-color: #d7c18e; box-shadow: var(--shadow); transform: translateY(-5px); }
.feature-icon { align-items: center; background: var(--gold-pale); border-radius: 12px; color: var(--gold-dark); display: flex; height: 50px; justify-content: center; margin-bottom: 20px; width: 50px; }
.feature-icon svg { height: 25px; width: 25px; }
.feature-card h3 { font-size: 1rem; }
.feature-card p { color: var(--muted); font-size: .8rem; line-height: 2; margin-bottom: 0; }
.process { counter-reset: process; display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); }
.process-card { border-left: 1px solid rgba(255, 255, 255, .12); padding: 8px 25px 10px; }
.process-card:last-child { border-left: 0; }
.process-card::before { color: var(--gold); content: "۰" counter(process); counter-increment: process; display: block; font-size: 1.35rem; font-weight: 800; margin-bottom: 13px; }
.process-card h3 { color: #fff; margin-bottom: 7px; }
.process-card p { color: #a9aaa6; font-size: .78rem; margin: 0; }
.legal-banner { align-items: center; background: linear-gradient(135deg, #24251f, #121412); border: 1px solid rgba(188, 157, 89, .45); border-radius: 22px; box-shadow: var(--shadow-dark); color: #e8e6df; display: grid; gap: 45px; grid-template-columns: 1fr auto; overflow: hidden; padding: 42px; position: relative; }
.legal-banner::after { border: 1px solid rgba(188, 157, 89, .18); border-radius: 50%; content: ""; height: 300px; left: -90px; position: absolute; top: -150px; width: 300px; }
.legal-banner h2 { color: #fff; }
.legal-banner p { color: #b8b9b4; margin: 0; max-width: 740px; }

/* Opportunity discovery */
.filters {
    align-items: end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 11px;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    margin-bottom: 28px;
    padding: 16px;
}
.filter-search { position: relative; }
.filter-search svg { color: var(--gold-dark); height: 19px; position: absolute; right: 14px; top: 14px; width: 19px; }
.filter-search input { padding-right: 42px; }
.filters--advanced { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filters--advanced .filter-search { grid-column: span 2; }
.opportunity-card { display: flex; flex-direction: column; gap: 13px; min-height: 310px; overflow: hidden; position: relative; transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.opportunity-card::before { background: linear-gradient(90deg, var(--gold), transparent); content: ""; height: 3px; inset: 0 0 auto; opacity: .75; position: absolute; }
.opportunity-card:hover { border-color: #d4c08f; box-shadow: var(--shadow); transform: translateY(-5px); }
.opportunity-card__top { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.opportunity-card__actions { align-items: flex-end; display: flex; flex-direction: column; gap: 8px; }
.save-button { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); cursor: pointer; display: inline-flex; height: 34px; justify-content: center; width: 34px; }
.save-button svg { fill: transparent; height: 17px; width: 17px; }
.save-button:hover, .save-button.is-saved { border-color: var(--gold); color: var(--gold-dark); }
.save-button.is-saved svg { fill: var(--gold); }
.employer-mark { align-items: center; background: var(--charcoal); border-radius: 11px; color: var(--gold-light); display: flex; flex: 0 0 auto; font-size: 1rem; font-weight: 800; height: 43px; justify-content: center; width: 43px; }
.opportunity-card h3 { font-size: 1.03rem; line-height: 1.8; margin: 0; }
.opportunity-card h3 a:hover { color: var(--gold-dark); }
.opportunity-card__summary { color: var(--muted); font-size: .8rem; line-height: 2; margin: 0; }
.opportunity-card .card-footer { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; margin-top: auto; padding-top: 13px; }
.opportunity-card .card-footer a { color: var(--gold-dark); font-size: .77rem; font-weight: 800; }
.opportunity-card .card-footer a:hover { color: var(--ink); }
.results-summary { align-items: center; display: flex; justify-content: space-between; margin-bottom: 17px; }
.results-summary strong { font-size: .88rem; }
.results-summary span { color: var(--muted); font-size: .76rem; }
.save-search-form { align-items: center; display: grid; gap: 14px; grid-template-columns: 1fr minmax(240px, .7fr) auto; margin-bottom: 20px; padding: 16px 20px; }
.save-search-form p { margin: 2px 0 0; }

.opportunity-hero { background: linear-gradient(145deg, #22241f, #111311); border-color: rgba(188, 157, 89, .42); color: #d7d7d1; overflow: hidden; padding: 30px; position: relative; }
.opportunity-hero::after { border: 1px solid rgba(188, 157, 89, .12); border-radius: 50%; content: ""; height: 290px; left: -110px; position: absolute; top: -170px; width: 290px; }
.opportunity-hero h1 { color: #fff; font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 13px 0 6px; }
.opportunity-hero .muted { color: #b8b9b5; }
.opportunity-hero .meta { color: #bbbcb7; margin-top: 17px; }
.opportunity-hero .meta-item svg { color: var(--gold-light); }
.content-section { padding: 27px; }
.content-section > h2 { align-items: center; display: flex; gap: 10px; }
.content-section > h2::before { background: var(--gold); border-radius: 3px; content: ""; height: 22px; width: 3px; }
.apply-card { border-top: 3px solid var(--gold); }
.apply-card__head { align-items: center; display: flex; gap: 10px; }
.apply-card__head .feature-icon { height: 42px; margin: 0; width: 42px; }
.privacy-note { align-items: flex-start; background: #f8f7f3; border-radius: 10px; color: var(--muted); display: flex; font-size: .72rem; gap: 8px; padding: 11px; }
.privacy-note svg { color: var(--gold-dark); flex: 0 0 auto; height: 17px; margin-top: 3px; width: 17px; }

/* Resume and applicant productivity */
.resume-sheet { padding: clamp(25px, 5vw, 56px); }
.resume-header { align-items: center; border-bottom: 2px solid var(--gold); display: flex; justify-content: space-between; padding-bottom: 22px; }
.resume-header h1 { font-size: 2.3rem; margin: 4px 0; }
.resume-header p { color: var(--muted); margin: 0; }
.resume-seal { align-items: center; background: var(--charcoal); border-radius: 50%; color: var(--gold-light); display: flex; font-size: 2rem; font-weight: 800; height: 82px; justify-content: center; width: 82px; }
.resume-meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 15px 0; }
.resume-section { border-top: 1px solid var(--line); padding: 23px 0; }
.resume-section h2 { color: var(--gold-dark); font-size: 1.05rem; margin-bottom: 14px; }
.resume-skills { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resume-skills > div { background: #faf9f6; border-radius: 10px; display: flex; flex-direction: column; padding: 10px 13px; }
.resume-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; padding-top: 17px; text-align: center; }
.applicant-filters { display: grid; gap: 8px; grid-template-columns: 1.4fr 1fr 1fr auto; margin-bottom: 12px; }
.applicant-row { justify-content: flex-start; }
.applicant-row__link { flex: 1; }
.comparison-check { align-items: center; display: flex; min-height: 42px; padding: 0 5px; }
.comparison-check input { height: 18px; width: 18px; }
.comparison-bar { align-items: center; background: #faf8f2; border: 1px solid var(--line); border-radius: 11px; display: flex; justify-content: space-between; margin-top: 14px; padding: 10px 13px; }
.comparison-scroll { overflow-x: auto; }
.comparison-table { background: #fff; border-collapse: separate; border-spacing: 0; min-width: 900px; table-layout: fixed; width: 100%; }
.comparison-table th, .comparison-table td { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 15px; text-align: right; vertical-align: top; }
.comparison-table tr > :first-child { background: #f7f5ef; color: var(--gold-dark); font-weight: 800; width: 160px; }
.comparison-table thead th { background: var(--charcoal); color: #fff; }
.comparison-table thead th:first-child { background: #161815; }
.comparison-table thead strong { display: block; margin-bottom: 7px; }
.comparison-item { border-bottom: 1px dashed var(--line); display: grid; gap: 2px; padding: 7px 0; }
.comparison-item:last-child { border-bottom: 0; }

/* Independent account access */
.auth-page { background: #f4f2ec; }
.auth-shell { align-items: stretch; display: grid; gap: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); padding-bottom: 72px; padding-top: 58px; }
.auth-shell--single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 42px); }
.auth-card--wide { grid-column: 1 / -1; margin-inline: auto; max-width: 900px; width: 100%; }
.auth-card__intro { border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 20px; }
.auth-card__intro h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 5px 0 7px; }
.auth-card__intro p { color: var(--muted); margin: 0; }
.auth-aside { align-items: flex-start; background: linear-gradient(145deg, #22241f, #101210); border: 1px solid rgba(188, 157, 89, .4); border-radius: 20px; color: #c5c6c1; display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.auth-aside h2 { color: #fff; margin-bottom: 8px; }
.auth-aside .feature-icon { background: rgba(188, 157, 89, .16); color: var(--gold-light); }
.auth-links { align-items: center; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; font-size: .78rem; gap: 14px; justify-content: space-between; margin-top: 23px; padding-top: 18px; }
.auth-links a { color: var(--gold-dark); font-weight: 800; }
.role-options { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-option { cursor: pointer; }
.role-option input { opacity: 0; position: absolute; pointer-events: none; }
.role-option span { align-items: center; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 3px; grid-template-columns: 42px 1fr; padding: 15px; transition: .18s ease; }
.role-option svg { color: var(--gold-dark); grid-row: 1 / 3; height: 25px; width: 25px; }
.role-option small { color: var(--muted); }
.role-option input:checked + span { background: #fffaf0; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(188, 157, 89, .14); }
.check-row { align-items: flex-start; display: flex; font-size: .78rem; gap: 9px; }
.check-row input { margin-top: 6px; }
.account-retention-check { align-items: flex-start; gap: 10px; }
.account-retention-check__input { accent-color: var(--gold-dark); border-radius: 3px; flex: 0 0 16px; height: 16px; width: 16px; margin-top: 4px; }
.account-retention-check .small { color: #4b5356; line-height: 1.6; }
.otp-input { direction: ltr; font-size: 1.45rem; font-weight: 800; letter-spacing: .5em; text-align: center; }

/* Dashboard and workflow */
.dashboard-welcome { align-items: center; background: linear-gradient(135deg, #20221e, #101210); border: 1px solid rgba(188, 157, 89, .42); border-radius: 20px; color: #d1d2cd; display: flex; gap: 25px; justify-content: space-between; margin-bottom: 23px; overflow: hidden; padding: 29px 31px; position: relative; }
.dashboard-welcome::after { border: 1px solid rgba(188, 157, 89, .13); border-radius: 50%; content: ""; height: 260px; left: -100px; position: absolute; top: -130px; width: 260px; }
.dashboard-welcome h1 { color: #fff; font-size: clamp(1.65rem, 3vw, 2.25rem); margin: 0 0 3px; }
.dashboard-welcome p { color: #aaaCa7; margin: 0; }
.dashboard-stats { margin-bottom: 23px; }
.panel-head { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; margin: -3px 0 7px; padding-bottom: 14px; }
.panel-head h2 { margin: 0; }
.panel-head a { color: var(--gold-dark); font-size: .76rem; font-weight: 700; }
.role-card { align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; display: flex; gap: 12px; padding: 16px; transition: border-color .18s ease, background .18s ease; }
.role-card:hover { background: #fffcf4; border-color: var(--gold); }
.repeat-row { background: #faf9f6; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; padding: 18px; }
.skill-option { background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; padding: 11px; }
.skill-picker__search { align-items: center; display: grid; grid-template-columns: 22px 1fr; margin-top: 10px; }
.skill-picker__search svg { color: var(--muted); height: 18px; margin-left: -32px; position: relative; right: 12px; width: 18px; z-index: 1; }
.skill-picker__search input { padding-right: 39px; }
.skill-picker__groups { display: grid; gap: 18px; margin-top: 18px; }
.skill-picker__group { border-top: 1px solid var(--line); padding-top: 14px; }
.skill-picker__group h3 { color: var(--gold-dark); font-size: .86rem; margin: 0 0 10px; }
.skill-picker__empty { padding: 18px; text-align: center; }
.skill-option[hidden], .skill-picker__group[hidden] { display: none; }
.action-card { border-top: 3px solid var(--gold); }
.form-actions { background: #fff; border: 1px solid var(--line); bottom: 15px; box-shadow: var(--shadow); padding: 13px; position: sticky; z-index: 12; }
.status-stack { display: grid; gap: 8px; }
.timeline { border-right: 1px solid #d8d3c7; margin-right: 7px; padding-right: 23px; }
.timeline-item { padding-bottom: 21px; position: relative; }
.timeline-item::before { background: var(--gold); border: 3px solid var(--gold-pale); border-radius: 50%; content: ""; height: 13px; position: absolute; right: -30px; top: 7px; width: 13px; }
.timeline-item:last-child { padding-bottom: 0; }
.record-block { background: #faf9f6; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; padding: 16px; }
.record-block.is-current { background: #fffaf0; border-color: #dfca99; }
.record-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
details > summary.btn { list-style: none; }
details > summary.btn::-webkit-details-marker { display: none; }
details[open] > summary.btn { border-color: var(--gold); }

/* Messaging, agreements, legal */
.chat-shell { background: #edeae3; border: 1px solid var(--line); border-radius: 18px; max-height: 65vh; min-height: 480px; overflow-y: auto; padding: 24px; }
.message { background: #fff; border: 1px solid var(--line); border-radius: 15px 15px 4px 15px; box-shadow: 0 4px 14px rgba(20, 22, 20, .05); margin: 11px 0; max-width: 76%; padding: 10px 14px; width: fit-content; }
.message.mine { background: #242620; border-color: #3d4038; border-radius: 15px 15px 15px 4px; color: #f1efe8; margin-right: auto; }
.message.mine .muted { color: #aaaDa6; }
.message strong { display: block; margin-bottom: 2px; }
.message-time { direction: ltr; font-size: .66rem; margin-top: 4px; text-align: left; }
.attachment-list { border-top: 1px solid var(--line); display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; }
.attachment-item { align-items: center; display: flex; gap: 9px; min-width: 280px; }
.attachment-item > svg { color: var(--gold-dark); flex: 0 0 auto; height: 22px; width: 22px; }
.attachment-marker { color: var(--gold-dark); flex: 0 0 auto; font-size: .65rem; }
.attachment-item__name { flex: 1; min-width: 0; }
.attachment-item__name strong { direction: auto; overflow-wrap: anywhere; }
.attachment-item__name span { display: block; }
.message.mine .attachment-list { border-top-color: #4b4e46; }
.message.mine .attachment-item > svg { color: var(--gold-light); }
.message.mine .btn-outline { background: transparent; border-color: #76786f; color: #fff; }
.chat-poll-status { margin: 6px 5px 14px; }
.nav-count { align-items: center; background: var(--gold); border-radius: 20px; color: var(--black); display: inline-flex; font-size: .62rem; font-weight: 800; justify-content: center; min-height: 19px; min-width: 19px; padding: 1px 5px; }
.legal-message-list { background: #f4f2eb; border: 1px solid var(--line); border-radius: 16px; margin-top: 14px; padding: 12px; }
.legal-message-list .message { max-width: 88%; }
.form-hint { color: var(--muted); font-size: .7rem; }
.composer { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(240px, .65fr) auto; }
.composer textarea { min-height: 76px; }
.contract {
    background:
        linear-gradient(90deg, transparent 29px, rgba(188, 157, 89, .15) 30px, transparent 31px),
        #fffefa;
    border: 1px solid #dfd5bf;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(53, 45, 28, .08);
    font-size: .9rem;
    line-height: 2.35;
    padding: 38px 48px;
    white-space: pre-wrap;
}
.legal-service-card { display: flex; flex-direction: column; min-height: 295px; overflow: hidden; position: relative; }
.legal-service-card::after { border: 1px solid rgba(188, 157, 89, .13); border-radius: 50%; content: ""; height: 150px; left: -70px; position: absolute; top: -70px; width: 150px; }
.legal-service-card details { margin-top: auto; }
.legal-steps { counter-reset: legal-step; list-style: none; padding: 0; }
.legal-steps li { align-items: center; border-bottom: 1px solid var(--line); counter-increment: legal-step; display: flex; gap: 10px; padding: 10px 0; }
.legal-steps li::before { align-items: center; background: var(--gold-pale); border-radius: 50%; color: var(--gold-dark); content: counter(legal-step); display: flex; flex: 0 0 auto; font-size: .7rem; font-weight: 800; height: 27px; justify-content: center; width: 27px; }
.notification-row.is-unread { background: #fffbf2; border: 1px solid #ead9ae; border-radius: 11px; margin: 5px 0; padding-inline: 11px; }
.notification-button { align-items: center; background: transparent; border: 0; cursor: pointer; display: flex; gap: 18px; justify-content: space-between; padding: 0; text-align: right; width: 100%; }

/* Pagination */
nav[role="navigation"] { margin-top: 24px; }
nav[role="navigation"] > div:first-child { display: none; }
nav[role="navigation"] > div:last-child { align-items: center; display: flex; justify-content: space-between; }
nav[role="navigation"] p { color: var(--muted); font-size: .74rem; margin: 0; }
nav[role="navigation"] span[aria-current="page"] span, nav[role="navigation"] a, nav[role="navigation"] span[aria-disabled="true"] span { align-items: center; background: #fff; border: 1px solid var(--line); display: inline-flex; font-size: .76rem; height: 37px; justify-content: center; min-width: 37px; padding: 0 9px; }
nav[role="navigation"] span[aria-current="page"] span { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

/* Footer */
.site-footer { background: #101210; border-top: 1px solid rgba(188, 157, 89, .35); color: #aeb0aa; padding: 57px 0 0; }
.footer-grid { display: grid; gap: 55px; grid-template-columns: 1.5fr repeat(3, 1fr); padding-bottom: 42px; }
.brand--footer { margin-bottom: 18px; }
.footer-about p { font-size: .78rem; line-height: 2; max-width: 370px; }
.footer-grid h3 { color: #f3f1eb; font-size: .9rem; margin-bottom: 15px; }
.footer-grid > div:not(.footer-about) > a { color: #aaaCa7; display: block; font-size: .78rem; padding: 3px 0; }
.footer-grid > div:not(.footer-about) > a:hover { color: var(--gold-light); }
.footer-grid > div:not(.footer-about) > p { font-size: .75rem; line-height: 2; }
.footer-trust { align-items: center; color: var(--gold-light); display: inline-flex; font-size: .72rem; gap: 7px; }
.footer-trust svg { height: 17px; width: 17px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); display: flex; font-size: .68rem; justify-content: space-between; padding-bottom: 17px; padding-top: 17px; }

@media (max-width: 1080px) {
    .nav { gap: 20px; }
    .nav-links > a { padding-inline: 8px; }
    .account-name { display: none; }
    .hero-grid { gap: 32px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filters { grid-template-columns: 2fr repeat(2, 1fr); }
    .filters--advanced { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .filters .btn { grid-column: -2 / -1; }
}

@media (max-width: 860px) {
    .nav { min-height: 70px; }
    .nav-links, .desktop-login { display: none; }
    .mobile-menu-button, .mobile-menu { display: flex; }
    .mobile-menu { display: block; }
    .workspace-nav { top: 72px; }
    .hero { background-image: linear-gradient(90deg, rgba(14, 15, 14, .98), rgba(14, 15, 14, .82)), url("main-home.jpg"); padding-top: 58px; }
    .hero-grid, .sidebar-grid { grid-template-columns: 1fr; }
    .hero-panel { max-width: 650px; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .process-card { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .legal-banner { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
    .footer-grid { gap: 35px; grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .save-search-form { grid-template-columns: 1fr 1fr; }
    .save-search-form > div { grid-column: 1 / -1; }
    .applicant-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    body { font-size: 14px; }
    .container { padding-inline: 15px; }
    .brand-seal { height: 43px; width: 43px; }
    .brand-copy strong { font-size: 1.05rem; }
    .brand-copy small { font-size: .61rem; }
    .account-menu > summary > svg { display: none; }
    .account-popover { left: -50px; }
    .nav-actions { gap: 6px; }
    .icon-button, .mobile-menu-button { height: 38px; width: 38px; }
    .page { padding-bottom: 54px; padding-top: 28px; }
    .page-head, .section-head, .dashboard-welcome { align-items: stretch; flex-direction: column; }
    .page-head { gap: 14px; }
    .page-head .button-row, .dashboard-welcome .button-row { width: 100%; }
    .page-head .button-row .btn, .dashboard-welcome .button-row .btn { flex: 1; }
    .page-heading { padding: 31px 0; }
    .hero { min-height: auto; padding: 47px 0 43px; }
    .hero h1 { font-size: 2.35rem; }
    .hero-search__row { grid-template-columns: 37px 1fr; }
    .hero-search__row .btn { grid-column: 1 / -1; width: 100%; }
    .hero-stats { gap: 10px; grid-template-columns: 1fr; }
    .hero-stat { border-bottom: 1px solid rgba(255, 255, 255, .1); border-left: 0; padding: 8px 0; }
    .hero-panel { padding: 19px; }
    .section { padding: 52px 0; }
    .grid-2, .grid-3, .grid-4, .form-grid, .filters { grid-template-columns: 1fr; }
    .filters--advanced .filter-search, .save-search-form > div { grid-column: auto; }
    .save-search-form, .applicant-filters, .resume-skills { grid-template-columns: 1fr; }
    .role-options { grid-template-columns: 1fr; }
    .field.full, .span-all, .filters .btn { grid-column: auto; }
    .card { border-radius: 14px; padding: 18px; }
    .opportunity-card { min-height: 285px; }
    .process { grid-template-columns: 1fr; }
    .process-card { border-left: 0; padding: 20px 6px; }
    .legal-banner { padding: 27px 22px; }
    .list-row { align-items: flex-start; }
    .list-row > .badge { flex: 0 0 auto; }
    .contract { padding: 27px 23px; }
    .message { max-width: 90%; }
    .composer { grid-template-columns: 1fr; }
    .attachment-item { align-items: flex-start; flex-wrap: wrap; min-width: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 3px; }
    nav[role="navigation"] > div:last-child { justify-content: center; }
    nav[role="navigation"] p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
