@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --pitch-950: #06182f;
    --pitch-900: #0b2545;
    --pitch-800: #0d3b5d;
    --pitch-700: #146c94;
    --pitch-600: #168bb4;
    --pitch-500: #19a7ce;
    --lime: #19a7ce;
    --surface: #ffffff;
    --surface-soft: #f3f8fb;
    --text: #142536;
    --muted: #667785;
    --line: #dbe7ee;
    --shadow: 0 18px 45px rgba(11, 37, 69, .13);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    text-align: center;
    background: linear-gradient(rgba(247, 251, 254, .95), rgba(235, 245, 250, .98)), repeating-linear-gradient(90deg, #dceaf2 0, #dceaf2 12.5%, #d2e4ee 12.5%, #d2e4ee 25%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .38;
    background: radial-gradient(circle at 50% -15%, rgba(25, 167, 206, .28), transparent 36%), linear-gradient(90deg, transparent calc(50% - 1px), rgba(255,255,255,.8) 50%, transparent calc(50% + 1px));
}

a {
    color: var(--pitch-700);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:hover { color: var(--pitch-600); }

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 88px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(11, 37, 69, .1);
    box-shadow: 0 5px 24px rgba(11, 37, 69, .09);
    backdrop-filter: blur(14px);
}

.site-header-inner {
    width: min(1180px, 100%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; line-height: 0; }

.active-championship {
    margin-left: auto;
    margin-right: 18px;
    padding: 7px 11px;
    color: var(--pitch-800);
    font-size: 12px;
    font-weight: 750;
    background: #eaf6fb;
    border: 1px solid #c9e3ef;
    border-radius: 20px;
}

header .brand img {
    width: auto;
    height: 66px;
    max-width: 260px;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: #fff;
    background: var(--pitch-800);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(11, 63, 96, .22);
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 3px;
    transition: transform .28s ease, opacity .2s ease;
}

nav {
    position: sticky;
    top: 88px;
    z-index: 990;
    width: 100%;
    padding: 8px max(20px, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    background: linear-gradient(115deg, var(--pitch-950), var(--pitch-800));
    border-bottom: 3px solid var(--lime);
    box-shadow: 0 10px 24px rgba(6, 24, 47, .18);
}

nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: 10px;
}

nav a:hover, nav a:focus-visible, nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .14);
}

nav a.is-active {
    color: var(--pitch-950);
    background: var(--lime);
    border-color: rgba(255, 255, 255, .2);
}

nav a.nav-public-link {
    margin-left: 7px;
    color: #fff;
    background: rgba(25, 167, 206, .2);
    border-color: rgba(25, 167, 206, .55);
}

nav a.nav-public-link:hover,
nav a.nav-public-link:focus-visible {
    color: var(--pitch-950);
    background: var(--lime);
    border-color: var(--lime);
}
.menu-overlay { display: none; }

section {
    width: min(1040px, calc(100% - 32px));
    margin: 36px auto;
    padding: clamp(24px, 4vw, 48px);
    flex: 1 0 auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(20, 108, 148, .13);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

h1, h2, h3, h4 { color: var(--pitch-950); }

h1 {
    margin: 0 0 30px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
}

h1::after {
    content: "";
    width: 64px;
    height: 5px;
    margin: 16px auto 0;
    display: block;
    background: linear-gradient(90deg, var(--pitch-600), var(--lime));
    border-radius: 10px;
}

h2 { margin: 32px 0 14px; font-size: clamp(22px, 3vw, 30px); }
h4 { margin: 14px 0; }
p { color: var(--muted); line-height: 1.7; }
form { width: min(100%, 720px); margin: 0 auto; }

.page-intro { margin: -12px auto 28px; }

.or-divider {
    width: min(100%, 440px);
    margin: 24px auto 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.register-btn { width: min(100%, 440px); border-left-color: var(--lime); }

.public-landing { display: grid; gap: clamp(48px, 7vw, 76px); }
.landing-hero { max-width: 830px; margin: 0 auto; }
.landing-kicker { display: inline-block; margin-bottom: 14px; color: var(--pitch-600); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.landing-hero h1 { margin-bottom: 22px; }
.landing-hero > p { max-width: 750px; margin: 0 auto; font-size: clamp(16px, 2vw, 19px); }

.landing-hero-actions { max-width: 650px; margin: 28px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.landing-hero-actions .round_btn { width: 100%; margin: 0; }
.landing-hero-actions .example-website-button { grid-column: 1 / -1; }
.landing-example-action { margin: 0 auto; text-align: center; }
.landing-example-action .round_btn { margin: 0 auto; }

.landing-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-benefits article { padding: 24px; text-align: left; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 18px; }
.landing-benefits article > span { color: var(--pitch-500); font-size: 13px; font-weight: 800; }
.landing-benefits h3 { margin: 12px 0 8px; }
.landing-benefits p { margin: 0; font-size: 14px; }

.section-heading { max-width: 700px; margin: 0 auto 26px; }
.section-heading h2 { margin: 0 0 10px; }
.section-heading p { margin: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pricing-card { position: relative; padding: clamp(24px, 4vw, 34px); display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 34px rgba(11, 37, 69, .08); }
.pricing-card-featured { border: 2px solid var(--pitch-500); box-shadow: 0 18px 40px rgba(20, 108, 148, .15); }
.pricing-badge { position: absolute; top: 18px; right: 18px; padding: 6px 9px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--pitch-600); border-radius: 20px; }
.pricing-card h3 { margin: 0 0 6px; padding-right: 88px; font-size: 21px; }
.pricing-card:not(.pricing-card-featured) h3 { padding-right: 0; }
.pricing-example { margin: 0 0 22px; font-size: 14px; }

.price-options { padding: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-options p { margin: 0; }
.price-options strong { display: block; color: var(--pitch-950); font-size: 28px; line-height: 1.15; }
.price-options span { color: var(--muted); font-size: 13px; }
.price-options small { display: block; margin-top: 5px; color: var(--pitch-600); font-weight: 700; }

.pricing-card ul { margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; list-style: none; }
.pricing-card li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pricing-card li::before { content: "✓"; position: absolute; left: 0; color: var(--pitch-500); font-weight: 800; }
.pricing-card .round_btn { width: 100%; margin: auto 0 0; }

.login-panel { padding: clamp(24px, 5vw, 42px); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 20px; }
.login-form { max-width: 440px; display: grid; gap: 9px; text-align: left; }
.login-form label { margin-top: 5px; color: var(--pitch-900); font-size: 13px; font-weight: 750; }
.login-form input { width: 100%; }
.login-form input[type="submit"] { margin-top: 12px; justify-self: center; }

.notice {
    width: min(100%, 720px);
    margin: 0 auto 22px;
    padding: 13px 16px;
    font-weight: 650;
    border: 1px solid;
    border-radius: 12px;
}

.notice.success { color: var(--pitch-800); background: #e9f6fb; border-color: #a8d8e9; }
.notice.error { color: #8c2525; background: #fff0f0; border-color: #edb4b4; }

.reminder-feedback {
    width: fit-content;
    max-width: 100%;
    margin: -10px auto 24px;
    padding: 8px 13px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    background: #f4f7f4;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.reminder-feedback.success { color: var(--pitch-700); background: #edf8f0; border-color: #b9dec3; }
.reminder-feedback.error { color: #8c2525; background: #fff3f3; border-color: #edc1c1; }

.reminder-panel {
    width: min(100%, 720px);
    margin: 20px auto 26px;
    padding: 18px;
    background: #f6faf7;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.reminder-panel form { width: 100%; }
.reminder-panel small { margin-top: 9px; display: block; color: var(--muted); }

.reminder-button {
    width: min(100%, 300px);
    min-height: 50px;
    padding: 12px 22px;
    color: var(--pitch-900);
    font: 800 14px/1.2 Inter, Arial, sans-serif;
    background: #fff;
    border: 1px solid #b8d5e3;
    border-radius: 13px;
    cursor: pointer;
    box-shadow: 0 7px 17px rgba(11, 61, 93, .09);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.reminder-button::before { content: "✉"; margin-right: 9px; color: var(--pitch-600); }

.reminder-button:hover,
.reminder-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--pitch-500);
    box-shadow: 0 11px 22px rgba(11, 61, 93, .14);
    outline: none;
}

.form-panel {
    width: min(100%, 720px);
    margin: 0 auto 34px;
    padding: 24px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.form-panel h2 { margin-top: 0; }

.form-panel label {
    display: block;
    margin: 16px 0 7px;
    color: var(--pitch-900);
    font-weight: 750;
    text-align: left;
}

.field-help {
    margin: 10px 0 18px;
    font-size: 13px;
    text-align: left;
}

.games-form { width: min(100%, 900px); }

.game-entry-list {
    margin: 22px 0;
    display: grid;
    gap: 12px;
}

.game-entry {
    margin: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 1fr .8fr;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.game-entry legend {
    padding: 0 8px;
    color: var(--pitch-700);
    font-size: 12px;
    font-weight: 800;
}

.game-entry label { margin: 0; }
.game-entry label span { display: block; margin-bottom: 6px; font-size: 12px; }

.round-limit-summary {
    width: min(100%, 720px);
    margin: 0 auto 22px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--pitch-900);
    background: #e9f6fb;
    border: 1px solid #a8d8e9;
    border-radius: 14px;
}

.round-limit-summary strong { font-size: 20px; }
.round-limit-summary span { color: var(--muted); }

.edition-reset-panel {
    text-align: center;
    border-color: #efb0b0;
    background: #fffafa;
}

.edition-reset-panel form { width: 100%; }

.danger-action-btn {
    margin-top: 12px;
    color: #fff;
    background: linear-gradient(135deg, #b42323, #df3c3c);
    border-color: #a61d1d;
    box-shadow: 0 10px 22px rgba(180, 35, 35, .2);
}

.danger-action-btn:hover,
.danger-action-btn:focus-visible {
    background: linear-gradient(135deg, #981b1b, #c82e2e);
}

.championship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    text-align: left;
}

.championship-card {
    position: relative;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(11, 61, 93, .08);
}

.championship-card.active { border: 2px solid var(--pitch-500); }
.championship-card.single { width: min(100%, 620px); margin: 24px auto; text-align: center; }
.championship-card h2, .championship-card h3 { margin: 18px 0 8px; }

.status-badge {
    display: inline-flex;
    padding: 5px 9px;
    color: var(--pitch-800);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: #e8f7ec;
    border-radius: 20px;
}

.payment-badge {
    display: inline-flex;
    margin-left: 5px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 20px;
}

.payment-badge.paid { color: #126232; background: #dff5e5; }
.payment-badge.unpaid { color: #8a5a08; background: #fff0c9; }

.payment-button {
    display: flex;
    width: fit-content;
    min-width: 150px;
    min-height: 48px;
    margin: -8px auto 24px;
    padding: 0 24px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #111827, #2563eb);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .2);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.payment-button:hover,
.payment-button:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .28);
    filter: brightness(1.08);
}

.championship-card .payment-button {
    margin: 16px auto 0;
}

.inline-action { width: auto; margin-top: 12px; }

.small-action-btn {
    min-height: 38px;
    padding: 8px 12px;
    color: var(--pitch-800);
    font: 700 12px/1 Inter, Arial, sans-serif;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.small-action-btn:hover { color: #fff; background: var(--pitch-700); border-color: var(--pitch-700); }

input, select, textarea {
    width: min(100%, 440px);
    min-height: 48px;
    margin: auto;
    padding: 11px 14px;
    color: var(--text);
    font: inherit;
    background: #fff;
    border: 1px solid #c7d9e3;
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--pitch-500);
    box-shadow: 0 0 0 4px rgba(25, 167, 206, .14);
}

input[readonly] { background: var(--surface-soft); }

input[type="number"], select[style*="width:50px"] {
    width: 58px !important;
    min-width: 58px;
    text-align: center;
}

input[type="submit"] {
    width: min(100%, 260px);
    min-height: 50px;
    padding: 12px 24px;
    color: #fff;
    font-weight: 750;
    background: linear-gradient(135deg, var(--pitch-700), var(--pitch-600));
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(20, 108, 148, .22);
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(20, 108, 148, .3);
}

.round_btn {
    width: min(100%, 720px);
    min-height: 58px;
    margin: 12px auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pitch-900);
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f2f8fb);
    border: 1px solid var(--line);
    border-left: 5px solid var(--pitch-500);
    border-radius: 14px;
    box-shadow: 0 7px 18px rgba(11, 61, 93, .08);
}

.round_btn:hover {
    color: var(--pitch-700);
    transform: translateY(-2px);
    border-color: rgba(25, 167, 206, .42);
    border-left-color: var(--lime);
    box-shadow: 0 12px 24px rgba(11, 61, 93, .13);
}

.archive-button {
    color: #fff;
    background: linear-gradient(135deg, var(--pitch-800), var(--pitch-600));
    border-color: var(--pitch-700);
}

.archive-button:hover,
.archive-button:focus-visible { color: #fff; }

.home-actions {
    width: min(100%, 720px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-actions .round_btn {
    width: 100%;
    margin: 0;
}

.public-website-button {
    color: var(--pitch-900);
    background: #fff;
    border-color: var(--lime);
}

.public-website-button:hover,
.public-website-button:focus-visible {
    color: #fff;
    background: var(--pitch-600);
    border-color: var(--pitch-600);
}

.example-website-button {
    min-height: 66px;
    font-size: 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--pitch-600), var(--pitch-500));
    border-color: var(--pitch-600);
    box-shadow: 0 12px 26px rgba(20, 108, 148, .24);
}

.example-website-button:hover,
.example-website-button:focus-visible {
    color: #fff;
    border-color: var(--lime);
    box-shadow: 0 16px 30px rgba(20, 108, 148, .32);
}

.dashboard-link-button { border-left-color: var(--pitch-500); }

.archive-list {
    width: min(100%, 820px);
    margin: 24px auto;
    display: grid;
    gap: 22px;
}

.archive-edition {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(11, 61, 93, .09);
}

.archive-edition-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.archive-edition-header h2 { margin: 10px 0 0; }
.archive-edition-header > p { margin: 0; color: var(--muted); text-align: right; }
.table-scroll { width: 100%; overflow-x: auto; }
.archive-table { margin-bottom: 0; }
.archive-table th:first-child, .archive-table td:first-child { width: 80px; text-align: center; }
.archive-table th:last-child, .archive-table td:last-child { width: 120px; text-align: center; }
.archive-empty { color: var(--pitch-800); background: #f4faf5; border-color: var(--line); }

@media (max-width: 600px) {
    .round-limit-summary,
    .archive-edition-header { align-items: flex-start; flex-direction: column; }
    .archive-edition-header > p { text-align: left; }
    .archive-edition { padding: 18px 14px; }
}

.back {
    width: auto !important;
    min-width: 135px;
    min-height: 46px;
    padding: 11px 18px;
    display: inline-flex;
    border-left-width: 1px;
    box-shadow: none;
}

.green { color: #fff; background: linear-gradient(135deg, var(--pitch-700), var(--pitch-600)); }

.table {
    width: 100%;
    margin: 18px auto;
    display: table;
    overflow: hidden;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line) !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(11, 61, 93, .07);
}

.table td, .table th {
    padding: 13px 14px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.table td:last-child, .table th:last-child { border-right: 0; }
.table tr:last-child td { border-bottom: 0; }

.table tr:first-child td, .table tr:first-child th {
    color: #fff;
    font-weight: 750;
    background: var(--pitch-800);
}

.table tr:not(:first-child):nth-child(odd) td:not(.user-status) { background: var(--surface-soft); }
.table h4 { margin: 3px 0; color: #fff; }

.table td.user-status {
    padding: 0;
    color: #fff;
    font-weight: 800;
}

.table tr td.user-status.status-active { background: #16833d; }
.table tr td.user-status.status-inactive { background: #c93636; }

.table td.user-status a {
    width: 100%;
    min-height: 48px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.table td.user-status a:hover,
.table td.user-status a:focus-visible {
    color: #fff;
    background: rgba(0, 0, 0, .14);
    outline: none;
}

.team-name {
    width: 28%;
    font-weight: 650;
}

.home-team { text-align: right; }
.away-team { text-align: left; }

.score-cell { width: 44%; }

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.score-separator {
    color: var(--pitch-800);
    font-size: 22px;
    font-weight: 800;
}

.score-stepper {
    height: 46px;
    display: inline-grid;
    grid-template-columns: 34px 42px 34px;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    border: 1px solid #c7dbe5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(11, 61, 93, .08);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.score-stepper:focus-within {
    border-color: var(--pitch-500);
    box-shadow: 0 0 0 4px rgba(25, 167, 206, .14);
}

.score-stepper button {
    min-width: 0;
    padding: 0;
    color: var(--pitch-800);
    font: 700 19px/1 Inter, Arial, sans-serif;
    background: var(--surface-soft);
    border: 0;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.score-stepper button:hover,
.score-stepper button:focus-visible {
    color: #fff;
    background: var(--pitch-600);
    outline: none;
}

.score-stepper button:disabled,
.score-stepper input:disabled {
    color: #8b958e;
    background: #edf1ee;
    cursor: not-allowed;
}

.score-stepper input[type="number"] {
    width: 42px !important;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    border: 0;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    -moz-appearance: textfield;
}

.score-stepper input[type="number"]::-webkit-inner-spin-button,
.score-stepper input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.match-deadline {
    margin-top: 9px;
    display: block;
    font-size: 11px;
    font-weight: 750;
}

.match-deadline.open { color: var(--pitch-700); }
.match-deadline.locked { color: #8c2525; }
.prediction-table tr.match-locked td { background: #f4f5f4; }
.prediction-table tr.match-locked .team-name { color: #68726b; }

.prediction-table tr.prediction-submit-row td {
    padding: 18px;
    text-align: center;
    background: linear-gradient(180deg, #fff, #f4faf5);
}

.prediction-submit-button {
    width: min(100%, 340px);
    min-height: 54px;
    padding: 13px 26px;
    color: #fff;
    font: 800 15px/1.2 Inter, Arial, sans-serif;
    background: linear-gradient(135deg, var(--pitch-700), var(--pitch-500));
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22, 113, 58, .24);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.prediction-submit-button::before {
    content: "✓";
    margin-right: 9px;
    font-size: 17px;
}

.prediction-submit-button:hover,
.prediction-submit-button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(22, 113, 58, .32);
    outline: none;
}

.prediction-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 7px 16px rgba(22, 113, 58, .22);
}

.primary-form-button {
    width: min(100%, 320px);
    min-height: 54px;
    margin-top: 20px;
    padding: 13px 26px;
    color: #fff;
    font: 800 15px/1.2 Inter, Arial, sans-serif;
    background: linear-gradient(135deg, var(--pitch-700), var(--pitch-500));
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22, 113, 58, .24);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.primary-form-button::before {
    content: "+";
    margin-right: 9px;
    font-size: 19px;
    line-height: 0;
}

.primary-form-button:hover,
.primary-form-button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 14px 28px rgba(22, 113, 58, .32);
    outline: none;
}

.primary-form-button:active {
    transform: translateY(0);
    box-shadow: 0 7px 16px rgba(22, 113, 58, .22);
}

.chat-message {
    width: min(75%, 560px);
    margin: 9px 0;
    padding: 13px 16px;
    clear: both;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px 16px 16px 16px;
}

.chat-message.mine {
    float: right;
    color: #fff;
    text-align: right;
    background: var(--pitch-700);
    border-color: var(--pitch-700);
    border-radius: 16px 6px 16px 16px;
}

section::after { content: ""; display: table; clear: both; }

footer {
    width: 100%;
    margin-top: auto;
    padding: 20px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    text-align: center;
    background: var(--pitch-950);
    border-top: 3px solid var(--pitch-500);
}

footer a { color: #fff; font-weight: 600; }
.footer-dot { margin: 0 9px; color: var(--lime); }

@media (max-width: 900px) {
    body.menu-open { overflow: hidden; }
    header { height: 74px; padding: 0 16px; }
    header .brand img { height: 54px; max-width: 205px; }
    .active-championship { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .menu-toggle { display: flex; }
    .menu-open .menu-toggle {
        position: fixed;
        top: 15px;
        right: 16px;
        z-index: 1200;
        background: rgba(255, 255, 255, .12);
        box-shadow: none;
    }
    .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1100;
        width: min(86vw, 360px);
        height: 100dvh;
        padding: 92px 20px 30px;
        display: flex;
        align-content: flex-start;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-y: auto;
        border: 0;
        border-left: 3px solid var(--lime);
        box-shadow: -18px 0 45px rgba(1, 17, 8, .3);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .36s cubic-bezier(.22, 1, .36, 1), visibility .36s;
    }

    nav::before {
        content: "MENIU";
        position: absolute;
        top: 31px;
        left: 22px;
        color: rgba(255, 255, 255, .52);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .18em;
    }

    nav a { width: 100%; min-height: 48px; padding: 12px 14px; font-size: 14px; text-align: left; }
    nav a.nav-public-link { margin-left: 0; }
    body.menu-open nav { transform: translateX(0); visibility: visible; }

    .menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1050;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(3, 22, 11, .58);
        backdrop-filter: blur(3px);
        transition: opacity .3s ease, visibility .3s;
    }

    body.menu-open .menu-overlay { visibility: visible; opacity: 1; }

    section {
        width: min(100% - 22px, 1040px);
        margin: 20px auto;
        padding: 26px 18px 32px;
        border-radius: 18px;
    }

    h1 { margin-bottom: 24px; }
    .game-entry { grid-template-columns: 1fr 1fr; }
    .table { display: block; overflow-x: auto; font-size: 13px; }
    .table td, .table th { padding: 10px 7px; }
    .table input, .table select { min-height: 42px; padding: 8px 7px; }
    .score-stepper { height: 42px; grid-template-columns: 30px 36px 30px; }
    .score-stepper input[type="number"] { width: 36px !important; min-height: 40px; padding: 0; }
}

@media (max-width: 520px) {
    header .brand img { height: 48px; max-width: 180px; }
    .active-championship { display: none; }
    .menu-toggle { width: 44px; height: 44px; border-radius: 12px; }
    .round_btn { min-height: 54px; padding: 14px 15px; font-size: 14px; }
    .home-actions { grid-template-columns: 1fr; }
    .landing-hero-actions { grid-template-columns: 1fr; }
    .pricing-card h3 { padding-top: 28px; padding-right: 0; }
    .price-options { grid-template-columns: 1fr; }
    .game-entry { grid-template-columns: 1fr; }
    .table { font-size: 12px; }
    .table td, .table th { padding: 9px 5px; }
    input[type="number"], select[style*="width:50px"] { width: 46px !important; min-width: 46px; }
    .match-score { gap: 5px; }
    .score-stepper { grid-template-columns: 27px 32px 27px; border-radius: 10px; }
    .score-stepper input[type="number"] { width: 32px !important; min-width: 0; font-size: 15px; }
    .score-stepper button { font-size: 17px; }
    .score-separator { font-size: 17px; }
    .chat-message { width: 88%; }
    footer span, footer a { display: block; margin: 3px 0; }
    footer .footer-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Website builder */
.builder-form,
.setup-form {
    display: grid;
    gap: 20px;
}

.form-field {
    width: min(100%, 520px);
    margin: 0 auto;
    display: grid;
    gap: 8px;
    text-align: left;
}

.form-field label,
.compact-form label {
    color: var(--pitch-950);
    font-size: 14px;
    font-weight: 750;
}

.optional-label { color: var(--muted); font-weight: 500; }

.form-field input, .form-field textarea { width: 100%; }
.form-field small { color: var(--muted); font-size: 12px; }

.registration-package-fieldset {
    width: min(100%, 720px);
    margin: 4px auto;
    padding: 20px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.registration-package-fieldset legend { padding: 0 9px; color: var(--pitch-950); font-size: 15px; font-weight: 800; }
.registration-package-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.registration-package-option {
    position: relative;
    min-height: 118px;
    padding: 18px 18px 18px 48px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.registration-package-option:hover { transform: translateY(-2px); border-color: #a8d8e9; }
.registration-package-option:has(input:checked) { background: #eef9fd; border-color: var(--pitch-500); box-shadow: 0 0 0 4px rgba(25, 167, 206, .12); }
.registration-package-option input { position: absolute; left: 17px; width: 18px; min-height: 18px; margin: 0; }
.registration-package-option strong { display: block; margin-bottom: 7px; color: var(--pitch-950); font-size: 15px; }
.registration-package-option small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.custom-domain-field[hidden] { display: none; }

.primary-button,
.secondary-button {
    min-height: 46px;
    padding: 11px 18px;
    font: 750 14px/1.2 Inter, Arial, sans-serif;
    border-radius: 11px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.primary-button {
    width: min(100%, 360px);
    margin: 8px auto 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pitch-700), var(--pitch-500));
    border: 0;
    box-shadow: 0 10px 22px rgba(20, 108, 148, .22);
}

.secondary-button {
    color: var(--pitch-800);
    background: #fff;
    border: 1px solid #bfd8e5;
}

.primary-button:hover,
.secondary-button:hover { transform: translateY(-2px); }
.login-link { margin-top: 24px; }
.logout-form { margin-top: 24px; }
.company-form { width: min(100%, 920px); display: grid; gap: 22px; }
.company-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.company-form-grid .form-field { width: 100%; margin: 0; }
.company-field-wide { grid-column: 1 / -1; }
.company-identity-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: start; gap: 30px; }
.company-identity-data { display: grid; gap: 20px; }
.company-identity-layout .form-field, .company-contact-grid .form-field { width: 100%; margin: 0; }
.company-logo-field { padding: 20px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; }
.company-settings-logo { width: 100%; height: 150px; margin-bottom: 4px; padding: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.company-contact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.company-phone-field { grid-column: span 2; }
.company-address-field { grid-column: span 4; }
.company-contact-grid > .form-field:not(.company-phone-field):not(.company-address-field) { grid-column: span 2; }
.locked-field-message { padding: 8px 10px; color: #775b12 !important; background: #fff8dc; border: 1px solid #ead997; border-radius: 8px; }

.builder-fieldset {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.builder-fieldset legend {
    padding: 0 10px;
    color: var(--pitch-950);
    font-weight: 800;
    text-align: left;
}
.fieldset-help { margin: 0 0 20px; font-size: 13px; }

.theme-grid,
.structure-grid,
.layout-grid,
.module-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.choice-card {
    position: relative;
    min-height: 140px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 15px;
    cursor: pointer;
}

.choice-card:has(input:checked) {
    border-color: var(--pitch-500);
    box-shadow: 0 0 0 4px rgba(25, 167, 206, .13);
}

.choice-card input {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.choice-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.color-preview { display: flex; gap: 6px; }
.color-preview i { width: 30px; height: 30px; display: block; border-radius: 50%; }
.color-preview i:nth-child(1) { background: var(--choice-primary); }
.color-preview i:nth-child(2) { background: var(--choice-secondary); }
.color-preview i:nth-child(3) { background: var(--choice-accent); }
.layout-preview { width: 132px; height: 82px; padding: 6px; display: grid !important; align-content: stretch; gap: 5px; overflow: hidden; background: #eaf2f7; border: 1px solid #c7d9e3; }
.layout-preview i { display: block; background: linear-gradient(90deg, var(--pitch-800), var(--pitch-500)); }
.layout-preview-full { grid-template-rows: 15px 1fr 18px; border-radius: 5px; }
.layout-preview-full i { width: calc(100% + 12px); margin-left: -6px; }
.layout-preview-rounded { padding: 8px 12px; grid-template-rows: 13px 1fr 16px; gap: 6px; border-radius: 12px; }
.layout-preview-rounded i { border-radius: 6px; box-shadow: 0 3px 7px rgba(11,37,69,.14); }
.layout-preview-square { padding: 8px 10px; grid-template-rows: 13px 1fr 16px; gap: 0; border-radius: 0; background: #fff; }
.layout-preview-square i { background: #fff; border: 2px solid var(--pitch-700); border-bottom: 0; }
.layout-preview-square i:last-child { border-bottom: 2px solid var(--pitch-700); }
.layout-choice > span:last-child { max-width: 210px; text-align: center; }

.editor-heading {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.editor-heading h1 { margin: 8px 0; }
.editor-heading h1::after { margin-left: 0; }
.editor-heading p { margin: 0; }
.company-logo-preview { width: 150px; height: 90px; object-fit: contain; }
.editor-heading-actions { display: flex; align-items: center; gap: 18px; }
.preview-site-button {
    min-height: 46px;
    padding: 12px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--pitch-800), var(--pitch-600));
    border-radius: 11px;
    box-shadow: 0 10px 22px rgba(20, 108, 148, .22);
}
.preview-site-button:hover { color: #fff; transform: translateY(-2px); }

.status-pill {
    width: fit-content;
    padding: 5px 9px;
    color: var(--pitch-800);
    font-size: 11px;
    font-weight: 800;
    background: #e9f6fb;
    border: 1px solid #b8dce9;
    border-radius: 20px;
}

.editor-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    text-align: left;
}

.pages-panel {
    padding-right: 22px;
    border-right: 1px solid var(--line);
}

.pages-panel h2,
.modules-panel h2 { margin-top: 0; }
.active-page-heading { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.active-page-heading h2 { margin-bottom: 0; }
.page-delete-form { width: auto; margin: 0; }
.page-delete-button {
    min-height: 38px;
    padding: 9px 13px;
    color: #9b2222;
    font: 800 12px/1 Inter, Arial, sans-serif;
    background: #fff1f1;
    border: 1px solid #e5aaaa;
    border-radius: 9px;
    cursor: pointer;
}
.page-delete-button:hover { color: #fff; background: #b42323; border-color: #b42323; }
.page-seo-panel { margin: -6px 0 24px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.page-seo-panel summary { padding: 13px 15px; color: var(--pitch-800); font-size: 13px; font-weight: 800; cursor: pointer; }
.page-seo-form { width: 100%; padding: 4px 16px 18px; display: grid; gap: 15px; }
.page-seo-form .form-field { width: 100%; }
.page-seo-form input, .page-seo-form textarea { width: 100%; max-width: none; }
.page-seo-form textarea { resize: vertical; }
.page-seo-form .secondary-button { width: fit-content; }
.page-list { display: grid; gap: 7px; }
.page-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.page-link { min-width: 0; padding: 11px 13px; overflow-wrap: anywhere; border-radius: 10px; font-weight: 700; }
.page-link small { margin-left: 5px; opacity: .65; }
.page-link.is-active { color: #fff; background: var(--pitch-700); }
.page-order-form { width: auto; margin: 0; display: inline-flex; gap: 3px; }
.page-order-form button {
    width: 27px;
    height: 30px;
    padding: 0;
    color: var(--pitch-800);
    font: 800 15px/1 Inter, Arial, sans-serif;
    background: #fff;
    border: 1px solid #bfd8e5;
    border-radius: 7px;
    cursor: pointer;
}
.page-order-form button:hover:not(:disabled) { color: #fff; background: var(--pitch-700); border-color: var(--pitch-700); }
.page-order-form button:disabled { opacity: .28; cursor: not-allowed; }
.page-order-locked { width: 57px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }

.compact-form {
    margin-top: 28px;
    display: grid;
    gap: 9px;
}

.compact-form input { width: 100%; }
.module-list { margin-bottom: 32px; display: grid; gap: 10px; }
.module-row {
    padding: 14px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.module-row small { margin-top: 4px; display: block; color: var(--muted); }
.module-position { font-weight: 800; color: var(--pitch-600); }
.edit-module-button {
    padding: 9px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: var(--pitch-700);
    border-radius: 9px;
}
.edit-module-button:hover { color: #fff; background: var(--pitch-600); }
.module-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.module-delete-form { width: auto; margin: 0; }
.module-delete-button {
    min-height: 34px;
    padding: 8px 10px;
    color: #9b2222;
    font: 800 11px/1 Inter, Arial, sans-serif;
    background: #fff1f1;
    border: 1px solid #e5aaaa;
    border-radius: 9px;
    cursor: pointer;
}
.module-delete-button:hover { color: #fff; background: #b42323; border-color: #b42323; }
.module-order-form { width: auto; margin: 0; display: inline-flex; gap: 5px; }
.module-order-form button {
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--pitch-800);
    font: 800 17px/1 Inter, Arial, sans-serif;
    background: #fff;
    border: 1px solid #bfd8e5;
    border-radius: 8px;
    cursor: pointer;
}
.module-order-form button:hover:not(:disabled) { color: #fff; background: var(--pitch-700); border-color: var(--pitch-700); }
.module-order-form button:disabled { opacity: .32; cursor: not-allowed; }
.module-order-locked { width: 73px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.empty-state { margin-bottom: 32px; padding: 28px; text-align: center; background: var(--surface-soft); border: 1px dashed #b8c9bb; border-radius: 14px; }
.empty-state p { margin-bottom: 0; }

.module-card {
    width: 100%;
    min-height: 180px;
    margin: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.module-card span { flex: 1; color: var(--muted); font-size: 13px; line-height: 1.5; }
.module-card .secondary-button { min-height: 38px; padding: 8px 12px; }

.editor-breadcrumb { margin-bottom: 18px; text-align: left; font-weight: 750; }
.module-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
    gap: 30px;
    text-align: left;
}

.module-editor-main { min-width: 0; }
.module-settings-form,
.item-editor .builder-form {
    width: 100%;
    padding: 24px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.module-form-field { width: 100%; }
.module-form-field input:not([type="checkbox"]),
.module-form-field textarea { width: 100%; max-width: none; }
.module-form-field input[type="number"] { width: 100% !important; min-width: 0; text-align: left; }
.module-form-field textarea { resize: vertical; }
.rich-text-editor { position: relative; width: 100%; overflow: hidden; background: #fff; border: 1px solid #c7d9e3; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.rich-text-editor:focus-within { border-color: var(--pitch-500); box-shadow: 0 0 0 4px rgba(25, 167, 206, .14); }
.rich-text-editor.has-error { border-color: #c83d3d; box-shadow: 0 0 0 4px rgba(200, 61, 61, .12); }
.rich-text-toolbar { padding: 7px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.rich-text-tool { min-width: 34px; height: 32px; padding: 0 9px; color: var(--pitch-800); font: 750 12px/1 Inter, Arial, sans-serif; background: #fff; border: 1px solid #bfd8e5; border-radius: 7px; cursor: pointer; }
.rich-text-tool:hover, .rich-text-tool:focus-visible { color: #fff; background: var(--pitch-700); border-color: var(--pitch-700); }
.rich-text-tool-bold { font-weight: 900; }
.rich-text-tool-italic { font-style: italic; }
.rich-text-tool-underline { text-decoration: underline; }
.rich-text-content { min-height: 150px; padding: 14px; color: var(--text); line-height: 1.65; outline: 0; overflow-wrap: anywhere; }
.rich-text-content:empty::before { content: "Scrie textul aici..."; color: #8796a1; pointer-events: none; }
.rich-text-content p { margin: 0 0 10px; }
.rich-text-content p:last-child { margin-bottom: 0; }
.rich-text-content ul, .rich-text-content ol { margin: 8px 0; padding-left: 24px; }
.rich-text-content a { color: var(--pitch-600); text-decoration: underline; }
.rich-textarea-source { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 1px !important; margin: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; }
.checkbox-field { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.checkbox-field input { width: 18px; min-height: 18px; margin: 0; }
.asset-preview { width: min(100%, 420px); max-height: 230px; padding: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.document-current { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--pitch-900); background: var(--ice-100); border: 1px solid var(--line); border-radius: 10px; }
.document-current strong { min-width: 0; overflow-wrap: anywhere; }
.document-current span { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 800; }

.module-editor-sidebar {
    position: sticky;
    top: 160px;
    padding: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 15px;
}

.module-editor-sidebar h2 { margin-top: 0; }
.module-editor-sidebar dl { margin: 0 0 22px; }
.module-editor-sidebar dt { margin-top: 12px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.module-editor-sidebar dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.module-editor-sidebar form { width: 100%; }
.required-module-note { margin: 18px 0 0; padding: 11px; color: var(--pitch-800); font-size: 12px; font-weight: 700; background: #e9f6fb; border: 1px solid #b8dce9; border-radius: 9px; }
.danger-button {
    min-height: 42px;
    padding: 9px 14px;
    color: #9b2222;
    font: 750 13px/1.2 Inter, Arial, sans-serif;
    background: #fff1f1;
    border: 1px solid #e5aaaa;
    border-radius: 10px;
    cursor: pointer;
}

.repeater-section { margin-top: 34px; }
.item-editor { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.item-editor summary { padding: 16px 18px; color: var(--pitch-900); font-weight: 800; background: var(--surface-soft); cursor: pointer; }
.item-editor .builder-form { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; }
.add-item-editor { border-style: dashed; }
.form-actions { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.form-actions .primary-button { width: auto; margin: 0; }

@media (max-width: 760px) {
    .landing-benefits { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .registration-package-options { grid-template-columns: 1fr; }
    .editor-layout { grid-template-columns: 1fr; }
    .pages-panel { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--line); }
    .editor-heading { align-items: flex-start; }
    .company-logo-preview { width: 100px; height: 70px; }
    .editor-heading-actions { align-items: flex-end; flex-direction: column; }
    .builder-fieldset { padding: 16px; }
    .company-form-grid { grid-template-columns: 1fr; }
    .company-field-wide { grid-column: auto; }
    .company-identity-layout { grid-template-columns: 1fr; }
    .company-logo-field { order: -1; }
    .company-contact-grid { grid-template-columns: 1fr; }
    .company-phone-field, .company-address-field,
    .company-contact-grid > .form-field:not(.company-phone-field):not(.company-address-field) { grid-column: auto; }
    .module-editor-layout { grid-template-columns: 1fr; }
    .module-editor-sidebar { position: static; }
    .module-row { grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 8px; }
    .module-row .status-pill { display: none; }
    .module-row-actions { align-items: stretch; flex-direction: column; }
    .module-row-actions .edit-module-button, .module-delete-button { text-align: center; }
    .active-page-heading { align-items: flex-start; }
    .page-delete-button { padding-inline: 10px; }
}
