:root {
    --bg: #f7f8f5;
    --bg-soft: #f1f4ef;
    --card: rgba(255, 255, 255, 0.98);
    --text: #14332d;
    --muted: #617872;
    --line: #d8e6e2;
    --line-strong: #c5d7d1;

    --brand: #126b5a;
    --brand-dark: #0c4f43;
    --brand-deep: #0a3f35;
    --brand-soft: #edf7f3;

    --danger: #b84747;
    --danger-soft: #fff1f1;
    --success: #1f7a48;
    --success-soft: #eaf7ee;
    --warning: #9a7600;
    --warning-soft: #fff8df;
    --info: #1d5fa8;
    --info-soft: #eaf3ff;

    --shadow-sm: 0 8px 24px rgba(12, 38, 33, 0.06);
    --shadow-md: 0 18px 40px rgba(12, 38, 33, 0.10);
    --shadow-lg: 0 24px 60px rgba(12, 38, 33, 0.14);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --container: 1180px;
}
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(18, 107, 90, 0.06), transparent 30%),
        linear-gradient(180deg, #eef5f3 0%, var(--bg) 100%);
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fcfcf8;
    color: var(--brand-deep);
    box-shadow: 0 8px 24px rgba(12, 38, 33, 0.06);
    border-bottom: 1px solid var(--line);
}

.site-header::after {
    content: "";
    display: block;
    height: 1px;
    background: rgba(10, 63, 53, 0.05);
}

.nav-wrap {
    min-height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 50%;
    background: #f3f7f4;
    padding: 6px;
    box-shadow: 0 6px 14px rgba(12, 38, 33, 0.08);
    border: 1px solid var(--line);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand {
    color: var(--brand-deep);
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.08;
}

.brand:hover {
    color: var(--brand);
}

.tagline {
    color: #5c746e;
    font-size: 0.9rem;
    margin-top: 6px;
    max-width: 760px;
}

.nav-links a {
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 0.96rem;
    padding: 10px 12px;
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}

.nav-links a {
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 10px 12px;
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
}

.nav-links a:hover {
    background: #eef6f2;
    color: var(--brand);
    transform: translateY(-1px);
}

.button-link,
button,
.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 800;
    font-size: 0.96rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(18, 107, 90, 0.22);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.button-link:hover,
button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(18, 107, 90, 0.28);
    text-decoration: none;
}

.button-link:active,
button:active,
.btn:active {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, #c24c4c, #8f3333);
    color: #fff;
    box-shadow: 0 10px 24px rgba(143, 51, 51, 0.22);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b74343, #822d2d);
}

.main-content {
    padding: 42px 0 56px;
}

.hero,
.card {
    background: var(--card);
    border: 1px solid rgba(197, 215, 209, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.hero {
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 28px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(18, 107, 90, 0.08), transparent 70%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--muted);
    line-height: 1.78;
    margin: 0 0 14px;
    max-width: 70ch;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 24px;
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
    line-height: 1.15;
}

.metric {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    margin: 10px 0 0;
    letter-spacing: -0.02em;
}

.form-card {
    max-width: 760px;
    margin: 0 auto;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 0.96rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder,
textarea::placeholder {
    color: #92a6a0;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(18, 107, 90, 0.45);
    box-shadow: 0 0 0 4px rgba(18, 107, 90, 0.10);
    background: #fff;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.field {
    margin-bottom: 18px;
}

.helper,
.small {
    color: var(--muted);
    font-size: 0.93rem;
}

.helper {
    margin-top: 6px;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.alert.success {
    background: var(--success-soft);
    color: var(--success);
    border-color: #bfe4c9;
}

.alert.error {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: #efc4c4;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    padding: 14px 14px;
    border-bottom: 1px solid #e6efec;
    text-align: left;
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: none;
}

th {
    background: linear-gradient(180deg, #f7fbfa 0%, #eef6f3 100%);
    font-size: 0.93rem;
    color: var(--brand-deep);
    font-weight: 800;
}

tbody tr:hover {
    background: #fbfdfc;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.badge.pending {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: #f0de96;
}

.badge.review {
    background: var(--info-soft);
    color: var(--info);
    border-color: #c6daf7;
}

.badge.accepted {
    background: var(--success-soft);
    color: var(--success);
    border-color: #bfe4c9;
}

.badge.rejected {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: #efc4c4;
}

.auth-switch {
    text-align: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 30px;
    background: #fcfcf8;
    color: var(--brand-deep);
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
    align-items: start;
}

.site-footer a {
    color: var(--brand);
}

.site-footer a:hover {
    color: var(--brand-dark);
}

code {
    background: #f2f8f6;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 0.92em;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .grid-2,
    .grid-3,
    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .site-logo {
        width: 48px;
        height: 48px;
    }

    .main-content {
        padding: 28px 0 44px;
    }

    .hero,
    .card {
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

     .brand {
        font-size: 1.05rem;
    }

     .tagline {
        font-size: 0.82rem;
    }

        .nav-links a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

     .button-link,
    button,
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    th,
    td {
        padding: 12px 10px;
    }
    
.nav-user {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f7f4;
    color: var(--brand-deep);
    font-weight: 800;
    font-size: 0.92rem;
    border: 1px solid var(--line);
}
.hero .btn[style*="background:#fff"] {
    color: var(--brand) !important;
}


.hero .btn[style*="background:#fff"]:hover {
    background: var(--brand-soft) !important;
}


.nav-links .button-link {
    padding-inline: 16px;
}

@media (max-width: 860px) {
    .nav-user {
        width: 100%;
        justify-content: center;
    }
}