:root {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: #17211b;
    background: #f4f7f5;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #eef8f1 0, transparent 42%),
        #f4f7f5;
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.registration-card,
.status-card {
    width: 100%;
    max-width: 610px;
    background: #ffffff;
    border: 1px solid #e2e9e4;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(31, 55, 40, 0.10);
}

.registration-card {
    padding: 36px;
}

.status-card {
    max-width: 520px;
    padding: 44px 36px;
    text-align: center;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.brand-name {
    display: inline-block;
    margin-bottom: 8px;
    color: #08783f;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.12;
}

.form-header p {
    margin: 8px 0;
}

.included-services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 14px 0;
    font-weight: 700;
    color: #08783f;
}

.commission-note,
.password-note {
    color: #657169;
    font-size: 0.93rem;
    line-height: 1.5;
}

.registration-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cfd9d2;
    border-radius: 10px;
    padding: 12px 14px;
    background: #ffffff;
    color: #17211b;
    font: inherit;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

input:focus {
    border-color: #0d8f4d;
    box-shadow: 0 0 0 4px rgba(13, 143, 77, 0.12);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #08783f;
}

a {
    color: #08783f;
}

button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    padding: 13px 22px;
    background: #08783f;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

button:hover,
.button-link:hover {
    background: #066735;
    transform: translateY(-1px);
}

.alert {
    margin: 0 0 20px;
    border-radius: 10px;
    padding: 14px 16px;
    line-height: 1.45;
}

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

.alert-error {
    border: 1px solid #efc2c2;
    background: #fff2f2;
    color: #8a2525;
}

.status-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 900;
}

.status-icon.success {
    background: #e6f6ec;
    color: #08783f;
}

.status-icon.error {
    background: #fff0f0;
    color: #9c2929;
}

.status-card p {
    line-height: 1.6;
    color: #5e6a62;
}

.registration-reference {
    font-size: 1.15rem;
    color: #17211b !important;
}

.status-card .button-link {
    margin-top: 18px;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
}

@media (max-width: 620px) {
    .page-shell {
        display: block;
        padding: 0;
    }

    .registration-card,
    .status-card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .registration-card {
        padding: 30px 20px;
    }

    .status-card {
        padding: 50px 22px;
    }

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

/* Affiliate Operations Center */

.admin-body {
    min-height: 100vh;
    background: #f3f6f4;
}

.operations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    background: #102a1c;
    color: #ffffff;
}

.operations-header > div {
    display: grid;
    gap: 3px;
}

.operations-header strong {
    font-size: 1.05rem;
}

.operations-header span {
    color: #bcd0c3;
    font-size: 0.85rem;
}

.operations-header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.operations-header a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.operations-main {
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 60px;
}

.operations-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.operations-title h1 {
    margin-bottom: 5px;
}

.operations-title p {
    margin: 0;
    color: #657169;
}

.admin-user {
    color: #657169;
    font-size: 0.9rem;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.counter-grid article {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dfe7e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31, 55, 40, 0.05);
}

.counter-grid span {
    color: #657169;
    font-size: 0.82rem;
    font-weight: 700;
}

.counter-grid strong {
    font-size: 1.75rem;
}

.admin-panel {
    margin-bottom: 18px;
    border: 1px solid #dfe7e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31, 55, 40, 0.05);
}

.operations-filters {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) 1fr 1fr auto auto;
    gap: 12px;
    padding: 18px;
}

.operations-filters input,
.operations-filters select {
    min-height: 46px;
    border: 1px solid #cfd9d2;
    border-radius: 9px;
    padding: 10px 12px;
    background: #ffffff;
    font: inherit;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid #cfd9d2;
    border-radius: 9px;
    padding: 10px 16px;
    background: #ffffff;
    color: #17211b;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.export-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
}

.export-toolbar > div {
    display: flex;
    gap: 10px;
}

.table-panel {
    overflow: hidden;
}

.operations-table-wrap {
    overflow-x: auto;
}

.operations-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.operations-table th,
.operations-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5ebe7;
    text-align: left;
    vertical-align: top;
    font-size: 0.88rem;
}

.operations-table th {
    background: #f7f9f8;
    color: #4d5b52;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.operations-table tbody tr:hover {
    background: #fafcfb;
}

.operations-table small {
    color: #728078;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.75rem;
    font-weight: 800;
}

.badge-success {
    background: #e4f5ea;
    color: #08783f;
}

.badge-warning {
    background: #fff4d9;
    color: #8a6300;
}

.badge-info {
    background: #e8f1fb;
    color: #245d96;
}

.badge-neutral {
    background: #ecefed;
    color: #4f5b54;
}

.login-card {
    width: min(430px, calc(100% - 32px));
    margin: 80px auto;
    padding: 34px;
    border: 1px solid #dfe7e1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(31, 55, 40, 0.10);
}

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

.center-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f3f6f4;
}

@media (max-width: 1100px) {
    .counter-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .operations-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .operations-header,
    .operations-title,
    .export-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .operations-main {
        width: min(100% - 20px, 1500px);
        padding-top: 20px;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .operations-filters {
        grid-template-columns: 1fr;
    }

    .export-toolbar > div {
        flex-wrap: wrap;
    }
}
