﻿:root {
    --bg: #0f1220;
    --bg-soft: #13172a;
    --text: #ffffff;
    --muted: #c9cbd6;
    --brand: #7aa2ff;
    --brand-2: #9d71ff;
    --card: #171b30;
    --border: #28304d;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
}

.light {
    --bg: #f7f8fc;
    --bg-soft: #ffffff;
    --text: #12131a;
    --muted: #4b5063;
    --brand: #3b6cff;
    --brand-2: #7b3bff;
    --card: #ffffff;
    --border: #e7e9f2;
    --shadow: 0 10px 24px rgba(30,56,110,.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, "Noto Naskh Arabic UI", "Amiri", "Cairo", sans-serif;
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

/* ========== التنقّل ========== */
header.site {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in oklab, var(--bg) 94%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.nav__brand {
    font-weight: 800;
    text-decoration: none;
}

    .nav__brand span {
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        
        
    }

.nav__links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    font-weight: 700;
    padding: .55rem .85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
}

.btn--ghost {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--border);
}

/* ========== hero ========== */
.hero {
    position: relative;
    padding: 96px 0 80px;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(1200px 600px at 85% -10%, rgba(122,162,255,.25), transparent 60%), radial-gradient(800px 400px at 10% 110%, rgba(157,113,255,.20), transparent 60%);
}

.hero__title {
    font-size: clamp(1.8rem, 2.2vw + 1.4rem, 3rem);
    line-height: 1.25;
    margin: 0 0 12px;
}

    .hero__title span {
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero__cta {
    margin-top: 18px;
}

.btn {
    padding: .7rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    background: linear-gradient(90deg,var(--brand),var(--brand-2));
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow);
}

/* ========== الرؤية والرسالة + المؤلفات ========== */
.section {
    padding: 56px 0;
}

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

@media (min-width:720px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
}

    .card h2 {
        margin: 0 0 8px;
    }

    .card p {
        color: var(--muted);
        line-height: 1.9;
    }

/* المؤلفات */
.page-head {
    padding: 40px 0 20px;
}

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

.media {
    position: relative;
    min-height: 220px;
    background: var(--bg-soft);
}

    .media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.year {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: color-mix(in oklab, var(--brand) 25%, transparent);
    color: #fff;
    padding: .25rem .5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
}

.body {
    padding: 16px;
}

.tagline {
    color: var(--muted);
    margin-bottom: 6px;
}

.desc {
    color: var(--muted);
    line-height: 1.9;
}

/* Footer */
footer.site {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    text-align: center;
    color: var(--muted);
}


/* =========================
   تنسيق صفحة الحضارة والثقافة الروسية
   ========================= */

/* خلفية خاصة للصفحة */
body[data-page="russian-culture"] {
    background: radial-gradient(circle at top right, rgba(122,162,255,0.15), transparent 60%), radial-gradient(circle at bottom left, rgba(157,113,255,0.15), transparent 60%), var(--bg);
    background-attachment: fixed;
}

    /* عنوان الصفحة */
    body[data-page="russian-culture"] .page-head h1 {
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-align: center;
        font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem);
        margin-bottom: 10px;
    }

    body[data-page="russian-culture"] .page-head p {
        text-align: center;
        color: var(--muted);
        margin-bottom: 40px;
    }

    /* شبكة المقالات */
    body[data-page="russian-culture"] .grid {
        display: grid;
        gap: 28px;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    /* بطاقات المقالات */
    body[data-page="russian-culture"] .card {
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        body[data-page="russian-culture"] .card:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 40px rgba(0,0,0,.25);
        }

    /* الصور داخل المقالات */
    body[data-page="russian-culture"] .media {
        height: 240px;
        overflow: hidden;
        border-bottom: 1px solid var(--border);
    }

        body[data-page="russian-culture"] .media img {
            transition: transform 0.6s ease;
        }

    body[data-page="russian-culture"] .card:hover .media img {
        transform: scale(1.08);
    }

    /* النصوص داخل المقالات */
    body[data-page="russian-culture"] .body {
        padding: 18px 20px 22px;
    }

        body[data-page="russian-culture"] .body h2 {
            color: var(--brand);
            font-size: 1.15rem;
            margin-bottom: 10px;
        }

        body[data-page="russian-culture"] .body p {
            color: var(--muted);
            line-height: 1.9;
            text-align: justify;
        }

    /* تظليل خفيف أسفل الصفحة */
    body[data-page="russian-culture"] footer.site {
        border-top: 1px solid color-mix(in oklab, var(--brand) 35%, var(--border));
        box-shadow: inset 0 20px 30px -20px rgba(0,0,0,.3);
    }
/* =========================
   سيرة ذاتية — cv.html
   ========================= */
body.cv .page-head {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: center;
    padding: 40px 0 20px;
}

@media (max-width: 560px) {
    body.cv .page-head {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.cv__avatar {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-soft);
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
}

    .cv__avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.cv__avatar--placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

body.cv h1 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 1.5vw + 1.2rem, 2.2rem);
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cv__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.cv__tag {
    font-size: .9rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 999px;
    color: #fff;
    background: color-mix(in oklab, var(--brand) 35%, transparent);
    border: 1px solid color-mix(in oklab, var(--brand) 60%, transparent);
}

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

@media (min-width: 860px) {
    .cv__cards {
        grid-template-columns: 1fr 1fr;
    }
}

.cv__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .cv__list li {
        margin: 6px 0;
        color: var(--muted);
    }

    .cv__list strong {
        color: var(--text);
    }

.cv__bullets {
    padding-inline-start: 1.2rem;
    margin: .2rem 0;
}

    .cv__bullets li {
        margin: .35rem 0;
        color: var(--muted);
    }

.cv__section-title {
    margin: 0 0 14px;
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cv__cta {
    margin-top: 10px;
}
/* يجعل قسمين بجانب بعض في الشاشات الكبيرة */
.two-cols {
    display: grid;
    gap: 24px;
}

@media (min-width: 860px) {
    .two-cols {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (max-width: 859px) {
    .two-cols {
        grid-template-columns: 1fr;
    }
}
/* =========================
   تواصل معي — contact.html
   ========================= */
body.contact .page-head h1 {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(1.6rem, 1.3vw + 1.2rem, 2.2rem);
    margin-bottom: 10px;
}

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

@media (min-width: 900px) {
    .contact__top {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.contact__email a {
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    padding: .35rem .55rem;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
}

.contact__links {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 10px;
}

    .contact__links li a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        padding: .45rem .6rem;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text);
    }

        .contact__links li a:hover {
            transform: translateY(-1px);
        }

    .contact__links .icon {
        width: 18px;
        height: 18px;
        line-height: 0;
        display: inline-grid;
        place-items: center;
        color: var(--brand);
    }

/* نموذج التواصل */
.contact__form {
    display: grid;
    gap: 12px;
}

.form__row {
    display: grid;
    gap: 6px;
}

    .form__row label {
        font-weight: 700;
    }

    .form__row input,
    .form__row textarea {
        width: 100%;
        padding: .7rem .8rem;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--bg-soft);
        color: var(--text);
        outline: none;
    }

        .form__row input:focus,
        .form__row textarea:focus {
            border-color: color-mix(in oklab, var(--brand) 45%, var(--border));
            box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent);
        }

.form__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}
/* ===== مُبدّل اللغة (AR/RU/EN) ===== */
.lang-switch {
    display: inline-flex;
    gap: 4px;
    margin-inline-start: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px;
}

    .lang-switch button {
        appearance: none;
        border: none;
        cursor: pointer;
        padding: .35rem .55rem;
        border-radius: 999px;
        font-weight: 800;
        background: transparent;
        color: var(--muted);
    }

        .lang-switch button[aria-pressed="true"] {
            color: #fff;
            background: linear-gradient(90deg, var(--brand), var(--brand-2));
        }
header.site .nav__brand a,
header.site .nav__brand a:hover,
header.site .nav__brand a:active,
header.site .nav__brand a:visited {
    text-decoration: none;
}
/* ===== Blog / Articles ===== */
body.blog .page-head h1 {
    background: linear-gradient(90deg,var(--brand),var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blog__filters .row {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr
}

@media(min-width:780px) {
    .blog__filters .row {
        grid-template-columns: 1fr 220px
    }
}

.blog__filters input, .blog__filters select {
    width: 100%
}

.blog__filters .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.chip {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    padding: .3rem .6rem;
    border-radius: 999px;
    cursor: pointer
}

.chip--active {
    color: #fff;
    background: linear-gradient(90deg,var(--brand),var(--brand-2))
}

.blog__cardActions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap
}

    .blog__cardActions .share {
        display: inline-flex;
        gap: 8px;
        align-items: center
    }

        .blog__cardActions .share a {
            text-decoration: none;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: .2rem .45rem;
            display: inline-block
        }

/* Article page */
.article__content .media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px
}

.article__body {
    margin-top: 8px;
    line-height: 1.9
}

.article__share {
    margin-top: 14px
}

    .article__share .share a {
        text-decoration: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: .25rem .5rem;
        margin-inline: 4px
    }
/* خلي البطاقة كلها قابلة للنقر */
.card {
    position: relative;
}

.stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* إخفاء نص الرابط مع بقاء إمكانية النقر */
    color: transparent;
    text-indent: -9999px;
    overflow: hidden;
}

.card .media, .card .body {
    position: relative;
    z-index: 2;
}

.card:hover {
    transform: translateY(-2px);
    transition: transform .2s ease;
}

.card {
    position: relative
}

.stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: transparent;
    text-indent: -9999px;
    overflow: hidden
}

.card .media, .card .body {
    position: relative;
    z-index: 2
}

.card:hover {
    transform: translateY(-2px);
    transition: transform .2s ease
}

.muted {
    opacity: .8
}

.article__content .media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px
}

.article__body {
    margin-top: 8px;
    line-height: 1.9
}

.article__share {
    margin-top: 14px
}

    .article__share .share a {
        text-decoration: none;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: .25rem .5rem;
        margin-inline: 4px
    }
a.card-link {
    display: block;
    text-decoration: none;
    color: inherit
}

    a.card-link .card {
        transition: transform .2s ease
    }

        a.card-link .card:hover {
            transform: translateY(-2px)
        }
/* ===== Admin Panel Styling ===== */
.admin__layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 900px) {
    .admin__layout {
        grid-template-columns: 280px 1fr;
    }
}

.admin__sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.admin__header {
    padding: 20px;
}

.admin__bar-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.whoami {
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.whoami strong {
    color: var(--text);
}

.admin__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Auth Forms */
.auth {
    max-width: 400px;
    margin: 60px auto;
}

.auth__tabs {
    display: flex;
    margin-bottom: 24px;
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 4px;
}

.auth__tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth__tab.active {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: var(--shadow);
}

.auth__tab:hover:not(.active) {
    color: var(--text);
}

.auth__form {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.auth__form.show {
    display: block;
}

.auth__form .form__row {
    position: relative;
    margin-bottom: 16px;
}

.auth__form .form__row input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
    font-size: 16px;
}

.auth__form .form__row input:focus {
    border-color: color-mix(in oklab, var(--brand) 45%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent);
}

.auth__form .form__row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text);
}

/* Admin Form Card */
.admin__form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

/* Admin Form Header */
.admin__form-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.admin__form-header h2 {
    margin: 0;
    color: var(--text);
}

/* Admin Form */
.admin__form {
    padding: 24px;
}

.admin__row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .admin__row {
        grid-template-columns: 1fr 1fr;
    }
}

.admin__row:last-child {
    margin-bottom: 0;
}

.form__col {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form__col--publish {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin__label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.admin__label .optional {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.9em;
}

.admin__form input,
.admin__form select,
.admin__form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
    font-size: 16px;
}

.admin__form input:focus,
.admin__form select:focus,
.admin__form textarea:focus {
    border-color: color-mix(in oklab, var(--brand) 45%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent);
}

.admin__form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Admin Posts Section */
.admin__posts {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    min-height: 600px;
}

/* Admin List */
.admin__listHead {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.admin__listHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin__listHeader h2 {
    margin: 0;
    color: var(--text);
}

.btn--primary {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    color: white;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
}

.admin__filters {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .admin__filters {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.admin__search {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text);
    margin-bottom: 12px;
}

.admin__search:focus {
    border-color: color-mix(in oklab, var(--brand) 45%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent);
}

.admin__tableWrap {
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

.admin__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    min-width: 800px;
}

.admin__table th,
.admin__table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin__table th:first-child,
.admin__table td:first-child {
    min-width: 200px;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

.admin__table th:nth-child(2),
.admin__table td:nth-child(2) {
    white-space: nowrap;
}

.admin__table th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin__table td {
    color: var(--muted);
    vertical-align: top;
}

.admin__table tbody tr:hover {
    background: var(--bg-soft);
}

.admin__table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge--draft {
    background: color-mix(in oklab, var(--brand) 20%, transparent);
    color: var(--brand);
}

.badge:not(.badge--draft) {
    background: color-mix(in oklab, #4ade80 20%, transparent);
    color: #4ade80;
}

.row-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.row-actions button {
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.row-actions button:hover {
    background: var(--card);
    transform: translateY(-1px);
    border-color: var(--brand);
}

.row-actions button:first-child {
    background: color-mix(in oklab, var(--brand) 15%, var(--bg-soft));
    border-color: color-mix(in oklab, var(--brand) 30%, var(--border));
}

.row-actions button:last-child {
    background: color-mix(in oklab, #ef4444 15%, var(--bg-soft));
    border-color: color-mix(in oklab, #ef4444 30%, var(--border));
    color: #ef4444;
}

.admin__msg {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 12px;
}

.admin__msg:empty {
    display: none;
}

/* Success and error messages */
.admin__msg, .auth__msg {
    background: color-mix(in oklab, #4ade80 15%, transparent);
    color: #4ade80;
    border: 1px solid color-mix(in oklab, #4ade80 30%, transparent);
}

/* ===== Login Page Styling ===== */
.auth__welcome {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.auth__subtitle {
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth__footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.auth__msg {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 12px;
    font-size: 0.9rem;
}

.auth__msg:empty, .admin__msg:empty {
    display: none;
}

/* Success message */
.auth__msg:not([style*="background: color-mix"]), .admin__msg:not([style*="background: color-mix"]) {
    background: color-mix(in oklab, #4ade80 15%, transparent);
    color: #4ade80;
    border: 1px solid color-mix(in oklab, #4ade80 30%, transparent);
}

/* Error message */
.auth__msg.error, .admin__msg.error {
    background: color-mix(in oklab, #ef4444 15%, transparent);
    color: #ef4444;
    border: 1px solid color-mix(in oklab, #ef4444 30%, transparent);
}
/* === YOUR ORIGINAL CSS (unchanged) === */
/* [the entire code you provided remains exactly as-is above] */


/* ===============================
   ✅ Responsive Enhancements ONLY
   =============================== */

/* General container and spacing adjustments */
@media (max-width: 1100px) {
    .container {
        width: 94%;
    }
}

/* Stack nav links and brand vertically on smaller screens */
@media (max-width: 720px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav__links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .link-btn {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }
}

/* Hero section text centering and padding reduction */
@media (max-width: 640px) {
    .hero {
        padding: 70px 0 60px;
        text-align: center;
    }

    .hero__cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Cards and grids for smaller devices */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .two-cols {
        grid-template-columns: 1fr;
    }

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

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

/* Admin and Blog Tables scrollable on small devices */
@media (max-width: 700px) {
    .admin__tableWrap {
        overflow-x: auto;
    }

    .admin__table th,
    .admin__table td {
        padding: 10px 12px;
    }
}

/* Contact and CV forms adjustments */
@media (max-width: 600px) {
    .form__actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .cv__tags {
        justify-content: center;
    }
}

/* Extra small screens (phones ≤480px) */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .btn,
    .link-btn {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 16px;
    }

    .hero__title {
        font-size: 1.6rem;
    }

    footer.site {
        font-size: 0.85rem;
    }
}
