:root {
    --blue-light: #00a8e8;
    --blue-dark: #1a3a6b;
    --green: #2d8f4e;
    --sidebar-width: 260px;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', system-ui, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue-light); }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: #152238;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    overflow: hidden;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 22px;
    line-height: 1;
}

.sidebar-brand {
    flex-shrink: 0;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand img { height: 40px; margin-bottom: 6px; }
.sidebar-brand p { font-size: 0.75rem; opacity: 0.55; letter-spacing: 0.02em; }

.sidebar-nav {
    flex: 1;
    min-height: 0;
    padding: 12px 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-section-label {
    margin: 16px 12px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-section-label:first-of-type {
    margin-top: 4px;
}

.admin-page-intro {
    margin-bottom: 20px;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.admin-page-intro a {
    color: var(--green);
    font-weight: 500;
}

.admin-content select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9375rem;
    background: #fff;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.72);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: background 0.15s, color 0.15s;
}

.sidebar-link .material-symbols-outlined {
    font-size: 20px;
    opacity: 0.85;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 12px 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-link--logout {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
}

.sidebar-link--logout:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #ff8a95;
}

.admin-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 18px 32px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header h1 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--blue-dark);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 6px 14px 6px 10px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
}

.admin-user .material-symbols-outlined {
    font-size: 22px;
    color: var(--blue-dark);
}

.admin-content {
    padding: 28px 32px 40px;
    background: #f4f6f9;
    min-height: calc(100vh - 65px);
}

.card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 24px;
    margin-bottom: 24px;
}

.card h2 {
    font-size: 1.1rem;
    color: var(--blue-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(26, 58, 107, 0.08);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef2f8;
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon--alert {
    background: #fef3e2;
    color: #c27803;
}

.stat-card-body .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue-dark);
    line-height: 1.1;
}

.stat-card-body .label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 2px;
}

.welcome-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.welcome-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef2f8;
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.welcome-card-icon .material-symbols-outlined {
    font-size: 28px;
}

.welcome-card h2 {
    border: none;
    padding: 0;
    margin-bottom: 8px;
}

.welcome-card p {
    color: var(--gray-600);
    font-size: 0.925rem;
    margin-bottom: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary .material-symbols-outlined {
    font-size: 18px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(0,168,232,0.15);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: #247a42; }

.btn-secondary { background: var(--gray-100); color: var(--gray-800); }
.btn-secondary:hover { background: var(--gray-200); }

.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.alert-success { background: #e8f5ec; color: #1b5e20; }
.alert-error { background: #fce4ec; color: #c62828; }

.toast-host {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.toast {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 14px;
    width: min(360px, calc(100vw - 40px));
    padding: 16px 16px 18px;
    border-radius: 12px;
    background: #152238;
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    opacity: 0;
    transform: translateX(calc(100% + 24px));
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: auto;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.toast-success .toast-icon-wrap {
    background: rgba(45, 143, 78, 0.18);
    color: #6ee7a0;
}

.toast-error .toast-icon-wrap {
    background: rgba(220, 53, 69, 0.18);
    color: #ff8a95;
}

.toast-icon-wrap .material-symbols-outlined {
    font-size: 20px;
}

.toast-body {
    min-width: 0;
    padding-top: 2px;
}

.toast-title {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.toast-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -2px -2px 0 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.toast-close .material-symbols-outlined {
    font-size: 18px;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    transform-origin: left center;
    animation: toast-progress 4.5s linear forwards;
}

.toast-success .toast-progress {
    background: var(--green);
}

.toast-error .toast-progress {
    background: #dc3545;
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

table th,
table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
}

table th {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table tr:hover td { background: var(--gray-50); }

.table-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--gray-100);
}

.actions { display: flex; gap: 8px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-unread { background: #fff3e0; color: #e65100; }
.badge-read { background: var(--gray-100); color: var(--gray-600); }

.login-html {
    height: 100%;
    overflow: hidden;
}

.login-body {
    margin: 0;
    height: 100dvh;
    overflow: hidden;
    font-family: 'Roboto', system-ui, sans-serif;
    background: #eef1f5;
}

.login-page {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.login-card {
    width: min(380px, 100%);
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dde3ea;
    padding: 28px 32px 24px;
    box-shadow: 0 2px 8px rgba(26, 58, 107, 0.06);
}

.login-card-top {
    text-align: center;
    margin-bottom: 22px;
}

.login-logo {
    height: 44px;
    width: auto;
    margin: 0 auto 16px;
}

.login-card-top h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3a6b;
    margin-bottom: 4px;
}

.login-card-top p {
    font-size: 0.8125rem;
    color: #6b7c93;
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    margin-bottom: 16px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1a3a6b;
    margin-bottom: 5px;
}

.login-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cdd5df;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s;
}

.login-field input:focus {
    outline: none;
    border-color: #1a3a6b;
}

.login-field input::placeholder {
    color: #94a3b8;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 44px;
}

.login-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #6b7c93;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s;
}

.login-password-toggle svg {
    position: absolute;
    display: none;
}

.login-password-toggle .icon-eye-open {
    display: block;
}

.login-password-toggle.is-visible .icon-eye-open {
    display: none;
}

.login-password-toggle.is-visible .icon-eye-closed {
    display: block;
}

.login-password-toggle:hover {
    color: #1a3a6b;
}

.login-btn {
    width: 100%;
    margin-top: 4px;
    padding: 11px 20px;
    border: none;
    border-radius: 6px;
    background: #1a3a6b;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.login-btn:hover {
    background: #142d54;
}

.login-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eef1f5;
    font-size: 0.8125rem;
    color: #6b7c93;
    transition: color 0.15s;
}

.login-back:hover {
    color: #1a3a6b;
}

.login-copy {
    text-align: center;
    margin-top: 14px;
    font-size: 0.6875rem;
    color: #94a3b8;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.card-header-row h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 4px;
}

.card--table {
    padding: 0;
    overflow: hidden;
}

.card--table .card-header-row {
    padding: 24px 24px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-100);
}

.card--table .table-wrap {
    padding: 0;
}

.card-header-row .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.card-header-row .btn .material-symbols-outlined {
    font-size: 18px;
}

.empty-message {
    color: var(--gray-600);
    font-size: 0.925rem;
    padding: 24px 0 8px;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-600);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    transition: background 0.15s;
}

.data-table tbody tr:hover td {
    background: #f8fafc;
}

.data-table .col-photo {
    width: 72px;
}

.data-table .col-order {
    width: 80px;
    text-align: center;
}

.data-table .col-actions {
    width: 100px;
    text-align: right;
}

.data-table .col-order,
.data-table td:nth-child(4) {
    text-align: center;
}

.data-table .actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.data-table .actions form {
    display: inline;
}

.table-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2f8, #dde6f2);
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--gray-200);
}

.table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-name {
    font-weight: 600;
    color: var(--blue-dark);
}

.table-role {
    color: var(--gray-600);
}

.table-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 600;
}

.table-muted {
    color: var(--gray-400);
    font-size: 0.875rem;
    font-style: italic;
}

.table-slide-thumb {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.table-slide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.data-table .col-slide {
    width: 140px;
}

.form-hint {
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.settings-hero-preview {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    max-width: 480px;
    margin-bottom: 12px;
}

.settings-hero-preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-600);
    cursor: pointer;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--gray-50);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
}

.icon-btn .material-symbols-outlined {
    font-size: 18px;
}

.icon-btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
}

.icon-btn--danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.empty-state-card {
    background: #fff;
    border: 1px dashed var(--gray-200);
    border-radius: 16px;
    padding: 56px 32px;
    text-align: center;
}

.empty-state-card--inline {
    margin: 24px;
    border-radius: 12px;
    background: var(--gray-50);
}

.empty-state-icon {
    font-size: 48px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.empty-state-card h3 {
    font-size: 1.125rem;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.empty-state-card p {
    color: var(--gray-600);
    font-size: 0.925rem;
    margin-bottom: 24px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 14px;
    width: min(520px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(12px);
    transition: transform 0.2s;
}

.modal-overlay.is-open .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 1.1rem;
    color: var(--blue-dark);
    margin: 0;
    padding: 0;
    border: none;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    color: var(--gray-600);
    cursor: pointer;
    transition: background 0.15s;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--blue-dark);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.modal-footer .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-footer .btn-primary .material-symbols-outlined {
    font-size: 18px;
}

.modal-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.modal--team .modal-header h2 {
    margin: 0;
}

.modal--wide {
    width: min(720px, 100%);
    max-height: min(90vh, 900px);
}

.modal--wide .modal-body {
    max-height: calc(90vh - 160px);
    overflow-y: auto;
}

.content-preview-grid {
    display: grid;
    gap: 16px;
}

.content-preview-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.content-preview-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.content-preview-item strong {
    flex: 0 0 140px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
}

.content-preview-item span,
.content-preview-item p {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--gray-800);
    line-height: 1.5;
    margin: 0;
}

.content-preview-thumb {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    object-fit: cover;
}

.card-header-row--static {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.content-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 24px 24px;
}

.content-block {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.content-block:hover {
    border-color: rgba(45, 143, 78, 0.25);
    box-shadow: 0 4px 16px rgba(26, 58, 107, 0.06);
}

.content-block--wide {
    grid-column: 1 / -1;
}

.content-block-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.content-block-label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.content-block-label h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--blue-dark);
}

.content-block-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.content-block-icon .material-symbols-outlined {
    font-size: 20px;
}

.content-block-icon--blue { background: #eef2f8; color: var(--blue-dark); }
.content-block-icon--green { background: var(--green-light); color: var(--green); }
.content-block-icon--navy { background: #e8eaf6; color: #3949ab; }
.content-block-icon--orange { background: #fff3e0; color: #e65100; }

.content-block-top .btn-sm {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.content-block-top .btn-sm .material-symbols-outlined {
    font-size: 16px;
}

.content-block-body {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.65;
}

.content-block-body p {
    margin: 0;
}

.content-block-body--full p {
    white-space: pre-wrap;
    word-break: break-word;
}

.content-block-thumb {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    display: block;
}

.content-block-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a3a6b, #123a5c);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    text-align: center;
}

.content-block-meta {
    margin-top: 10px !important;
    font-size: 0.8125rem;
    color: var(--gray-800);
}

.modal-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
    margin: 24px 0 12px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-200);
}

.modal-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-main { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .card--table .card-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    .data-table thead .col-order,
    .data-table tbody .col-order-cell {
        display: none;
    }
    .card--table:not(.card--slides) .data-table thead .col-photo,
    .card--table:not(.card--slides) .data-table tbody td:first-child {
        display: none;
    }

    .content-blocks {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}
