:root {
    --bg-dark: #111616;
    --bg-darker: #091011;
    --surface: #151d1d;
    --surface-raised: #1b2423;
    --gold-accent: #d6aa62;
    --gold-hover: #efc67d;
    --card-bg: #ead9b8;
    --text-light: #f7f3eb;
    --text-dark: #17130f;
    --text-muted: #a9afaa;
    --line: rgba(214, 170, 98, .22);
    --blue: #73b8da;
    --control-height: 48px;
}

html { scroll-behavior: smooth; }
body {
    background:
        radial-gradient(circle at 15% -10%, rgba(214, 170, 98, .10), transparent 32rem),
        linear-gradient(180deg, #101616 0%, #0d1213 100%);
}
a, button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}
button:not(.brt-menu-backdrop) { min-height: 48px !important; box-sizing: border-box; border-radius: 11px !important; }

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 94px;
    gap: 18px;
    padding: 10px clamp(18px, 3vw, 52px);
    border-bottom: 1px solid var(--line);
    background: rgba(9, 16, 17, .93);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .25);
    backdrop-filter: blur(18px);
}
.navbar .nav-left { gap: 8px; }
.navbar .logo img { display: block; width: auto; height: 64px !important; }
.navbar .nav-links { gap: 3px; flex-wrap: nowrap; }
.navbar .nav-links a {
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #c9ceca;
    font-size: clamp(.68rem, .72vw, .82rem);
    letter-spacing: .025em;
    text-transform: none;
}
.navbar .nav-links a i { color: #777f7c; transition: color .2s ease; }
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    background: rgba(214, 170, 98, .10);
    color: #fff;
}
.navbar .nav-links a:hover i,
.navbar .nav-links a.active i { color: var(--gold-accent); }

.nav-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 8px 9px;
    border: 1px solid rgba(214, 170, 98, .42);
    border-radius: 11px;
    color: var(--gold-hover);
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
}
.nav-utility-link i { color: var(--gold-accent); }
.nav-utility-link:hover { border-color: var(--gold-accent); background: rgba(214, 170, 98, .13); color: #fff; }
.nav-store-link {
    border-color: #e3b86f !important;
    background: linear-gradient(135deg, #e3b86f, #bc8844) !important;
    color: #17120c !important;
    box-shadow: 0 12px 28px rgba(214, 170, 98, .20);
}
.nav-store-link i { color: #17120c !important; }
.nav-store-link:hover {
    border-color: #efc67d !important;
    background: linear-gradient(135deg, #efc67d, #ca9450) !important;
    color: #17120c !important;
}

.nav-account { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav-account-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 48px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: var(--text-light);
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
}
.nav-account-link:hover { border-color: var(--line); background: rgba(214, 170, 98, .08); }
.nav-account-link img { width: 30px; height: 30px; border-radius: 8px; image-rendering: auto; }
.nav-account-link span { max-width: none; overflow: visible; text-overflow: clip; white-space: nowrap; }
.nav-signout { display: flex; align-items: center; }
.nav-signout form { margin: 0; }
.nav-signout button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #777;
    cursor: pointer;
}
.nav-signout button:hover { background: rgba(217, 83, 79, .12); color: #ef7772; }
.nav-login-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(214, 170, 98, .08);
    color: var(--gold-hover);
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
}
.nav-login-button:hover { background: rgba(214, 170, 98, .16); }

.navbar .nav-right { gap: 6px; }
.nav-primary-box {
    width: 126px;
    min-width: 126px;
    min-height: 48px;
    justify-content: center;
}
.nav-account-link.nav-primary-box { width: auto; max-width: none; padding-inline: 12px; }
.nav-plain-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #c9ceca;
    font-size: clamp(.68rem, .72vw, .82rem);
    font-weight: 800;
    letter-spacing: .025em;
    text-decoration: none;
}
.nav-plain-link i { color: #777f7c; }
.nav-plain-link:hover,.nav-plain-link.active { background: rgba(214,170,98,.10); color: #fff; }
.nav-plain-link:hover i,.nav-plain-link.active i { color: var(--gold-accent); }
.nav-feature-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.nav-feature-link:hover { transform: translateY(-2px); }
.nav-market-link { border-color: rgba(214, 170, 98, .38); color: #f3cf91; }
.nav-market-link:hover, .nav-market-link.active { border-color: var(--gold-accent); background: rgba(214, 170, 98, .14); }
.nav-map-link { border-color: rgba(115, 184, 218, .35); color: #a9d9ef; }
.nav-map-link:hover { border-color: var(--blue); background: rgba(115, 184, 218, .13); }

/* Jeden ovládací jazyk napříč veřejným webem. */
button[type="submit"],
.home-copy-button,
.home-vote-button,
.election-submit,
.content-button {
    min-height: var(--control-height) !important;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 11px !important;
    font-weight: 800;
}

.container { width: min(1220px, 100%); }
.home-hero {
    position: relative;
    min-height: min(690px, 77vh);
    display: grid;
    align-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line) !important;
}
.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(transparent, #131a1a);
    pointer-events: none;
}
.home-hero > * { position: relative; z-index: 1; }
.home-hero h1 { color: #edc477 !important; font-weight: 900; }
.home-copy-button, .home-vote-button {
    border-radius: 12px !important;
    background: linear-gradient(135deg, #e3b86f, #bc8844) !important;
    color: #17120c !important;
    box-shadow: 0 14px 34px rgba(214, 170, 98, .22) !important;
}
.home-intro-wrap { background: linear-gradient(180deg, #151d1d, #101616) !important; border-bottom-color: var(--line) !important; }
.home-reason-card, .home-path-card, .home-decree-card {
    border: 1px solid rgba(214, 170, 98, .20) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .22) !important;
}
.home-reason-card { background: linear-gradient(150deg, #f1e2c4, #ddc295) !important; }
.home-path-card, .home-decree-card { background: linear-gradient(145deg, #1c2524, #131a1a) !important; }
.site-footer { border-top-color: var(--line) !important; background: #080e0f !important; }

.profile-hero { min-height: 330px; display: grid; align-content: center; border-bottom: 1px solid var(--line) !important; }
.profile-section { background: linear-gradient(180deg, #101616, #0b1112) !important; }
.profile-card, .profile-finance-card, .profile-territory-card, .profile-market-card {
    border-color: rgba(214, 170, 98, .16) !important;
    background: linear-gradient(145deg, rgba(27, 36, 35, .98), rgba(17, 23, 23, .98)) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .26) !important;
}
.profile-territory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.profile-territory-item { min-width: 0; padding: 18px; border: 1px solid rgba(214, 170, 98, .15); border-radius: 14px; background: rgba(255,255,255,.025); }
.profile-territory-item i { display: block; margin-bottom: 12px; color: var(--gold-accent); font-size: 1.35rem; }
.profile-territory-item span { display: block; margin-bottom: 6px; color: #7f8985; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.profile-territory-item strong { color: #f4eee4; font-size: 1.05rem; overflow-wrap: anywhere; }
.profile-data-note { margin-top: 14px; color: #78807e; font-size: .75rem; line-height: 1.5; }
.profile-orders-card { overflow: hidden; border: 1px solid rgba(214,170,98,.18); border-radius: 20px; background: linear-gradient(145deg,rgba(27,36,35,.98),rgba(17,23,23,.98)); box-shadow: 0 22px 50px rgba(0,0,0,.26); }
.profile-orders-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 26px; border-bottom: 1px solid rgba(214,170,98,.14); }
.profile-orders-heading span { display: block; margin-bottom: 6px; color: var(--gold-accent); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.profile-orders-heading h3 { margin: 0; color: #fff; font-size: 1.35rem; }
.profile-orders-heading > a,
.profile-order-meta > a { min-height: var(--control-height); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid rgba(214,170,98,.42); border-radius: 11px; color: #e6c487; font-size: .76rem; font-weight: 900; text-decoration: none; }
.profile-orders-heading > a:hover,
.profile-order-meta > a:hover { border-color: var(--gold-accent); background: rgba(214,170,98,.11); color: #fff; }
.profile-orders-list { display: grid; }
.profile-order-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px; padding: 21px 26px; border-bottom: 1px solid rgba(255,255,255,.07); }
.profile-order-row:last-child { border-bottom: 0; }
.profile-order-main > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.profile-order-main strong { color: #f3cf91; font-size: 1rem; }
.profile-order-main time { color: #747d79; font-size: .74rem; }
.profile-order-main p { margin: 8px 0 0; color: #aab1ad; font-size: .85rem; line-height: 1.55; }
.profile-order-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.profile-order-meta > strong { color: #fff; font-size: 1rem; white-space: nowrap; }
.profile-order-status { padding: 7px 9px; border: 1px solid rgba(214,170,98,.22); border-radius: 999px; color: #c8cfcb; background: rgba(255,255,255,.035); font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.profile-order-status.status-completed,
.profile-order-status.status-paid,
.profile-order-status.status-processing { border-color: rgba(78,190,124,.34); color: #79d69f; background: rgba(78,190,124,.08); }
.profile-order-status.status-failed,
.profile-order-status.status-cancelled { border-color: rgba(237,119,114,.34); color: #ef8d88; background: rgba(237,119,114,.08); }
.profile-orders-empty { min-height: 130px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px; color: #78817d; text-align: center; }
.profile-orders-empty i { color: var(--gold-accent); font-size: 1.4rem; }

/* Sjednocený vizuální jazyk veřejných stránek. */
.home-hero {
    height: 290px;
    min-height: 290px !important;
    padding: clamp(24px, 4vw, 40px) 20px !important;
}
.home-hero h1 {
    margin-bottom: 15px !important;
    font-size: clamp(2.5rem, 7vw, 4rem) !important;
}

.page-hero {
    --page-accent: var(--gold-accent);
    position: relative;
    min-height: 290px;
    display: grid;
    align-content: center;
    padding: clamp(34px, 6vw, 52px) 20px !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(214, 170, 98, .42) !important;
    background:
        linear-gradient(180deg, rgba(9, 15, 15, .66), rgba(9, 15, 15, .94)),
        url('../../images/castle-bamberg.jpg') center 44% / cover no-repeat !important;
    text-align: center;
}
.page-hero--rules,
.page-hero--banlist { --page-accent: #ed7772; border-bottom-color: rgba(237, 119, 114, .48) !important; }
.page-hero--rules,
.page-hero--banlist {
    background:
        linear-gradient(180deg, rgba(35, 8, 8, .66), rgba(14, 13, 13, .95)),
        url('../../images/castle-bamberg.jpg') center 44% / cover no-repeat !important;
}
.page-hero--help { --page-accent: #68cc92; border-bottom-color: rgba(104, 204, 146, .46) !important; }
.page-hero h2,
.elections-hero > div:first-child {
    margin: 0 0 7px !important;
    color: #f4efe7 !important;
    font-size: clamp(.82rem, 1.8vw, 1.05rem) !important;
    font-weight: 700 !important;
    line-height: 1.3;
    letter-spacing: clamp(3px, .7vw, 7px) !important;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.page-hero h1 {
    margin: 0 0 15px !important;
    color: var(--page-accent) !important;
    font-size: clamp(2.5rem, 7vw, 4rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: clamp(1px, .8vw, 4px) !important;
    text-transform: uppercase;
    text-shadow: 0 5px 22px rgba(0, 0, 0, .78) !important;
}
.page-hero > div:last-child,
.page-hero > p {
    width: min(700px, 100%);
    max-width: 700px !important;
    margin: 0 auto !important;
}
.page-hero p {
    margin: 0 !important;
    color: #c8ceca !important;
    font-size: clamp(.94rem, 1.7vw, 1.05rem) !important;
    line-height: 1.65 !important;
}

.page-content {
    padding: clamp(42px, 6vw, 68px) 0 84px !important;
    background:
        radial-gradient(circle at 86% 0, rgba(214, 170, 98, .055), transparent 26rem),
        linear-gradient(180deg, #111817, #0d1314) !important;
}
.page-content-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.page-empty {
    padding: clamp(32px, 6vw, 58px) 24px !important;
    border: 1px dashed rgba(214, 170, 98, .25) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(27, 36, 35, .94), rgba(16, 23, 23, .98)) !important;
    color: #929b97 !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
    text-align: center !important;
}
.page-empty--compact { padding: 26px 20px !important; }
.page-empty--success { border-color: rgba(104, 204, 146, .30) !important; }

.team-list { gap: 22px !important; }
.team-card,
.rules-card,
.punishment-card,
.faq-item,
.market-card,
.market-form-card {
    border: 1px solid rgba(214, 170, 98, .18) !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(28, 37, 36, .98), rgba(15, 22, 22, .99)) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .24) !important;
}
.team-card {
    gap: 26px !important;
    padding: 26px !important;
    border-left: 4px solid var(--team-accent) !important;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 25px 52px rgba(0, 0, 0, .3) !important; }
.team-card > div:last-child { min-width: min(250px, 100%) !important; }
.team-avatar-frame {
    border-color: rgba(255, 255, 255, .10) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .04) !important;
}
.team-date,
.team-description {
    border-color: rgba(255, 255, 255, .085) !important;
    border-radius: 11px !important;
    background: rgba(4, 8, 8, .36) !important;
}
.team-date { color: #929a97 !important; }
.team-rank-badge,
.team-role-badge { border-radius: 999px !important; padding: 7px 14px !important; }
.team-description { color: #c6ccc8 !important; }
.team-legend-section {
    padding: 38px clamp(18px, 4vw, 52px) 64px !important;
    border-top: 1px solid rgba(214, 170, 98, .13) !important;
    background: #0d1314 !important;
}
.team-legend-section > h3 { color: #8f9794 !important; font-size: .85rem !important; font-weight: 800; }
.team-legend-grid { width: min(1220px, 100%) !important; margin: 0 auto; justify-content: center !important; }
.team-legend-card {
    min-width: min(170px, 100%) !important;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-bottom: 3px solid var(--team-accent) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(28, 37, 36, .96), rgba(15, 22, 22, .99)) !important;
}
.team-legend-card > div:first-child { font-size: .78rem !important; line-height: 1.35 !important; }
.team-legend-card > div:last-child { color: #9da5a1 !important; font-size: .76rem !important; }

.rules-list { gap: 24px !important; }
.rules-card { overflow: hidden; }
.rules-card-head {
    padding: 20px 26px !important;
    border-bottom: 1px solid rgba(214, 170, 98, .25) !important;
    background: rgba(214, 170, 98, .055) !important;
}
.rules-card-head h2 { font-size: clamp(1.2rem, 3vw, 1.55rem) !important; font-weight: 900; }
.rules-card-body { padding: 26px !important; }
.rules-card-body ol { color: #c8ceca !important; line-height: 1.75 !important; gap: 13px !important; }
.rules-card-body li { padding-left: 8px !important; }
.rules-card-body li::marker { color: var(--gold-accent); font-weight: 900; }

.banlist-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
    gap: 22px !important;
}
.punishment-card {
    padding: 26px 21px !important;
    border-color: rgba(237, 119, 114, .20) !important;
    border-top: 4px solid #ed7772 !important;
}
.punishment-avatar {
    border-color: rgba(237, 119, 114, .45) !important;
    border-radius: 14px !important;
}
.punishment-card h3 { color: #ed7772 !important; }
.punishment-duration {
    padding: 7px 14px !important;
    border-color: rgba(237, 119, 114, .55) !important;
    border-radius: 999px !important;
    background: rgba(99, 24, 24, .36) !important;
    color: #ffd0cd !important;
}
.punishment-reason {
    border-color: rgba(255, 255, 255, .10) !important;
    border-radius: 12px !important;
    background: rgba(4, 8, 8, .40) !important;
    color: #c5cbc7 !important;
}
.punishment-card--jail { border-top-color: #e0a65f !important; }
.punishment-card--jail h3 { color: #efbd79 !important; }
.punishment-card--jail .punishment-avatar { border-color: rgba(224, 166, 95, .52) !important; }
.punishment-card--jail .punishment-duration { border-color: rgba(224, 166, 95, .58) !important; background: rgba(105, 69, 21, .34) !important; color: #ffe0b4 !important; }
.punishment-card--jail .punishment-type { color: #eacba1 !important; }
.punishment-card--mute { border-color: rgba(115, 184, 218, .22) !important; border-top-color: #73b8da !important; }
.punishment-card--mute h3 { color: #8ed0ef !important; }
.punishment-card--mute .punishment-avatar { border-color: rgba(115, 184, 218, .52) !important; }
.punishment-card--mute .punishment-duration { border-color: rgba(115, 184, 218, .58) !important; background: rgba(24, 73, 99, .34) !important; color: #c5ecff !important; }
.punishment-card--mute .punishment-type { color: #adddf3 !important; }

.faq-list { gap: 13px !important; }
.faq-item { overflow: hidden; transition: border-color .2s ease, transform .2s ease !important; }
.faq-item:hover { border-color: rgba(104, 204, 146, .34) !important; }
.faq-question {
    width: 100%;
    min-height: 70px !important;
    padding: 18px 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .025) !important;
    color: #f4f1eb;
    text-align: left;
}
.faq-question:hover,
.faq-question[aria-expanded="true"] { background: rgba(104, 204, 146, .075) !important; }
.faq-question-title { color: #f4f1eb !important; font-size: 1.05rem !important; line-height: 1.45; }
.faq-icon { flex: 0 0 auto; margin-left: 18px; color: #68cc92 !important; }
.faq-answer { background: rgba(4, 8, 8, .32) !important; }
.faq-answer > div {
    padding: 21px 22px !important;
    border-top-color: rgba(255, 255, 255, .075) !important;
    color: #c5ccc8 !important;
}

.ui-alert {
    padding: 15px 18px !important;
    border-radius: 14px !important;
    line-height: 1.55;
}
.ui-alert--error { border-color: rgba(237, 119, 114, .55) !important; background: rgba(92, 24, 24, .32) !important; color: #ffaaa6 !important; }
.ui-alert--success { border-color: rgba(104, 204, 146, .45) !important; background: rgba(25, 77, 48, .28) !important; color: #9ce0b8 !important; }
.market-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, .9fr);
    align-items: start;
    gap: clamp(28px, 4vw, 48px) !important;
}
.market-list { min-width: 0; gap: 46px !important; }
.market-section-title {
    margin-top: 0;
    margin-bottom: 20px !important;
    padding-bottom: 13px !important;
    border-bottom-color: rgba(214, 170, 98, .20) !important;
    color: #f0c77f !important;
    font-size: clamp(1.25rem, 3vw, 1.55rem) !important;
    font-weight: 900;
    letter-spacing: .025em;
}
.market-card { padding: 24px !important; }
.market-card--empire {
    border-color: rgba(214, 170, 98, .34) !important;
    border-left: 4px solid var(--gold-accent) !important;
    background: linear-gradient(145deg, rgba(52, 38, 18, .74), rgba(16, 23, 23, .99)) !important;
}
.market-card h4 { line-height: 1.3; }
.market-reward {
    padding: 7px 12px !important;
    border-style: solid !important;
    border-color: rgba(214, 170, 98, .45) !important;
    border-radius: 999px !important;
    background: rgba(214, 170, 98, .10) !important;
    color: #efc982 !important;
    font-size: .82rem;
}
.market-reward--player { border-color: rgba(104, 204, 146, .45) !important; background: rgba(104, 204, 146, .08) !important; color: #8edbad !important; }
.market-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 18px;
    border-top-color: rgba(255, 255, 255, .09) !important;
    color: #8f9994;
}
.market-form-column { min-width: 0; }
.market-form-card {
    position: sticky !important;
    top: 114px !important;
    padding: 27px !important;
    border-top: 4px solid #68cc92 !important;
}
.market-form-card > h3 { color: #78d59f !important; font-weight: 900; }
.market-form { gap: 17px !important; }
.market-form label { margin-bottom: 7px !important; color: #bdc5c1 !important; letter-spacing: .025em; }
.form-control {
    width: 100% !important;
    min-height: var(--control-height) !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 11px !important;
    background: rgba(4, 8, 8, .48) !important;
    color: #f4f1eb !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
textarea.form-control { min-height: 128px !important; resize: vertical; }
.form-control::placeholder { color: #737d78; }
.form-control:focus {
    border-color: var(--gold-accent) !important;
    background: rgba(4, 8, 8, .72) !important;
    box-shadow: 0 0 0 3px rgba(214, 170, 98, .12);
    outline: none;
}
.market-login-state {
    padding: 25px !important;
    border-color: rgba(255, 255, 255, .11) !important;
    border-radius: 14px !important;
    background: rgba(4, 8, 8, .34) !important;
}
.ui-button {
    min-height: var(--control-height) !important;
    padding: 11px 18px !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.ui-button--block { width: 100% !important; }
.ui-button--primary {
    border-color: #e3b86f !important;
    background: linear-gradient(135deg, #e3b86f, #bc8844) !important;
    color: #17120c !important;
    box-shadow: 0 12px 28px rgba(214, 170, 98, .18);
}
.ui-button--success {
    border-color: #68cc92 !important;
    background: linear-gradient(135deg, #76d6a0, #3f9f69) !important;
    color: #07130c !important;
    box-shadow: 0 12px 28px rgba(69, 175, 113, .18);
}
.ui-button:hover { transform: translateY(-2px); filter: brightness(1.06); }

.elections-shell { max-width: 1050px !important; padding-top: clamp(42px, 6vw, 64px) !important; padding-bottom: 84px !important; }
.elections-hero { margin: 0 !important; }
.election-card { border-radius: 18px !important; background: linear-gradient(145deg, rgba(28, 37, 36, .98), rgba(15, 22, 22, .99)) !important; }
.election-head { padding: 25px !important; }
.election-option { min-height: 56px; border-radius: 12px !important; }
.election-submit { border-radius: 11px !important; background: linear-gradient(135deg, #e3b86f, #bc8844) !important; }

@media (max-width: 1400px) {
    .navbar .nav-links a { padding-inline: 8px; }
    .nav-utility-link { padding-inline: 7px; }
}
@media (max-width: 820px) {
    .navbar { min-height: 78px; }
    .profile-territory-grid { grid-template-columns: 1fr; }
    .profile-order-row { grid-template-columns: 1fr; }
    .profile-order-meta { justify-content: flex-start; }
}
@media (max-width: 520px) {
    .navbar { padding-inline: 15px; }
    .nav-feature-link { width: 100%; }
    .nav-primary-box,.nav-plain-link { width: 100%; min-width: 0; }
    .profile-hero { min-height: 265px; }
    .profile-orders-heading { align-items: flex-start; flex-direction: column; }
    .profile-orders-heading > a { width: 100%; }
    .profile-order-row { padding: 20px 18px; }
}
@media (max-width: 980px) {
    .market-layout { grid-template-columns: 1fr; }
    .market-form-card { position: static !important; }
}
@media (max-width: 768px) {
    .home-hero,
    .page-hero {
        min-height: 215px !important;
        padding: 28px 14px 32px !important;
    }
    .home-hero { height: 215px; }
    .page-hero h1 { font-size: clamp(2.15rem, 10vw, 3rem) !important; }
    .page-hero h2,
    .elections-hero > div:first-child { font-size: .78rem !important; letter-spacing: 3px !important; }
    .page-hero p { font-size: .93rem !important; line-height: 1.55 !important; }
    .page-content { padding: 36px 0 58px !important; }
    .page-content-inner { padding-inline: 14px !important; }
    .team-card { padding: 22px 18px !important; gap: 20px !important; }
    .team-card > div:first-child { flex-basis: 100% !important; }
    .team-card > div:last-child { width: 100%; min-width: 0 !important; }
    .team-legend-section { padding: 32px 14px 48px !important; }
    .team-legend-card { flex-basis: min(100%, 190px) !important; }
    .rules-card-head,
    .rules-card-body { padding: 20px !important; }
    .rules-card-body ol { padding-left: 18px !important; font-size: 1rem !important; }
    .market-card,
    .market-form-card { padding: 21px 18px !important; }
    .market-meta { align-items: flex-start !important; flex-direction: column; }
    .faq-question,
    .faq-answer > div { padding-inline: 18px !important; }
    .elections-shell { padding-inline: 14px !important; padding-top: 36px !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
