/* --- Catppuccin Macchiato palette --- */

:root {
    --ctp-base: #24273a;
    --ctp-mantle: #1e2030;
    --ctp-crust: #181926;

    --ctp-text: #cad3f5;
    --ctp-subtext1: #b8c0e0;
    --ctp-subtext0: #a5adcb;
    --ctp-overlay2: #939ab7;
    --ctp-overlay1: #8087a2;
    --ctp-overlay0: #6e738d;
    --ctp-surface2: #5b6078;
    --ctp-surface1: #494d64;
    --ctp-surface0: #363a4f;

    --ctp-lavender: #b7bdf8;
    --ctp-blue: #8aadf4;
    --ctp-sapphire: #7dc4e4;
    --ctp-sky: #91d7e3;
    --ctp-teal: #8bd5ca;
    --ctp-green: #a6da95;
    --ctp-yellow: #eed49f;
    --ctp-peach: #f5a97f;
    --ctp-maroon: #ee99a0;
    --ctp-red: #ed8796;
    --ctp-mauve: #c6a0f6;
    --ctp-pink: #f5bde6;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--ctp-base);
    color: var(--ctp-text);
    line-height: 1.6;
}

h1 {
    margin-bottom: 20px;
    color: var(--ctp-text);
}

h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--ctp-subtext1);
}

h3 {
    color: var(--ctp-subtext1);
}

ul {
    list-style: none;
    margin-bottom: 20px;
}

li {
    background: var(--ctp-surface0);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

a {
    color: var(--ctp-lavender);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

form {
    background: var(--ctp-surface0);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 500px;
}

/* --- entrance animation --- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero,
.card,
.step,
.admin-toolbar,
.profile-card,
.login-section,
.order-details,
.order-manage-form,
.chat-log {
    animation: fadeInUp 0.5s ease both;
}

.card-grid .card:nth-child(1),
.steps .step:nth-child(1) { animation-delay: 0.02s; }
.card-grid .card:nth-child(2),
.steps .step:nth-child(2) { animation-delay: 0.08s; }
.card-grid .card:nth-child(3),
.steps .step:nth-child(3) { animation-delay: 0.14s; }
.card-grid .card:nth-child(4),
.steps .step:nth-child(4) { animation-delay: 0.2s; }
.card-grid .card:nth-child(5) { animation-delay: 0.26s; }
.card-grid .card:nth-child(6) { animation-delay: 0.32s; }

/* --- layout containers --- */

.site-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* --- header / navigation --- */

.site-header {
    background: var(--ctp-mantle);
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ctp-text);
    transition: color 0.2s ease;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: transform 0.25s ease;
}

.logo:hover .logo-img {
    transform: rotate(-4deg) scale(1.05);
}

.login-logo {
    display: block;
    height: 72px;
    width: auto;
    margin: 0 auto 16px;
}

.logo:hover {
    text-decoration: none;
    color: var(--ctp-lavender);
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a,
.footer-nav a {
    position: relative;
    color: var(--ctp-subtext1);
    font-size: 15px;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--ctp-lavender);
    transition: width 0.25s ease;
}

.main-nav a:hover,
.footer-nav a:hover {
    color: var(--ctp-lavender);
    text-decoration: none;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    color: var(--ctp-subtext1);
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

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

.nav-dropdown summary::after {
    content: "▾";
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
}

.nav-dropdown:hover summary,
.nav-dropdown[open] summary {
    color: var(--ctp-lavender);
}

.nav-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 200px;
    background: var(--ctp-surface0);
    border: 1px solid var(--ctp-surface1);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
    z-index: 20;
}

.nav-dropdown-menu a {
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: var(--ctp-surface1);
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-hint {
    display: block;
    font-size: 11px;
    color: var(--ctp-overlay2);
}

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

.account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ctp-subtext1);
    font-size: 15px;
    transition: color 0.2s ease;
}

.account-link:hover {
    color: var(--ctp-lavender);
    text-decoration: none;
}

.account-link:hover .avatar {
    transform: scale(1.08);
}

.avatar-badge-wrap {
    position: relative;
    display: inline-flex;
}

.badge-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--ctp-red);
    color: var(--ctp-crust);
    font-size: 11px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: transform 0.2s ease;
}

.badge-count--inline {
    position: static;
    display: inline-flex;
}

.toast {
    position: fixed;
    top: 16px;
    right: 16px;
    background: var(--ctp-surface1);
    color: var(--ctp-text);
    border: 1px solid var(--ctp-surface2);
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.3s cubic-bezier(.2,.7,.3,1), transform 0.3s cubic-bezier(.2,.7,.3,1);
    z-index: 100;
    max-width: 300px;
    font-size: 14px;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nav-toggle {
    display: none;
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle-btn span {
    width: 24px;
    height: 2px;
    background: var(--ctp-text);
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* --- footer --- */

.site-footer {
    background: var(--ctp-mantle);
    border-top: 1px solid var(--ctp-surface1);
    margin-top: 40px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--ctp-subtext0);
    font-size: 14px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* --- buttons --- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--ctp-lavender);
    color: var(--ctp-crust);
}

.btn-primary:hover {
    background: var(--ctp-blue);
    box-shadow: 0 6px 16px rgba(183,189,248,0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--ctp-lavender);
    border: 1px solid var(--ctp-lavender);
}

.btn-secondary:hover {
    background: rgba(183,189,248,0.1);
}

/* --- hero --- */

.hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--ctp-surface0);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--ctp-lavender);
}

.hero-subtitle {
    max-width: 560px;
    margin: 0 auto 24px;
    color: var(--ctp-subtext1);
}

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

/* --- hero slideshow (gallery background album) --- */

.hero-slideshow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--ctp-surface0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease both;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: opacity, transform;
}

.hero-slide--static {
    opacity: 1;
    animation: none;
}

.hero-slideshow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24,25,38,0.4), rgba(24,25,38,0.7));
}

.hero-slideshow-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 560px;
    margin: 24px;
    padding: 44px 32px;
    background: rgba(54,58,79,0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(183,189,248,0.25);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero-slideshow-content h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--ctp-lavender);
}

.hero-slideshow-content .hero-subtitle {
    max-width: 100%;
    color: var(--ctp-text);
}

@media (max-width: 640px) {
    .hero-slideshow {
        min-height: 380px;
    }

    .hero-slideshow-content {
        padding: 28px 20px;
        margin: 16px;
    }
}

/* --- sections --- */

.section {
    padding: 30px 0;
}

.section-narrow {
    max-width: 500px;
    margin: 0 auto;
}

.section-more {
    margin-top: 10px;
}

/* --- service cards --- */

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

.card {
    background: var(--ctp-surface0);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.step:hover,
.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.card h3 {
    margin-bottom: 12px;
    color: var(--ctp-text);
}

.card-list li {
    box-shadow: none;
    background: transparent;
    margin-bottom: 0;
    border-bottom: 1px solid var(--ctp-surface1);
}

.card-list li:last-child {
    border-bottom: none;
}

.card-list-link {
    padding: 6px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.card-list-link:hover {
    color: var(--ctp-lavender);
    text-decoration: none;
}

.card-note {
    width: 100%;
    font-size: 13px;
    color: var(--ctp-overlay2);
}

.service-detail-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.service-detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ctp-surface1);
}

.service-detail-list dt {
    color: var(--ctp-overlay2);
    font-size: 13px;
}

.service-detail-list dd {
    color: var(--ctp-text);
    font-weight: 600;
    text-align: right;
}

.service-detail-text {
    white-space: pre-line;
    color: var(--ctp-subtext1);
}

.badge {
    color: var(--ctp-crust);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

/* --- how it works steps --- */

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

.step {
    background: var(--ctp-surface0);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ctp-lavender);
    color: var(--ctp-crust);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.step h3 {
    margin-bottom: 6px;
    color: var(--ctp-text);
}

/* --- status check --- */

.section-status {
    text-align: center;
}

.status-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 16px auto 0;
}

.status-form input {
    margin-top: 0;
}

.order-code {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ctp-lavender);
    margin: 8px 0;
}

/* --- avatars --- */

.avatar {
    border-radius: 50%;
    object-fit: cover;
    background: var(--ctp-surface1);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.avatar-xs {
    width: 28px;
    height: 28px;
}

.avatar-sm {
    width: 36px;
    height: 36px;
}

.avatar-md {
    width: 56px;
    height: 56px;
    margin-bottom: 10px;
}

.avatar-lg {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
}

/* --- admin toolbar --- */

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--ctp-surface0);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.admin-toolbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--ctp-lavender);
    background: rgba(183,189,248,0.15);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

.admin-toolbar-links {
    display: flex;
    gap: 16px;
}

.admin-toolbar-links a {
    color: var(--ctp-subtext1);
    transition: color 0.2s ease;
}

.admin-toolbar-links a:hover {
    color: var(--ctp-lavender);
}

/* --- admin cards / profile --- */

.admin-card {
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card {
    background: var(--ctp-surface0);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    text-align: center;
}

.profile-card form {
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    text-align: left;
    margin-top: 8px;
    background: transparent;
}

.hint {
    color: var(--ctp-overlay2);
    font-size: 13px;
    margin-bottom: 12px;
}

.breadcrumb {
    margin-bottom: 16px;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

.form-error {
    color: var(--ctp-red);
    background: rgba(237,135,150,0.12);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.form-success {
    color: var(--ctp-green);
    background: rgba(166,218,149,0.12);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.btn-danger {
    display: inline-block;
    background: var(--ctp-red);
    color: var(--ctp-crust);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-danger:hover {
    background: var(--ctp-maroon);
    color: var(--ctp-crust);
    text-decoration: none;
    transform: translateY(-1px);
}

.login-section {
    max-width: 360px;
    margin: 60px auto;
    background: var(--ctp-surface0);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* --- order details / table --- */

.order-details p {
    margin-bottom: 8px;
}

.table-scroll {
    overflow-x: auto;
}

/* --- order priority / update forms --- */

.order-update-form {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    background: transparent;
}

.order-update-form select,
.order-update-form input {
    width: auto;
    margin-top: 0;
}

.order-manage-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    max-width: 100%;
    margin-bottom: 20px;
}

.order-manage-form label {
    margin-bottom: 0;
}

.priority-select {
    font-weight: 600;
}

.priority-select.priority-low {
    background: rgba(166,218,149,0.15);
    color: var(--ctp-green);
}

.priority-select.priority-normal {
    background: var(--ctp-surface1);
    color: var(--ctp-text);
}

.priority-select.priority-high {
    background: rgba(245,169,127,0.15);
    color: var(--ctp-peach);
}

.priority-select.priority-urgent {
    background: rgba(237,135,150,0.15);
    color: var(--ctp-red);
}

/* --- chat --- */

.chat-log {
    max-height: 320px;
    overflow-y: auto;
    background: var(--ctp-surface0);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.chat-log::-webkit-scrollbar {
    width: 8px;
}

.chat-log::-webkit-scrollbar-thumb {
    background: var(--ctp-surface2);
    border-radius: 999px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.chat-message--client {
    padding-left: 38px;
}

.chat-bubble {
    background: var(--ctp-surface1);
    border-radius: 8px;
    padding: 8px 12px;
    max-width: 80%;
}

.chat-message--admin .chat-bubble {
    background: rgba(183,189,248,0.12);
    border: 1px solid rgba(183,189,248,0.2);
}

.chat-bubble strong {
    font-size: 13px;
    color: var(--ctp-subtext1);
}

.chat-bubble p {
    background: none;
    box-shadow: none;
    padding: 4px 0 0;
    margin: 0;
    color: var(--ctp-text);
}

.chat-time {
    color: var(--ctp-overlay1);
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.chat-attachment {
    display: block;
    max-width: 240px;
    max-height: 240px;
    margin-top: 6px;
    border-radius: 6px;
}

.chat-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--ctp-surface0);
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    max-width: 100%;
}

.chat-form input[type="text"] {
    flex: 1;
    min-width: 160px;
    margin-top: 0;
}

.chat-form input[type="file"] {
    flex: 1;
    min-width: 160px;
    padding: 6px;
    margin-top: 0;
}

/* --- responsive nav --- */

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

    .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
    }

    .main-nav a {
        padding: 10px 0;
        border-bottom: 1px solid var(--ctp-surface1);
    }

    .nav-dropdown summary {
        padding: 10px 0;
        border-bottom: 1px solid var(--ctp-surface1);
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 12px;
        min-width: 0;
    }

    .nav-dropdown-menu a {
        padding: 8px 0;
        border-bottom: 1px solid var(--ctp-surface1);
    }

    .nav-toggle:checked ~ .main-nav {
        max-height: 500px;
        opacity: 1;
        margin-top: 12px;
    }

    .account-nav {
        margin-left: 0;
        margin-top: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .account-nav a {
        padding: 10px 0;
        border-bottom: 1px solid var(--ctp-surface1);
        width: 100%;
    }

    .header-inner {
        position: relative;
    }

    .hero {
        padding: 40px 16px;
    }

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

label {
    display: block;
    margin-bottom: 12px;
    color: var(--ctp-subtext1);
}

input, textarea, select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    background: var(--ctp-surface1);
    border: 1px solid var(--ctp-surface2);
    border-radius: 4px;
    color: var(--ctp-text);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder, textarea::placeholder {
    color: var(--ctp-overlay1);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--ctp-lavender);
    box-shadow: 0 0 0 3px rgba(183,189,248,0.2);
}

button {
    background: var(--ctp-lavender);
    color: var(--ctp-crust);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    background: var(--ctp-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(183,189,248,0.25);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ctp-surface0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--ctp-surface1);
}

th {
    background: var(--ctp-mantle);
    color: var(--ctp-subtext1);
}

tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: rgba(183,189,248,0.06);
}

/* --- team / contacts --- */

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--ctp-surface1);
}

.team-card {
    text-align: center;
}

.team-role {
    color: var(--ctp-lavender);
    font-size: 13px;
    margin-bottom: 8px;
}

.team-bio {
    color: var(--ctp-subtext0);
    font-size: 14px;
}

.team-edit-card {
    text-align: left;
}

.team-edit-form {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    margin-bottom: 10px;
}

.footer-phone {
    color: var(--ctp-subtext1);
    font-weight: 600;
}

/* --- legal pages --- */

.legal-text {
    white-space: pre-wrap;
    background: var(--ctp-surface0);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    color: var(--ctp-subtext1);
    line-height: 1.7;
}

/* --- gallery --- */

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease both;
    cursor: pointer;
    background: var(--ctp-surface0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(24,25,38,0.85));
    color: var(--ctp-text);
    font-size: 13px;
    padding: 20px 10px 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(24,25,38,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 200;
}

.lightbox--open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 85vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--ctp-text);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--ctp-surface1);
    color: var(--ctp-text);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--ctp-lavender);
    color: var(--ctp-crust);
}

@media (max-width: 640px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 8px; right: 8px; }
}
