/* Weddi Cloud — Rose Wedding Theme
   Elegant pink/rose palette with glassmorphism.
*/

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

.content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.content-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.content-tab {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.content-tab.active {
    background: linear-gradient(135deg, #f0b8c0, #d4838f);
    border-color: transparent;
    color: #2e1b1f;
    box-shadow: 0 8px 18px rgba(212,131,143,0.18);
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.25rem;
}

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

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 90% 10%, rgba(212,131,143,0.15), transparent 45%);
    opacity: 0.6;
    pointer-events: none;
}

.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.content-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.content-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.content-status.draft {
    background: rgba(212,131,143,0.15);
    color: #8a4c57;
}

.content-status.published {
    background: rgba(148,205,175,0.25);
    color: #2b6b52;
}

.content-status.archived {
    background: rgba(120,120,120,0.18);
    color: #5b5b5b;
}

.content-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.content-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-pill {
    background: rgba(232,160,171,0.12);
    color: #8a4c57;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
}

.content-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.content-card-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.content-card-actions {
    display: flex;
    gap: 0.4rem;
}

.content-side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.content-side-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.content-history {
    display: grid;
    gap: 0.75rem;
}

.history-row {
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.75rem;
}

.history-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.history-label {
    font-weight: 600;
    font-size: 0.88rem;
}

.history-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.history-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.muted-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.modal.modal-wide {
    max-width: 980px;
    width: min(980px, 92vw);
}

.editor {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(232,160,171,0.08);
    border-bottom: 1px solid var(--border);
}

.editor-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.35rem 0.7rem;
    border-radius: 0.6rem;
    font-size: 0.78rem;
    cursor: pointer;
}

.editor-body {
    min-height: 220px;
    padding: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
    outline: none;
}

.content-versions {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.content-versions-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.content-versions-list {
    display: grid;
    gap: 0.7rem;
}

.content-version-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.content-version-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.content-version-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.projects-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.project-stage-col {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(45, 32, 39, 0.05);
    min-height: 280px;
}

.project-stage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-stage-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.project-stage-count {
    border-radius: 999px;
    background: rgba(212,131,143,0.14);
    color: #91505a;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
}

.project-stage-list {
    display: grid;
    gap: 0.65rem;
}

.project-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(252,242,245,0.9));
    border: 1px solid rgba(212,131,143,0.2);
    border-radius: 16px;
    padding: 0.85rem;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 35%, rgba(255,255,255,0.4) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212,131,143,0.36);
    box-shadow: 0 14px 30px rgba(45, 32, 39, 0.12);
}

.project-card:hover::before {
    transform: translateX(120%);
}

.project-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.project-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-client {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.project-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.55rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.project-meta-row svg {
    width: 12px;
    height: 12px;
}

.project-progress {
    height: 6px;
    border-radius: 999px;
    background: rgba(212,131,143,0.13);
    margin-top: 0.6rem;
    overflow: hidden;
}

.project-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e8a0ab, #d4838f);
    transition: width 0.35s ease;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.project-empty {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 0.9rem 0.5rem;
}

@media (max-width: 1100px) {
    .project-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .project-stages {
        grid-template-columns: 1fr;
    }
    .project-stage-col {
        min-height: 0;
    }
    .content-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .content-tools {
        width: 100%;
        justify-content: space-between;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

:root {
    --gold: #d4838f;
    --gold-light: #e8a0ab;
    --gold-dark: #c06b78;
    --gold-glow: rgba(212, 131, 143, 0.12);

    --dark: #fdf6f7;
    --dark-2: #faf0f2;
    --dark-3: #f5e8eb;
    --dark-card: #ffffff;
    --dark-card-hover: #fef9fa;
    --dark-input: #fffbfc;

    --border: rgba(200, 140, 155, 0.16);
    --border-hover: rgba(200, 140, 155, 0.28);
    --border-focus: rgba(212, 131, 143, 0.45);

    --text-primary: #2d2027;
    --text-secondary: #604e56;
    --text-muted: #8a7a82;

    --error: #d26c74;
    --success: #5b9a74;
    --blue: #8cb7d4;

    --line: rgba(200, 140, 155, 0.12);

    --sidebar-bg: #2d2027;
    --sidebar-text: rgba(255,255,255,0.7);
    --sidebar-active: #d4838f;

    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    height: 100%;
    font-family: 'Heebo', sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10000;
    opacity: 0.12;
}

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background:
        radial-gradient(ellipse, rgba(232, 160, 171, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 65% 25%, rgba(255, 228, 234, 0.3) 0%, transparent 48%),
        radial-gradient(ellipse at 35% 35%, rgba(248, 200, 210, 0.2) 0%, transparent 42%);
    pointer-events: none;
    z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        opacity: 0.06;
    }
}

.content-section,
.client-gallery-block,
.gallery-media-grid,
.gallery-queue-list,
.project-stages,
.project-stage-list,
.clients-grid,
.activity-list,
.likes-photo-grid,
.content-grid {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(212, 131, 143, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 131, 143, 0.4);
}

.app {
    min-height: 100vh;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 246, 247, 0.88);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.header-logo {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-dark);
    background: radial-gradient(circle at 40% 40%, rgba(212,131,143,0.2), transparent 70%);
    box-shadow: 0 0 0 3px rgba(212,131,143,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: box-shadow var(--transition);
}

.header-logo:hover {
    box-shadow: 0 0 0 5px rgba(212,131,143,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-primary);
}

.header-title span {
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-family: 'Heebo', sans-serif;
    font-weight: 400;
    margin-right: 0.6rem;
    letter-spacing: 0.18em;
    opacity: 0.85;
}

.header-center {
    flex: 1;
    max-width: 360px;
    margin: 0 auto;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap svg {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.55rem 2.4rem 0.55rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.8);
    color: var(--text-primary);
    font-family: 'Heebo', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: all var(--transition);
}

.search-input:focus {
    border-color: var(--border-focus);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(171, 205, 226, 0.14);
}

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

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    font-family: 'Heebo', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-gold {
    background: linear-gradient(135deg, #f0b8c0 0%, #e8a0ab 45%, #d4838f 100%);
    color: #3b1f25;
    box-shadow: 0 4px 18px rgba(212, 131, 143, 0.2), inset 0 1px 0 rgba(255,255,255,0.45);
    font-weight: 600;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(212, 131, 143, 0.28);
}

.btn-gold:active { transform: translateY(0); }

.btn-outline {
    background: rgba(255,255,255,0.72);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--border-focus);
    color: var(--gold-dark);
    background: rgba(232,160,171,0.08);
}

.btn-ghost {
    background: rgba(232,160,171,0.1);
    color: #8e6570;
    border: 1px solid rgba(212,131,143,0.15);
}

.btn-ghost:hover {
    background: rgba(232,160,171,0.18);
    border-color: rgba(212,131,143,0.25);
}

.btn-sm {
    padding: 0.38rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
}

.btn-danger {
    background: rgba(210, 108, 116, 0.08);
    color: var(--error);
    border: 1px solid rgba(210, 108, 116, 0.12);
}

.btn-danger:hover {
    background: rgba(210, 108, 116, 0.14);
    border-color: rgba(210,108,116,0.22);
}

.btn svg {
    width: 15px;
    height: 15px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--dark-input);
    color: var(--text-primary);
    font-family: 'Heebo', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(171, 205, 226, 0.12);
}

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

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #ffffff;
    color: var(--text-primary);
}

.main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.clients-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.clients-toolbar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.clients-toolbar-subtitle {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.clients-toolbar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.client-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(62, 48, 35, 0.05);
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.client-card::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    right: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 2px;
}

.client-card:hover {
    border-color: var(--border-hover);
    background: var(--dark-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(62,48,35,0.08), 0 0 0 1px rgba(212,131,143,0.06);
}

.client-card:hover::before { opacity: 0.45; }
.client-card:hover::after { opacity: 0.28; }

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.client-card-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.client-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212,131,143,0.14), rgba(232,160,171,0.08));
    border: 1px solid rgba(212,131,143,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    flex-shrink: 0;
}

.client-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.3;
}

.client-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    background: rgba(255,255,255,0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(160,139,110,0.08);
}

.client-date-icon,
.client-meta-chip-icon,
.client-action-icon,
.client-form-section-icon,
.client-input-icon,
.client-modal-hero-icon svg {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-card-side-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.client-vendor {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.client-links-count {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.client-modules-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.client-module-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(160,139,110,0.14);
    background: rgba(255,255,255,0.72);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
}

.client-module-chip svg {
    width: 12px;
    height: 12px;
}

.client-meta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.client-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(160,139,110,0.08);
    color: var(--text-muted);
    font-size: 0.74rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.badge-gallery {
    background: rgba(212, 131, 143, 0.12);
    color: #b35a68;
    border: 1px solid rgba(212,131,143,0.14);
}

.badge-video {
    background: rgba(171,205,226,0.18);
    color: #5d85a1;
    border: 1px solid rgba(140,183,212,0.14);
}

.badge-custom {
    background: rgba(91,154,116,0.12);
    color: var(--success);
    border: 1px solid rgba(91,154,116,0.14);
}

.client-card-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(160,139,110,0.08);
    flex-wrap: wrap;
}

.client-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid rgba(160,139,110,0.12);
    background: rgba(255,255,255,0.82);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.client-action-btn:hover {
    transform: translateY(-1px);
    color: var(--text-primary);
    border-color: rgba(212,131,143,0.2);
    box-shadow: 0 10px 24px rgba(40,24,29,0.08);
}

.client-action-btn.danger {
    color: var(--error);
    border-color: rgba(210,108,116,0.16);
    background: rgba(210,108,116,0.06);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(75, 50, 58, 0.28);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s ease;
}

.modal {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 30px 80px rgba(62,48,35,0.12);
}

.modal.modal-client {
    max-width: 760px;
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--dark-2);
    z-index: 10;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.client-modal-subtitle {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    border-color: var(--error);
    color: var(--error);
}

.modal-body {
    padding: 1.5rem;
}

.client-modal-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(252,247,248,0.88));
    border: 1px solid rgba(212,131,143,0.12);
    box-shadow: 0 16px 34px rgba(40,24,29,0.05);
    margin-bottom: 1rem;
}

.client-modal-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    background: linear-gradient(180deg, rgba(212,131,143,0.16), rgba(212,131,143,0.07));
    border: 1px solid rgba(212,131,143,0.14);
}

.client-modal-hero-icon svg {
    width: 22px;
    height: 22px;
}

.client-modal-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.client-modal-hero-text {
    margin-top: 0.22rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.links-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.client-form-section {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.56);
    border: 1px solid rgba(160,139,110,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
    margin-bottom: 1rem;
}

.client-form-section.links-section {
    margin-top: 0;
}

.client-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    color: var(--gold-dark);
    font-size: 0.96rem;
    font-weight: 700;
}

.links-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-item {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.link-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.link-item-type {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.link-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(210, 108, 116, 0.1);
    color: var(--error);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.link-remove:hover {
    background: rgba(210, 108, 116, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.client-input-with-icon {
    position: relative;
}

.client-input-icon {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    color: var(--gold-dark);
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.client-input-with-icon .form-input,
.client-input-with-icon .form-select {
    padding-right: 2.5rem;
}

.client-phone-stack {
    display: grid;
    gap: 0.55rem;
}

.client-link-toolbar,
.client-cover-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.client-system-gallery-picker {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(17,17,17,0.06);
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
}

.client-system-gallery-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.client-system-gallery-picker-head strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.client-system-gallery-picker-head span {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.client-system-gallery-picker-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
}

.gallery-linked-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #0f7a55;
    background: rgba(15,122,85,0.08);
    border: 1px solid rgba(15,122,85,0.12);
    padding: 0.34rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.7rem;
}

.gallery-linked-note svg {
    width: 13px;
    height: 13px;
}

.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(212,131,143,0.08);
    border: 1px solid rgba(212,131,143,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state-icon svg {
    width: 36px;
    height: 36px;
    opacity: 0.45;
    color: var(--gold-dark);
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.client-view {
    min-height: 100vh;
    background: var(--dark);
}

.client-view-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 2rem 3.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,131,143,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(232,160,171,0.08) 0%, transparent 60%),
        var(--dark);
}

.client-view-hero.has-cover {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.client-view-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(212,131,143,0.06);
    box-shadow: 0 0 0 40px rgba(212,131,143,0.03), 0 0 0 80px rgba(232,160,171,0.02);
    pointer-events: none;
}

.client-view-hero.has-cover::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: linear-gradient(110deg, rgba(16,12,15,0.58), rgba(16,12,15,0.2) 45%, rgba(16,12,15,0.62));
}

.client-view-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,131,143,0.18), transparent);
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-dark);
    opacity: 0.82;
    font-family: 'DM Mono', monospace;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.6s ease both;
}

.client-view-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    animation: floatUp 0.7s cubic-bezier(0.4,0,0.2,1) 0.1s both;
}

.client-view-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    animation: fadeIn 0.7s ease 0.3s both;
}

.client-view-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(160,139,110,0.08);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
}

.hero-share-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    animation: fadeIn 0.7s ease 0.45s both;
}

.hero-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.3rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-share-btn.primary {
    background: linear-gradient(135deg, #f0b8c0, #d4838f);
    color: #3b1f25;
    box-shadow: 0 4px 18px rgba(212,131,143,0.2);
}

.hero-share-btn.primary:hover {
    box-shadow: 0 8px 24px rgba(212,131,143,0.28);
    transform: translateY(-1px);
}

.hero-share-btn.secondary {
    background: rgba(232,160,171,0.1);
    color: #8e6570;
    border: 1px solid rgba(212,131,143,0.15);
}

.hero-share-btn.secondary:hover {
    background: rgba(232,160,171,0.2);
    color: var(--text-primary);
}

.hero-share-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.client-view-hero.has-cover.tone-light .hero-eyebrow,
.client-view-hero.has-cover.tone-light .client-view-name {
    color: #fdfbff;
    text-shadow: 0 2px 20px rgba(9, 7, 10, 0.45);
}

.client-view-hero.has-cover.tone-light .client-view-meta span {
    color: rgba(255,255,255,0.94);
    background: rgba(15,12,15,0.42);
    border-color: rgba(255,255,255,0.22);
}

.client-view-hero.has-cover.tone-light .client-view-meta svg {
    opacity: 0.92;
}

.client-view-hero.has-cover.tone-light .hero-share-btn.secondary {
    background: rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.94);
    border-color: rgba(255,255,255,0.28);
}

.client-view-hero.has-cover.tone-dark .hero-eyebrow,
.client-view-hero.has-cover.tone-dark .client-view-name {
    color: #2f1e25;
    text-shadow: 0 1px 10px rgba(255,255,255,0.2);
}

.client-view-hero.has-cover.tone-dark .client-view-meta span {
    color: #3f2730;
    background: rgba(255,255,255,0.78);
    border-color: rgba(86,60,71,0.2);
}

.client-view-hero.has-cover.tone-dark .hero-share-btn.secondary {
    background: rgba(255,255,255,0.66);
    color: #5f3d49;
    border-color: rgba(95,61,73,0.2);
}

.client-view-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.content-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.client-view-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

.link-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.gallery-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.gallery-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.client-gallery-stack {
    display: grid;
    gap: 2rem;
}

.client-gallery-block {
    display: grid;
    gap: 1rem;
}

.client-gallery-hero {
    position: relative;
    min-height: 72vh;
    border-radius: 28px;
    overflow: hidden;
    background: #151515;
    box-shadow: 0 30px 80px rgba(22, 18, 18, 0.18);
}

.client-gallery-hero-media,
.client-gallery-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.client-gallery-hero-media img {
    object-fit: cover;
}

.client-gallery-hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #242424, #4a3f3f);
}

.client-gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,8,8,0.74) 0%, rgba(8,8,8,0.3) 48%, rgba(8,8,8,0.16) 100%);
}

.client-gallery-hero-content {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 2;
    color: #fff;
    display: grid;
    gap: 0.5rem;
}

.client-gallery-hero-mark {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.78;
}

.client-gallery-hero-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
}

.client-gallery-hero-content p {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.88;
}

.client-gallery-hero-actions {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    z-index: 2;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.client-gallery-hero-btn,
.client-gallery-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.34);
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.client-gallery-hero-btn:hover,
.client-gallery-hero-link:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.48);
}

.client-gallery-hero-link svg {
    width: 14px;
    height: 14px;
}

.client-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0.2rem;
}

.client-gallery-toolbar strong {
    display: block;
    font-size: 1rem;
}

.client-gallery-toolbar span {
    display: block;
    margin-top: 0.1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.client-gallery-toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

.client-gallery-mini-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(17,17,17,0.08);
    background: rgba(255,255,255,0.88);
    color: var(--text-secondary);
    text-decoration: none;
}

.client-gallery-mini-btn svg {
    width: 16px;
    height: 16px;
}

.client-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.client-gallery-tile {
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: #ece7e2;
    aspect-ratio: 3 / 4;
}

.client-gallery-tile.feature {
    filter: saturate(1.05);
}

.client-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.28s ease, filter 0.28s ease;
}

.client-gallery-tile:hover img {
    transform: scale(1.03);
    filter: contrast(1.03);
}

.gallery-glass-card {
    border: 1px solid rgba(255,255,255,0.36);
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.58));
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    text-align: right;
    box-shadow: 0 16px 36px rgba(45,32,39,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(191,161,106,0.35);
    box-shadow: 0 22px 44px rgba(45,32,39,0.16);
}

.gallery-glass-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45), transparent 36%),
        linear-gradient(135deg, rgba(232,160,171,0.22), rgba(212,131,143,0.1));
}

.gallery-glass-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.gallery-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24,20,24,0.12), rgba(24,20,24,0.45));
}

.gallery-glass-icon {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
}

.gallery-glass-icon svg {
    width: 16px;
    height: 16px;
}

.gallery-glass-source {
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
    background: rgba(23,18,21,0.5);
    color: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.66rem;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
}

.gallery-glass-body {
    padding: 0.8rem 0.85rem 0.9rem;
}

.gallery-glass-title {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.gallery-glass-action {
    font-size: 0.76rem;
    color: var(--gold-dark);
    letter-spacing: 0.02em;
}

.gallery-link-cover-wrap {
    border-top: 1px dashed var(--border);
    padding-top: 0.6rem;
    margin-top: 0.6rem;
}

.gallery-link-cover-preview {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-link-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-link-cover-preview span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.gallery-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    background: rgba(212,131,143,0.12);
    border: 1px solid rgba(212,131,143,0.14);
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.gallery-pill:hover {
    background: rgba(215,191,147,0.2);
    border-color: rgba(191,161,106,0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(191,161,106,0.1);
}

.gallery-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(49,41,35,0.76);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.gallery-lightbox-header {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
}

.gallery-lightbox-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #ffffff;
}

.gallery-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gallery-lightbox-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all var(--transition);
}

.gallery-lightbox-link:hover {
    color: #ffffff;
    border-color: rgba(215,191,147,0.45);
}

.gallery-lightbox-link svg {
    width: 13px;
    height: 13px;
}

.gallery-lightbox-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 1.1rem;
    line-height: 1;
}

.gallery-lightbox-close:hover {
    background: rgba(210,108,116,0.18);
    border-color: rgba(210,108,116,0.32);
    color: #ffffff;
}

.gallery-lightbox-frame {
    width: 100%;
    max-width: 1100px;
    flex: 1;
    max-height: calc(90vh - 80px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(212,131,143,0.12);
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.gallery-lightbox-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));
}

.photo-lightbox-shell {
    width: min(1440px, 100%);
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1rem;
}

.photo-lightbox-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    color: #fff;
    direction: ltr;
    padding: 0 0.25rem;
    position: sticky;
    top: 0;
    z-index: 4;
    background: linear-gradient(180deg, rgba(8,8,8,0.72), rgba(8,8,8,0.2) 75%, transparent);
}

.photo-lightbox-meta {
    text-align: center;
    display: grid;
    gap: 0.12rem;
    direction: rtl;
}

.photo-lightbox-meta strong {
    font-size: 1.02rem;
}

.photo-lightbox-meta span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.64);
}

.photo-lightbox-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: flex-end;
    direction: ltr;
}

.photo-lightbox-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    height: 100%;
}

.photo-lightbox-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100%;
    position: relative;
}

.photo-lightbox-frame img {
    max-width: calc(100vw - 180px);
    max-height: calc(100vh - 240px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.28);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.photo-lightbox-frame img.is-loaded {
    opacity: 1;
}

.photo-lightbox-nav,
.photo-lightbox-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.photo-lightbox-close {
    width: auto;
    padding: 0 0.75rem;
    gap: 0.45rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.photo-lightbox-close-text {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.photo-lightbox-icon.active {
    color: #f2c5cf;
    border-color: rgba(242,197,207,0.36);
    background: rgba(242,197,207,0.12);
}

.photo-lightbox-icon svg {
    width: 16px;
    height: 16px;
}

.photo-lightbox-loader {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.8rem;
    color: rgba(255,255,255,0.72);
    transition: opacity 0.2s ease;
}

.photo-lightbox-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.photo-lightbox-loader-dot {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.14);
    border-top-color: rgba(255,255,255,0.82);
    animation: spin 0.9s linear infinite;
}

.photo-lightbox-loader span {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.photo-lightbox-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 96px);
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    align-content: center;
    justify-content: center;
    scroll-padding-inline: 1rem;
}

.photo-lightbox-thumb {
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    aspect-ratio: 3 / 4;
}

.photo-lightbox-thumb.active {
    border-color: rgba(255,255,255,0.62);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}

.photo-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    opacity: 0.7;
}

.photo-lightbox-thumb.active img,
.photo-lightbox-thumb:hover img {
    opacity: 1;
}

.photo-lightbox-thumb-mark {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f2c5cf;
    box-shadow: 0 0 0 4px rgba(242,197,207,0.12);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.video-card {
    background: #fff;
    border: 1px solid rgba(160,139,110,0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    box-shadow: 0 8px 24px rgba(62,48,35,0.05);
}

.video-card:hover {
    border-color: rgba(212,131,143,0.2);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(62,48,35,0.09);
}

.video-embed {
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.video-type {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.video-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.custom-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.custom-link-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-link-card:hover {
    border-color: rgba(212, 131, 143, 0.22);
    background: var(--dark-card-hover);
    transform: translateY(-2px);
}

.custom-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(212, 131, 143, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-link-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold-dark);
}

.custom-link-title {
    font-weight: 500;
    font-size: 0.95rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: 'Heebo', sans-serif;
}

.back-link:hover {
    color: var(--gold-dark);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.copy-link-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    margin-top: 1rem;
}

.copy-link-url {
    flex: 1;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes floatUp {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.animate-card {
    animation: cardEntrance 0.5s cubic-bezier(0.4,0,0.2,1) both;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(91,154,116,0.24);
    color: var(--success);
    padding: 0.8rem 1.75rem;
    border-radius: 100px;
    font-size: 0.88rem;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 8px 30px rgba(62,48,35,0.12);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    border-color: rgba(210,108,116,0.24);
    color: var(--error);
}

.password-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(212,131,143,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 10%, rgba(248,200,210,0.2) 0%, transparent 40%),
        var(--dark);
}

.auth-bg {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    filter: blur(var(--auth-bg-blur, 26px)) saturate(1.05);
    transform: scale(1.08);
    opacity: var(--auth-bg-opacity, 0.55);
    z-index: 0;
}

.auth-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 25%, rgba(255,255,255,0.35) 0%, transparent 55%),
        linear-gradient(180deg, rgba(253,246,247,0.35) 0%, rgba(253,246,247,0.85) 70%, rgba(253,246,247,0.95) 100%);
}

.password-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(62,48,35,0.1), 0 0 0 1px rgba(212,131,143,0.06);
    animation: floatUp 0.5s cubic-bezier(0.4,0,0.2,1) both;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.password-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    background: radial-gradient(circle at 40% 40%, rgba(212,131,143,0.2), transparent 70%);
    box-shadow: 0 0 26px rgba(212,131,143,0.1), inset 0 1px 0 rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(45, 32, 39, 0.12));
}

.logo-settings {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    margin: 0.75rem 0 1.25rem;
    padding: 0.9rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.7);
}

.logo-settings-preview {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(253,246,247,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-settings-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-settings.icon-settings {
    align-items: flex-start;
}

.logo-settings-preview.icon-preview {
    width: 96px;
    height: 96px;
    border-radius: 22px;
}

.logo-settings-placeholder {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.logo-settings-actions {
    min-width: 0;
}

.cover-uploader {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    background: rgba(255,255,255,0.72);
}

.cover-uploader-preview {
    border-radius: 14px;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(232,160,171,0.12), rgba(212,131,143,0.06));
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-uploader-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-uploader-placeholder {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.cover-uploader-actions {
    min-width: 0;
}

.client-phone-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.password-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.password-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header-center { display: none; }

    .main {
        padding: 1rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .clients-toolbar {
        align-items: stretch;
    }

    .clients-toolbar-actions {
        width: 100%;
    }

    .client-card-actions {
        flex-direction: column;
    }

    .client-action-btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .client-modal-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .client-modal-hero-icon {
        margin: 0 auto;
    }

    .client-phone-row {
        grid-template-columns: 1fr;
    }

    .client-cover-options,
    .client-link-toolbar {
        flex-direction: column;
    }

    .client-view-name {
        font-size: 2.2rem;
    }

    .client-view-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .gallery-glass-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        margin: 0.5rem;
    }

    .admin-layout {
        grid-template-columns: 1fr !important;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-sidebar.mobile-open {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 600;
        width: 260px;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .quick-actions {
        flex-wrap: wrap;
    }

    .logo-settings {
        grid-template-columns: 1fr;
    }
    .logo-settings-preview {
        margin: 0 auto;
    }
    .cover-uploader {
        grid-template-columns: 1fr;
    }
    .client-phone-row {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
   ADMIN LAYOUT — Sidebar + Content
   ==================================================================== */

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 0;
    background: linear-gradient(180deg, #f4f1ed 0%, #efebe6 100%);
}

.admin-sidebar {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-left: 1px solid rgba(26, 26, 26, 0.06);
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.7);
}

.admin-sidebar-brand {
    padding: 1.8rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(17,17,17,0.06);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--sidebar-active);
    background: radial-gradient(circle at 40% 40%, rgba(212,131,143,0.3), transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sidebar-active);
    flex-shrink: 0;
}

.admin-sidebar-name {
    font-family: 'Heebo', sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: #1b1b1b;
    line-height: 1.2;
}

.admin-sidebar-name small {
    display: block;
    font-family: 'Heebo', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(27,27,27,0.48);
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    color: rgba(27,27,27,0.62);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: none;
    width: 100%;
    text-align: right;
    font-family: 'Heebo', sans-serif;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.82);
    color: #121212;
    border-color: rgba(17,17,17,0.06);
}

.admin-nav-item.active {
    background: #e9f3eb;
    color: #0f7a55;
    font-weight: 600;
    border-color: rgba(15,122,85,0.08);
    box-shadow: 0 10px 24px rgba(15,122,85,0.08);
}

.admin-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.86;
}

.admin-nav-item.active svg {
    opacity: 1;
}

.admin-nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0.75rem 0.5rem;
}

.admin-sidebar-footer {
    padding: 1rem 0.75rem 1.5rem;
    border-top: 1px solid rgba(17,17,17,0.06);
}

.admin-sidebar-footer .admin-nav-item {
    color: rgba(27,27,27,0.46);
    font-size: 0.82rem;
}

.admin-sidebar-footer .admin-nav-item:hover {
    color: var(--error);
    background: rgba(210,108,116,0.06);
}

.admin-content {
    min-width: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% -10%, rgba(0,0,0,0.04), transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(16,185,129,0.07), transparent 45%),
        linear-gradient(180deg, #f4f1ed 0%, #efebe6 100%);
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.admin-content::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image: radial-gradient(circle at 1px 1px, rgba(17,17,17,0.12) 1px, transparent 0);
    background-size: 24px 24px;
}

.admin-shell {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 52px);
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(30, 25, 20, 0.1);
    overflow: hidden;
}

.admin-topbar {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid rgba(17,17,17,0.06);
    background: rgba(255,255,255,0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-topbar-title {
    font-family: 'Heebo', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #171717;
}

.admin-topbar-search {
    min-width: 0;
}

.admin-shell-search {
    min-height: 52px;
    border-radius: 16px;
    background: #f6f4f1;
    border-color: rgba(17,17,17,0.06);
    padding-right: 2.75rem;
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.55rem 0.95rem;
    border-radius: 16px;
    background: #f7f6f3;
    border: 1px solid rgba(17,17,17,0.06);
}

.admin-user-chip-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

.admin-user-chip-text strong {
    font-size: 0.92rem;
    color: #171717;
}

.admin-user-chip-text span {
    font-size: 0.72rem;
    color: rgba(23,23,23,0.48);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-page {
    padding: 1.5rem;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.workflow-strip {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(212,131,143,0.16);
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(252,247,248,0.86));
    box-shadow: 0 12px 26px rgba(40,24,29,0.05);
}

.workflow-strip-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--gold-dark);
}

.workflow-strip-steps {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.workflow-step {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(160,139,110,0.14);
    background: rgba(255,255,255,0.8);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.workflow-step.is-active {
    border-color: rgba(212,131,143,0.28);
    color: #a45663;
    background: rgba(212,131,143,0.13);
}

.workflow-step.is-complete {
    border-color: rgba(91,154,116,0.22);
    color: var(--success);
    background: rgba(91,154,116,0.12);
}

.mobile-menu-btn {
    display: none !important;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ====================================================================
   DASHBOARD STATS
   ==================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(62,48,35,0.04);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 85% 15%, rgba(232,160,171,0.16), transparent 40%);
    opacity: 0.7;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(62,48,35,0.08);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    border-radius: 3px 3px 0 0;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(212,131,143,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-card-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ====================================================================
   QUICK ACTIONS
   ==================================================================== */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    font-family: 'Heebo', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: rgba(212,131,143,0.04);
    transform: translateY(-1px);
}

.quick-action-btn svg {
    width: 16px;
    height: 16px;
}

/* ====================================================================
   RECENT ACTIVITY
   ==================================================================== */

.activity-list {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.activity-item {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(253,246,247,0.5);
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
}

.activity-info strong {
    font-weight: 600;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    flex-shrink: 0;
}

/* ====================================================================
   ADMINS PAGE
   ==================================================================== */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table th {
    text-align: right;
    padding: 1rem 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--dark-2);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(253,246,247,0.5);
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
}

.admin-role-badge.master {
    background: rgba(212,131,143,0.12);
    color: var(--gold-dark);
    border: 1px solid rgba(212,131,143,0.14);
}

.admin-role-badge.regular {
    background: rgba(140,183,212,0.12);
    color: #5d85a1;
    border: 1px solid rgba(140,183,212,0.14);
}

.admin-permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.admin-permissions-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    padding: 0.75rem;
}

.admin-permissions-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.admin-permissions-head span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.admin-permissions-modules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.5rem;
}

.admin-permission-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ====================================================================
   SETTINGS PAGE
   ==================================================================== */

.settings-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.admin-collapsible .settings-section-title {
    justify-content: space-between;
}

.section-collapse-btn {
    border: 1px solid rgba(17,17,17,0.12);
    background: rgba(255,255,255,0.92);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.72rem;
    font-family: 'Heebo', sans-serif;
}

.section-collapse-btn b {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.admin-collapsible.is-collapsed .section-collapse-btn b {
    transform: rotate(-90deg);
}

.admin-collapsible.is-collapsed > :not(.settings-section-title) {
    display: none !important;
}

.settings-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.settings-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(252,248,249,0.92) 100%);
    color: var(--text-secondary);
    border-radius: 22px;
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: right;
    min-height: 64px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(40, 24, 29, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.settings-nav-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    box-shadow: 0 18px 36px rgba(40, 24, 29, 0.08);
    transform: translateY(-1px);
}

.settings-nav-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--gold-dark);
    background: linear-gradient(180deg, rgba(212,131,143,0.14) 0%, rgba(212,131,143,0.06) 100%);
    border: 1px solid rgba(212,131,143,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.settings-nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.settings-nav-label {
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.nav-order-editor {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.85rem;
    background: rgba(255,255,255,0.82);
}

.nav-order-editor-head {
    margin-bottom: 0.7rem;
}

.nav-order-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-order-help {
    margin-top: 0.2rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.admin-nav-order-list {
    display: grid;
    gap: 0.55rem;
}

.admin-nav-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    border: 1px solid rgba(160,139,110,0.12);
    border-radius: 12px;
    padding: 0.55rem 0.65rem;
    background: rgba(255,255,255,0.9);
}

.admin-nav-order-item-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.admin-nav-order-icon {
    width: 16px;
    height: 16px;
    color: var(--gold-dark);
    display: inline-flex;
}

.admin-nav-order-icon svg {
    width: 16px;
    height: 16px;
}

.admin-nav-order-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.ai-safety-policy {
    margin-top: 0.85rem;
    border: 1px solid rgba(210,108,116,0.2);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(135deg, rgba(210,108,116,0.07), rgba(255,255,255,0.9));
}

.ai-safety-policy-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a54855;
}

.ai-safety-policy-meta {
    margin-top: 0.25rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #8f3c47;
}

.ai-safety-policy-text {
    margin-top: 0.35rem;
    font-size: 0.79rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.ai-permission-panel {
    margin-top: 0.75rem;
    border: 1px solid rgba(160,139,110,0.16);
    border-radius: 14px;
    padding: 0.7rem 0.8rem;
    background: rgba(255,255,255,0.9);
}

.ai-permission-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ai-permission-role {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
}

.ai-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.65rem;
}

.ai-permission-col-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.ai-permission-chip {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-family: 'DM Mono', monospace;
    margin: 0 0.35rem 0.35rem 0;
    border: 1px solid transparent;
}

.ai-permission-chip.allowed {
    background: rgba(91,154,116,0.12);
    color: var(--success);
    border-color: rgba(91,154,116,0.2);
}

.ai-permission-chip.restricted {
    background: rgba(210,108,116,0.1);
    color: #a54855;
    border-color: rgba(210,108,116,0.2);
}

.ai-suggestion-card {
    border-color: rgba(160,139,110,0.16);
}

@media (max-width: 720px) {
    .settings-nav {
        grid-template-columns: 1fr;
    }

    .settings-nav-btn {
        min-height: 58px;
        padding: 0.7rem 0.8rem;
    }

    .admin-nav-order-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-nav-order-actions {
        width: 100%;
    }

    .admin-nav-order-actions .btn {
        flex: 1;
    }

    .ai-permission-grid {
        grid-template-columns: 1fr;
    }
}

/* Client status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(91,154,116,0.12);
    color: var(--success);
    border: 1px solid rgba(91,154,116,0.14);
}

.status-badge.completed {
    background: rgba(140,183,212,0.12);
    color: #5d85a1;
    border: 1px solid rgba(140,183,212,0.14);
}

.status-badge.pending {
    background: rgba(212,131,143,0.12);
    color: var(--gold-dark);
    border: 1px solid rgba(212,131,143,0.14);
}

/* Sidebar mobile backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 550;
}

.sidebar-backdrop.show {
    display: block;
}

/* Add admin card in admins page */
.add-admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.add-admin-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .add-admin-card .form-row {
        grid-template-columns: 1fr;
    }

    .admin-topbar-title {
        font-size: 1.1rem;
    }

    .content-toolbar {
        gap: 0.75rem;
    }

    .content-tabs {
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scroll-snap-type: x mandatory;
    }

    .content-tab {
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-side {
        order: -1;
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-layout {
        display: block;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .admin-sidebar {
        display: none;
        right: 0;
        left: auto;
        width: min(78vw, 280px);
        box-shadow: -18px 0 42px rgba(45, 32, 39, 0.28);
        position: fixed;
        z-index: 220;
    }

    .admin-sidebar.mobile-open {
        display: flex;
    }

    .admin-content {
        width: 100%;
        padding: 0;
    }

    .admin-topbar {
        padding: 1rem;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-topbar-left {
        width: 100%;
        justify-content: space-between;
    }

    .admin-topbar-search {
        width: 100%;
    }

    .admin-topbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .admin-topbar-actions .admin-user-chip,
    .admin-topbar-actions .btn {
        width: 100%;
    }

    .admin-page {
        padding: 1rem;
    }

    .workflow-strip {
        padding: 0.75rem 0.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .activity-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .activity-time {
        align-self: flex-end;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .admin-shell {
        min-height: 100vh;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .client-system-gallery-picker-row {
        grid-template-columns: 1fr;
    }

    .client-card-actions {
        flex-wrap: wrap;
    }

    .client-card-actions .btn {
        flex: 1 1 calc(50% - 0.4rem);
        justify-content: center;
    }

    .content-card-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .content-card-actions .btn {
        flex: 1 1 100%;
    }

    .editor-toolbar {
        justify-content: flex-start;
    }

    .modal.modal-wide {
        width: calc(100% - 1rem);
        margin: 0.5rem;
    }

    .modal-body,
    .modal-footer,
    .modal-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admin-permissions-modules {
        grid-template-columns: 1fr;
    }
}

.gallery-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
    gap: 1rem;
}

.gallery-admin-main,
.gallery-admin-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.gallery-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.gallery-action-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.gallery-helper-text {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gallery-dropzone {
    border: 1px dashed rgba(212, 131, 143, 0.45);
    border-radius: 16px;
    padding: 1.1rem;
    background: linear-gradient(165deg, rgba(255,255,255,0.75), rgba(252,242,245,0.78));
    display: grid;
    gap: 0.4rem;
    justify-items: center;
    text-align: center;
    margin-bottom: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-dropzone.is-drag {
    border-color: var(--gold);
    box-shadow: 0 12px 28px rgba(212,131,143,0.14);
    transform: translateY(-1px);
}

.gallery-dropzone-title {
    font-weight: 700;
}

.gallery-dropzone-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.gallery-upload-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.gallery-upload-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.gallery-upload-stats span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: rgba(255,255,255,0.7);
}

.gallery-queue-list {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.6rem;
}

.gallery-queue-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem;
    background: rgba(255,255,255,0.82);
}

.gallery-queue-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
}

.gallery-queue-name {
    font-size: 0.84rem;
    font-weight: 600;
}

.gallery-queue-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.gallery-queue-status-row {
    margin-top: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-queue-percent {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.gallery-queue-progress {
    margin-top: 0.35rem;
    height: 5px;
    border-radius: 999px;
    background: rgba(212,131,143,0.16);
    overflow: hidden;
}

.gallery-queue-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e8a0ab, #d4838f);
}

.gallery-queue-error {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--error);
}

.gallery-queue-actions {
    margin-top: 0.45rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.gallery-side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.gallery-side-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.gallery-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.gallery-media-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
}

.gallery-media-card.is-cover {
    border-color: rgba(212,131,143,0.55);
    box-shadow: 0 0 0 1px rgba(212,131,143,0.24);
}

.gallery-media-thumb {
    height: 120px;
    background: rgba(212,131,143,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-media-fallback {
    width: 30px;
    height: 30px;
    color: var(--text-muted);
}

.gallery-media-fallback svg {
    width: 100%;
    height: 100%;
}

.gallery-media-foot {
    padding: 0.55rem;
}

.gallery-media-name {
    font-size: 0.75rem;
    line-height: 1.4;
    min-height: 2.1em;
    color: var(--text-secondary);
}

.gallery-media-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.likes-client-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.likes-filters {
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 0.75rem;
    background: rgba(255,255,255,0.82);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: end;
}

.likes-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.likes-client-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    padding: 0.95rem;
}

.likes-client-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.likes-client-title {
    font-weight: 700;
    color: var(--text-primary);
}

.likes-client-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.likes-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 0.6rem;
}

.likes-photo-card {
    border: 1px solid rgba(17,17,17,0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.likes-photo-thumb {
    aspect-ratio: 1 / 1;
    background: rgba(244,240,236,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.likes-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.likes-photo-name {
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding: 0.45rem 0.55rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1100px) {
    .gallery-admin-layout {
        grid-template-columns: 1fr;
    }
    .gallery-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .client-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .gallery-step-grid {
        grid-template-columns: 1fr;
    }
    .gallery-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .client-gallery-hero {
        min-height: 58vh;
    }
    .client-gallery-hero-content,
    .client-gallery-hero-actions {
        right: 1.1rem;
        left: 1.1rem;
    }
    .client-gallery-hero-actions {
        bottom: 1.1rem;
    }
    .client-gallery-hero-content {
        bottom: 5.4rem;
    }
    .client-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .photo-lightbox-stage {
        grid-template-columns: 1fr;
    }
    .photo-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    .photo-lightbox-nav.prev {
        right: 0.5rem;
    }
    .photo-lightbox-nav.next {
        left: 0.5rem;
    }
    .likes-filters {
        grid-template-columns: 1fr;
    }
    .likes-filter-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .gallery-media-grid {
        grid-template-columns: 1fr;
    }
    .client-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .photo-lightbox-top {
        grid-template-columns: auto 1fr;
    }
    .photo-lightbox-tools {
        grid-column: 1 / -1;
        justify-content: center;
    }
    .photo-lightbox-stage {
        min-height: auto;
        padding: 0.5rem 0;
    }
    .photo-lightbox-frame img {
        max-height: calc(100vh - 240px);
    }
}

@media (max-width: 640px) {
    .client-view-hero {
        padding: 3.5rem 1.25rem 2.5rem;
    }
    .hero-eyebrow {
        letter-spacing: 0.2em;
        margin-bottom: 0.9rem;
    }
    .client-view-meta {
        flex-direction: column;
        gap: 0.6rem;
    }
    .client-view-meta span {
        justify-content: center;
        font-size: 0.78rem;
    }
    .hero-share-row {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-share-btn {
        width: 100%;
        justify-content: center;
    }
    .client-view-content {
        padding: 2rem 1rem;
    }
    .client-gallery-hero {
        min-height: 48vh;
        border-radius: 22px;
    }
    .client-gallery-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .client-gallery-hero-btn,
    .client-gallery-hero-link {
        width: 100%;
        justify-content: center;
    }
    .client-gallery-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .client-gallery-toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .photo-lightbox-shell {
        gap: 0.65rem;
    }
    .photo-lightbox-nav,
    .photo-lightbox-icon {
        width: 40px;
        height: 40px;
    }
    .photo-lightbox-frame img {
        max-height: calc(100vh - 210px);
    }
    .photo-lightbox-strip {
        grid-auto-columns: minmax(70px, 86px);
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .client-view-hero {
        padding: 3rem 1rem 2rem;
    }
    .client-view-name {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .gallery-links-row {
        flex-direction: column;
    }
    .gallery-pill {
        width: 100%;
        justify-content: center;
    }
    .client-gallery-hero {
        min-height: 42vh;
    }
    .client-gallery-hero-content {
        right: 1rem;
        left: 1rem;
        bottom: 5.8rem;
    }
    .client-gallery-hero-actions {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
    .photo-lightbox-nav.prev {
        right: 0.35rem;
    }
    .photo-lightbox-nav.next {
        left: 0.35rem;
    }
}

@media (max-width: 420px) {
    .client-gallery-grid {
        grid-template-columns: 1fr;
    }
    .photo-lightbox-strip {
        grid-auto-columns: minmax(62px, 74px);
    }
}
