@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* --- COLOR PALETTE: Premium Dark Amber --- */
    --primary-hue: 36;
    /* Amber */
    --primary: hsl(var(--primary-hue), 90%, 50%);
    /* #f59e0b */
    --primary-hover: hsl(var(--primary-hue), 95%, 45%);
    /* #f59100 */
    --primary-light: hsl(var(--primary-hue), 90%, 65%);
    --primary-glare: hsla(var(--primary-hue), 90%, 50%, 0.15);
    /* Glow effect */

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* --- BACKGROUNDS - Deep & Rich --- */
    --bg-body: #0b0f19;
    /* Ultra dark blue-black */
    --bg-page: #0f172a;
    /* Rich dark slate */
    --bg-card: #1e293b;
    /* Lighter slate for cards */
    --bg-card-hover: #263345;
    --bg-input: #334155;
    --bg-dropdown: #1f2937;

    /* --- TEXT --- */
    --text-main: #f8fafc;
    /* Almost white */
    --text-muted: #94a3b8;
    /* Muted blue-grey */
    --text-dark: #64748b;
    /* Darker muted */

    /* --- BORDERS & EFFECTS --- */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(245, 158, 11, 0.5);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px var(--primary-glare);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* --- TYPOGRAPHY UTILITIES --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 1.85rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* --- BUTTONS: Modern & Premium --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ea580c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: #475569;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* --- CARDS: Glass & Depth --- */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* --- FORMS: Sleek Inputs --- */
.modern-form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
}

.modern-form-control:focus {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glare);
}

/* --- BADGES & TAGS --- */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.status-badge.neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* === LAYOUT: ADMIN PANEL === */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

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

    .sidebar {
        display: flex;
        /* Hide sidebar on mobile for now - normally would require hamburger menu implementation */
        /* To make it accessible without JS, we could make it a top bar, but let's assume specific mobile request will come later if needed. 
           However, USER said "global layout", so I should probably make it accessible. 
           Let's make it a top sticky header for mobile instead of hidden. */
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px;
    }

    .sidebar-header {
        display: none;
        /* Hide large logo on mobile sidebar to save space */
    }

    .sidebar-menu {
        flex-direction: row;
        gap: 10px;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .content {
        padding: 20px;
        /* Reset padding for mobile */
    }
}

/* Sidebar */
.sidebar {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-light);
    padding: 25px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.2rem;
    min-width: 24px;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 4px var(--radius-md) var(--radius-md) 4px;
    /* Sharp left */
}

.nav-item.active i {
    color: var(--primary);
    transform: scale(1.1);
}

/* Main Content */
/* Main Content */
.content {
    padding: 30px 40px;
    max-width: 1440px;
    /* Limit max width for readability */
    margin: 0 auto;
    width: 100%;
}

/* Global Container for Client Pages */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    /* Prevent touching edges on mobile */
}

@media (max-width: 768px) {
    .content {
        padding: 20px 15px;
        /* Smaller padding on mobile */
    }

    .container {
        padding: 0 15px;
    }
}

/* === RESPONSIVE TABLE (CARD VIEW) SYSTEM === */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.modern-table thead th {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 16px 8px 16px;
    border: none;
}

.modern-table tbody tr {
    background: var(--bg-card);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.modern-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}

.modern-table td {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.modern-table td:first-child {
    border-left: 1px solid var(--border-light);
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.modern-table td:last-child {
    border-right: 1px solid var(--border-light);
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* User Avatar */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #334155, #475569);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile & Tablet Overrides */
.mobile-header-trigger {
    display: none;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .content {
        padding: 25px;
    }
}

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

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        transition: transform 0.3s ease;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        transform: translateX(280px);
    }

    .sidebar-overlay.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 40;
        animation: fadeIn 0.3s ease;
    }

    .mobile-header-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-light);
        position: sticky;
        top: 0;
        z-index: 45;
    }

    .content {
        padding: 15px;
        padding-bottom: 100px;
    }

    /* --- MOBILE CARD VIEW FOR TABLE --- */
    .modern-table,
    .modern-table thead,
    .modern-table tbody,
    .modern-table th,
    .modern-table td,
    .modern-table tr {
        display: block;
        width: 100%;
        border: none !important;
    }

    .modern-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .modern-table tr {
        background: var(--bg-card);
        border-radius: var(--radius-lg);
        margin-bottom: 16px;
        padding: 16px;
        border: 1px solid var(--border-light) !important;
        position: relative;
    }

    .modern-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border: none !important;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    }

    .modern-table td:last-child {
        border-bottom: none !important;
    }

    .modern-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.85rem;
        margin-right: 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Specific fixes for mobile cells */
    .col-user {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        margin-bottom: 10px;
        padding-bottom: 10px !important;
    }

    .col-actions {
        justify-content: flex-end;
        gap: 10px;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding-top: 15px !important;
    }
}



.nav-item.active {
    background: var(--primary-alpha);
    color: var(--primary);
}

.nav-item.active i {
    color: var(--primary);
}

/* Content Area */
.content {
    padding: 40px;
    overflow-y: auto;
    max-width: 1600px;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Modern Cards */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 30px;
}

.admin-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.admin-card-body {
    padding: 25px;
}

/* Modern Tables */
/* Modern Tables */
.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Use vertical spacing for row separation */
    white-space: normal;
    /* Allow text wrapping */
}

.modern-table th {
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 600;
    text-align: left;
    padding: 15px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Headers can stay single line */
}

.modern-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    vertical-align: middle;
}

.modern-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

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

/* --- BADGES & TAGS --- */
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.status-badge.neutral {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.2);
}

/* Action Buttons */
.action-btn-group {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-icon.edit {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.btn-icon.whatsapp {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.btn-icon.download {
    background: var(--primary-alpha);
    color: var(--primary);
}

.btn-icon.delete {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Forms */
.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 40;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .content {
        padding: 20px;
        padding-top: 80px;
        /* Space for mobile header trigger */
    }

    /* Mobile Header Trigger */
    .mobile-header-trigger {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-light);
        z-index: 30;
        align-items: center;
        padding: 0 20px;
        justify-content: space-between;
    }

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

    .full-width {
        grid-column: span 1;
    }
}

/* Hide Mobile Elements on Desktop */
.mobile-header-trigger {
    display: none;
}

.sidebar-overlay {
    display: none;
}

/* --- CLIENT PANEL UPDATES --- */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-bottom: 100px;
}

@media (min-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .photo-grid {
        gap: 8px;
        grid-template-columns: repeat(2, 1fr);
        /* Ensure 2 columns on small screens */
    }

    .container {
        padding: 15px;
    }

    .app-header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-label {
        display: none;
        /* Hide labels on mobile header if needed */
    }

    /* Action Bar Adjustment */
    .action-bar {
        width: 90%;
        padding: 12px 20px;
        flex-direction: column;
        gap: 10px;
        bottom: 15px;
        border-radius: 20px;
    }

    .action-bar button {
        width: 100%;
    }
}

/* Floating Action Bar */
.action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    /* Slate 800 */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: transform 0.3s ease;
}

.selection-count {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* Selection Indicators */
.photo-item.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #fff;
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.photo-item.selected img {
    opacity: 0.4;
    transform: scale(1.05);
}

.photo-item.selected {
    border: 3px solid var(--primary);
}

/* Album Selection Style */
.photo-item.selected-album {
    border: 3px solid #fbbf24;
}

.photo-item.selected-album::after {
    content: '\f02d';
    /* Book icon */
}

/* Footer */
.app-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: 40px 20px;
    margin-top: 80px;
    text-align: center;
    color: var(--text-muted);
}

/* Promo Banner Modern */
.reservation-promo {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* =========================================
   LOGIN PAGE & AUTH STYLES
   ========================================= */
.login-page-body {
    background: radial-gradient(circle at top right, #1e1b4b, #020617);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.login-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: floatShape 10s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #7c3aed;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 60px);
    }
}

.auth-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.5));
}

.auth-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Modern Input Group */
.modern-input-group {
    position: relative;
    margin-bottom: 15px;
}

.modern-input-group input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-input-group input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.modern-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
}

.modern-input-group input:focus+i {
    color: var(--primary);
}

.btn-modern-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #d97706);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-modern-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
    filter: brightness(1.1);
}

.btn-modern-login:active {
    transform: scale(0.98);
}

.login-footer-mini {
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-footer-mini a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.login-footer-mini a:hover {
    text-decoration: underline;
}

/* =========================================
   CLIENT GALLERY & UI
   ========================================= */

/* Header Override */
.app-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 40px;
}

.logo h3 {
    display: none;
    /* Hide text on mobile usually, show on desktop */
}

@media (min-width: 768px) {
    .logo {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .logo h3 {
        display: block;
        font-size: 1.2rem;
        color: #fff;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-special-album {
    background: linear-gradient(45deg, #FFD700, #FDB931);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-special-album:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}

.btn-download {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: none;
}

@media (min-width: 1024px) {
    .user-info {
        display: inline-block;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2005;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 2005;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-select-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.lightbox-select-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-alpha);
}

/* Contact Icons */
.btn-icon-contact {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

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

.btn-icon-contact.whatsapp {
    background: #25D366;
}

.btn-icon-contact.phone {
    background: #3b82f6;
}

/* Confirm Modal Overlay */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.confirm-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.legal-modal-content {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================================
   CLIENT PHOTO GRID & CARDS
   ========================================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #1e293b;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    will-change: transform;
}

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

/* Selection State */
.photo-card.selected {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.photo-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.photo-card:hover .overlay {
    opacity: 1;
}

.photo-card.selected .overlay {
    opacity: 1;
    background: rgba(245, 158, 11, 0.2);
}

.photo-card .check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
}

.photo-card.selected .check-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.photo-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transform: translateY(10px);
    transition: transform 0.2s;
}

.photo-card:hover .photo-name {
    transform: translateY(0);
}

/* Floating Action Bar */
.action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    min-width: 320px;
    justify-content: space-between;
}

.selection-count {
    color: #fff;
    font-weight: 600;
}

.selection-count span {
    color: var(--primary);
    font-size: 1.2rem;
}
/* =========================================
   PREMIUM PROMO CARD (RESERVATION)
   ========================================= */
.reservation-promo {
    margin: 40px 0;
    padding: 3px; /* For border gradient */
    border-radius: 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706, #7c3aed);
    box-shadow: 0 20px 50px -10px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
    animation: borderGlow 5s infinite alternate;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(15deg); }
}

.reservation-promo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 60%);
    pointer-events: none;
}

.promo-content {
    background: #0f172a; /* Dark background inside */
    border-radius: 21px; /* Slightly less than parent */
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Background Pattern inside Card */
.promo-content::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
    animation: rotatePattern 120s linear infinite;
}

@keyframes rotatePattern {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.promo-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: inline-block;
    background: linear-gradient(to right, #fff, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.promo-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.btn-promo-premium {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 20;
    text-decoration: none;
}

.btn-promo-premium:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.6);
}

.btn-promo-premium::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-promo-premium:hover::after {
    left: 100%;
}

@media (max-width: 768px) {
    .promo-content { padding: 30px 20px; }
    .promo-title { font-size: 1.5rem; }
    .promo-text { font-size: 1rem; }
    .btn-promo-premium { width: 100%; justify-content: center; }
}

/* =========================================
   TAB SYSTEM
   ========================================= */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    animation: slideUpFade 0.4s ease-out;
}

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