* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

:root {
    --bg-deep: #07162f;
    --bg-base: #0b1a33;
    --bg-surface: #0f233f;
    --card-bg: #111c33;
    --border: #1f2f4a;
    --text-main: #e5e7eb;
    --text-strong: #f1f5f9;
    --text-muted: #9aa7b6;
    --text-accent: #dbeafe;
    --accent-blue: #74a7ff;
    --blue-light: #4aa8f0;
    --blue-strong: #3b82f6;
    --blue-mid: #2563eb;
    --blue-deep: #1e293b;
    --accent-action: #38bdf8;
    --accent-action-hover: #2563eb;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-main);
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 55%, #0c1a34 100%);
    display: flex;
    flex-direction: column;
}

@font-face {
    font-family: 'Ananda';
    src: url('../fonts/Ananda Personal Use.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Ananda Black';
    src: url('../fonts/Ananda Black Personal Use.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Au Bord de la Seine';
    src: url('../fonts/Au Bord de la Seine.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Brittany Signature';
    src: url('../fonts/BrittanySignature.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Chandia';
    src: url('../fonts/Chandia_PERSONAL_USE_ONLY.otf') format('opentype');
    font-weight: 400;
}

@font-face {
    font-family: 'Chandia Decorative';
    src: url('../fonts/ChandiaDecorative_PERSONAL_USE_ONLY.otf') format('opentype');
    font-weight: 400;
}

@font-face {
    font-family: 'Christmas Market';
    src: url('../fonts/Christmas Market.otf') format('opentype');
    font-weight: 400;
}

@font-face {
    font-family: 'Monotype Corsiva';
    src: url('../fonts/MTCORSVA.TTF') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Photograph Signature';
    src: url('../fonts/Photograph Signature.ttf') format('truetype');
    font-weight: 400;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}
.site-main section {
    background: linear-gradient(180deg, rgba(15, 35, 63, 0.7) 0%, rgba(11, 26, 51, 0.7) 100%);
    border-radius: 18px;
    padding: 20px;
}

.site-main section + section {
    margin-top: 18px;
}


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

.container {
    width: min(1440px, 94%);
    margin: 0 auto;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header {
    background: rgba(11, 18, 32, 0.9);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.55);
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0.35) 50%, rgba(56, 189, 248, 0) 100%);
}

.site-header .logo {
    font-weight: 700;
    font-size: 20px;
    margin-right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-header .logo img {
    width: 28px;
    height: 28px;
}

.site-header .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-header .logo-text span {
    font-weight: 700;
    color: #f8fafc;
    font-size: 16px;
}

.site-header .logo small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.nav a,
.nav .nav-link {
    line-height: 1;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.header-search input {
    width: 200px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 14px;
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search button {
    border: none;
    background: var(--accent-action);
    color: var(--bg-base);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}

.nav a,
.nav .nav-link {
    margin-right: 0;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
}

.nav a:hover,
.nav .nav-link:hover {
    color: var(--text-accent);
    background: rgba(59, 130, 246, 0.15);
}

.nav .button.small {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 999px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    gap: 4px;
    flex-direction: column;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    display: block;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.nav-dropdown .nav-link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-link::after,
.nav-dropdown:hover .nav-link::after {
    transform: rotate(225deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: var(--bg-surface);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
    padding: 12px;
    display: none;
    min-width: 200px;
    z-index: 20;
    border: 1px solid var(--border);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    display: grid;
    gap: 8px;
}

.nav-dropdown .dropdown-menu a {
    margin: 0;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text-main);
}

.nav-dropdown .dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.2);
}

.nav-dropdown .dropdown-menu .dropdown-empty {
    font-size: 13px;
    color: var(--text-muted);
}

.site-main {
    padding: 28px 0 48px;
    flex: 1 0 auto;
    background: linear-gradient(180deg, rgba(7, 22, 47, 0.35) 0%, rgba(11, 26, 51, 0.2) 100%);
}

.category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    color: var(--text-main);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.2);
}

.category-card span {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 600;
}

.template-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.template-card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    display: grid;
    gap: 10px;
    color: var(--text-main);
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.template-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 26px rgba(37, 99, 235, 0.2);
}


.hero {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-mid) 45%, var(--blue-deep) 80%, var(--bg-base) 100%);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -30%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(37, 99, 235, 0.08) 40%, rgba(15, 23, 42, 0) 70%);
    filter: blur(6px);
    pointer-events: none;
}

.hero-content {
    display: grid;
    gap: 12px;
    color: var(--text-strong);
}

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

.category-chips,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-main);
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 20px rgba(2, 6, 23, 0.45);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 12px 14px 16px;
    color: var(--text-main);
}

.card:hover {
    box-shadow: 0 18px 26px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 6px 12px;
    background: var(--bg-surface);
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.pagination a.active {
    background: var(--blue-mid);
    color: var(--text-strong);
    border-color: var(--blue-mid);
}

.pagination a:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

.button {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-mid) 60%, var(--blue-deep) 100%);
    color: var(--text-strong);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.35);
}

.button.secondary {
    background: var(--border);
    color: var(--text-main);
    border: 1px solid #334155;
}

.button.primary {
    background: linear-gradient(135deg, var(--accent-action) 0%, #1d4ed8 100%);
    color: var(--bg-base);
    box-shadow: 0 12px 20px rgba(56, 189, 248, 0.28);
}

.button.primary:hover {
    background: linear-gradient(135deg, var(--accent-action-hover) 0%, #1e40af 100%);
    box-shadow: 0 16px 26px rgba(37, 99, 235, 0.35);
}

.button.ghost {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-accent);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.button.ghost:hover {
    background: rgba(59, 130, 246, 0.25);
}

.google-button {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(2, 6, 23, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.google-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.google-icon {
    width: 18px;
    height: 18px;
    background: conic-gradient(
        #ea4335 0deg 90deg,
        #4285f4 90deg 180deg,
        #60a5fa 180deg 270deg,
        #fbbc05 270deg 360deg
    );
    border-radius: 50%;
    position: relative;
}

.google-icon::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--text-main);
    border-radius: 50%;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
}

.tab.active {
    background: var(--blue-mid);
    color: var(--text-strong);
    border-color: var(--blue-mid);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.tab:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
}

.auth-card .auth-hint {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 16px;
}

.auth-card,
.empty-state {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.5);
}

label {
    display: block;
    margin-bottom: 12px;
}

input,
textarea,
select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-main);
    margin-top: 6px;
}

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.alert-success {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.image-detail {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.image-info ul {
    list-style: none;
    padding: 0;
}

.image-info li {
    margin-bottom: 8px;
}

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

.admin-header .logo,
.admin-header .nav a {
    color: var(--text-strong);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    color: var(--text-main);
}

.admin-table .thumb {
    width: 80px;
    border-radius: 6px;
}

.inline-form {
    display: inline;
}

.link-button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

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

.admin-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-search input {
    width: 220px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    font-size: 14px;
    color: var(--text-main);
}

.admin-search select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    font-size: 14px;
    color: var(--text-main);
}

.admin-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    display: grid;
    gap: 12px;
}

.admin-form .helper {
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.template-fields {
    display: grid;
    gap: 12px;
}

.template-fields-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-row {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    background: var(--bg-surface);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.admin-cards {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== Editor Templates Admin – Design System ===== */
.editor-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(31, 47, 74, 0.6);
}

.editor-header-content {
    flex: 1;
    min-width: 200px;
}

.editor-title {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}

.editor-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.editor-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--text-muted);
    border-radius: 50%;
    pointer-events: none;
    box-sizing: border-box;
}

.search-icon::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 5px;
    height: 1.5px;
    background: var(--text-muted);
    transform: rotate(45deg);
}

.editor-filters .search-input {
    width: 200px;
    padding: 10px 14px 10px 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(15, 35, 63, 0.6);
    font-size: 14px;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.editor-filters .search-input::placeholder {
    color: var(--text-muted);
}

.editor-filters .search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(116, 167, 255, 0.15);
}

.editor-filters .filter-select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(15, 35, 63, 0.6);
    font-size: 14px;
    color: var(--text-main);
    min-width: 150px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.editor-filters .filter-select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.btn-search {
    padding: 10px 18px;
}

.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-create:hover {
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-icon {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1;
}

/* Upload section */
.admin-upload-templ {
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(15, 35, 63, 0.5) 0%, rgba(17, 28, 51, 0.6) 100%);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.upload-details[open] .upload-summary {
    border-bottom-color: var(--border);
}

.upload-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-accent);
    list-style: none;
    transition: background 0.2s;
}

.upload-summary::-webkit-details-marker {
    display: none;
}

.upload-summary:hover {
    background: rgba(59, 130, 246, 0.08);
}

.upload-summary-icon {
    font-size: 1.1em;
}

.upload-form-inner {
    padding: 20px 18px;
    background: rgba(2, 6, 23, 0.3);
}

.upload-form {
    display: grid;
    gap: 14px;
    max-width: 400px;
}

.upload-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.upload-input,
.upload-file {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    font-size: 14px;
    color: var(--text-main);
}

.upload-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.upload-file {
    cursor: pointer;
}

/* Empty state */
.editor-empty-state {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(180deg, rgba(17, 28, 51, 0.8) 0%, rgba(11, 26, 51, 0.6) 100%);
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.editor-empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.6;
}

.editor-empty-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-strong);
}

.editor-empty-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Editor grid & cards */
.editor-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.editor-card {
    background: linear-gradient(180deg, rgba(17, 28, 51, 0.95) 0%, rgba(11, 26, 51, 0.9) 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s;
}

.editor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    border-color: rgba(59, 130, 246, 0.25);
}

.editor-card-preview {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--bg-surface) 0%, rgba(15, 35, 63, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.editor-card-preview .thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.editor-card:hover .editor-card-preview .thumb {
    transform: scale(1.02);
}

.editor-card-preview .thumb-update-form {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.65) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.editor-card-preview:hover .thumb-update-form {
    opacity: 1;
}

.thumb-upload-label {
    cursor: pointer;
}

.thumb-upload-label input {
    display: none;
}

.thumb-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue-deep);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumb-upload-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.editor-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid rgba(31, 47, 74, 0.5);
}

.inline-edit-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-name-input {
    flex: 1;
    min-width: 130px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    font-size: 14px;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.inline-name-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.inline-type-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    font-size: 13px;
    color: var(--text-main);
    min-width: 120px;
    cursor: pointer;
}

.btn-save {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

.editor-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
}

.action-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

.action-link:hover {
    color: var(--accent-action);
}

.action-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    color: #f87171;
}

.action-delete:hover {
    color: #ef4444;
}

.button.small {
    padding: 6px 14px;
    font-size: 13px;
}

.empty-state .button {
    margin-top: 12px;
    display: inline-block;
}

.site-footer {
    text-align: center;
    padding: 20px 0;
    background: var(--bg-surface);
    color: var(--text-main);
    border-top: 1px solid var(--border);
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
    background: linear-gradient(180deg, rgba(11, 26, 51, 0) 0%, rgba(11, 26, 51, 0.6) 100%);
}

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    padding: 32px 0 20px;
}

.footer-grid h4,
.footer-grid h3 {
    margin: 0 0 12px;
    color: var(--text-strong);
}

.footer-grid p,
.footer-grid a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-brand img {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.18);
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.socials svg {
    width: 16px;
    height: 16px;
    fill: #e2e8f0;
}

.footer-bottom {
    padding: 14px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center;
}

@media (max-width: 600px) {
    .nav-toggle {
        display: flex;
    }

    .header-search {
        display: none;
    }

    .hero-actions {
        width: 100%;
    }



    .mobile-toolbar {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 72px;
        right: 4%;
        flex-direction: column;
        align-items: flex-start;
        background: #0f172a;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(2, 6, 23, 0.6);
        display: none;
        width: min(260px, 90%);
        border: 1px solid #1f2937;
    }

    .nav.open {
        display: grid;
        gap: 12px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 8px 0 0;
    }

    .nav-dropdown.open .dropdown-menu {
        display: grid;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
