:root {
    --brand-primary: #0f766e;
    --brand-secondary: #0f172a;
    --brand-accent: #fb7185;
    --brand-bg-start: #ecfeff;
    --brand-bg-end: #f8fafc;
    --brand-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-soft: rgba(15, 23, 42, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: "Manrope", "Segoe UI", "Noto Sans", sans-serif;
    color: var(--text-main);
    background: linear-gradient(140deg, var(--brand-bg-start) 0%, var(--brand-bg-end) 60%, #ffffff 100%);
    min-height: 100vh;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.muted {
    color: var(--text-muted);
}

.page-shell {
    width: min(1120px, calc(100% - 24px));
    margin: 24px auto 36px;
}

.public-home {
    background:
        radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.22), transparent 34%),
        radial-gradient(circle at 100% 22%, rgba(251, 113, 133, 0.18), transparent 30%),
        linear-gradient(140deg, var(--brand-bg-start) 0%, var(--brand-bg-end) 58%, #ffffff 100%);
}

.hero-banner {
    width: 100%;
    max-height: 318px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.hero {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.hero::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(15, 118, 110, 0.24), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.15), rgba(251, 113, 133, 0.18));
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0f172a;
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.35rem);
    line-height: 1.1;
}

.hero h2 {
    margin: 11px 0 8px;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.25rem, 1.6vw, 1.55rem);
    color: var(--brand-secondary);
    letter-spacing: 0.01em;
}

.hero p {
    margin: 0;
    line-height: 1.68;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.brand-logo {
    width: 66px;
    height: 66px;
    border-radius: 17px;
    object-fit: contain;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #fff;
    padding: 6px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.btn-main,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 11px 16px;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn-main {
    background: linear-gradient(135deg, var(--brand-primary), #0f9a8f);
    border-color: rgba(15, 118, 110, 0.5);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.btn-soft {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

.btn-main:hover,
.btn-soft:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-main:hover {
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.32);
}

.hero-kpis {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-kpi {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    padding: 11px 12px;
    background: rgba(248, 250, 252, 0.86);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.hero-kpi strong {
    display: block;
    color: var(--brand-secondary);
    font-size: 0.93rem;
}

.hero-kpi span {
    display: block;
    margin-top: 3px;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.feature-section,
.how-section {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(5px);
}

.section-title {
    margin: 0;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    color: #0f172a;
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 780px;
}

.feature-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.feature-card {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.18), rgba(251, 113, 133, 0.18));
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.feature-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    color: #0f172a;
}

.feature-card h4 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    color: #0f172a;
}

.feature-card p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
}

.steps-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.step-card {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
}

.step-no {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-card h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.step-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.home-footer {
    margin-top: 16px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.88);
    padding: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.home-footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.card-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nav-card {
    background: var(--brand-surface);
    border: 1px solid rgba(15, 23, 42, 0.13);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.nav-card.compact {
    justify-content: center;
}

.nav-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.nav-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(15, 118, 110, 0.14), rgba(251, 113, 133, 0.18));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    flex: 0 0 34px;
}

.nav-card-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.home-note {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.lang-switch {
    margin-top: 12px;
    color: var(--text-muted);
    text-align: center;
}

.auth-shell {
    width: min(560px, calc(100% - 24px));
    margin: 24px auto 32px;
}

.auth-card,
.container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    padding: 20px;
    backdrop-filter: blur(4px);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}

.auth-brand h1 {
    margin: 0;
    font-size: 1.25rem;
}

.auth-card h2,
.container h2 {
    margin: 4px 0 14px;
    font-size: 1.25rem;
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px;
}

label {
    width: 100%;
    font-size: 0.92rem;
    color: var(--text-muted);
}

input,
select,
textarea,
button {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
    color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.5);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

textarea {
    resize: vertical;
}

button {
    background: linear-gradient(135deg, var(--brand-primary), #0f9a8f);
    border-color: var(--brand-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    filter: brightness(0.96);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

th,
td {
    border-bottom: 1px solid #e2e8f0;
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f5f9;
    color: #0f172a;
}

tr:last-child td {
    border-bottom: 0;
}

.alert-box {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-info {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

@media (max-width: 980px) {
    .feature-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-kpis {
        grid-template-columns: 1fr;
    }

    .home-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .page-shell,
    .auth-shell,
    .container {
        width: calc(100% - 16px);
    }

    .hero,
    .feature-section,
    .how-section,
    .home-footer,
    .auth-card,
    .container {
        padding: 14px;
        border-radius: 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-main,
    .btn-soft {
        width: 100%;
    }

    .feature-grid,
    .steps-grid,
    .home-footer-links {
        grid-template-columns: 1fr;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        border-bottom: 1px solid #e2e8f0;
        padding: 6px 0;
    }

    td {
        border: 0;
        padding: 6px 0;
    }
}
