:root {
    --aiszen-petrol: #002d3a;
    --aiszen-petrol-deep: #001f28;
    --aiszen-aqua: #00c4cc;
    --aiszen-teal: #00a3ac;
    --aiszen-white: #ffffff;
    --aiszen-gray: #e0e4e5;
    --aiszen-muted: #a8b7bb;
    --aiszen-danger: #ff6b72;
    --aiszen-success: #57d6a4;
    --aiszen-card: rgba(0, 45, 58, 0.94);
    --shadow: 0 24px 70px rgba(0, 20, 27, 0.38);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--aiszen-petrol-deep);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--aiszen-white);
    background: linear-gradient(145deg, var(--aiszen-petrol-deep), var(--aiszen-petrol));
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

button,
a,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(0, 196, 204, 0.7);
    outline-offset: 3px;
}

.site-body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image: radial-gradient(rgba(0, 196, 204, 0.78) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-logo {
    width: min(360px, 82vw);
    height: auto;
    margin-bottom: 42px;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.28));
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 span,
.eyebrow,
.count-badge {
    color: var(--aiszen-aqua);
}

.hero-description {
    max-width: 720px;
    margin: 0 0 38px;
    color: var(--aiszen-gray);
    font-size: clamp(1rem, 2.2vw, 1.22rem);
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 22px 20px;
    color: var(--aiszen-muted);
    text-align: center;
    font-size: 0.88rem;
}

.button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    color: var(--aiszen-white);
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.button-primary {
    background: linear-gradient(90deg, var(--aiszen-aqua), var(--aiszen-teal));
    box-shadow: 0 14px 38px rgba(0, 196, 204, 0.2);
}

.button-danger {
    background: rgba(255, 107, 114, 0.14);
    color: #ffb7ba;
    border: 1px solid rgba(255, 107, 114, 0.35);
}

.button-large {
    padding: 15px 30px;
    font-size: 1.05rem;
}

.button-full {
    width: 100%;
    border-radius: 12px;
    padding: 14px 18px;
}

.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-open {
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 15, 20, 0.82);
    backdrop-filter: blur(8px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(0, 196, 204, 0.28);
    border-radius: var(--radius);
    background: var(--aiszen-card);
    box-shadow: var(--shadow);
    transform: translateY(10px) scale(0.98);
    transition: transform 180ms ease;
}

.modal.is-open .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-panel h2,
.auth-card h1 {
    margin: 0 0 22px;
    line-height: 1.15;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--aiszen-gray);
    background: transparent;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--aiszen-white);
    background: rgba(255, 255, 255, 0.06);
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    color: var(--aiszen-gray);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field small,
.muted {
    color: var(--aiszen-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(224, 228, 229, 0.35);
    border-radius: 11px;
    padding: 12px 13px;
    color: var(--aiszen-white);
    background: rgba(0, 31, 40, 0.74);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--aiszen-aqua);
    box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.14);
}

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.notice {
    width: 100%;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: left;
}

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

.notice-success {
    color: #bdf5da;
    border: 1px solid rgba(87, 214, 164, 0.42);
    background: rgba(87, 214, 164, 0.12);
}

.notice-error {
    color: #ffd0d2;
    border: 1px solid rgba(255, 107, 114, 0.45);
    background: rgba(255, 107, 114, 0.12);
}

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

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(420px, 100%);
    padding: 34px;
    border: 1px solid rgba(0, 196, 204, 0.28);
    border-radius: var(--radius);
    background: var(--aiszen-card);
    box-shadow: var(--shadow);
}

.auth-card-wide {
    width: min(520px, 100%);
}

.auth-logo {
    display: block;
    width: min(250px, 78%);
    height: auto;
    margin: 0 auto 28px;
}

.auth-card h1 {
    text-align: center;
}

.auth-card > .muted {
    margin: -12px 0 22px;
    text-align: center;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px clamp(18px, 4vw, 54px);
    border-bottom: 1px solid rgba(0, 196, 204, 0.18);
    background: rgba(0, 31, 40, 0.94);
    backdrop-filter: blur(12px);
}

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

.admin-brand img {
    width: 155px;
    height: auto;
}

.admin-brand div {
    display: grid;
    gap: 2px;
    padding-left: 22px;
    border-left: 1px solid rgba(224, 228, 229, 0.25);
}

.admin-brand span {
    color: var(--aiszen-muted);
    font-size: 0.82rem;
}

.admin-main {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 3px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.count-badge {
    display: inline-grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    margin-left: 8px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 1rem;
    background: rgba(0, 196, 204, 0.13);
    border: 1px solid rgba(0, 196, 204, 0.28);
}

.table-card {
    overflow: hidden;
    border: 1px solid rgba(224, 228, 229, 0.17);
    border-radius: var(--radius);
    background: rgba(0, 45, 58, 0.78);
    box-shadow: var(--shadow);
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.responsive-table th,
.responsive-table td {
    padding: 18px 20px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.responsive-table thead {
    background: rgba(0, 31, 40, 0.72);
}

.responsive-table th {
    color: var(--aiszen-muted);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.responsive-table th:nth-child(1) { width: 16%; }
.responsive-table th:nth-child(2) { width: 25%; }
.responsive-table th:nth-child(3) { width: 17%; }
.responsive-table th:nth-child(4) { width: 42%; }

.responsive-table tbody tr + tr {
    border-top: 1px solid rgba(224, 228, 229, 0.12);
}

.responsive-table tbody tr:hover {
    background: rgba(0, 196, 204, 0.035);
}

.responsive-table strong,
.contact-link,
.company-name {
    display: block;
}

.contact-link {
    margin-top: 4px;
    color: var(--aiszen-gray);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.company-name {
    margin-top: 8px;
    color: var(--aiszen-aqua);
    font-size: 0.78rem;
}

.whatsapp-link {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 9px;
    color: #bdf5da;
    background: rgba(87, 214, 164, 0.11);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
}

.message-text {
    margin: 0;
    color: var(--aiszen-gray);
    white-space: normal;
}

.empty-row td {
    padding: 48px 20px;
    color: var(--aiszen-muted);
    text-align: center;
}

@media (max-width: 760px) {
    .hero {
        padding-top: 50px;
    }

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

    .modal {
        padding: 10px;
    }

    .modal-panel,
    .auth-card {
        padding: 24px 20px;
    }

    .admin-header {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header form,
    .admin-header .button {
        width: 100%;
    }

    .admin-brand {
        align-items: flex-start;
    }

    .admin-brand img {
        width: 126px;
    }

    .admin-brand div {
        padding-left: 14px;
    }

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

    .responsive-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .responsive-table tbody tr {
        padding: 14px 16px;
    }

    .responsive-table tbody tr + tr {
        border-top: 1px solid rgba(224, 228, 229, 0.17);
    }

    .responsive-table td {
        display: grid;
        grid-template-columns: minmax(92px, 32%) 1fr;
        gap: 12px;
        padding: 10px 0;
    }

    .responsive-table td::before {
        content: attr(data-label);
        color: var(--aiszen-muted);
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .empty-row td {
        display: block;
        padding: 34px 4px;
    }

    .empty-row td::before {
        content: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
