:root {
    --ink: #0a0e1c;
    --ink-soft: #141a30;
    --line: rgba(255, 255, 255, 0.09);
    --text: #e9ecf7;
    --text-soft: #9aa4c7;
    --accent: #6d8dff;
    --accent-2: #a78bfa;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --radius: 16px;
    --font-display: "Sora", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ */
/* Landing page                                                        */
/* ------------------------------------------------------------------ */

body.landing {
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(109, 141, 255, 0.16), transparent 60%),
        radial-gradient(900px 500px at 100% 110%, rgba(167, 139, 250, 0.13), transparent 60%),
        var(--ink);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.glow-a {
    width: 480px;
    height: 480px;
    background: rgba(109, 141, 255, 0.18);
    top: -180px;
    left: -120px;
}

.glow-b {
    width: 420px;
    height: 420px;
    background: rgba(167, 139, 250, 0.14);
    right: -140px;
    bottom: -160px;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent 80%);
}

.site-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px max(24px, calc((100vw - 1120px) / 2));
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    background: #ffffff;
    color: #20263c;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    mix-blend-mode: soft-light;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.05), transparent 42%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 14px rgba(109, 141, 255, 0.7);
}

.badge {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
    animation: status-flash 1.4s ease-in-out infinite;
}

@keyframes status-flash {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
    }
    50% {
        opacity: 0.35;
        box-shadow: 0 0 2px rgba(52, 211, 153, 0.35);
    }
}

.hero {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 4vh auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 72px;
    align-items: center;
    padding-bottom: 80px;
    animation: hero-in 0.7s ease both;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eyebrow-icon {
    width: 16px;
    height: 16px;
    flex: none;
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(44px, 7vw, 84px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    background: linear-gradient(115deg, #ffffff 20%, #b9c6ff 55%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    margin: 22px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
    max-width: 46ch;
}

.price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.price-pill,
.offer-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 15px;
}

.price-pill {
    background: linear-gradient(135deg, rgba(109, 141, 255, 0.18), rgba(167, 139, 250, 0.14));
    border: 1px solid rgba(109, 141, 255, 0.35);
}

.price-pill span {
    color: var(--text-soft);
    font-size: 13px;
}

.price-pill strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
}

.offer-pill {
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.08);
    color: var(--success);
    font-weight: 600;
}

.usps {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.usps li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c7cdea;
    font-size: 15px;
}

.usps .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.14);
    color: var(--success);
    font-size: 12px;
    flex: none;
}

.form-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.form-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.heading-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex: none;
}

.form-heading p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.lead-form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #cdd4ee;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 13px 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(154, 164, 199, 0.55);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(109, 141, 255, 0.22);
}

.field.has-error input {
    border-color: var(--danger);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    width: 0;
}

.captcha-wrap {
    min-height: 66px;
    display: flex;
    align-items: center;
}

.captcha-wrap altcha-widget {
    --altcha-color-base: rgba(255, 255, 255, 0.045);
    --altcha-color-border: rgba(255, 255, 255, 0.14);
    --altcha-color-border-focus: var(--accent);
    --altcha-color-text: var(--text);
    --altcha-color-active: var(--accent);
    --altcha-color-error-text: var(--danger);
    --altcha-footer-bg: transparent;
    --altcha-border-radius: 10px;
    --altcha-max-width: 100%;
}

.btn-primary {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 11px;
    padding: 14px 22px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #5b7cff, #8b5cf6);
    box-shadow: 0 12px 30px rgba(91, 124, 255, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(91, 124, 255, 0.45);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.link-btn:focus-visible,
.admin-nav a:focus-visible,
.brand:focus-visible,
.back-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-primary:disabled,
.btn-primary.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-secondary {
    appearance: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #d6dcef;
    border-radius: 10px;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:disabled {
    opacity: 0.55;
    cursor: wait;
}

.privacy-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* Portfolio table */

.portfolio {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.portfolio-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 22px;
}

.domains-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.domains-table th {
    text-align: left;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--line);
}

.domains-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.domains-table tbody tr:last-child td {
    border-bottom: 0;
}

.domains-table tbody tr {
    transition: background 0.15s ease;
}

.domains-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.domain-name {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.domain-tagline {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
    max-width: 42ch;
}

.cell-value {
    display: contents;
}

.price-pill.small,
.offer-pill.small {
    padding: 6px 13px;
    font-size: 13px;
}

.price-pill.small strong {
    font-size: 15px;
}

.muted-text {
    color: var(--text-soft);
    font-size: 13px;
}

.btn-offer {
    appearance: none;
    cursor: pointer;
    border: 1px solid rgba(109, 141, 255, 0.45);
    background: rgba(109, 141, 255, 0.12);
    color: #dce4ff;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-offer:hover {
    background: rgba(109, 141, 255, 0.22);
    box-shadow: 0 8px 22px rgba(91, 124, 255, 0.28);
    transform: translateY(-1px);
}

.btn-offer:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.col-action {
    white-space: nowrap;
}

.empty-state {
    margin-top: 26px;
    text-align: center;
    color: var(--text-soft);
    padding: 34px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}

.empty-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    color: var(--accent);
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Offer modal */

.offer-dialog {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 460px;
    width: calc(100% - 32px);
    color: var(--text);
}

.offer-dialog::backdrop {
    background: rgba(5, 8, 18, 0.72);
    backdrop-filter: blur(4px);
}

.dialog-card {
    position: relative;
    background: linear-gradient(160deg, #171d33, #10162a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.dialog-close {
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 16px;
    transition: background 0.15s ease, color 0.15s ease;
}

.dialog-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dialog-close-icon {
    width: 18px;
    height: 18px;
}

.modal-domain {
    color: var(--accent);
}

/* Admin domains table */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.admin-table th {
    text-align: left;
    color: #7a8196;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 0 12px 10px;
    border-bottom: 1px solid #e6e9f2;
}

.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #edf0f7;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: #fafbfe;
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    background: #eef1f8;
    color: #5b6276;
}

.status-badge.ok {
    background: #e7f9f1;
    color: #127a54;
}

.action-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.action-links a {
    color: #4f6ef7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.action-links a:hover {
    text-decoration: underline;
}

.link-danger {
    color: #d64545 !important;
}

.link-as-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
}

.form-actions .btn-secondary {
    margin-left: 10px;
}

.card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-icon {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d7dce8;
    background: #ffffff;
    color: #39405a;
    border-radius: 8px;
    padding: 7px 12px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-icon:hover {
    background: #f4f6fb;
    border-color: #b9c2d6;
    color: #20263c;
}

.btn-icon:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-icon-danger {
    color: #d64545;
}

.btn-icon-danger:hover {
    background: #fdeeee;
    border-color: #f0b9b9;
    color: #b93b3b;
}

.btn-icon-svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.btn-icon.icon-only {
    padding: 8px;
    justify-content: center;
}

.btn-icon.icon-only .btn-icon-svg {
    width: 16px;
    height: 16px;
}

.alert {
    border-radius: 11px;
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 18px;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--success);
}

.alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.32);
    color: #fca5a5;
}

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 26px max(24px, calc((100vw - 1120px) / 2));
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 13px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: none;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------------ */
/* Admin                                                               */
/* ------------------------------------------------------------------ */

body.admin-body {
    min-height: 100vh;
    background: #f2f4fa;
    color: #20263c;
}

.admin-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e9f2;
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-header-inner {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.admin-header .brand {
    color: #20263c;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.admin-nav a,
.admin-nav .link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.admin-nav a {
    color: #5b6276;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.admin-nav a:hover {
    color: #20263c;
}

.admin-nav a.is-active {
    color: #4f6ef7;
    font-weight: 600;
}

.inline-form {
    margin: 0;
}

.link-btn {
    appearance: none;
    border: 0;
    background: none;
    cursor: pointer;
    color: #5b6276;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    font-family: var(--font-body);
}

.link-btn:hover {
    color: #d64545;
}

.nav-icon {
    width: 16px;
    height: 16px;
    flex: none;
}

.admin-main {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 80px;
}

.admin-heading h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: -0.01em;
}

.admin-heading p {
    margin: 6px 0 0;
    color: #6b7286;
    font-size: 14px;
}

.admin-main .alert-success {
    background: #e7f9f1;
    border-color: #a7e8cd;
    color: #127a54;
}

.admin-main .alert-error {
    background: #fdeeee;
    border-color: #f4c4c4;
    color: #b93b3b;
}

.admin-main .alert-warning {
    background: #fdf6e6;
    border: 1px solid #f0d9a8;
    color: #8a6112;
    border-radius: 11px;
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
}

.card {
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-radius: var(--radius);
    margin-bottom: 22px;
    overflow: hidden;
}

.card-head {
    padding: 20px 26px;
    border-bottom: 1px solid #edf0f7;
    background: #fbfcfe;
}

.card-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
}

.card-head p {
    margin: 4px 0 0;
    color: #7a8196;
    font-size: 13px;
}

.card-body {
    padding: 24px 26px;
    display: grid;
    gap: 18px;
}

.admin-body .field label {
    color: #39405a;
}

.admin-body .field input,
.admin-body .field textarea,
.admin-body .field select {
    background: #ffffff;
    border-color: #d7dce8;
    color: #20263c;
}

.admin-body .field input:focus,
.admin-body .field textarea:focus,
.admin-body .field select:focus {
    border-color: #4f6ef7;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.14);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.hint {
    margin: 7px 0 0;
    color: #8a91a7;
    font-size: 12.5px;
    line-height: 1.55;
}

.hint code {
    background: #eef1f8;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    cursor: pointer;
    color: #39405a;
    font-weight: 600;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: #4f6ef7;
}

.mailbox-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.admin-body .btn-secondary {
    border-color: #d7dce8;
    background: #ffffff;
    color: #39405a;
}

.admin-body .btn-secondary:hover:not(:disabled) {
    background: #f4f6fb;
    border-color: #b9c2d6;
}

.status {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
    display: none;
}

.status.is-visible {
    display: block;
}

.status.is-error {
    color: #b93b3b;
}

.status.is-ok {
    color: #127a54;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
}

/* Tabs */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 26px 0 24px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(32, 38, 60, 0.05);
}

.tab {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #5b6276;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tab:hover {
    color: #20263c;
    background: #f4f6fb;
}

.tab.is-active {
    background: linear-gradient(135deg, #5b7cff, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(91, 124, 255, 0.3);
}

.tab-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tab-panel[hidden] {
    display: none;
}

/* Login */

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(800px 400px at 20% -10%, rgba(79, 110, 247, 0.12), transparent 60%),
        #f2f4fa;
}

.login-card {
    width: min(420px, 100%);
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-radius: var(--radius);
    padding: 38px;
    box-shadow: 0 24px 60px rgba(32, 38, 60, 0.08);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: #20263c;
    margin-bottom: 28px;
}

.login-card h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 24px;
}

.login-sub {
    margin: 6px 0 26px;
    color: #7a8196;
    font-size: 14px;
}

.login-card form {
    display: grid;
    gap: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    color: #7a8196;
    font-size: 13px;
    text-decoration: none;
}

.back-link:hover {
    color: #4f6ef7;
}

/* Domain form page spacing */

#domain-form-main .back-link {
    margin: 0 0 24px;
}

#domain-form-main .admin-heading {
    margin-bottom: 26px;
}

#domain-form-main .card-body {
    padding: 28px 30px;
}

#domain-form-main .field > label:not(.checkbox-label) {
    margin-bottom: 8px;
}

#domain-form-main .checkbox-label {
    margin-top: 0;
    padding: 14px 0;
    align-items: center;
}

#domain-form-main .hint {
    margin-top: 6px;
}

#domain-form-main .api-key-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

#domain-form-main .api-key-row > input {
    flex: 1;
    min-width: 240px;
}

#domain-form-main .api-key-check {
    padding: 0;
}

.admin-body input[readonly] {
    background: #f6f7fa;
    color: #5b6276;
    cursor: default;
}

#domain-form-main .form-actions {
    margin-top: 0;
    padding-top: 22px;
    border-top: 1px solid #edf0f7;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 44px;
        width: min(600px, calc(100% - 40px));
        margin-top: 6vh;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding-top: 20px;
    }

    #domain-form-main .card-body {
        padding: 22px 18px;
    }

    .form-card {
        padding: 26px 22px;
    }

    .admin-header-inner {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .admin-nav {
        gap: 16px;
    }
}

@media (max-width: 720px) {
    .portfolio {
        grid-template-columns: 1fr;
        gap: 36px;
        width: min(560px, calc(100% - 32px));
        margin-top: 5vh;
    }

    .portfolio-card {
        padding: 22px 18px;
    }

    .domains-table thead,
    .admin-table thead {
        display: none;
    }

    .domains-table,
    .admin-table,
    .domains-table tbody,
    .admin-table tbody,
    .domains-table tr,
    .admin-table tr,
    .domains-table td,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .domains-table tr,
    .admin-table tr {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        margin-bottom: 14px;
        padding: 4px 0;
        overflow: hidden;
    }

    .admin-table tr {
        border-color: #e6e9f2;
    }

    .domains-table td,
    .admin-table td {
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 12px 16px;
        text-align: left;
    }

    .admin-table td {
        border-bottom-color: #edf0f7;
    }

    .domains-table td::before,
    .admin-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: var(--text-soft);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        text-align: left;
    }

    .domains-table td[data-label="Prijs"]::before,
    .domains-table td[data-label="Actie"]::before {
        display: none;
    }

    .cell-value {
        display: block;
        min-width: 0;
    }

    .admin-table td::before {
        color: #8a91a7;
    }

    .domains-table td:last-child,
    .admin-table td:last-child {
        border-bottom: 0;
    }

    .col-action {
        white-space: normal;
    }

    .domains-table td.col-action .btn-offer {
        width: 100%;
        justify-content: center;
    }

    .action-links {
        justify-content: flex-end;
    }

    .card-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        justify-content: flex-end;
    }

    .dialog-card {
        padding: 28px 22px;
    }
}
