/* ── Variables ──────────────────────────────── */
:root {
    --navy:       #0d1b2a;
    --navy-mid:   #1a2e45;
    --navy-light: #243b55;
    --gold:       #c9a84c;
    --gold-light: #e8c97a;
    --cream:      #f5f0e8;
    --cream-dark: #ede5d4;
    --text-main:  #1a1a2e;
    --text-muted: #6b7280;
    --white:      #ffffff;
    --red:        #dc2626;
    --shadow:     0 8px 40px rgba(13,27,42,0.12);
    --radius:     12px;
}

/* ── Utilities ──────────────────────────────── */
.hidden { display: none !important; }

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(201,168,76,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(13,27,42,0.06) 0%, transparent 60%);
}

/* ── Header ─────────────────────────────────── */
.header {
    background: var(--cream);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    position: relative;
    flex-shrink: 0;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.header__logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.header__notice {
    font-family: 'Arial', sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid rgba(201,168,76,0.3);
    padding-left: 1.5rem;
}

.header__notice-icon {
    color: var(--navy);
    font-style: normal;
    font-size: 1.5rem;
}

/* ── Main ───────────────────────────────────── */
.main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1.5rem 3rem;
}

/* ── Card ───────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow), 0 1px 0 rgba(201,168,76,0.15);
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card__top {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 2rem 2.2rem 1.8rem;
    position: relative;
    overflow: hidden;
}

.card__top::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(201,168,76,0.08);
}

.card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.01em;
    margin-bottom: 0.3rem;
}

.card__subtitle {
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
}

.info-banner {
    background: rgba(13,27,42,0.06);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 400;
    line-height: 1.4;
}

.info-banner--warning {
    background: #fef3c7;
    border-left-color: #d97706;
    color: #7c4a03;
    margin-bottom: 30px;
}

/* ── Form ───────────────────────────────────── */
.form {
    display: flex;
    flex-direction: column;
}

.form-section {
    padding: 1.6rem 2.2rem 0;
    transition: opacity 0.25s;
}

.form-section.hidden {
    display: none;
}

.form-section__label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* ── Entity options ─────────────────────────── */
.entity-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.entity-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.entity-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.entity-option__box {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    background: var(--cream);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
}

.entity-option__box::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--cream-dark);
    background: var(--white);
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.entity-option__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    padding-left: 1.75rem;
}

.entity-option__desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 300;
    padding-left: 1.75rem;
    margin-top: 0.1rem;
}

.entity-option--disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.entity-option--disabled .entity-option__box {
    opacity: 0.4;
}

.entity-option:hover .entity-option__box {
    border-color: var(--gold);
    background: rgba(201,168,76,0.04);
}

.entity-option input[type="radio"]:checked + .entity-option__box {
    border-color: var(--gold);
    background: rgba(201,168,76,0.06);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.entity-option input[type="radio"]:checked + .entity-option__box::before {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: inset 0 0 0 3px var(--white);
}

/* ── Search area ────────────────────────────── */
.input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    background: var(--cream);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    background: #fff;
}

.input-group__icon {
    padding: 0 0.75rem 0 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.input-group:focus-within .input-group__icon {
    color: var(--gold);
}

.input-group__field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-main);
    padding: 0.8rem 0;
}

.input-group__field::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.input-group__clear {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    pointer-events: none;
}

.input-group__clear.visible {
    opacity: 1;
    pointer-events: auto;
}

.input-group__clear:hover { color: var(--navy); }

/* ── Results list ───────────────────────────── */
.results {
    margin-top: 0.6rem;
    border-radius: var(--radius);
    border: 1.5px solid var(--cream-dark);
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
    background: var(--white);
}

.results::-webkit-scrollbar { width: 4px; }
.results::-webkit-scrollbar-track { background: transparent; }
.results::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 2px; }

.results__list { list-style: none; }

.results__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid var(--cream);
    transition: background 0.15s;
}

.results__item:last-child { border-bottom: none; }
.results__item:hover { background: rgba(201,168,76,0.07); }
.results__item.hidden { display: none; }

.results__item.selected {
    background: rgba(201,168,76,0.13);
}

.results__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    opacity: 0.6;
}

.results__item.selected .results__dot {
    opacity: 1;
    width: 8px; height: 8px;
}

.results__text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.results__name {
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.3;
}

.results__desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
}

.results__empty {
    display: none;
    padding: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.results__empty.visible { display: block; }

/* ── Selected entity ────────────────────────── */
.selected-entity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius);
    background: rgba(201,168,76,0.06);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.selected-entity.hidden { display: none; }

.selected-entity__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.selected-entity__text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1;
}

.selected-entity__name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.selected-entity__desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 300;
}

.selected-entity__change {
    border: 1.5px solid var(--cream-dark);
    background: var(--white);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 0.3rem 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s;
}

.selected-entity__change:hover {
    border-color: var(--gold);
    color: var(--navy);
}

/* ── Form fields ────────────────────────────── */
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.field-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.required {
    color: var(--red);
    margin-left: 0.1rem;
}

.field-input {
    border: 1.5px solid var(--cream-dark);
    border-radius: 8px;
    background: var(--cream);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-main);
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    width: 100%;
}

.field-input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.field-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    background: #fff;
}

.field-input.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

.field-input.field-locked,
.field-locked {
    background: #e0ddd4;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #d1cdc4;
    opacity: 0.7;
}

.field-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* ── Email tags ─────────────────────────────── */
.email-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
    cursor: text;
    min-height: 42px;
}

.email-tags-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    background: #fff;
}

.email-tags {
    display: contents;
}

.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--cream-dark);
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.3;
}

.email-tag__remove {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.email-tag__remove:hover {
    color: var(--red);
}

.email-tags__input {
    flex: 1;
    min-width: 140px;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-main);
    padding: 0.2rem 0;
}

.email-tags__input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

/* ── SOCE checkbox ──────────────────────────── */
.soce-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    padding: 0.7rem 1rem;
    background: rgba(13,27,42,0.04);
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    transition: border-color 0.2s, background 0.2s;
}

.soce-label:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.04);
}

.soce-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.soce-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

/* ── CGU ─────────────────────────────────────── */
.cgu-section {
    padding-top: 0.8rem;
    padding-bottom: 0.2rem;
}

.cgu-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}

.cgu-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--gold);
    cursor: pointer;
}

.cgu-text {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cgu-link {
    color: var(--navy);
    font-weight: 500;
    text-underline-offset: 2px;
}

.cgu-link:hover {
    color: var(--gold);
}

.cgu-error .cgu-text {
    color: var(--red);
}

.cgu-error input[type="checkbox"] {
    outline: 2px solid var(--red);
    outline-offset: 1px;
    border-radius: 2px;
}

/* ── Footer / Button ────────────────────────── */
.card__footer {
    padding: 1.4rem 2.2rem 2rem;
    display: flex;
    justify-content: flex-end;
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 15px rgba(13,27,42,0.2);
}

.btn-next::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    opacity: 0;
    transition: opacity 0.25s;
}

.btn-next:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,27,42,0.25); }
.btn-next:hover::before { opacity: 1; }
.btn-next:active { transform: translateY(0); }
.btn-next svg, .btn-next span { position: relative; z-index: 1; }

/* ── Card wide ──────────────────────────────── */
.card--wide {
    max-width: 680px;
}

/* ── Antenas section ─────────────────────────── */
.antenas-section {
    padding-bottom: 0.4rem;
}

.antenas-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cream-dark) 30%, var(--cream-dark) 70%, transparent);
    margin: 0.2rem 2.2rem 0;
}

/* ── Antena row ──────────────────────────────── */
.antena-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    border-bottom: 1px solid var(--cream);
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.antena-row:last-child { border-bottom: none; }

.antena-row:not(.antena-row--paid):not(.antena-row--locked):hover {
    background: rgba(201,168,76,0.06);
}

.antena-row--paid {
    cursor: not-allowed;
    pointer-events: none;
}

.antena-row--paid .antena-row__check,
.antena-row--paid .antena-row__name {
    opacity: 0.45;
}

.antena-row--locked {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.antena-row--selected {
    background: rgba(201,168,76,0.09);
}

.antena-row__check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.antena-row__check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--gold);
    cursor: pointer;
}

.antena-row--paid .antena-row__check input,
.antena-row--locked .antena-row__check input {
    cursor: default;
}

.antena-row__name {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-main);
}

.antena-link {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.antena-link:hover {
    color: var(--gold);
}

.antena-row__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.antena-row__price {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-main);
    min-width: 75px;
    text-align: right;
}

/* ── Custom amount (regional antenas) ──────────── */
.antena-amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.antena-amount__presets {
    display: inline-flex;
    gap: 0.25rem;
}

.antena-preset {
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--navy);
    background: var(--cream-dark);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.28rem 0.55rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.antena-preset:hover {
    background: var(--gold-light);
    border-color: var(--gold);
}

.antena-amount__input {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    padding: 0 0.55rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.antena-amount__input:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201,168,76,0.2);
}

.antena-amount-field {
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    border: none;
    outline: none;
    background: transparent;
    width: 72px;
    padding: 0.3rem 0;
    text-align: right;
    -moz-appearance: textfield;
}

.antena-amount-field::-webkit-outer-spin-button,
.antena-amount-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.antena-amount__suffix {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.antena-badge {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--cream-dark);
    border-radius: 4px;
    padding: 0.18rem 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.antena-badge--pending {
    color: #92600a;
    background: #fef3c7;
}

.antena-badge--draft {
    color: #4b5563;
    background: #e5e7eb;
}

.antena-end-date {
    font-size: 0.75rem;
    color: var(--text-main);
    font-weight: 400;
    white-space: nowrap;
}

.antena-btn-view {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.antena-btn-view:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.antena-row--paid .antena-btn-view {
    pointer-events: auto;
    cursor: pointer;
}

/* ── Selection footer ────────────────────────── */
.selection-footer {
    justify-content: space-between !important;
    align-items: center;
}

.selection-total {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.selection-total strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-left: 0.25rem;
}

/* ── Admin ──────────────────────────────────── */
.admin-logout {
    font-size: 0.85rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.15s;
}
.admin-logout:hover { opacity: 0.7; }

.admin-main {
    padding: 1.5rem 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.admin-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--cream-dark);
    margin-bottom: 1rem;
}

.admin-tab {
    padding: 0.6rem 1.2rem;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.admin-tab:hover { color: var(--text-main); }
.admin-tab--active {
    color: var(--navy);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.admin-btn {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.admin-btn--add {
    background: var(--navy);
    color: var(--white);
}
.admin-btn--add:hover { background: var(--navy-mid); }

.admin-btn--save {
    background: #16a34a;
    color: var(--white);
}
.admin-btn--save:hover { background: #15803d; }

.admin-btn--del {
    background: none;
    color: var(--red);
    font-weight: 400;
}
.admin-btn--del:hover { text-decoration: underline; }

.admin-btn--hidden { display: none; }

.admin-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-th {
    position: sticky;
    top: 0;
    background: var(--navy);
    color: var(--white);
    text-align: left;
    padding: 0.55rem 0.7rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.admin-th:hover { background: var(--navy-mid); }
.admin-th--actions { cursor: default; text-align: center; width: 1%; }
.admin-th--actions:hover { background: var(--navy); }
.admin-th--asc::after  { content: ' \25B2'; font-size: 0.65rem; }
.admin-th--desc::after { content: ' \25BC'; font-size: 0.65rem; }

.admin-td {
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid var(--cream-dark);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
}
.admin-td:not(.admin-td--id):not(.admin-td--actions) { cursor: text; }
.admin-td:not(.admin-td--id):not(.admin-td--actions):hover { background: #fefce8; }
.admin-td--id {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.78rem;
}
.admin-td--actions {
    text-align: center;
    white-space: nowrap;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
}
.admin-td--modified { background: #fef9c3 !important; }

.admin-row:nth-child(even) .admin-td:not(.admin-td--modified) { background: #fafaf5; }
.admin-row--new .admin-td { background: #ecfdf5; }

.admin-cell-input {
    width: 100%;
    min-width: 60px;
    padding: 0.25rem 0.4rem;
    font-family: inherit;
    font-size: 0.82rem;
    border: 1px solid var(--gold);
    border-radius: 4px;
    outline: none;
    background: var(--white);
}
.admin-cell-input:focus { box-shadow: 0 0 0 2px rgba(201,168,76,0.3); }

.admin-loading,
.admin-empty,
.admin-error {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.admin-error { color: var(--red); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 500px) {
    .field-row { grid-template-columns: 1fr; }
    .form-section { padding-left: 1.4rem; padding-right: 1.4rem; }
    .card__footer { padding-left: 1.4rem; padding-right: 1.4rem; }
    .admin-main { padding: 1rem 0.75rem; }
    .admin-tabs { overflow-x: auto; }
    .admin-tab { font-size: 0.78rem; padding: 0.5rem 0.8rem; }
}

/* ── Confirmation page ──────────────────────── */
.confirmation-content {
    padding: 1.6rem 2.2rem 0;
}

.confirmation-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.confirmation-summary--ok {
    background: rgba(22, 163, 74, 0.08);
    border: 1.5px solid rgba(22, 163, 74, 0.25);
    color: #15803d;
}

.confirmation-summary--mixed {
    background: rgba(220, 38, 38, 0.06);
    border: 1.5px solid rgba(220, 38, 38, 0.2);
    color: #b91c1c;
}

.confirmation-summary__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #16a34a;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.confirmation-summary__icon--warn {
    background: var(--red);
}

.confirmation-results {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.confirmation-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--cream-dark);
    background: var(--white);
}

.confirmation-row--ok {
    border-color: rgba(22, 163, 74, 0.2);
    background: rgba(22, 163, 74, 0.03);
}

.confirmation-row--error {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.03);
}

.confirmation-row--warn {
    border-color: rgba(146, 96, 10, 0.2);
    background: rgba(254, 243, 199, 0.3);
}

.confirmation-row__status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.confirmation-row--ok .confirmation-row__status {
    background: #16a34a;
    color: var(--white);
}

.confirmation-row--error .confirmation-row__status {
    background: var(--red);
    color: var(--white);
}

.confirmation-row--warn .confirmation-row__status {
    background: #f59e0b;
    color: var(--white);
    font-size: 0.75rem;
}

.confirmation-row__detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.confirmation-row__detail strong {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
}

.confirmation-row__recipients {
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
}

.confirmation-row__error {
    font-size: 0.82rem;
    color: #b91c1c;
}

.confirmation-btn-view {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 0.25rem 0.7rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.confirmation-btn-view:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}
