/* =========================================================
   BumbleBee Events — Shared Admin Stylesheet
   Used by: admin-dashboard.html, gallery-categories.html,
            upload-images.php
   ========================================================= */

:root {
    --bee-yellow: #FFC72C;
    --bee-yellow-soft: #FFD966;
    --bee-black: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-main: #f5f5f0;
    --text-dim: #a8a8a0;

    --blue: #4fc3f7;
    --orange: #ffb74d;
    --purple: #b388ff;
    --green: #69f0ae;
    --red: #ff6b6b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 199, 44, 0.10), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(255, 199, 44, 0.06), transparent 45%),
        linear-gradient(180deg, #050505 0%, #0d0d0d 100%);
    color: var(--text-main);
    padding: 32px 20px 60px;
}

/* subtle honeycomb texture in the background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(60deg, rgba(255, 199, 44, 0.025) 0, rgba(255, 199, 44, 0.025) 1px, transparent 1px, transparent 60px),
        repeating-linear-gradient(-60deg, rgba(255, 199, 44, 0.025) 0, rgba(255, 199, 44, 0.025) 1px, transparent 1px, transparent 60px);
    pointer-events: none;
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Shared base button (used by both pages) */
.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-logout {
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 4px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.btn-logout:hover {
    border-color: var(--bee-yellow-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--bee-yellow), #e0a800);
    color: #1a1400;
    border: none;
    box-shadow: 0 4px 16px rgba(255, 199, 44, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(255, 199, 44, 0.45);
}

/* =========================================================
   DASHBOARD PAGE (admin-dashboard.html)
   ========================================================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 24px;
    margin-bottom: 28px;
    border-radius: 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(255, 199, 44, 0.2);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text .name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.brand-text .welcome {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.brand-text .welcome span {
    color: var(--bee-yellow-soft);
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

h1.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 6px 4px 20px;
    letter-spacing: 0.3px;
}

.panel {
    position: relative;
    border-radius: 20px;
    padding: 22px 24px 26px;
    margin-bottom: 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.panel-header .icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px var(--accent));
}

.panel-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2px;
}

.panel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-buttons .btn {
    flex: 1 1 auto;
    min-width: 150px;
    text-align: center;
}

.btn-accent {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    color: #fff;
}

.btn-accent:hover {
    background: color-mix(in srgb, var(--accent) 34%, transparent);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-solid {
    background: var(--accent);
    color: #08110c;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn-solid:hover {
    box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 60%, transparent);
}

.panel-gallery {
    --accent: var(--blue);
}

.panel-service {
    --accent: var(--orange);
}

.panel-projects {
    --accent: var(--purple);
}

.panel-inquiries {
    --accent: var(--green);
}

.row-secondary {
    margin-top: 12px;
}

@media (max-width: 640px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .panel {
        padding: 18px 16px 20px;
    }

    .panel-buttons .btn {
        min-width: 100%;
    }

    h1.section-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .panel-buttons .btn {
        min-width: 46%;
    }
}

/* =========================================================
   GALLERY CATEGORIES PAGE (gallery-categories.html)
   All classes prefixed "gal-" so they never collide
   with the dashboard page's classes above.
   ========================================================= */

.gal-wrap {
    max-width: 900px;
}

.gal-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.gal-page-header .gal-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--blue));
}

.gal-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--blue);
}

.gal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.gal-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.gal-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.gal-panel {
    position: relative;
    border-radius: 20px;
    padding: 22px 24px 26px;
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.gal-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    box-shadow: 0 0 18px var(--blue);
}

.gal-panel h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
}

.gal-create-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gal-input {
    flex: 1 1 260px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.gal-input::placeholder {
    color: var(--text-dim);
}

.gal-input:focus {
    border-color: color-mix(in srgb, var(--blue) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.gal-btn-create {
    background: linear-gradient(135deg, #66d97a, var(--green));
    color: #06210b;
    border: none;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    padding: 12px 20px;
}

.gal-btn-create:hover {
    box-shadow: 0 6px 22px rgba(76, 175, 80, 0.45);
}

.gal-table-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.gal-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.gal-table-wrap thead th {
    text-align: left;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
}

.gal-table-wrap tbody td {
    padding: 14px 18px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gal-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.gal-table-wrap tbody tr {
    transition: background .2s ease;
}

.gal-table-wrap tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gal-cat-name {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--bee-yellow-soft);
}

.gal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gal-btn-edit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.82rem;
}

.gal-btn-edit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gal-btn-delete {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: var(--red);
    padding: 8px 16px;
    font-size: 0.82rem;
}

.gal-btn-delete:hover {
    background: rgba(255, 107, 107, 0.18);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.2);
}

.gal-empty-state {
    padding: 30px 18px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    body {
        padding: 20px 12px 40px;
    }

    .gal-panel {
        padding: 18px 16px 20px;
    }

    .gal-create-row {
        flex-direction: column;
    }

    .gal-btn-create {
        width: 100%;
    }

    .gal-table-wrap thead {
        display: none;
    }

    .gal-table-wrap table,
    .gal-table-wrap tbody,
    .gal-table-wrap tr,
    .gal-table-wrap td {
        display: block;
        width: 100%;
    }

    .gal-table-wrap tbody tr {
        margin-bottom: 12px;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .gal-table-wrap tbody td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .gal-table-wrap tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-dim);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .gal-table-wrap tbody td:last-child {
        border-bottom: none;
    }
}

/* =========================================================
   UPLOAD IMAGES PAGE (upload-images.php)
   All classes prefixed "upl-" so they never collide
   with the dashboard or gallery-categories classes above.
   ========================================================= */

.upl-wrap {
    max-width: 720px;
}

.upl-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.upl-page-header .upl-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--blue));
}

.upl-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--blue);
}

.upl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.upl-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.upl-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.upl-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.upl-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    box-shadow: 0 0 18px var(--blue);
}

.upl-field {
    margin-bottom: 20px;
}

.upl-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.upl-select,
.upl-file {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.upl-select:focus,
.upl-file:focus {
    border-color: color-mix(in srgb, var(--blue) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.upl-select option {
    background: #141414;
    color: var(--text-main);
}

.upl-file {
    cursor: pointer;
    padding: 10px 14px;
}

.upl-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    color: #06202b;
    background: color-mix(in srgb, var(--blue) 80%, white 0%);
    transition: background .2s ease;
}

.upl-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--blue) 65%, transparent);
}

.upl-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.upl-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.upl-preview-container:empty {
    margin-top: 0;
}

.upl-preview-container img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.upl-submit {
    background: color-mix(in srgb, var(--blue) 85%, white 0%);
    color: #06202b;
    border: none;
    font-weight: 700;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(79, 195, 247, 0.3);
    margin-top: 6px;
}

.upl-submit:hover {
    box-shadow: 0 6px 22px rgba(79, 195, 247, 0.45);
}

@media (max-width: 640px) {
    .upl-panel {
        padding: 20px 18px 24px;
    }

    .upl-submit {
        width: 100%;
    }

    .upl-preview-container img {
        width: 84px;
        height: 84px;
    }
}

/* =========================================================
   MANAGE GALLERY IMAGES PAGE (manage-gallery-images.php)
   All classes prefixed "mgi-" so they never collide
   with the dashboard, gallery-categories, or upload-images
   classes above.
   ========================================================= */

.mgi-wrap {
    max-width: 1100px;
}

.mgi-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mgi-page-header .mgi-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--blue));
}

.mgi-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--blue);
}

.mgi-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.mgi-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.mgi-panel {
    position: relative;
    border-radius: 20px;
    padding: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.mgi-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    box-shadow: 0 0 18px var(--blue);
}

.mgi-table-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-top: 3px;
}

.mgi-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.mgi-table-wrap thead th {
    text-align: left;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
}

.mgi-table-wrap tbody td {
    padding: 14px 20px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.mgi-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.mgi-table-wrap tbody tr {
    transition: background .2s ease;
}

.mgi-table-wrap tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mgi-img-preview {
    width: 110px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: block;
}

.mgi-cat-name {
    font-weight: 600;
    color: var(--bee-yellow-soft);
}

.mgi-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mgi-btn-edit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-block;
}

.mgi-btn-edit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mgi-btn-delete {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: var(--red);
    padding: 8px 16px;
    font-size: 0.82rem;
}

.mgi-btn-delete:hover {
    background: rgba(255, 107, 107, 0.18);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.2);
}

.mgi-empty-row td {
    text-align: center;
    padding: 40px 18px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .mgi-panel {
        padding: 6px;
    }

    .mgi-table-wrap thead {
        display: none;
    }

    .mgi-table-wrap table,
    .mgi-table-wrap tbody,
    .mgi-table-wrap tr,
    .mgi-table-wrap td {
        display: block;
        width: 100%;
    }

    .mgi-table-wrap tbody tr {
        margin-bottom: 12px;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .mgi-table-wrap tbody td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .mgi-table-wrap tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-dim);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mgi-table-wrap tbody td:last-child {
        border-bottom: none;
    }

    .mgi-img-preview {
        width: 140px;
        height: 90px;
    }
}

/* =========================================================
   EDIT CATEGORY PAGE (edit-category.php)
   All classes prefixed "ecat-" so they never collide
   with the dashboard, gallery-categories, upload-images,
   or manage-gallery-images classes above.
   ========================================================= */

.ecat-wrap {
    max-width: 520px;
}

.ecat-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.ecat-page-header .ecat-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--blue));
}

.ecat-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--blue);
}

.ecat-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.ecat-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.ecat-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    box-shadow: 0 0 18px var(--blue);
}

.ecat-field {
    margin-bottom: 22px;
}

.ecat-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.ecat-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.ecat-input::placeholder {
    color: var(--text-dim);
}

.ecat-input:focus {
    border-color: color-mix(in srgb, var(--blue) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.ecat-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ecat-submit {
    background: color-mix(in srgb, var(--blue) 85%, white 0%);
    color: #06202b;
    border: none;
    font-weight: 700;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(79, 195, 247, 0.3);
}

.ecat-submit:hover {
    box-shadow: 0 6px 22px rgba(79, 195, 247, 0.45);
}

.ecat-cancel-link {
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.ecat-cancel-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 640px) {
    .ecat-panel {
        padding: 20px 18px 24px;
    }

    .ecat-submit {
        width: 100%;
    }

    .ecat-form-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* =========================================================
   EDIT GALLERY IMAGE PAGE (edit-gallery-image.php)
   All classes prefixed "egi-" so they never collide
   with the dashboard, gallery-categories, upload-images,
   manage-gallery-images, or edit-category classes above.
   ========================================================= */

.egi-wrap {
    max-width: 560px;
}

.egi-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.egi-page-header .egi-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--blue));
}

.egi-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--blue);
}

.egi-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.egi-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.egi-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue);
    box-shadow: 0 0 18px var(--blue);
}

.egi-field {
    margin-bottom: 22px;
}

.egi-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.egi-current-image {
    width: 170px;
    height: 115px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: block;
}

.egi-select,
.egi-file {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.egi-select:focus,
.egi-file:focus {
    border-color: color-mix(in srgb, var(--blue) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.egi-select option {
    background: #141414;
    color: var(--text-main);
}

.egi-file {
    cursor: pointer;
    padding: 10px 14px;
}

.egi-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    color: #06202b;
    background: color-mix(in srgb, var(--blue) 80%, white 0%);
    transition: background .2s ease;
}

.egi-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--blue) 65%, transparent);
}

.egi-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.egi-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.egi-submit {
    background: color-mix(in srgb, var(--blue) 85%, white 0%);
    color: #06202b;
    border: none;
    font-weight: 700;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(79, 195, 247, 0.3);
}

.egi-submit:hover {
    box-shadow: 0 6px 22px rgba(79, 195, 247, 0.45);
}

.egi-cancel-link {
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.egi-cancel-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 640px) {
    .egi-panel {
        padding: 20px 18px 24px;
    }

    .egi-submit {
        width: 100%;
    }

    .egi-form-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .egi-current-image {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }
}

/* =========================================================
   ADD SERVICE PAGE (add-service.php)
   All classes prefixed "asv-" so they never collide
   with the dashboard, gallery-categories, upload-images,
   manage-gallery-images, edit-category, or edit-gallery-image
   classes above. Uses the orange accent to match the
   dashboard's Service Management panel.
   ========================================================= */

.asv-wrap {
    max-width: 560px;
}

.asv-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.asv-page-header .asv-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--orange));
}

.asv-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--orange);
}

.asv-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.asv-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.asv-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    box-shadow: 0 0 18px var(--orange);
}

.asv-field {
    margin-bottom: 20px;
}

.asv-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.asv-input,
.asv-textarea,
.asv-file {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.asv-input::placeholder,
.asv-textarea::placeholder {
    color: var(--text-dim);
}

.asv-input:focus,
.asv-textarea:focus,
.asv-file:focus {
    border-color: color-mix(in srgb, var(--orange) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.asv-textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.asv-file {
    cursor: pointer;
    padding: 10px 14px;
}

.asv-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    color: #2a1400;
    background: color-mix(in srgb, var(--orange) 85%, white 0%);
    transition: background .2s ease;
}

.asv-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--orange) 65%, transparent);
}

.asv-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.asv-preview {
    display: none;
    width: 170px;
    height: 115px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    margin-top: 12px;
}

.asv-submit {
    background: color-mix(in srgb, var(--orange) 90%, white 0%);
    color: #2a1400;
    border: none;
    font-weight: 700;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(255, 183, 77, 0.3);
    margin-top: 4px;
}

.asv-submit:hover {
    box-shadow: 0 6px 22px rgba(255, 183, 77, 0.45);
}

.asv-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.asv-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 640px) {
    .asv-panel {
        padding: 20px 18px 24px;
    }

    .asv-submit {
        width: 100%;
    }

    .asv-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }
}

/* =========================================================
   ADD SERVICE DETAILS PAGE (add-service-details.php)
   All classes prefixed "asd-" so they never collide with
   any other page's classes above. Uses the orange accent
   to match Add Service / Service Management.
   ========================================================= */

.asd-wrap {
    max-width: 620px;
}

.asd-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.asd-page-header .asd-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--orange));
}

.asd-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--orange);
}

.asd-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.asd-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.asd-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    box-shadow: 0 0 18px var(--orange);
}

.asd-field {
    margin-bottom: 20px;
}

.asd-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.asd-select,
.asd-textarea,
.asd-file {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.asd-textarea::placeholder {
    color: var(--text-dim);
}

.asd-select:focus,
.asd-textarea:focus,
.asd-file:focus {
    border-color: color-mix(in srgb, var(--orange) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.asd-select option {
    background: #141414;
    color: var(--text-main);
}

.asd-textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.asd-file {
    cursor: pointer;
    padding: 10px 14px;
}

.asd-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    color: #2a1400;
    background: color-mix(in srgb, var(--orange) 85%, white 0%);
    transition: background .2s ease;
}

.asd-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--orange) 65%, transparent);
}

.asd-image-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.asd-image-col {
    flex: 1 1 240px;
}

.asd-preview {
    display: none;
    width: 100%;
    max-width: 220px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    margin-top: 12px;
}

.asd-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.asd-submit {
    background: color-mix(in srgb, var(--orange) 90%, white 0%);
    color: #2a1400;
    border: none;
    font-weight: 700;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(255, 183, 77, 0.3);
    margin-top: 4px;
}

.asd-submit:hover {
    box-shadow: 0 6px 22px rgba(255, 183, 77, 0.45);
}

.asd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.asd-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 640px) {
    .asd-panel {
        padding: 20px 18px 24px;
    }

    .asd-submit {
        width: 100%;
    }

    .asd-image-row {
        flex-direction: column;
    }

    .asd-preview {
        max-width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }
}

/* =========================================================
   MANAGE SERVICES PAGE (manage-services.php)
   All classes prefixed "msv-" so they never collide with
   any other page's classes above. Uses the orange accent
   to match Service Management.
   ========================================================= */

.msv-wrap {
    max-width: 1100px;
}

.msv-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.msv-page-header .msv-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--orange));
}

.msv-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--orange);
}

.msv-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.msv-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.msv-panel {
    position: relative;
    border-radius: 20px;
    padding: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.msv-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    box-shadow: 0 0 18px var(--orange);
}

.msv-table-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-top: 3px;
}

.msv-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.msv-table-wrap thead th {
    text-align: left;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
}

.msv-table-wrap tbody td {
    padding: 14px 20px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.msv-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.msv-table-wrap tbody tr {
    transition: background .2s ease;
}

.msv-table-wrap tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.msv-img-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: block;
}

.msv-name {
    font-weight: 600;
    color: var(--bee-yellow-soft);
}

.msv-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.msv-status-yes {
    color: var(--green);
    background: rgba(105, 240, 174, 0.1);
    border: 1px solid rgba(105, 240, 174, 0.3);
}

.msv-status-no {
    color: var(--red);
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.msv-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.msv-btn-edit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-block;
}

.msv-btn-edit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.msv-btn-delete {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: var(--red);
    padding: 8px 16px;
    font-size: 0.82rem;
}

.msv-btn-delete:hover {
    background: rgba(255, 107, 107, 0.18);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.2);
}

.msv-empty-row td {
    text-align: center;
    padding: 40px 18px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .msv-panel {
        padding: 6px;
    }

    .msv-table-wrap thead {
        display: none;
    }

    .msv-table-wrap table,
    .msv-table-wrap tbody,
    .msv-table-wrap tr,
    .msv-table-wrap td {
        display: block;
        width: 100%;
    }

    .msv-table-wrap tbody tr {
        margin-bottom: 12px;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .msv-table-wrap tbody td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .msv-table-wrap tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-dim);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .msv-table-wrap tbody td:last-child {
        border-bottom: none;
    }

    .msv-img-preview {
        width: 80px;
        height: 80px;
    }
}

/* =========================================================
   EDIT SERVICE PAGE (edit-service.php)
   All classes prefixed "esv-" so they never collide with
   any other page's classes above. Uses the orange accent
   to match Service Management / Add Service / Manage Services.
   Combines "Main Service Info" + "Service Details" into two
   stacked glass panels inside one form.
   ========================================================= */

.esv-wrap {
    max-width: 760px;
}

.esv-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.esv-page-header .esv-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--orange));
}

.esv-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--orange);
}

.esv-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.esv-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.esv-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.esv-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.esv-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    box-shadow: 0 0 18px var(--orange);
}

.esv-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.esv-panel-header .esv-panel-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px var(--orange));
}

.esv-panel-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.2px;
}

.esv-field {
    margin-bottom: 20px;
}

.esv-field:last-child {
    margin-bottom: 0;
}

.esv-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.esv-input,
.esv-textarea,
.esv-file {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.esv-input::placeholder,
.esv-textarea::placeholder {
    color: var(--text-dim);
}

.esv-input:focus,
.esv-textarea:focus,
.esv-file:focus {
    border-color: color-mix(in srgb, var(--orange) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.esv-textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.esv-file {
    cursor: pointer;
    padding: 10px 14px;
}

.esv-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    color: #2a1400;
    background: color-mix(in srgb, var(--orange) 85%, white 0%);
    transition: background .2s ease;
}

.esv-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--orange) 65%, transparent);
}

.esv-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.esv-image-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.esv-image-col {
    flex: 1 1 240px;
}

.esv-current-image {
    width: 100%;
    max-width: 190px;
    height: 128px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: block;
    margin-bottom: 12px;
}

.esv-no-details {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25);
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.5;
}

.esv-no-details strong {
    color: var(--red);
}

.esv-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.esv-submit {
    background: color-mix(in srgb, var(--orange) 90%, white 0%);
    color: #2a1400;
    border: none;
    font-weight: 700;
    padding: 12px 26px;
    box-shadow: 0 4px 16px rgba(255, 183, 77, 0.3);
}

.esv-submit:hover {
    box-shadow: 0 6px 22px rgba(255, 183, 77, 0.45);
}

.esv-cancel-link {
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.esv-cancel-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 640px) {
    .esv-panel {
        padding: 20px 18px 24px;
    }

    .esv-submit {
        width: 100%;
    }

    .esv-image-row {
        flex-direction: column;
    }

    .esv-current-image {
        max-width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }

    .esv-form-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* =========================================================
   PROJECT CATEGORIES PAGE (project-categories.php)
   All classes prefixed "pcat-" so they never collide with
   any other page's classes above. Uses the purple accent
   to match the dashboard's Project Management panel.
   ========================================================= */

.pcat-wrap {
    max-width: 640px;
}

.pcat-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.pcat-page-header .pcat-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--purple));
}

.pcat-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--purple);
}

.pcat-step-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--purple);
    background: color-mix(in srgb, var(--purple) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--purple) 40%, transparent);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.pcat-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.pcat-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.pcat-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.pcat-panel {
    position: relative;
    border-radius: 20px;
    padding: 22px 24px 26px;
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.pcat-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple);
    box-shadow: 0 0 18px var(--purple);
}

.pcat-panel h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
}

.pcat-create-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pcat-input {
    flex: 1 1 260px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.pcat-input::placeholder {
    color: var(--text-dim);
}

.pcat-input:focus {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.pcat-btn-create {
    background: color-mix(in srgb, var(--purple) 90%, white 0%);
    color: #1c0a33;
    border: none;
    box-shadow: 0 4px 16px rgba(179, 136, 255, 0.3);
    padding: 12px 20px;
}

.pcat-btn-create:hover {
    box-shadow: 0 6px 22px rgba(179, 136, 255, 0.45);
}

.pcat-list {
    list-style: none;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.pcat-list li {
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bee-yellow-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background .2s ease;
}

.pcat-list li:last-child {
    border-bottom: none;
}

.pcat-list li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.pcat-empty-state {
    padding: 30px 18px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .pcat-panel {
        padding: 18px 16px 20px;
    }

    .pcat-create-row {
        flex-direction: column;
    }

    .pcat-btn-create {
        width: 100%;
    }
}

/* =========================================================
   CREATE MAIN PROJECT PAGE (create-main-project.php)
   All classes prefixed "cmp-" so they never collide with
   any other page's classes above. Purple accent.
   ========================================================= */

.cmp-wrap {
    max-width: 620px;
}

.cmp-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cmp-page-header .cmp-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--purple));
}

.cmp-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--purple);
}

.cmp-step-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--purple);
    background: color-mix(in srgb, var(--purple) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--purple) 40%, transparent);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.cmp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.cmp-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.cmp-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.cmp-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.cmp-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple);
    box-shadow: 0 0 18px var(--purple);
}

.cmp-field {
    margin-bottom: 20px;
}

.cmp-field:last-child {
    margin-bottom: 0;
}

.cmp-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.cmp-input,
.cmp-select,
.cmp-file {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.cmp-input::placeholder {
    color: var(--text-dim);
}

.cmp-input:focus,
.cmp-select:focus,
.cmp-file:focus {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.cmp-select option {
    background: #141414;
    color: var(--text-main);
}

.cmp-file {
    cursor: pointer;
    padding: 10px 14px;
}

.cmp-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    color: #1c0a33;
    background: color-mix(in srgb, var(--purple) 85%, white 0%);
    transition: background .2s ease;
}

.cmp-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--purple) 65%, transparent);
}

.cmp-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.cmp-preview {
    display: none;
    width: 100%;
    max-width: 220px;
    height: 132px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    margin-top: 12px;
}

.cmp-submit {
    background: color-mix(in srgb, var(--purple) 90%, white 0%);
    color: #1c0a33;
    border: none;
    font-weight: 700;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(179, 136, 255, 0.3);
    margin-top: 4px;
}

.cmp-submit:hover {
    box-shadow: 0 6px 22px rgba(179, 136, 255, 0.45);
}

@media (max-width: 640px) {
    .cmp-panel {
        padding: 20px 18px 24px;
    }

    .cmp-submit {
        width: 100%;
    }

    .cmp-preview {
        max-width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }
}

/* =========================================================
   ADD PROJECT DETAILS PAGE (add-project-details.php)
   All classes prefixed "apd-" so they never collide with
   any other page's classes above. Purple accent.
   ========================================================= */

.apd-wrap {
    max-width: 680px;
}

.apd-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.apd-page-header .apd-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--purple));
}

.apd-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--purple);
}

.apd-step-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--purple);
    background: color-mix(in srgb, var(--purple) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--purple) 40%, transparent);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.apd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.apd-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.apd-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.apd-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.apd-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple);
    box-shadow: 0 0 18px var(--purple);
}

.apd-field {
    margin-bottom: 20px;
}

.apd-field:last-child {
    margin-bottom: 0;
}

.apd-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.apd-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.apd-row .apd-field {
    flex: 1 1 200px;
}

.apd-input,
.apd-select,
.apd-textarea,
.apd-file {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.apd-input::placeholder,
.apd-textarea::placeholder {
    color: var(--text-dim);
}

.apd-input:focus,
.apd-select:focus,
.apd-textarea:focus,
.apd-file:focus {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.apd-select option {
    background: #141414;
    color: var(--text-main);
}

.apd-textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.apd-file {
    cursor: pointer;
    padding: 10px 14px;
}

.apd-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    color: #1c0a33;
    background: color-mix(in srgb, var(--purple) 85%, white 0%);
    transition: background .2s ease;
}

.apd-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--purple) 65%, transparent);
}

.apd-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.apd-preview {
    display: none;
    width: 100%;
    max-width: 220px;
    height: 132px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    margin-top: 12px;
}

.apd-submit {
    background: color-mix(in srgb, var(--purple) 90%, white 0%);
    color: #1c0a33;
    border: none;
    font-weight: 700;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(179, 136, 255, 0.3);
    margin-top: 4px;
}

.apd-submit:hover {
    box-shadow: 0 6px 22px rgba(179, 136, 255, 0.45);
}

@media (max-width: 640px) {
    .apd-panel {
        padding: 20px 18px 24px;
    }

    .apd-submit {
        width: 100%;
    }

    .apd-row {
        flex-direction: column;
        gap: 0;
    }

    .apd-preview {
        max-width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }
}

/* =========================================================
   ADD EVENT SECTIONS PAGE (add-event-sections.php)
   All classes prefixed "aes-" so they never collide with
   any other page's classes above. Purple accent.
   ========================================================= */

.aes-wrap {
    max-width: 780px;
}

.aes-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.aes-page-header .aes-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--purple));
}

.aes-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--purple);
}

.aes-step-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--purple);
    background: color-mix(in srgb, var(--purple) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--purple) 40%, transparent);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.aes-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.aes-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.aes-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.aes-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.aes-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple);
    box-shadow: 0 0 18px var(--purple);
}

.aes-field {
    margin-bottom: 20px;
}

.aes-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.aes-input,
.aes-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.aes-input::placeholder {
    color: var(--text-dim);
}

.aes-input:focus,
.aes-select:focus {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.aes-select option {
    background: #141414;
    color: var(--text-main);
}

.aes-sub-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.aes-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.aes-image-col {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.aes-image-col-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.aes-file {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.aes-file:focus {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.aes-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 8px;
    margin-right: 10px;
    color: #1c0a33;
    background: color-mix(in srgb, var(--purple) 85%, white 0%);
    transition: background .2s ease;
}

.aes-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--purple) 65%, transparent);
}

.aes-preview {
    display: none;
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    margin-top: 10px;
}

.aes-submit {
    background: color-mix(in srgb, var(--purple) 90%, white 0%);
    color: #1c0a33;
    border: none;
    font-weight: 700;
    padding: 12px 24px;
    box-shadow: 0 4px 16px rgba(179, 136, 255, 0.3);
    margin-top: 10px;
}

.aes-submit:hover {
    box-shadow: 0 6px 22px rgba(179, 136, 255, 0.45);
}

@media (max-width: 640px) {
    .aes-panel {
        padding: 20px 18px 24px;
    }

    .aes-submit {
        width: 100%;
    }

    .aes-image-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MANAGE PROJECTS PAGE (manage-projects.php)
   All classes prefixed "mpr-" so they never collide with
   any other page's classes above. Purple accent.
   ========================================================= */

.mpr-wrap {
    max-width: 1100px;
}

.mpr-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.mpr-page-header .mpr-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--purple));
}

.mpr-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--purple);
}

.mpr-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.mpr-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.mpr-panel {
    position: relative;
    border-radius: 20px;
    padding: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.mpr-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple);
    box-shadow: 0 0 18px var(--purple);
}

.mpr-table-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-top: 3px;
}

.mpr-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.mpr-table-wrap thead th {
    text-align: left;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
}

.mpr-table-wrap tbody td {
    padding: 14px 20px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.mpr-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.mpr-table-wrap tbody tr {
    transition: background .2s ease;
}

.mpr-table-wrap tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mpr-img-preview {
    width: 90px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: block;
}

.mpr-name {
    font-weight: 600;
    color: var(--bee-yellow-soft);
}

.mpr-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.mpr-status-yes {
    color: var(--green);
    background: rgba(105, 240, 174, 0.1);
    border: 1px solid rgba(105, 240, 174, 0.3);
}

.mpr-status-no {
    color: var(--red);
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.mpr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mpr-btn-edit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-block;
}

.mpr-btn-edit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mpr-btn-delete {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: var(--red);
    padding: 8px 16px;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-block;
}

.mpr-btn-delete:hover {
    background: rgba(255, 107, 107, 0.18);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.2);
}

.mpr-empty-row td {
    text-align: center;
    padding: 40px 18px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .mpr-panel {
        padding: 6px;
    }

    .mpr-table-wrap thead {
        display: none;
    }

    .mpr-table-wrap table,
    .mpr-table-wrap tbody,
    .mpr-table-wrap tr,
    .mpr-table-wrap td {
        display: block;
        width: 100%;
    }

    .mpr-table-wrap tbody tr {
        margin-bottom: 12px;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .mpr-table-wrap tbody td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .mpr-table-wrap tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-dim);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mpr-table-wrap tbody td:last-child {
        border-bottom: none;
    }

    .mpr-img-preview {
        width: 120px;
        height: 76px;
    }
}

/* =========================================================
   EDIT PROJECT PAGE (edit-project.php)
   All classes prefixed "epr-" so they never collide with
   any other page's classes above. Purple accent, mirrors
   the two-panel layout used by Edit Service (esv-).
   ========================================================= */

.epr-wrap {
    max-width: 760px;
}

.epr-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.epr-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.epr-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.epr-page-header .epr-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--purple));
}

.epr-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--purple);
}

.epr-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.epr-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.epr-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--purple);
    box-shadow: 0 0 18px var(--purple);
}

.epr-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.epr-panel-header .epr-panel-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px var(--purple));
}

.epr-panel-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.2px;
}

.epr-field {
    margin-bottom: 20px;
}

.epr-field:last-child {
    margin-bottom: 0;
}

.epr-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.epr-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.epr-row .epr-field {
    flex: 1 1 200px;
}

.epr-input,
.epr-select,
.epr-textarea,
.epr-file {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.epr-input::placeholder,
.epr-textarea::placeholder {
    color: var(--text-dim);
}

.epr-input:focus,
.epr-select:focus,
.epr-textarea:focus,
.epr-file:focus {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.epr-select option {
    background: #141414;
    color: var(--text-main);
}

.epr-textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.epr-file {
    cursor: pointer;
    padding: 10px 14px;
}

.epr-file::file-selector-button {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    color: #1c0a33;
    background: color-mix(in srgb, var(--purple) 85%, white 0%);
    transition: background .2s ease;
}

.epr-file::file-selector-button:hover {
    background: color-mix(in srgb, var(--purple) 65%, transparent);
}

.epr-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.epr-current-image {
    width: 100%;
    max-width: 190px;
    height: 128px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: block;
    margin-bottom: 12px;
}

.epr-no-details {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25);
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.5;
}

.epr-no-details strong {
    color: var(--red);
}

.epr-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.epr-submit {
    background: color-mix(in srgb, var(--purple) 90%, white 0%);
    color: #1c0a33;
    border: none;
    font-weight: 700;
    padding: 12px 26px;
    box-shadow: 0 4px 16px rgba(179, 136, 255, 0.3);
}

.epr-submit:hover {
    box-shadow: 0 6px 22px rgba(179, 136, 255, 0.45);
}

.epr-cancel-link {
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.epr-cancel-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 640px) {
    .epr-panel {
        padding: 20px 18px 24px;
    }

    .epr-submit {
        width: 100%;
    }

    .epr-row {
        flex-direction: column;
        gap: 0;
    }

    .epr-current-image {
        max-width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }

    .epr-form-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* =========================================================
   MANAGE INQUIRIES PAGE (manage-inquiries.php)
   All classes prefixed "minq-" so they never collide with
   any other page's classes above. Uses the green accent to
   match the dashboard's Inquiries panel.
   ========================================================= */

.minq-wrap {
    max-width: 1100px;
}

.minq-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.minq-page-header .minq-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--green));
}

.minq-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--green);
}

.minq-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.minq-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.minq-toolbar {
    margin-bottom: 20px;
}

.minq-btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--blue) 85%, white 0%);
    color: #06202b;
    border: none;
    font-weight: 700;
    padding: 11px 20px;
    box-shadow: 0 4px 16px rgba(79, 195, 247, 0.3);
    text-decoration: none;
}

.minq-btn-export:hover {
    box-shadow: 0 6px 22px rgba(79, 195, 247, 0.45);
}

.minq-panel {
    position: relative;
    border-radius: 20px;
    padding: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.minq-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

.minq-table-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-top: 3px;
}

.minq-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.minq-table-wrap thead th {
    text-align: left;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
}

.minq-table-wrap tbody td {
    padding: 14px 20px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.minq-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.minq-table-wrap tbody tr {
    transition: background .2s ease;
}

.minq-table-wrap tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.minq-name {
    font-weight: 600;
    color: var(--bee-yellow-soft);
}

.minq-contact small {
    color: var(--text-dim);
    display: block;
    margin-top: 2px;
}

.minq-snippet {
    color: var(--text-dim);
}

.minq-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.minq-btn-edit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-block;
}

.minq-btn-edit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.minq-btn-delete {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.35);
    color: var(--red);
    padding: 8px 16px;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-block;
}

.minq-btn-delete:hover {
    background: rgba(255, 107, 107, 0.18);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.2);
}

.minq-empty-row td {
    text-align: center;
    padding: 40px 18px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .minq-panel {
        padding: 6px;
    }

    .minq-table-wrap thead {
        display: none;
    }

    .minq-table-wrap table,
    .minq-table-wrap tbody,
    .minq-table-wrap tr,
    .minq-table-wrap td {
        display: block;
        width: 100%;
    }

    .minq-table-wrap tbody tr {
        margin-bottom: 12px;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .minq-table-wrap tbody td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        text-align: right;
    }

    .minq-table-wrap tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-dim);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
    }

    .minq-table-wrap tbody td:last-child {
        border-bottom: none;
    }

    .minq-btn-export {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   EDIT INQUIRY PAGE (edit-inquiry.php)
   All classes prefixed "einq-" so they never collide with
   any other page's classes above. Green accent, matches
   Manage Inquiries.
   ========================================================= */

.einq-wrap {
    max-width: 600px;
}

.einq-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.einq-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

.einq-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.einq-page-header .einq-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--green));
}

.einq-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--green);
}

.einq-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 28px;
}

.einq-original {
    position: relative;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.einq-original::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.einq-original-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.einq-original-meta span {
    color: var(--bee-yellow-soft);
    font-weight: 600;
}

.einq-original-message {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

.einq-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.einq-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

.einq-field {
    margin-bottom: 20px;
}

.einq-field:last-child {
    margin-bottom: 0;
}

.einq-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.einq-input,
.einq-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.einq-input:focus,
.einq-textarea:focus {
    border-color: color-mix(in srgb, var(--green) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.einq-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.einq-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.einq-submit {
    background: color-mix(in srgb, var(--green) 85%, white 0%);
    color: #06210b;
    border: none;
    font-weight: 700;
    padding: 12px 26px;
    box-shadow: 0 4px 16px rgba(105, 240, 174, 0.3);
}

.einq-submit:hover {
    box-shadow: 0 6px 22px rgba(105, 240, 174, 0.45);
}

.einq-cancel-link {
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.einq-cancel-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 640px) {
    .einq-panel {
        padding: 20px 18px 24px;
    }

    .einq-submit {
        width: 100%;
    }

    .einq-form-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* =========================================================
   ADMIN LOGIN PAGE (admin_login.php)
   All classes prefixed "alog-" so they never collide with
   any other page's classes above. Standalone centered card,
   not part of the dashboard shell — uses the bee-yellow
   brand accent since this is the entry point.
   ========================================================= */

.alog-page {
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.alog-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 22px;
    padding: 36px 32px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.alog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bee-yellow), var(--bee-yellow-soft));
    box-shadow: 0 0 18px rgba(255, 199, 44, 0.5);
}

.alog-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 26px;
}

.alog-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 14px rgba(255, 199, 44, 0.25);
}

.alog-brand h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-main);
}

.alog-brand p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.alog-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--red);
    font-size: 0.86rem;
    font-weight: 600;
}

.alog-field {
    margin-bottom: 18px;
}

.alog-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.alog-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.alog-input:focus {
    border-color: color-mix(in srgb, var(--bee-yellow) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.alog-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--bee-yellow), #e0a800);
    color: #1a1400;
    border: none;
    font-weight: 700;
    padding: 13px 18px;
    box-shadow: 0 4px 16px rgba(255, 199, 44, 0.3);
    margin-top: 4px;
}

.alog-submit:hover {
    box-shadow: 0 6px 22px rgba(255, 199, 44, 0.45);
}

.alog-home-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.alog-home-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 480px) {
    .alog-card {
        padding: 30px 22px 26px;
    }
}

/* =========================================================
   CREATE SUB-ADMIN PAGE (create-sub-admin.php)
   All classes prefixed "csub-" so they never collide with
   any other page's classes above. Restricted, super-admin
   only page — uses the red accent to signal elevated risk.
   ========================================================= */

.csub-wrap {
    max-width: 480px;
}

.csub-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.csub-page-header .csub-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 6px var(--red));
}

.csub-page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-main);
}

.csub-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.csub-alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
}

.csub-alert-success {
    color: var(--green);
    background: rgba(105, 240, 174, 0.1);
    border: 1px solid rgba(105, 240, 174, 0.3);
}

.csub-alert-error {
    color: var(--red);
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.csub-panel {
    position: relative;
    border-radius: 20px;
    padding: 26px 28px 30px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 107, 107, 0.25);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.csub-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    box-shadow: 0 0 18px var(--red);
}

.csub-field {
    margin-bottom: 20px;
}

.csub-field:last-of-type {
    margin-bottom: 0;
}

.csub-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.csub-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.csub-input:focus {
    border-color: color-mix(in srgb, var(--red) 55%, transparent);
    background: rgba(255, 255, 255, 0.07);
}

.csub-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.csub-submit {
    width: 100%;
    background: color-mix(in srgb, var(--red) 90%, black 0%);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 13px 18px;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
    margin-top: 6px;
}

.csub-submit:hover {
    box-shadow: 0 6px 22px rgba(255, 107, 107, 0.45);
}

.csub-denied {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    padding: 32px 28px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.csub-denied h3 {
    color: var(--red);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.csub-denied p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.csub-denied a {
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.csub-denied a:hover {
    border-color: var(--bee-yellow-soft);
}

.csub-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bee-yellow-soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.csub-back-link:hover {
    border-color: var(--bee-yellow-soft);
}

@media (max-width: 480px) {
    .csub-panel {
        padding: 20px 18px 24px;
    }
}

/* =========================================================
   DASHBOARD OVERVIEW STATS (display.php)
   All classes prefixed "stat-" so they never collide with
   any other page's classes above. Accent colors mirror the
   panels below (gallery=blue, service=orange,
   projects=purple, inquiries=green) so the overview reads
   as a summary of those same sections.
   ========================================================= */

.stat-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 34px 4px 18px;
    letter-spacing: 0.2px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 8px;
}

.stat-card {
    position: relative;
    border-radius: 18px;
    padding: 18px 20px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent);
}

.stat-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.stat-card p {
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.stat-card p strong {
    color: var(--text-main);
}

.stat-card .stat-note {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 4px;
}

.stat-card ul {
    list-style: none;
    margin-top: 6px;
}

.stat-card ul li {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.stat-card ul li:last-child {
    border-bottom: none;
}

.stat-card ul li span {
    color: var(--bee-yellow-soft);
    font-weight: 600;
}

.stat-card-gallery {
    --accent: var(--blue);
}

.stat-card-service {
    --accent: var(--orange);
}

.stat-card-projects {
    --accent: var(--purple);
}

.stat-card-inquiries {
    --accent: var(--green);
}

@media (max-width: 640px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}