:root {
    --bg: #f4fbf6;
    --bg-soft: #eef8f1;
    --card: rgba(255, 255, 255, 0.88);
    --card-strong: #ffffff;
    --text: #102219;
    --text-soft: #577061;
    --line: #d9e8dd;
    --line-strong: #c7ddce;
    --green: #1e9b57;
    --green-dark: #147543;
    --green-soft: #e6f7ee;
    --green-soft-2: #d7f2e3;
    --danger: #c84747;
    --danger-soft: #fdeeee;
    --warning: #b7791f;
    --warning-soft: #fff6e5;
    --shadow-sm: 0 10px 30px rgba(18, 48, 29, 0.06);
    --shadow-md: 0 18px 50px rgba(18, 48, 29, 0.10);
    --shadow-lg: 0 26px 80px rgba(18, 48, 29, 0.12);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body.tngreu-body,
body.auth-body,
body.public-body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(44, 182, 99, 0.12), transparent 26%),
        radial-gradient(circle at bottom right, rgba(26, 115, 70, 0.10), transparent 30%),
        linear-gradient(180deg, #f8fcf9 0%, #eef8f1 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.member-shell,
.auth-shell,
.public-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.member-bg-shape,
.auth-bg-shape,
.public-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
}

.member-bg-shape-1,
.auth-bg-shape-1,
.public-bg-shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(34, 197, 94, 0.10);
    top: -70px;
    right: -50px;
}

.member-bg-shape-2,
.auth-bg-shape-2,
.public-bg-shape-2 {
    width: 260px;
    height: 260px;
    background: rgba(16, 185, 129, 0.10);
    bottom: -90px;
    left: -80px;
}

.member-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 20px 20px 0;
}

.member-topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 226, 212, 0.95);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #27b365 0%, #137543 100%);
    box-shadow: 0 14px 35px rgba(30, 155, 87, 0.22);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--text-soft);
}

.member-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.member-topbar-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--green-soft);
    border: 1px solid #cbead7;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(30, 155, 87, 0.12);
}

.member-user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 8px 10px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
}

.member-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dff6e8 0%, #effaf3 100%);
    color: var(--green-dark);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.member-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.member-user-meta strong {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-user-meta span {
    font-size: 12px;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-main {
    padding: 28px 20px 40px;
}

.member-container,
.auth-container,
.public-container {
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 20px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(214, 231, 220, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-strong {
    background: var(--card-strong);
}

.card-pad {
    padding: 26px;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 15px;
}

.hero-card {
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(247,252,248,0.96) 100%);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.stats-card {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.stats-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.stats-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.stats-meta {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.6;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
}

.status-pill.draft {
    background: #eef4f0;
    color: #4d6457;
}

.status-pill.pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-pill.approved {
    background: var(--green-soft);
    color: var(--green-dark);
}

.status-pill.rejected {
    background: var(--danger-soft);
    color: var(--danger);
}

.quick-list {
    display: grid;
    gap: 14px;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #b9dcc7;
}

.quick-link-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e6f7ee 0%, #f5fcf7 100%);
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.quick-link-copy strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.quick-link-copy span {
    display: block;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
}

.quick-link-arrow {
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 700;
}

.profile-summary {
    display: grid;
    gap: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #ebf2ed;
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}

.empty-note,
.helper-note {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    border-radius: 16px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #25ae63 0%, #137543 100%);
    box-shadow: 0 16px 32px rgba(19, 117, 67, 0.20);
}

.btn-primary:hover {
    box-shadow: 0 20px 38px rgba(19, 117, 67, 0.24);
}

.btn-secondary {
    color: var(--green-dark);
    background: var(--green-soft);
    border: 1px solid #cce9d7;
}

.btn-outline {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line-strong);
}

.btn-sm {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 14px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.alert-success {
    background: #ecfbf2;
    border-color: #cdeed9;
    color: #185e39;
}

.alert-danger {
    background: #fff1f1;
    border-color: #f4cccc;
    color: #9e3131;
}

.alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
    background: rgba(255,255,255,0.7);
}

.alert-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.alert-list li + li {
    margin-top: 6px;
}

.auth-main,
.public-main {
    padding: 28px 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-grid,
.public-grid {
    width: 100%;
    max-width: 1150px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

.showcase-card,
.auth-card,
.public-card {
    border-radius: 30px;
    border: 1px solid rgba(211, 229, 219, 0.95);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.showcase-card {
    padding: 40px;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f6fbf8 100%);
}

.auth-card,
.public-card {
    padding: 34px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.auth-brand-line,
.public-brand-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-title,
.public-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.auth-subtitle,
.public-subtitle {
    margin: 12px 0 0;
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.75;
}

.feature-list {
    margin: 28px 0 0;
    display: grid;
    gap: 14px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e1eee5;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 800;
    flex-shrink: 0;
}

.feature-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.feature-copy span {
    display: block;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.7;
}

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

.form-card {
    border: 1px solid #e4efe8;
    border-radius: 22px;
    padding: 20px;
    background: #fbfdfb;
}

.form-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

.form-card p {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.form-control,
.form-textarea,
.form-file {
    width: 100%;
    border: 1px solid #d4e6da;
    background: #fff;
    color: var(--text);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus,
.form-textarea:focus,
.form-file:focus {
    outline: none;
    border-color: #7dc99a;
    box-shadow: 0 0 0 4px rgba(37, 174, 99, 0.10);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    font-size: 13px;
    margin: 4px 0;
}

.divider-text::before,
.divider-text::after {
    content: "";
    height: 1px;
    background: #dfebe3;
    flex: 1;
}

.public-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0faf4;
    color: var(--green-dark);
    border: 1px solid #d7ebde;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

    .auth-grid,
    .public-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .grid-3,
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .member-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-topbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .member-user-chip {
        width: 100%;
    }

    .hero-card,
    .showcase-card,
    .auth-card,
    .public-card,
    .card-pad {
        padding: 22px;
    }

    .section-title,
    .auth-title,
    .public-title {
        font-size: 26px;
    }

    .stats-value {
        font-size: 28px;
    }
}

@media (max-width: 560px) {
    .member-main,
    .auth-main,
    .public-main,
    .member-topbar {
        padding-left: 14px;
        padding-right: 14px;
    }

    .member-topbar-inner {
        padding: 14px;
        border-radius: 18px;
    }

    .brand-badge {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .hero-card,
    .showcase-card,
    .auth-card,
    .public-card,
    .card-pad {
        padding: 18px;
        border-radius: 22px;
    }

    .quick-link {
        padding: 15px;
        border-radius: 18px;
    }

    .quick-link-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .form-card {
        padding: 16px;
        border-radius: 18px;
    }

    .btn,
    .btn-sm {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .hero-actions,
    .public-links {
        flex-direction: column;
    }
}


.admin-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    align-items: flex-start;
}

.admin-sidebar {
    width: 280px;
    min-width: 280px;
    padding: 20px 0 20px 20px;
    position: relative;
    z-index: 2;
}

.admin-sidebar-inner {
    height: calc(100vh - 40px);
    position: sticky;
    top: 20px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 226, 212, 0.95);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    margin-bottom: 24px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--text);
    border: 1px solid transparent;
    font-weight: 700;
    transition: all 0.18s ease;
}

.admin-nav-link:hover {
    background: #fff;
    border-color: var(--line);
}

.admin-nav-link.active {
    background: linear-gradient(135deg, #e9f9ef 0%, #f6fcf8 100%);
    border-color: #cfe8d7;
    color: var(--green-dark);
    box-shadow: var(--shadow-sm);
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
}

.admin-main-wrap {
    flex: 1;
    min-width: 0;
    width: calc(100% - 280px);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e4efe8;
    border-radius: 22px;
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table thead th {
    background: #f6fbf8;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    padding: 16px 18px;
    border-bottom: 1px solid #e5efe9;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #edf4ef;
    vertical-align: middle;
    font-size: 14px;
    color: var(--text);
}

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

.admin-table tbody tr:hover {
    background: #fbfdfb;
}

.table-empty {
    text-align: center;
    color: var(--text-soft);
    padding: 30px !important;
}

@media (max-width: 980px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 100%;
        padding: 14px 14px 0;
    }

    .admin-sidebar-inner {
        height: auto;
        position: relative;
        top: 0;
    }

    .admin-main-wrap {
        width: 100%;
    }

    .admin-main-wrap .member-topbar {
        padding-top: 14px;
    }
}



.btn-danger-soft {
    color: #a53434;
    background: #fff0f0;
    border: 1px solid #f0caca;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.table-subtext {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-top: 4px;
    word-break: break-word;
}

.mini-thumb {
    width: 96px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: #edf6f0;
    border: 1px solid #deebe2;
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large-thumb {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #deebe2;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.large-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.checkbox-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.post-editor {
    min-height: 240px;
}

.public-main-top {
    min-height: auto;
    display: block;
    padding-top: 28px;
}

.public-home-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.public-links-top {
    margin-top: 0;
}

.home-section {
    margin-top: 28px;
}

.section-heading-center {
    text-align: center;
    margin-bottom: 20px;
}

.section-heading-center .section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

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

.home-slider {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: 520px;
    background: #0f2417;
    box-shadow: var(--shadow-lg);
}

.home-slider-track {
    position: relative;
    min-height: 520px;
}

.home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.home-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.home-slide-image-wrap {
    position: absolute;
    inset: 0;
}

.home-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 27, 17, 0.78) 0%, rgba(10, 27, 17, 0.38) 48%, rgba(10, 27, 17, 0.22) 100%),
        linear-gradient(180deg, rgba(17, 46, 29, 0.12) 0%, rgba(17, 46, 29, 0.30) 100%);
}

.home-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 48px;
    max-width: 700px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-slide-title {
    margin: 18px 0 0;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.home-slide-subtitle {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    max-width: 620px;
}

.home-slider-controls {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.slider-nav-btn {
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, background 0.18s ease;
}

.slider-nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.28);
}

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-dot.active {
    width: 34px;
    background: #ffffff;
}

.public-info-card {
    height: 100%;
}

.public-info-image {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 180px;
    background: #edf6f0;
}

.public-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e5f7ec 0%, #f4fcf7 100%);
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 16px;
}

.public-info-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.public-info-text {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.post-card {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
}

.post-card-image-wrap {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #edf6f0;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.04);
}

.post-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.post-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.post-card-title a:hover {
    color: var(--green-dark);
}

.post-card-summary {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.post-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.share-link-input {
    width: 100%;
    border: 1px solid #d4e6da;
    background: #fbfdfb;
    color: var(--text-soft);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 12px;
}

.post-detail-card {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.post-detail-image-wrap {
    width: 100%;
    max-height: 460px;
    overflow: hidden;
    background: #edf6f0;
}

.post-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-detail-body {
    padding: 34px;
    background: rgba(255,255,255,0.96);
}

.post-detail-title {
    margin: 0;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.post-detail-summary {
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}

.post-share-box {
    margin-top: 22px;
}

.post-detail-content {
    margin-top: 26px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.95;
    word-break: break-word;
}

.post-detail-content p {
    margin: 0 0 16px;
}

@media (max-width: 820px) {
    .public-home-topbar,
    .section-heading-split,
    .home-slider-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-slider,
    .home-slider-track,
    .home-slide-content {
        min-height: 420px;
    }

    .home-slide-content {
        padding: 26px;
    }

    .home-slide-title {
        font-size: 30px;
    }

    .post-detail-title {
        font-size: 28px;
    }

    .post-detail-body {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .home-slider,
    .home-slider-track,
    .home-slide-content {
        min-height: 360px;
    }

    .home-slide-content {
        padding: 18px;
    }

    .home-slide-title {
        font-size: 24px;
    }

    .home-slide-subtitle {
        font-size: 14px;
        line-height: 1.7;
    }

    .post-card-body {
        padding: 18px;
    }

    .post-detail-body {
        padding: 18px;
    }
}




.public-main-top {
    min-height: auto;
    display: block;
    padding-top: 24px;
}

.public-site-header {
    margin-bottom: 22px;
    position: relative;
    z-index: 10;
}

.public-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 226, 212, 0.95);
    box-shadow: var(--shadow-sm);
}

.public-site-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-header {
    min-width: 132px;
}

.badge-soft-light {
    background: rgba(255,255,255,0.14);
    color: #ffffff;
    border-color: rgba(255,255,255,0.22);
}

.home-hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    min-height: 560px;
    background: #0e2316;
    box-shadow: var(--shadow-lg);
}

.home-hero-viewport {
    overflow: hidden;
    width: 100%;
}

.home-hero-track {
    display: flex;
    width: 100%;
    transition: transform 0.55s ease;
    will-change: transform;
}

.home-hero-slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    min-height: 560px;
    flex-shrink: 0;
}

.home-hero-slide-bg {
    position: absolute;
    inset: 0;
}

.home-hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 22, 14, 0.84) 0%, rgba(8, 22, 14, 0.54) 42%, rgba(8, 22, 14, 0.22) 100%),
        linear-gradient(180deg, rgba(11, 35, 20, 0.08) 0%, rgba(11, 35, 20, 0.24) 100%);
}

.home-hero-slide-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 52px;
}

.home-hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.home-hero-title {
    margin: 18px 0 0;
    font-size: 52px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.home-hero-subtitle {
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255,255,255,0.9);
    max-width: 650px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.home-hero-controls {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hero-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.hero-nav-btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.3);
}

.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.38);
    cursor: pointer;
    transition: all 0.22s ease;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.home-hero-fallback {
    padding: 36px;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(246,251,248,0.98) 100%);
}

.home-hero-fallback-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: center;
}

.home-hero-fallback-side {
    display: grid;
    gap: 14px;
}

.home-hero-mini-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.75);
    border: 1px solid #dfede4;
}

.home-hero-mini-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.home-hero-mini-card p {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.7;
}

.home-hero-mini-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e6f7ee 0%, #f5fcf7 100%);
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

.home-section {
    margin-top: 30px;
}

.section-heading-center {
    text-align: center;
    margin-bottom: 20px;
}

.section-heading-center .section-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

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

.public-info-card {
    height: 100%;
}

.public-info-image {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 190px;
    background: #edf6f0;
}

.public-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e5f7ec 0%, #f4fcf7 100%);
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 16px;
}

.public-info-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.public-info-text {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.post-card {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
}

.post-card-image-wrap {
    display: block;
    height: 220px;
    overflow: hidden;
    background: #edf6f0;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.04);
}

.post-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.post-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.post-card-title a:hover {
    color: var(--green-dark);
}

.post-card-summary {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.post-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.share-link-input {
    width: 100%;
    border: 1px solid #d4e6da;
    background: #fbfdfb;
    color: var(--text-soft);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 12px;
}

@media (max-width: 1080px) {
    .home-hero-fallback-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-title {
        font-size: 42px;
    }
}

@media (max-width: 820px) {
    .public-site-header-inner,
    .section-heading-split,
    .home-hero-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-site-actions {
        width: 100%;
    }

    .public-site-actions .btn {
        flex: 1 1 auto;
    }

    .home-hero-slider,
    .home-hero-slide,
    .home-hero-slide-content {
        min-height: 440px;
    }

    .home-hero-slide-content {
        padding: 28px;
    }

    .home-hero-title {
        font-size: 32px;
    }

    .home-hero-subtitle {
        font-size: 15px;
        line-height: 1.75;
    }

    .home-hero-fallback {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .public-main-top {
        padding-top: 16px;
    }

    .public-site-header-inner {
        padding: 14px;
        border-radius: 18px;
    }

    .public-site-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-header {
        width: 100%;
    }

    .home-hero-slider,
    .home-hero-slide,
    .home-hero-slide-content {
        min-height: 380px;
    }

    .home-hero-slide-content {
        padding: 18px;
    }

    .home-hero-title {
        font-size: 24px;
    }

    .home-hero-subtitle {
        font-size: 14px;
        line-height: 1.7;
    }

    .home-hero-controls {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .hero-nav-btn {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .post-card-body {
        padding: 18px;
    }

    .public-info-image {
        height: 170px;
    }
}


.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(240, 248, 243, 0.95);
    border: 1px solid #d7e9dd;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    transition: all 0.2s ease;
}

.lang-pill.active {
    background: linear-gradient(135deg, #25ae63 0%, #137543 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(19, 117, 67, 0.18);
}

@media (max-width: 820px) {
    .lang-switch {
        width: 100%;
        justify-content: center;
    }

    .lang-pill {
        flex: 1 1 0;
    }
}

/* FINAL MOBILE FIX - ADMIN LAYOUT ONLY */
@media (max-width: 980px) {
    body {
        overflow-x: hidden;
    }

    .admin-shell {
        display: block !important;
        min-height: 100vh !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .admin-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        padding: 14px !important;
        margin: 0 !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    .admin-sidebar-inner {
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        top: auto !important;
        overflow: visible !important;
        border-radius: 24px !important;
    }

    .admin-main-wrap {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .member-topbar {
        position: relative !important;
        top: auto !important;
        padding: 14px !important;
        margin: 0 !important;
        z-index: 1 !important;
    }

    .member-topbar-inner {
        display: block !important;
        padding: 18px !important;
        border-radius: 22px !important;
    }

    .member-topbar-right {
        width: 100% !important;
        margin-top: 14px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .member-user-chip,
    .member-topbar-status {
        width: 100% !important;
    }

    .member-main {
        padding: 14px !important;
        overflow: visible !important;
    }

    .member-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .hero-card {
        grid-column: auto !important;
    }

    .hero-actions,
    .form-actions,
    .public-links {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .hero-actions .btn,
    .form-actions .btn,
    .public-links .btn {
        width: 100% !important;
    }
}

@media (max-width: 560px) {
    .admin-sidebar,
    .member-topbar,
    .member-main {
        padding: 10px !important;
    }

    .member-topbar-inner,
    .admin-sidebar-inner,
    .card,
    .card-pad,
    .hero-card,
    .stats-card {
        border-radius: 22px !important;
    }

    .card-pad,
    .hero-card,
    .stats-card {
        padding: 18px !important;
    }

    .section-title,
    .auth-title,
    .public-title {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }

    .quick-link {
        align-items: flex-start !important;
        padding: 14px !important;
    }

    .quick-link-arrow {
        display: none !important;
    }

    .info-row {
        display: block !important;
    }

    .info-value {
        display: block;
        margin-top: 6px;
        text-align: left !important;
    }
}
