/* ── Country flag emoji: Windows fix ──────────────────────────────────────
 * Windows ships Segoe UI Emoji, which contains NO country-flag glyphs. Flag
 * emoji are regional-indicator PAIRS, so Windows renders them as bare letters
 * (TH, GB) or tofu boxes, while macOS shows them via Apple Color Emoji.
 * This font supplies the missing glyphs.
 *
 * unicode-range is what makes this safe: the font is consulted ONLY for
 * regional-indicator codepoints, so prepending it to --font-body /
 * --font-heading cannot affect any other text or change site typography.
 *
 * Twemoji Country Flags (CC-BY 4.0, Twitter/X), self-hosted at
 * /fonts/TwemojiCountryFlags.woff2 (served by server.js, COPYed in Dockerfile).
 */
@font-face {
  font-family: 'Twemoji Country Flags';
  font-display: swap;
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
  src: url('/fonts/TwemojiCountryFlags.woff2') format('woff2');
}

/* ==========================================================================
   PORTAL LOGINS & DASHBOARD STYLES (GOLD & BLUE THEME COMPATIBLE)
   ========================================================================== */

:root {
    --font-heading: 'Twemoji Country Flags', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Twemoji Country Flags', 'Inter', -apple-system, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Default Luxury Gold variables */
    --ivory-color: #F3F6F9;
    --gold-color: #1A5F90;
    --gold-dark: #0F3D5E;
    --gold-light: #D4E3EF;
    --dark-color: #1A2733;
    --dark-muted: #455666;
    --cream-color: #FFFFFF;
    --gray-color: #7A8F9E;
    --gray-light: #E2EAF0;
    --danger-color: #C94C4C;
    --success-color: #518C67;
    --shadow-soft: 0 15px 40px rgba(26, 95, 144, 0.08);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--ivory-color);
    color: var(--dark-color);
    line-height: 1.6;
    transition: var(--transition-smooth);
    min-height: 100vh;
}

/* Auth Screens */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 38, 38, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.auth-card {
    position: relative;
    z-index: 2;
    background-color: var(--cream-color);
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-light);
    text-align: center;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.auth-logo .brand-soul {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--dark-color);
    line-height: 1.1;
}

.auth-logo .brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold-color);
    margin-top: 5px;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

.auth-logo .logo-img {
    height: 120px;
}

.header-brand .logo-img {
    height: 50px;
}

.auth-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-muted);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background-color: var(--cream-color);
    border: 1px solid var(--gray-light);
    color: var(--dark-color);
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--gold-color);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--gold-color);
    color: white;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--gold-dark);
}

.btn-disabled {
    background-color: var(--gray-color) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.btn-disabled:hover {
    background-color: var(--gray-color) !important;
}

.error-banner {
    background-color: rgba(201, 76, 76, 0.1);
    color: var(--danger-color);
    padding: 12px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--danger-color);
    text-align: left;
    display: none;
}

/* Dashboard Layout */
.dashboard-header {
    background-color: var(--cream-color);
    border-bottom: 1px solid var(--gray-light);
    padding: 15px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.header-lang-toggle {
    background: transparent;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-muted);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-lang-toggle:hover {
    border-color: var(--gold-color);
    color: var(--dark-color);
}

.header-lang-toggle .lang-flag {
    font-weight: 700;
    color: var(--gold-color);
    font-size: 1rem;
}

.header-lang-toggle .lang-caret {
    font-size: 0.6rem;
    opacity: 0.55;
}

.header-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    min-width: 140px;
    z-index: 200;
    display: none;
    overflow: hidden;
}

.header-lang-dropdown.active {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--dark-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
    font-family: var(--font-body);
}

.lang-item:hover {
    background: rgba(197, 168, 128, 0.06);
    color: var(--dark-color);
}

.lang-item.active {
    background: rgba(197, 168, 128, 0.1);
    color: var(--gold-dark);
    font-weight: 600;
}

.lang-item .lang-flag {
    font-weight: 700;
    color: var(--gold-color);
    font-size: 1.05rem;
}

.lang-item.active .lang-flag {
    color: var(--gold-dark);
}

.header-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.header-brand .brand-soul {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--dark-color);
    line-height: 1;
}

.header-brand .brand-sub {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold-color);
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    font-size: 0.85rem;
    color: var(--dark-muted);
    font-weight: 500;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--gray-color);
    color: var(--dark-muted);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--dark-color);
    color: var(--dark-color);
}

/* Dashboard Containers */
.dashboard-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Two-pane layout for Admin */
.admin-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
}

.dashboard-card {
    background-color: var(--cream-color);
    border: 1px solid var(--gray-light);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border-radius: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 10px;
}

/* Client Selector List */
.client-search {
    margin-bottom: 15px;
}

.client-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 5px;
}

.client-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--gray-light);
    background-color: var(--cream-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 6px;
    position: relative;
}

.client-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: transparent;
    border-radius: 0 3px 3px 0;
    transition: var(--transition-smooth);
}

.client-list-item:hover {
    border-color: var(--gold-color);
    background-color: rgba(197, 168, 128, 0.04);
}

.client-list-item.active {
    border-color: var(--gold-color);
    background-color: rgba(197, 168, 128, 0.06);
}

.client-list-item.active::before {
    background: var(--gold-color);
}

.client-list-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.client-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.client-list-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--gray-color);
    white-space: nowrap;
    overflow: hidden;
}

.client-list-package {
    background: rgba(197, 168, 128, 0.12);
    color: var(--gold-dark);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.client-list-date {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-list-status {
    flex-shrink: 0;
    margin-left: auto;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
}

.status-scheduled { background-color: #E2E8F0; color: #4A5568; }
.status-shooting { background-color: #FEFCBF; color: #B7791F; }
.status-editing { background-color: #EBF8FF; color: #2B6CB0; }
.status-ready { background-color: #C6F6D5; color: #22543D; }
.status-delivered { background-color: #E2D5C3; color: var(--gold-dark); }

/* Workspaces */
.admin-workspace {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.workspace-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 2px dashed var(--gold-color);
    background-color: rgba(197, 168, 128, 0.02);
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.upload-dropzone:hover {
    background-color: rgba(197, 168, 128, 0.06);
}

.upload-icon {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.upload-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-muted);
}

.upload-subtext {
    font-size: 0.75rem;
    color: var(--gray-color);
    margin-top: 5px;
}

/* Photo Gallery Grids */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-card {
    position: relative;
    aspect-ratio: 3/2;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    background: var(--gray-light);
}

/* Subtle placeholder icon for missing/broken thumbnails */
.photo-card::before {
    content: '\f030';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--gray-color);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--dark-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
}

.action-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.action-btn.delete-btn {
    color: var(--danger-color);
}

.action-btn.favorite-btn.active {
    color: #E25C5C;
    background-color: white;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 30px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

/* Client Portal Styles */
.client-welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.client-welcome-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--dark-color);
    letter-spacing: 1px;
}

.client-welcome-sub {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-top: 5px;
}

/* Milestones Tracker / Timeline */
.timeline-container {
    background-color: var(--cream-color);
    border: 1px solid var(--gray-light);
    padding: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 20px auto 0 auto;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gray-light);
    z-index: 1;
}

.timeline-progress-bar {
    position: absolute;
    top: 14px;
    left: 0;
    height: 3px;
    background-color: var(--gold-color);
    z-index: 2;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    text-align: center;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--cream-color);
    border: 3px solid var(--gray-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: var(--gray-color);
    font-weight: 700;
    transition: var(--transition-smooth);
}

.timeline-step.completed .timeline-dot {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
    color: white;
}

.timeline-step.active .timeline-dot {
    background-color: var(--cream-color);
    border-color: var(--gold-color);
    color: var(--gold-color);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.3);
}

.timeline-label {
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-step.active .timeline-label,
.timeline-step.completed .timeline-label {
    color: var(--dark-color);
}

/* Portal Info Panel */
.portal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.meta-info-card {
    background-color: var(--cream-color);
    border: 1px solid var(--gray-light);
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-icon {
    font-size: 1.5rem;
    color: var(--gold-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(197, 168, 128, 0.06);
    display: flex;
    justify-content: center;
    align-items: center;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-color);
    text-transform: uppercase;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* Package card — clickable to reveal included items */
.package-card {
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.package-card:hover {
    border-color: var(--gold-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.package-card .meta-content {
    flex: 1;
}
.package-toggle {
    background: none;
    border: none;
    color: var(--gold-dark, var(--gold-color));
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 6px;
    align-self: flex-start;
    margin-left: auto;
}
.package-items-panel {
    width: 100%;
    margin-top: 20px;
    padding: 16px 20px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    background-color: var(--cream-color);
    box-sizing: border-box;
}
.package-items-panel.open {
    border-color: var(--gold-color);
}
.package-items-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-dark, var(--gold-color));
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}
.package-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.package-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--dark-color);
}
.package-item i {
    color: var(--gold-color);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}
@media (min-width: 480px) {
    .package-items-list {
        grid-template-columns: 1fr 1fr;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-color);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--gray-light);
}

/* ==========================================================================
   UTILITY CLASSES (replacing inline styles)
   ========================================================================== */

/* Text color utilities */
.text-muted { color: var(--gray-color); }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }
.text-dark { color: var(--dark-muted); }
.text-dark-strong { color: var(--dark-color); }
.text-gold { color: var(--gold-color); }
.text-lg { font-size: 0.95rem; }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.text-85 { font-size: 0.85rem; }

/* Flex utilities */
.flex-between { display: flex; justify-content: space-between; }
.flex-between-center { display: flex; justify-content: space-between; align-items: center; }
.flex-gap-3 { gap: 3px; }

/* Dashboard analytics list items */
.list-item {
    padding: 10px;
    border-bottom: 1px solid var(--gray-light);
}

/* Danger badge for fav count pill */
.badge-fav-count {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Larger checkbox for photo selection */
.checkbox-lg {
    transform: scale(1.5);
    cursor: pointer;
}

/* Empty state spanning full grid column */
.empty-state-full {
    grid-column: 1 / -1;
}

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.spinner-dark {
    border-color: rgba(0,0,0,0.1);
    border-top-color: var(--gold-color);
}

.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Admin panel utility classes replacing inline styles */
.d-none { display: none; }
.mb-25 { margin-bottom: 25px; }
.mt-10 { margin-top: 10px; }
.card-title-flat {
    margin: 0;
    padding: 0;
    border: none;
}
.card-header-border {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.btn-xs {
    width: auto;
    padding: 3px 6px;
    font-size: 0.65rem;
}
.btn-refresh {
    padding: 4px 8px;
    font-size: 0.7rem;
}
.icon-accent {
    color: var(--gold-color);
    margin-right: 8px;
}
.icon-danger {
    color: var(--danger-color);
    margin-right: 8px;
}
.admin-page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--dark-color);
    letter-spacing: 1px;
    margin: 0;
}
.admin-page-subtitle {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 4px;
}
.admin-name-highlight {
    font-weight: 600;
    color: var(--dark-muted);
}
.modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.cal-section-heading {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 8px;
}
.cal-column {
    flex: 1;
    min-width: 300px;
}
.dash-loading-text {
    color: var(--gray-color);
    font-size: 0.85rem;
    padding: 20px 0;
}

/* ==========================================================================
   CONFIRMATION DIALOG
   ========================================================================== */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.confirm-dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.confirm-dialog {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 28px 30px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}

.confirm-dialog-overlay.active .confirm-dialog {
    transform: scale(1);
}

.confirm-dialog-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.confirm-dialog-icon.warning { color: #E67E22; }
.confirm-dialog-icon.danger { color: var(--danger-color); }
.confirm-dialog-icon.info { color: var(--gold-color); }

.confirm-dialog-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.confirm-dialog-message {
    font-size: 0.9rem;
    color: var(--dark-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-dialog-actions .btn-primary,
.confirm-dialog-actions .btn-secondary {
    width: auto;
    min-width: 100px;
    padding: 10px 20px;
    font-size: 0.8rem;
}

.confirm-dialog-cancel {
    background: transparent;
    border: 1px solid var(--gray-color);
    color: var(--dark-muted);
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.confirm-dialog-cancel:hover {
    border-color: var(--dark-color);
}

.confirm-dialog-confirm {
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.confirm-dialog-confirm.danger {
    background: var(--danger-color);
    color: white;
}

.confirm-dialog-confirm.danger:hover {
    background: #b03a3a;
}

.confirm-dialog-confirm.primary {
    background: var(--gold-color);
    color: white;
}

.confirm-dialog-confirm.primary:hover {
    background: var(--gold-dark);
}

/* ==========================================================================
   UPLOAD PREVIEW
   ========================================================================== */
.upload-preview-container {
    margin-top: 15px;
    display: none;
}

.upload-preview-container.visible {
    display: block;
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .preview-file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.55rem;
    padding: 2px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-preview-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.upload-preview-actions .btn-secondary,
.upload-preview-actions .btn-primary {
    width: auto;
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--dark-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 420px;
    animation: toastIn 0.3s ease;
    border-left: 3px solid var(--gold-color);
    pointer-events: auto;
}

.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--danger-color); }
.toast.info { border-left-color: var(--gold-color); }

.toast .toast-icon {
    font-size: 1.1rem;
}

.toast.success .toast-icon { color: var(--success-color); }
.toast.error .toast-icon { color: var(--danger-color); }
.toast.info .toast-icon { color: var(--gold-color); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-removing {
    animation: toastOut 0.25s ease forwards;
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}

/* Admin data tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th {
    padding: 12px 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gray-color);
    font-weight: 600;
}

.admin-table th:last-child {
    text-align: right;
}

.admin-table-row {
    border-bottom: 1px solid var(--gray-light);
    transition: background-color 0.2s ease;
}

.admin-table-row:hover {
    background-color: var(--ivory-color, #fcfbf9);
}

.admin-table td {
    padding: 14px 10px;
    font-size: 0.85rem;
}

/* Calendar event cards */
.calendar-card {
    background: var(--light-color, #fdfdfd);
    border: 1px solid var(--gray-light, #e0e0e0);
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-card--upcoming {
    border-left: 4px solid var(--gold-color, #d4af37);
}

.calendar-card--past {
    border-left: 4px solid var(--gray-color, #888);
    opacity: 0.85;
}

.calendar-card-name {
    color: var(--dark-color);
    font-size: 0.95rem;
}

.calendar-card-meta {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 3px;
}

.calendar-card-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-color);
}

.calendar-card-date--muted {
    color: var(--gray-color);
}

.calendar-card-status {
    margin-top: 4px;
}

/* Language translation block header */
.lang-header {
    margin: 0 0 15px 0;
    color: var(--gold-dark);
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 5px;
    font-weight: 500;
}

/* ==========================================================================
   TOGGLE SWITCH
   ========================================================================== */
/* ==========================================================================
   CLIENTS SECTION - REDESIGNED PREMIUM LAYOUT
   ========================================================================== */

.clients-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.clients-panel {
    padding: 0;
    overflow: hidden;
}

.clients-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--gray-light);
}

.clients-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clients-panel-title h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.clients-count-badge {
    background: rgba(197, 168, 128, 0.15);
    color: var(--gold-dark);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
}

.clients-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 14px 6px;
}

.clients-filter-tab {
    flex: 1;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--gray-light);
    background: transparent;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.clients-filter-tab i {
    font-size: 0.55rem;
}

.clients-filter-tab:hover {
    border-color: var(--gold-color);
    color: var(--gold-dark);
}

.clients-filter-tab.active {
    background: var(--gold-color);
    border-color: var(--gold-color);
    color: #fff;
}

.clients-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    position: relative;
}

.clients-search-icon {
    position: absolute;
    left: 20px;
    color: var(--gray-color);
    font-size: 0.75rem;
    pointer-events: none;
}

.clients-search-input {
    flex: 1;
    padding: 7px 10px 7px 28px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 0.75rem;
    background: var(--cream-color);
    color: var(--dark-color);
    outline: none;
    transition: var(--transition-smooth);
}

.clients-search-input:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.12);
}

.clients-search-input::placeholder {
    color: var(--gray-color);
}

.clients-sort-select {
    padding: 7px 6px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 0.7rem;
    background: var(--cream-color);
    color: var(--dark-muted);
    outline: none;
    cursor: pointer;
}

.clients-list-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding: 2px 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.clients-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.clients-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.clients-list-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 2px;
}

.clients-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-top: 1px solid var(--gray-light);
}

.clients-pagination .btn-secondary {
    padding: 3px 6px;
    font-size: 0.65rem;
}

.clients-pagination span {
    font-size: 0.75rem;
    color: var(--gray-color);
}

/* Workspace */
.clients-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Welcome State */
.clients-welcome {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.clients-welcome-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), rgba(197, 168, 128, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--gold-color);
}

.clients-welcome h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.clients-welcome p {
    color: var(--gray-color);
    font-size: 0.85rem;
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Client Profile Header */
.client-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(197, 168, 128, 0.3);
}

.client-profile-info {
    flex: 1;
}

.client-profile-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 2px;
}

.client-profile-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--gray-color);
}

.client-profile-meta .meta-divider {
    color: var(--gray-light);
}

.client-profile-meta i {
    width: 14px;
    text-align: center;
}

.client-profile-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.client-profile-actions .btn-secondary {
    padding: 4px 8px;
    font-size: 0.68rem;
}

/* Client Stat Cards (matching dashboard dash-stat-card) */
.client-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.client-stat-card {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.client-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-accent, var(--gold-color));
    border-radius: 0 0 2px 2px;
}

.client-stat-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.client-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.client-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.client-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.client-stat-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-stat-value strong {
    font-weight: 700;
}

.client-notes-text {
    font-size: 0.85rem;
    color: var(--dark-muted);
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 4px 0 0;
    padding: 4px 0;
}

.client-gallery-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-select-all-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--dark-muted);
    cursor: pointer;
}

.client-select-all-label input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
    .clients-layout {
        grid-template-columns: 1fr;
    }
    .clients-list-scroll {
        max-height: 300px;
    }
    .client-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .client-stats-row {
        grid-template-columns: 1fr;
    }
    .client-profile-header {
        flex-wrap: wrap;
    }
    .client-profile-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .clients-search-bar {
        flex-wrap: wrap;
    }
    .clients-sort-select {
        width: 100%;
    }
}

/* ==========================================================================
   SLIDE-OUT CLIENT PANEL
   ========================================================================== */

.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 1200px;
    height: 100vh;
    z-index: 1500;
    pointer-events: none;
}

.slide-panel.active {
    pointer-events: auto;
}

.slide-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1499;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.slide-panel-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--cream-color);
    border-left: 1px solid var(--gray-light);
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-panel.active .slide-panel-content {
    transform: translateX(0);
}

/* Panel Header */
.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid var(--gray-light);
    flex-shrink: 0;
    background: var(--cream-color);
}

.slide-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.slide-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(197, 168, 128, 0.3);
}

.slide-header-info {
    min-width: 0;
}

.slide-header-info h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-header-meta {
    font-size: 0.75rem;
    color: var(--gray-color);
}

.slide-header-meta .meta-divider {
    color: var(--gray-light);
    margin: 0 4px;
}

.slide-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.slide-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    color: var(--gray-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    margin-left: 4px;
}

.slide-close-btn:hover {
    background: var(--gray-light);
    color: var(--dark-color);
}

/* Tab Bar */
.slide-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--gray-light);
    padding: 0 32px;
    flex-shrink: 0;
    background: var(--cream-color);
}

.slide-tab {
    padding: 14px 24px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -1px;
}

.slide-tab i {
    font-size: 0.85rem;
}

.slide-tab:hover {
    color: var(--dark-muted);
}

.slide-tab.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-color);
}

/* Panel Body (scrollable) */
.slide-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
}

.slide-body::-webkit-scrollbar {
    width: 5px;
}

.slide-body::-webkit-scrollbar-track {
    background: transparent;
}

.slide-body::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 3px;
}

/* Tab Panes */
.slide-tab-pane {
    display: none;
}

.slide-tab-pane.active {
    display: block;
}

/* Overview tab stat cards */
.slide-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.slide-stat-card {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.slide-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-accent, var(--gold-color));
    border-radius: 0 0 2px 2px;
}

.slide-stat-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.slide-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.slide-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.slide-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.slide-stat-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Notes in overview */
.slide-notes-block {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.slide-notes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-muted);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.slide-notes-text {
    font-size: 0.85rem;
    color: var(--dark-muted);
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 0;
}

/* Photos tab */
.slide-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.slide-gallery-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
}

.slide-gallery-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive for slide panel */
@media (max-width: 1100px) {
    .slide-panel {
        width: 90%;
    }
    .slide-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .slide-panel {
        width: 100%;
        max-width: none;
    }
    .slide-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }
    .slide-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .slide-tabs {
        padding: 0 16px;
        overflow-x: auto;
    }
    .slide-body {
        padding: 16px;
    }
    .slide-stats-row {
        grid-template-columns: 1fr;
    }
    .slide-gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .slide-gallery-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    vertical-align: middle;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-color, #aaa);
    transition: 0.3s;
    border-radius: 22px;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success-color, #518C67);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.toggle-label {
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.toggle-label.toggle-on {
    color: var(--success-color, #518C67);
}

.toggle-label.toggle-off {
    color: var(--gray-color, #8E8A85);
}

/* Section label for grouped fields (e.g. Included Items) */
.section-label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-color);
}

/* Form layout updates for admin modal */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ==========================================================================
   RESPONSIVE: DASHBOARD STATS CARDS, CONTENT COLS, TABLES, MODALS
   ========================================================================== */

@media (max-width: 1100px) {
    .dash-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .dash-stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .dash-stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dash-stat-card {
        padding: 16px;
    }

    .dash-stat-value {
        font-size: 1.3rem;
    }

    .dash-cols-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-card {
        padding: 16px;
    }

    .dash-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .dash-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .dash-action-btn {
        padding: 14px 10px !important;
    }

    .dash-action-btn-hint {
        display: none;
    }

    .dash-status-legend {
        gap: 10px;
    }
}

/* Dashboard container responsive */
@media (max-width: 991px) {
    .dashboard-container {
        margin: 20px auto;
        padding: 0 14px;
    }

    .dashboard-card {
        padding: 16px;
    }

    .admin-page-title {
        font-size: 1.5rem;
    }

    .card-header-border {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-card {
        padding: 20px;
        max-width: 95%;
        margin: 10px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-close {
        top: 12px;
        right: 12px;
        font-size: 1.5rem;
    }

    .packages-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        margin: 12px auto;
        padding: 0 10px;
    }

    .dashboard-card {
        padding: 12px;
    }

    .admin-page-title {
        font-size: 1.3rem;
    }

    .admin-page-subtitle {
        font-size: 0.78rem;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: 0;
        max-width: none;
        width: 100%;
        font-size: 0.8rem;
        padding: 12px 14px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .empty-state {
        padding: 30px 16px;
    }

    .empty-icon {
        font-size: 2rem;
    }

    .calendar-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .calendar-card > div:last-child {
        text-align: left !important;
        width: 100%;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-logo .brand-soul {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   RESPONSIVE: ADMIN TABLES (card layout on mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        display: block;
        padding: 12px 10px;
        border-bottom: 1px solid var(--gray-light);
        margin-bottom: 8px;
        background: var(--cream-color);
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    }

    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        font-size: 0.8rem;
        text-align: right;
    }

    .admin-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-color);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: left;
        flex-shrink: 0;
        padding-right: 12px;
    }

    .admin-table td:empty {
        display: none;
    }

    .admin-table-row:hover {
        background: var(--cream-color);
    }

    /* Packages table actions */
    .admin-table td:last-child {
        justify-content: flex-start;
        gap: 6px;
        padding-top: 10px;
        border-top: 1px solid var(--gray-light);
        margin-top: 6px;
    }

    .admin-table td:last-child::before {
        content: 'Actions';
    }

    /* Inquiries + Audit responsive */
    .inquiries-table td,
    .audit-table td {
        flex-wrap: wrap;
    }

    .inquiries-table td[data-label="Message"],
    .audit-table td[data-label="Details"] {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .inquiries-table td[data-label="Message"]::before,
    .audit-table td[data-label="Details"]::before {
        margin-bottom: 2px;
    }

    .inquiry-message {
        max-height: 60px;
        overflow: hidden;
        font-size: 0.8rem;
    }

    .clients-search-bar {
        flex-wrap: wrap;
    }

    .clients-sort-select {
        width: 100%;
    }

    .clients-pagination {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .clients-list-scroll {
        max-height: 300px;
    }

    /* Clients view responsive */
    .client-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .client-profile-header {
        flex-wrap: wrap;
    }

    .client-profile-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .clients-filter-tabs {
        flex-direction: column;
        gap: 4px;
    }

    .clients-filter-tab {
        width: 100%;
    }

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

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 991px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .timeline-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-left: 20px;
    }
    
    .timeline-steps::before {
        top: 0;
        left: 33px;
        width: 3px;
        height: 100%;
    }
    
    .timeline-progress-bar {
        top: 0;
        left: 33px;
        width: 3px;
        height: 0%;
        transition: height 0.6s ease;
    }
    
    .timeline-step {
        flex-direction: row;
        width: 100%;
        text-align: left;
        gap: 20px;
    }
    
    .timeline-label {
        margin-top: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   DASHBOARD REDESIGN — STAT CARDS & METRICS
   ========================================================================== */

/* Stats row: 4 cards across */
.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

/* Individual stat card */
.dash-stat-card {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.dash-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: height 0.3s ease;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

.dash-stat-card:hover::before {
    height: 4px;
}

.dash-stat-card--accent-gold::before { background: linear-gradient(90deg, var(--gold-color), var(--gold-dark)); }
.dash-stat-card--accent-blue::before { background: linear-gradient(90deg, #4A90D9, #2980B9); }
.dash-stat-card--accent-green::before { background: linear-gradient(90deg, #27AE60, #219A52); }
.dash-stat-card--accent-rose::before { background: linear-gradient(90deg, #E25C5C, #C0392B); }

.dash-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.dash-stat-card--accent-gold .dash-stat-icon { background: rgba(197, 168, 128, 0.12); color: var(--gold-dark); }
.dash-stat-card--accent-blue .dash-stat-icon { background: rgba(74, 144, 217, 0.12); color: #2980B9; }
.dash-stat-card--accent-green .dash-stat-icon { background: rgba(39, 174, 96, 0.12); color: #219A52; }
.dash-stat-card--accent-rose .dash-stat-icon { background: rgba(226, 92, 92, 0.12); color: #C0392B; }

.dash-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-color);
}

.dash-stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--dark-color);
}

.dash-stat-trend {
    font-size: 0.7rem;
    color: var(--gray-color);
    padding-top: 4px;
    border-top: 1px solid var(--gray-light);
}

/* Dashboard content card */
.dash-card {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease;
}

.dash-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-light);
}

.dash-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
}

.dash-card-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-color);
}

/* Two column layout for content cards */
.dash-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* Pipeline status bar */
.dash-status-bar {
    display: flex;
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--gray-light);
}

.dash-status-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: help;
}

.dash-status-segment--labeled::after {
    content: attr(data-status);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
}

.dash-status-tooltip {
    display: none;
}

.dash-status-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.7rem;
    color: var(--dark-muted);
    font-weight: 500;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

/* Upcoming shoot items */
.dash-shoot-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: background 0.2s ease;
}

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

.dash-shoot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dash-shoot-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-shoot-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.dash-shoot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}

.dash-shoot-date {
    text-align: right;
    flex-shrink: 0;
}

.dash-shoot-day {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(197, 168, 128, 0.08);
    color: var(--gold-dark);
}

.dash-shoot-day.dash-countdown--urgent {
    background: rgba(201, 76, 76, 0.08);
    color: var(--danger-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.dash-shoot-caldate {
    display: block;
    font-size: 0.65rem;
    color: var(--gray-color);
    margin-top: 3px;
}

/* Action required items */
.dash-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: background 0.2s ease;
}

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

.dash-action-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E25C5C, #C0392B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dash-action-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-action-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.dash-action-favs {
    flex-shrink: 0;
}

.dash-fav-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(226, 92, 92, 0.08);
    color: #C0392B;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.dash-empty {
    text-align: center;
    padding: 25px 10px;
}

/* Responsive */
/* Quick Actions grid */
.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dash-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font-body);
    text-align: center;
}

.dash-action-btn:hover {
    border-color: var(--gold-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.12);
}

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

.dash-action-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.dash-action-btn:hover .dash-action-btn-icon {
    transform: scale(1.1);
}

.dash-action-btn-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.2;
}

.dash-action-btn-hint {
    font-size: 0.6rem;
    color: var(--gray-color);
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .dash-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-cols-2 {
        grid-template-columns: 1fr;
    }
    .dash-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 600px) {
    .dash-stats-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BOOKING INQUIRIES STYLES
   ========================================================================== */

.inquiries-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.inquiries-table th {
    text-align: left;
    padding: 10px 10px 8px;
    color: var(--gray-color);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-light);
    white-space: nowrap;
}

.inquiries-table td {
    padding: 10px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: top;
    line-height: 1.5;
}

.inquiries-table tbody tr:hover {
    background: rgba(197, 168, 128, 0.04);
}

.inquiry-phone,
.inquiry-email {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: 500;
}

.inquiry-phone:hover,
.inquiry-email:hover {
    text-decoration: underline;
    color: var(--gold-dark);
}

.inquiry-event-date {
    background: var(--gray-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--dark-muted);
    white-space: nowrap;
}

.inquiry-service-tag {
    display: inline-block;
    background: rgba(197, 168, 128, 0.15);
    color: var(--gold-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.inquiry-message {
    max-width: 280px;
    max-height: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    color: var(--dark-muted);
    font-size: 0.78rem;
}

/* Inquiries table responsive: stack on narrow screens */
@media (max-width: 900px) {
    .inquiries-table thead {
        display: none;
    }
    .inquiries-table,
    .inquiries-table tbody,
    .inquiries-table tr,
    .inquiries-table td {
        display: block;
        width: 100%;
    }
    .inquiries-table tr {
        padding: 12px;
        margin-bottom: 10px;
        background: var(--bg-card);
        border: 1px solid var(--gray-light);
        border-radius: 8px;
    }
    .inquiries-table td {
        padding: 4px 0;
        border: none;
        text-align: left;
    }
    .inquiries-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-color);
        font-size: 0.65rem;
        text-transform: uppercase;
        display: block;
        margin-bottom: 2px;
    }
    .inquiry-message {
        max-width: 100%;
        max-height: none;
    }
}

/* ==========================================================================
   PACKAGES MANAGER DASHBOARD STYLES
   ========================================================================== */

/* Menu tabs styling in admin header */
.header-menu {
    display: flex;
    gap: 15px;
    margin-left: 30px;
    margin-right: auto;
}

.menu-tab-btn {
    background: none;
    border: none;
    color: var(--gray-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: calc(0.9rem - 1px);
    cursor: pointer;
    padding: 8px 16px;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.menu-tab-btn:hover {
    color: var(--dark-color);
}

.menu-tab-btn.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-color);
}

/* Mobile header toggle (hamburger) */
.header-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--dark-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.header-mobile-toggle:hover {
    background: var(--gray-light);
}

.header-menu-footer {
    display: none;
}

/* ==========================================================================
   RESPONSIVE: ADMIN HEADER & MOBILE DRAWER
   ========================================================================== */
@media (max-width: 991px) {
    .dashboard-header {
        padding: 10px 16px;
    }

    .header-menu {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--cream-color);
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 12px 0 20px;
        z-index: 99;
        border-top: 1px solid var(--gray-light);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .header-menu.open {
        display: flex;
    }

    .header-mobile-toggle {
        display: block;
        order: -1;
        margin-right: auto;
    }

    .dashboard-header {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }

    .header-brand {
        margin-right: auto;
    }

    .header-brand .brand-soul {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .header-brand .brand-sub {
        font-size: 0.45rem;
    }

    .menu-tab-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--gray-light);
        border-left: 3px solid transparent;
        border-radius: 0;
        gap: 12px;
    }

    .menu-tab-btn i {
        width: 20px;
        text-align: center;
        font-size: 1.05rem;
    }

    .menu-tab-btn.active {
        border-bottom-color: var(--gray-light);
        border-left-color: var(--gold-color);
        background: rgba(197, 168, 128, 0.06);
    }

    .menu-tab-btn:hover {
        background: rgba(197, 168, 128, 0.04);
    }

    .header-nav {
        gap: 10px;
        flex-shrink: 0;
    }

    .user-info {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .user-info i {
        display: none;
    }

    .header-nav .btn-secondary {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .header-menu-footer {
        display: block;
        margin-top: auto;
        padding: 16px 20px;
        border-top: 1px solid var(--gray-light);
    }

    .header-mobile-logout {
        width: 100%;
        text-align: center;
        padding: 12px !important;
        border-color: var(--danger-color) !important;
        color: var(--danger-color) !important;
    }

    .header-mobile-logout:hover {
        background: rgba(201, 76, 76, 0.06) !important;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 8px 12px;
    }
    .header-brand .brand-soul {
        font-size: 1rem;
    }
    .user-info {
        max-width: 70px;
        font-size: 0.7rem;
    }
}

/* Package lists grid */
.packages-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.package-card {
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 22px;
    background: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.package-card:hover {
    border-color: var(--gold-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.package-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.package-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}

.package-card-meta {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 12px;
}

.package-card-desc {
    font-size: 0.85rem;
    color: var(--dark-muted);
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.package-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 15px;
}

.package-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid var(--gray-light);
    padding-top: 15px;
}

.badge-active {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-inactive {
    background-color: rgba(127, 140, 141, 0.1);
    color: #7f8c8d;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Tabs for languages in Modal */
.lang-tab-btn {
    background: var(--cream-color);
    border: 1px solid var(--gray-light);
    color: var(--dark-muted);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-tab-btn:hover {
    background: var(--gray-light);
}

.lang-tab-btn.active {
    background: var(--gold-color);
    color: var(--white-color);
    border-color: var(--gold-color);
}

.lang-fields-block {
    display: none;
    background: rgba(197, 168, 128, 0.02);
    border: 1px solid rgba(197, 168, 128, 0.12);
    border-radius: 6px;
    padding: 18px;
    margin-top: 12px;
}

.lang-fields-block.active {
    display: block;
}

/* Package editor responsive styles */
.pkg-back-link {
    padding: 8px 16px;
    font-size: 0.85rem;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.pkg-lang-section {
    margin-top: 25px;
    margin-bottom: 15px;
}

.pkg-lang-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.lang-tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lang-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.lang-tabs {
    display: flex;
    gap: 6px;
    white-space: nowrap;
    padding-bottom: 4px;
}

.pkg-submit-btn {
    margin-top: 30px;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .pkg-back-link {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .card-header-border.flex-row-wrap {
        flex-wrap: wrap;
        gap: 8px;
    }

    .pkg-submit-btn {
        margin-top: 20px;
        padding: 12px;
        font-size: 0.9rem;
    }

    .pkg-lang-section {
        margin-top: 18px;
        margin-bottom: 10px;
    }

    .lang-tab-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   DEDICATED CLIENT DETAIL PAGE
   ========================================================================== */

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.detail-back-link:hover {
    background: var(--gray-light);
    color: var(--dark-color);
}
.detail-back-link i {
    font-size: 0.75rem;
}

.detail-header-actions {
    display: flex;
    gap: 8px;
}

/* Hero Profile Card */
.detail-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.detail-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.detail-hero-info {
    flex: 1;
    min-width: 0;
}

.detail-hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.detail-hero-top h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
    letter-spacing: 0.5px;
}

.detail-hero-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-color);
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.detail-hero-meta strong {
    color: var(--dark-muted);
    font-weight: 600;
}

.meta-divider {
    color: var(--gray-light);
    font-size: 0.7rem;
}

.detail-hero-package {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gold-dark);
    background: rgba(197, 168, 128, 0.08);
    padding: 4px 12px;
    border-radius: 6px;
}

.detail-hero-package i {
    font-size: 0.7rem;
}

/* Tab Navigation */
.detail-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 24px;
    padding: 0 4px;
}

.detail-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-color);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.detail-tab:hover {
    color: var(--dark-muted);
    background: var(--gray-light);
    border-radius: 6px 6px 0 0;
}
.detail-tab.active {
    color: var(--dark-color);
    border-bottom-color: var(--gold-color);
}

.detail-tab-badge {
    background: var(--gray-light);
    color: var(--gray-color);
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
}
.detail-tab.active .detail-tab-badge {
    background: rgba(197, 168, 128, 0.15);
    color: var(--gold-dark);
}

/* Tab Content */
.detail-card {
    background: #ffffff;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.detail-body {
    background: #ffffff;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 28px 32px;
    min-height: 300px;
}

.detail-pane {
    display: none;
}
.detail-pane.active {
    display: block;
}

/* Stats Row */
.detail-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.detail-stat-card {
    background: #ffffff;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-left: 3px solid var(--stat-accent, var(--gold-color));
}

.detail-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.detail-stat-icon i {
    font-size: 1rem;
}

.detail-stat-body {
    min-width: 0;
}

.detail-stat-label {
    font-size: 0.72rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.detail-stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-muted);
    word-break: break-word;
}

/* Notes */
.detail-notes-block {
    background: #ffffff;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 20px 24px;
}

.detail-notes-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-muted);
    margin-bottom: 12px;
}

.detail-notes-text {
    font-size: 0.85rem;
    color: var(--dark-muted);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

/* Gallery Header */
.detail-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-gallery-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .detail-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-hero {
        flex-direction: column;
        text-align: center;
    }
    .detail-hero-top {
        justify-content: center;
    }
    .detail-hero-meta {
        justify-content: center;
    }

}

@media (max-width: 600px) {
    .detail-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .detail-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .detail-gallery-tools {
        width: 100%;
        flex-wrap: wrap;
    }

    .detail-gallery-tools .btn-secondary {
        padding: 5px 10px;
        font-size: 0.68rem;
    }

    .detail-gallery-tools .client-select-all-label {
        width: 100%;
        justify-content: center;
        padding-bottom: 4px;
        border-bottom: 1px solid var(--gray-light);
        margin-bottom: 4px;
    }

    .detail-gallery-header {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-gallery-header #bulk-delete-btn {
        width: 100%;
        justify-content: center;
    }
    .detail-stats-row {
        grid-template-columns: 1fr;
    }
    .detail-body {
        padding: 20px 16px;
    }
    .detail-tabs {
        overflow-x: auto;
    }
    .detail-tab {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   SKELETON LOADING STATES
   ========================================================================== */
@keyframes skeletonPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.detail-skeleton {
    padding: 20px 0;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gray-light);
    flex-shrink: 0;
}

.skeleton-line {
    height: 14px;
    background: var(--gray-light);
    border-radius: 4px;
    width: 100%;
}

.skeleton-line--lg {
    height: 24px;
    border-radius: 4px;
}

.skeleton-tab {
    height: 36px;
    width: 100px;
    background: var(--gray-light);
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
}

/* ==========================================================================
   PORTAL RESPONSIVE FIXES
   ========================================================================== */

/* Portal section title (replaces inline styles on timeline heading) */
.portal-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-muted);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Portal ZIP download button (replaces inline styles on #download-zip-btn) */
.portal-zip-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Responsive: Header — hide sub-brand on mobile, shrink nav */
@media (max-width: 600px) {
    .dashboard-header .header-brand .brand-sub {
        display: none;
    }

    .header-nav {
        gap: 8px;
    }

    .user-info {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }

    .user-info i {
        display: none;
    }
}

/* Responsive: Welcome title scale down */
@media (max-width: 600px) {
    .client-welcome-title {
        font-size: 1.5rem;
    }

    .client-welcome-sub {
        font-size: 0.85rem;
    }

    .client-welcome-section {
        margin-bottom: 24px;
    }
}

/* Responsive: Download ZIP button full-width on mobile */
@media (max-width: 600px) {
    #download-zip-btn.portal-zip-btn {
        width: 100%;
        text-align: center;
    }
}

/* Responsive: Timeline container spacing on mobile */
@media (max-width: 600px) {
    .timeline-container {
        padding: 20px 16px;
        margin-bottom: 24px;
    }

    .portal-section-title {
        font-size: 1rem;
        margin-bottom: 14px;
    }
}

/* Responsive: Portal meta cards spacing on mobile */
@media (max-width: 600px) {
    .portal-meta-grid {
        gap: 12px;
        margin-bottom: 24px;
    }

    .meta-info-card {
        padding: 14px;
        gap: 10px;
    }

    .meta-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .meta-val {
        font-size: 0.85rem;
    }
}

/* Responsive: Auth card tighter padding on very small screens */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 16px;
    }

    .auth-logo .brand-soul {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }
}

/* Responsive: Photo card touch targets on mobile */
@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
    }
}

/* Portal: card-header-border inside dashboard-card has consistent margin */
.dashboard-card .card-header-border {
    margin-bottom: 20px;
}



/* ==========================================================================
   ADMIN PACKAGES — drag/drop reorder list + Best Seller badge (admin only)
   ========================================================================== */
.pkg-reorder-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.pkg-reorder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--white-color);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    cursor: grab;
    user-select: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pkg-reorder-item:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pkg-reorder-item.dragging {
    opacity: 0.55;
    cursor: grabbing;
    transform: scale(0.99);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.pkg-reorder-item.drag-over {
    border-color: var(--gold-dark);
    background: #fffdf9;
}
.pkg-reorder-item.is-best-seller {
    border-left: 4px solid #dc2626;
}

.pkg-reorder-grip {
    color: var(--gray);
    cursor: grab;
    font-size: 1.1rem;
    padding: 0 4px;
    display: flex;
    align-items: center;
}
.pkg-reorder-item:active .pkg-reorder-grip { cursor: grabbing; }

.pkg-reorder-pos {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ivory-color, #fcfbf9);
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-dark, #333);
}
.pkg-reorder-item.is-best-seller .pkg-reorder-pos {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.pkg-reorder-body { flex: 1; min-width: 0; }
.pkg-reorder-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pkg-best-seller-badge {
    display: inline-block;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 3px 8px;
    border-radius: 4px;
}

.pkg-reorder-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.pkg-reorder-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

/* ── Flag emoji inside buttons ────────────────────────────────────────────
 * Buttons do NOT inherit font-family (the UA stylesheet pins them to Arial),
 * so the flag font declared on --font-body never reaches flag emoji rendered
 * inside them. Verified in-browser: .lang-item already resolved correctly,
 * while .header-lang-toggle / .content-lang-btn / .lang-tab-btn fell back to
 * Arial — invisible flags on Windows.
 *
 * Arial is kept as the text fallback so appearance is unchanged; the flag font
 * is limited to flag codepoints by its unicode-range, so it only supplies the
 * glyphs Windows is missing.
 */
.header-lang-toggle,
.content-lang-btn,
.lang-tab-btn {
    font-family: 'Twemoji Country Flags', Arial, sans-serif;
}
