:root {
    --primary: #0f6b4f;
    --primary-dark: #0b342a;
    --gold: #d8aa4c;
    --paper: #f7f2e8;
    --bg: #f6f8f7;
    --text: #15231f;
    --muted: #66746f;
    --line: #dfe7e3;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

.site-body {
    background: var(--white);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a {
    padding: 10px 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--primary);
}

.hero-blog {
    padding: 86px clamp(18px, 5vw, 72px) 52px;
    background:
        linear-gradient(90deg, rgba(11, 52, 42, 0.9), rgba(15, 107, 79, 0.62)),
        url("hero-bg.jpg") center / cover;
    color: var(--white);
}

.hero-blog h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero-blog p:last-child {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 19px;
    line-height: 1.7;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 56px clamp(18px, 5vw, 72px) 78px;
}

.post-card,
.empty-card {
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 14px 36px rgba(15, 107, 79, 0.08);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.post-card div,
.empty-card {
    padding: 24px;
}

.post-card time,
.article time {
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.post-card h2 {
    margin: 10px 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.post-card p,
.empty-card p {
    color: var(--muted);
    line-height: 1.65;
}

.post-card a,
.back-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.article-wrap {
    padding: 58px clamp(18px, 5vw, 72px) 78px;
}

.article {
    max-width: 860px;
    margin: 0 auto;
}

.article h1 {
    margin: 18px 0 26px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
}

.article-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    margin-bottom: 30px;
}

.article-content {
    color: #243530;
    font-size: 19px;
    line-height: 1.85;
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(11, 52, 42, 0.94), rgba(15, 107, 79, 0.82)),
        url("hero-bg.jpg") center / cover;
}

.login-card {
    width: min(420px, 100%);
    padding: 34px;
    background: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.login-card img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.login-card h1 {
    margin: 18px 0 22px;
}

.login-card form,
.editor-form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    padding: 13px 14px;
    color: var(--text);
    font: inherit;
    background: var(--white);
}

textarea {
    resize: vertical;
}

select {
    min-height: 46px;
}

button,
.form-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    padding: 0 18px;
    color: var(--white);
    background: var(--primary);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.admin-body {
    background: var(--bg);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px;
    background: var(--primary-dark);
    color: var(--white);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.dashboard-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--white);
    padding: 4px;
}

.dashboard-brand strong,
.dashboard-brand small {
    display: block;
}

.dashboard-brand small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.64);
}

.dashboard-sidebar nav,
.sidebar-actions {
    display: grid;
    gap: 8px;
}

.dashboard-sidebar nav a,
.sidebar-actions a {
    padding: 11px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 800;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active,
.sidebar-actions a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sidebar-actions {
    margin-top: auto;
}

.dashboard-main {
    min-width: 0;
    padding: 28px;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-topbar p,
.panel-title p {
    margin: 0 0 5px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-topbar h1,
.panel-title h2 {
    margin: 0;
}

.dashboard-topbar a,
.panel-title a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-grid article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(15, 107, 79, 0.06);
}

.metric-grid span,
.metric-grid strong {
    display: block;
}

.metric-grid span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.metric-grid strong {
    margin-top: 10px;
    color: var(--primary);
    font-size: 32px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
}

.panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wide-panel {
    grid-column: 1 / -1;
}

.narrow-panel {
    max-width: 760px;
}

.settings-grid {
    align-items: start;
}

.settings-subtitle {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.settings-preview {
    display: grid;
    gap: 14px;
}

.settings-preview strong {
    display: block;
    color: var(--text);
    font-size: 22px;
    line-height: 1.25;
}

.settings-preview span {
    color: var(--muted);
    line-height: 1.6;
}

.settings-preview dl {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.settings-preview dl div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
}

.settings-preview dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.settings-preview dd {
    margin: 0;
    font-weight: 800;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.admin-quick-grid a {
    display: grid;
    gap: 10px;
    min-height: 150px;
    align-content: end;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #f2f7f5);
    box-shadow: 0 14px 32px rgba(15, 107, 79, 0.07);
    color: var(--text);
    text-decoration: none;
}

.admin-quick-grid a:hover {
    border-color: rgba(15, 107, 79, 0.35);
    transform: translateY(-2px);
}

.admin-quick-grid span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-quick-grid strong {
    font-size: 20px;
    line-height: 1.2;
}

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

.page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.page-tabs a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--white);
    text-decoration: none;
    font-weight: 800;
}

.page-tabs a.active,
.page-tabs a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eef8f4;
}

.code-editor {
    min-height: 520px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre;
    overflow: auto;
}

.code-editor.compact {
    min-height: 320px;
}

.image-picker {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.image-picker img,
.image-picker > div:first-child {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    background: var(--paper);
}

.image-picker > div:first-child {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 800;
}

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

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

.text-block-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.text-block-card span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.text-block-card textarea {
    min-height: 72px;
    background: var(--white);
    line-height: 1.5;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
    padding: 14px 0 0;
    background: linear-gradient(rgba(246, 248, 247, 0), var(--bg) 34%);
}

.sticky-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    background: var(--paper);
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 28px;
    background: var(--primary-dark);
    color: var(--white);
}

.admin-header strong,
.admin-header span {
    display: block;
}

.admin-header span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.admin-header nav {
    display: flex;
    gap: 12px;
}

.admin-header a {
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
    padding: 28px;
}

.admin-panel {
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 12px 32px rgba(15, 107, 79, 0.06);
}

.admin-panel h1,
.admin-panel h2 {
    margin-top: 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

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

.post-list {
    display: grid;
    gap: 12px;
}

.post-list article {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
}

.post-list strong,
.post-list span {
    display: block;
}

.post-list span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

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

.row-actions a,
.row-actions button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.row-actions a {
    display: inline-flex;
    align-items: center;
    background: var(--paper);
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.row-actions button {
    background: #b42318;
}

.panel-note {
    margin-top: -4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.request-list {
    display: grid;
    gap: 12px;
}

.request-list article {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    background: #fbfdfc;
}

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

.request-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.request-head strong,
.request-head span {
    display: block;
}

.request-head span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.request-list dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.request-list dl div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
}

.request-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.request-list dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.alert {
    padding: 12px 14px;
    font-weight: 700;
}

.alert.error {
    color: #8a1f14;
    background: #fff0ed;
}

.alert.success {
    color: #155b43;
    background: #eaf7f1;
}

.not-found-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(11, 52, 42, 0.92), rgba(15, 107, 79, 0.78)),
        url("hero-bg.jpg") center / cover;
}

.not-found-card {
    width: min(680px, 100%);
    padding: clamp(30px, 6vw, 56px);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    text-align: center;
}

.not-found-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.not-found-card p {
    margin: 24px 0 8px;
    color: var(--gold);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.not-found-card h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.not-found-card span {
    display: block;
    max-width: 520px;
    margin: 18px auto 0;
    color: var(--muted);
    line-height: 1.7;
}

.not-found-card div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.not-found-card a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 0 18px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 920px) {
    .post-grid,
    .admin-layout,
    .dashboard-shell,
    .dashboard-grid,
    .metric-grid,
    .admin-quick-grid,
    .request-list.elegant,
    .two-column,
    .text-block-grid,
    .image-picker {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        height: auto;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .post-grid {
        padding-top: 32px;
    }

    .admin-layout,
    .admin-header,
    .dashboard-main,
    .dashboard-sidebar {
        padding: 18px;
    }

    .admin-header,
    .dashboard-topbar,
    .panel-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Premium admin polish */
.admin-body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(216, 170, 76, 0.12), transparent 30%),
        linear-gradient(180deg, #f8faf9 0%, #edf3f0 100%);
}

.dashboard-shell {
    grid-template-columns: 272px minmax(0, 1fr);
}

.dashboard-sidebar {
    padding: 20px 16px;
    background:
        linear-gradient(180deg, rgba(17, 58, 48, 0.98), rgba(8, 32, 27, 1)),
        #0b342a;
    box-shadow: 12px 0 36px rgba(10, 38, 31, 0.14);
}

.dashboard-brand {
    position: relative;
    min-height: 76px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-brand:after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(216, 170, 76, 0));
}

.dashboard-brand img {
    width: 46px;
    height: 46px;
}

.dashboard-sidebar nav a,
.sidebar-actions a {
    position: relative;
    min-height: 44px;
    padding: 0 12px 0 14px;
    border: 1px solid transparent;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-sidebar nav a.active:before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(216, 170, 76, 0.16);
}

.dashboard-main {
    padding: 38px;
}

.dashboard-topbar {
    align-items: flex-end;
    margin-bottom: 28px;
}

.dashboard-topbar h1 {
    font-weight: 850;
    letter-spacing: 0;
}

.dashboard-topbar a,
.panel-title a {
    min-height: 42px;
    border-radius: 8px;
    padding: 0 16px;
    background: #ffffff;
}

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

.metric-grid article,
.admin-panel,
.admin-quick-grid a {
    position: relative;
    overflow: hidden;
}

.metric-grid article:before,
.admin-panel:before,
.admin-quick-grid a:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, rgba(216, 170, 76, 0.9), rgba(15, 107, 79, 0.65), transparent);
}

.metric-grid article {
    display: grid;
    align-content: space-between;
    min-height: 132px;
}

.metric-grid strong {
    font-weight: 900;
    letter-spacing: 0;
}

.admin-panel {
    padding: 30px;
    box-shadow: 0 18px 50px rgba(18, 42, 34, 0.075);
}

.panel-title {
    margin-bottom: 22px;
}

.panel-title h2 {
    font-weight: 850;
}

.admin-quick-grid a {
    min-height: 156px;
    padding: 24px;
}

.admin-quick-grid a strong {
    max-width: 180px;
}

.editor-form {
    gap: 20px;
}

label {
    gap: 9px;
}

input,
textarea,
select {
    min-height: 48px;
    background: #fbfdfc;
}

textarea {
    line-height: 1.55;
}

button {
    min-height: 48px;
    letter-spacing: 0;
}

button:hover,
.dashboard-topbar a:hover,
.panel-title a:hover,
.form-actions a:hover,
.sticky-actions a:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.post-list article,
.request-list article,
.text-block-card {
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.post-list article:hover,
.request-list article:hover,
.text-block-card:hover {
    border-color: rgba(15, 107, 79, 0.22);
    box-shadow: 0 14px 34px rgba(18, 42, 34, 0.08);
}

.request-head {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--admin-border);
}

.request-list dl {
    gap: 11px;
}

.request-list dd a {
    color: #0f6b4f;
    text-decoration: none;
}

.page-tabs a {
    min-height: 40px;
    padding: 0 14px;
}

.code-editor {
    background:
        linear-gradient(180deg, #fbfdfc, #ffffff);
}

.image-picker {
    align-items: start;
}

.image-picker img,
.image-picker > div:first-child {
    box-shadow: 0 10px 24px rgba(18, 42, 34, 0.08);
}

.settings-preview {
    border-radius: 8px;
}

.settings-preview dl {
    gap: 12px;
}

.alert {
    box-shadow: var(--admin-shadow-soft);
}

@media (max-width: 1100px) {
    .metric-grid,
    .admin-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Refined admin interface */
.admin-body {
    --admin-bg: #eef3f1;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f8faf9;
    --admin-border: #d9e4df;
    --admin-shadow: 0 18px 46px rgba(18, 42, 34, 0.08);
    --admin-shadow-soft: 0 8px 24px rgba(18, 42, 34, 0.06);
    background:
        linear-gradient(180deg, #f7faf9 0%, var(--admin-bg) 100%);
}

.dashboard-shell {
    grid-template-columns: 264px minmax(0, 1fr);
}

.dashboard-sidebar {
    gap: 22px;
    padding: 22px 18px;
    background:
        linear-gradient(180deg, #102f28 0%, #09241e 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-brand {
    min-height: 70px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.dashboard-brand img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.dashboard-brand strong {
    font-size: 16px;
    line-height: 1.1;
}

.dashboard-brand small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.dashboard-sidebar nav {
    gap: 4px;
}

.dashboard-sidebar nav a,
.sidebar-actions a {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.dashboard-sidebar nav a:hover,
.dashboard-sidebar nav a.active,
.sidebar-actions a:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.dashboard-sidebar nav a.active {
    box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-actions {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-main {
    width: min(1280px, 100%);
    padding: 34px;
}

.dashboard-topbar {
    min-height: 74px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-border);
}

.dashboard-topbar p,
.panel-title p {
    color: #0f6b4f;
    font-size: 11px;
    letter-spacing: 0.12em;
}

.dashboard-topbar h1 {
    color: #10231e;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.panel-title h2 {
    color: #10231e;
    font-size: 22px;
    line-height: 1.2;
}

.dashboard-topbar a,
.panel-title a,
.form-actions a,
.sticky-actions a,
.row-actions a {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #ffffff;
    color: #0f6b4f;
    box-shadow: var(--admin-shadow-soft);
}

.metric-grid,
.admin-quick-grid,
.dashboard-grid {
    gap: 18px;
}

.metric-grid article,
.admin-panel,
.admin-quick-grid a,
.post-list article,
.request-list article,
.text-block-card,
.image-picker {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow-soft);
}

.metric-grid article {
    min-height: 126px;
    padding: 22px;
}

.metric-grid span {
    color: #6c7c77;
    font-size: 12px;
}

.metric-grid strong {
    color: #10231e;
    font-size: 34px;
}

.admin-panel {
    padding: 26px;
}

.admin-quick-grid a {
    min-height: 136px;
    align-content: space-between;
    padding: 22px;
    background:
        linear-gradient(145deg, #ffffff 0%, #f8fbfa 100%);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-quick-grid a:hover {
    border-color: rgba(15, 107, 79, 0.34);
    box-shadow: var(--admin-shadow);
}

.admin-quick-grid span {
    color: #0f6b4f;
    font-size: 11px;
}

.admin-quick-grid strong {
    color: #15231f;
    font-size: 18px;
}

.editor-form {
    gap: 18px;
}

label {
    color: #273a34;
    font-size: 13px;
    font-weight: 850;
}

input,
textarea,
select {
    border-color: var(--admin-border);
    border-radius: 8px;
    background: #ffffff;
    color: #14241f;
    box-shadow: inset 0 1px 0 rgba(16, 35, 30, 0.02);
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0f6b4f;
    box-shadow: 0 0 0 4px rgba(15, 107, 79, 0.12);
}

button,
.form-actions a {
    min-height: 46px;
    border-radius: 8px;
}

button {
    background: linear-gradient(135deg, #0f6b4f, #0b4b3c);
    box-shadow: 0 12px 28px rgba(15, 107, 79, 0.22);
}

.form-actions,
.row-actions {
    flex-wrap: wrap;
}

.row-actions button {
    background: #b42318;
    box-shadow: none;
}

.post-list,
.request-list {
    gap: 14px;
}

.post-list article,
.request-list article {
    padding: 16px;
    background: var(--admin-surface-soft);
}

.post-list strong,
.request-head strong {
    color: #14241f;
    font-size: 15px;
    line-height: 1.35;
}

.post-list span,
.request-head span,
.panel-note {
    color: #6c7c77;
}

.request-list dl {
    gap: 10px;
}

.request-list dl div,
.settings-preview dl div {
    grid-template-columns: 118px minmax(0, 1fr);
}

.request-list dt,
.settings-preview dt {
    color: #78908a;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.request-list dd,
.settings-preview dd {
    color: #14241f;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.page-tabs {
    gap: 10px;
}

.page-tabs a {
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.page-tabs a.active {
    background: #0f6b4f;
    color: #ffffff;
}

.text-block-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.text-block-card {
    padding: 16px;
    background: #ffffff;
}

.text-block-card span {
    color: #78908a;
}

.text-block-card textarea {
    min-height: 88px;
}

.image-picker {
    padding: 16px;
    background: #ffffff;
}

.image-picker img,
.image-picker > div:first-child {
    border: 1px solid var(--admin-border);
}

.settings-preview {
    padding: 2px;
}

.settings-preview strong {
    color: #10231e;
}

.alert {
    margin: 0 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert.success {
    border-color: #bfe8d8;
}

.alert.error {
    border-color: #ffd2ca;
}

.login-card {
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

@media (max-width: 920px) {
    .dashboard-main {
        width: 100%;
        padding: 24px;
    }

    .dashboard-sidebar {
        gap: 16px;
    }

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

@media (max-width: 560px) {
    .dashboard-main {
        padding: 18px;
    }

    .dashboard-sidebar nav {
        grid-template-columns: 1fr;
    }

    .metric-grid article,
    .admin-panel {
        padding: 18px;
    }

    .request-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-list dl div,
    .settings-preview dl div {
        grid-template-columns: 1fr;
    }
}

/* Final admin aesthetic pass */
.admin-body .dashboard-sidebar {
    background: linear-gradient(180deg, #123a30 0%, #09241e 100%);
    box-shadow: 14px 0 40px rgba(8, 32, 27, 0.16);
}

.admin-body .dashboard-main {
    max-width: 1320px;
}

.admin-body .dashboard-topbar {
    padding: 4px 0 20px;
}

.admin-body .admin-panel,
.admin-body .metric-grid article,
.admin-body .admin-quick-grid a,
.admin-body .post-list article,
.admin-body .request-list article,
.admin-body .text-block-card {
    border-radius: 8px;
    border-color: #d8e5df;
    box-shadow: 0 18px 46px rgba(18, 42, 34, 0.075);
}

.admin-body .admin-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}

.admin-body .dashboard-sidebar nav a.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.admin-body .dashboard-sidebar nav a.active:before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(216, 170, 76, 0.16);
}

.admin-body .dashboard-brand {
    border-radius: 8px;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
    border-radius: 8px;
    background: #fbfdfc;
}

.admin-body button,
.admin-body .dashboard-topbar a,
.admin-body .panel-title a,
.admin-body .form-actions a,
.admin-body .sticky-actions a {
    border-radius: 8px;
}

.admin-body .panel-note {
    max-width: 760px;
}
