@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==================================
   Core Design System Variables
   ================================== */
:root {
    /* Dark Theme Default - Matching Home Page Exactly */
    --bg-gradient: linear-gradient(to bottom, #02070b, #05080d);
    --bg-color: #02070b;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --border-color: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(255, 255, 255, 0.02);
    --primary-color: #4db8ff;       /* Cyan-blue like home page accent */
    --primary-hover: #ffffff;
    --accent-color: #ffffff;
    --accent-bg: rgba(77, 184, 255, 0.08);
    --card-shadow: rgba(0, 0, 0, 0.5);
    
    /* Segmented selector colors */
    --segment-bg: rgba(255, 255, 255, 0.03);
    --segment-border: rgba(255, 255, 255, 0.05);
    --segment-hover: rgba(255, 255, 255, 0.06);
    --segment-active-bg: #4db8ff;
    --segment-active-text: #02070b;
}

body.light-mode {
    /* Light Theme - Matching Home Page Exactly */
    --bg-gradient: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --border-color: rgba(15, 23, 42, 0.08);
    --card-bg: #ffffff;
    --primary-color: #2563eb;       /* Blue like home page light mode */
    --primary-hover: #1d4ed8;
    --accent-color: #7c3aed;
    --accent-bg: rgba(37, 99, 235, 0.05);
    --card-shadow: rgba(15, 23, 42, 0.05);
    
    /* Segmented selector colors */
    --segment-bg: #f1f5f9;
    --segment-border: rgba(15, 23, 42, 0.08);
    --segment-hover: #e2e8f0;
    --segment-active-bg: #2563eb;
    --segment-active-text: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s ease, background 0.3s ease, color 0.3s ease;
    padding-bottom: 120px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.reviewer-name {
	font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
}

.hidden {
    display: none !important;
}

/* ==================================
   Scroll Progress Bar
   ================================== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #4db8ff, #ffffff);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 0 2px 2px 0;
    transition: width 0.1s ease-out;
}

body.light-mode .scroll-progress-bar {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

/* ==================================
   Floating Navigation Header
   ================================== */
.clients-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
}

.clients-header * {
    pointer-events: auto;
}

.back-btn, .theme-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.back-btn:hover {
    transform: translateX(-5px) scale(1.02);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(77, 184, 255, 0.25);
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
}

.theme-btn:hover {
    transform: scale(1.1) rotate(360deg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(77, 184, 255, 0.25);
}

body.light-mode .back-btn, 
body.light-mode .theme-btn {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #475569;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
}

body.light-mode .back-btn:hover {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

body.light-mode .theme-btn:hover {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .clients-header {
        padding: 20px;
    }
    .back-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .theme-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* ==================================
   Hero Section
   ================================== */
.reviews-hero {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 4.8rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
    text-align: center;
}

body.light-mode .hero-title {
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.02);
}

/* Elegant Typewriter Cursor styling */
.typing-cursor {
    display: inline-block;
    color: var(--text-primary); /* White in dark mode */
    margin-left: 4px;
    font-weight: 300;
    font-style: normal;
    animation: cursorBlink 0.8s infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.light-mode .typing-cursor {
    color: #000000; /* Pure black in light mode */
}

.typing-cursor.fade-out {
    opacity: 0;
}

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

/* Smooth Flowing Underline for Hero Title */
.hero-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 10%;
    width: 80%;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent); /* White in dark mode */
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    pointer-events: none;
}

body.light-mode .hero-title::after {
    background: linear-gradient(90deg, transparent, #000000, transparent); /* Pure black in light mode */
}

.hero-title.typing-done::after {
    animation: underlineFlow 6s infinite ease-in-out;
}

@keyframes underlineFlow {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    15% {
        transform: scaleX(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleX(1);
        opacity: 0.8;
    }
    65% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 600px;
}

.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 100px;
    color: #02070b;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 14px rgba(77, 184, 255, 0.3);
}

.cta-primary-btn:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

body.light-mode .cta-primary-btn {
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

body.light-mode .cta-primary-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* ==================================
   Main Content Layout
   ================================== */
.reviews-main {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

/* Loading / Error / Empty States */
.reviews-loading, .reviews-error, .reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--card-shadow);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(77, 184, 255, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
    margin-bottom: 16px;
}

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

.reviews-loading p, .reviews-error p, .reviews-empty p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.reviews-error p {
    margin-bottom: 16px;
    color: #ef4444;
}

.retry-btn {
    padding: 10px 24px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background-color: var(--primary-color);
    color: #02070b;
}

body.light-mode .retry-btn:hover {
    color: #ffffff;
}

.reviews-empty h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

/* ==================================
   Reviews Stream Layout (Single Column)
   ================================== */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin-bottom: 60px;
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 8px 32px var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.review-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 12px 40px rgba(77, 184, 255, 0.15), 0 8px 32px var(--card-shadow);
    transform: translateY(-4px);
}

body.light-mode .review-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.02);
}

body.light-mode .review-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.12);
}

/* Card Header details */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    user-select: none;
}

.header-meta {
    flex-grow: 1;
    overflow: hidden;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--accent-bg);
    border: 1px solid rgba(77, 184, 255, 0.1);
    padding: 2px 10px;
    border-radius: 50px;
    margin-top: 2px;
}

body.light-mode .project-badge {
    border-color: rgba(37, 99, 235, 0.1);
}

.review-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Quote/Comment block - Clean full width */
.review-comment {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.7;
    word-break: break-word;
    border-left: 2px solid var(--primary-color);
    padding-left: 16px;
}

/* Ratings summary - minimalist badges layout */
.review-ratings-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 16px 0 0 0;
    border-top: 1px solid var(--border-color);
}

.rating-badge {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .rating-badge {
    background-color: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.rating-badge span {
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 4px;
}

/* Review Images inside Card */
.review-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.review-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.review-thumbnail:hover {
    transform: scale(1.04);
    border-color: var(--primary-color);
}

/* ==================================
   Inline Form Section (Leave a Review)
   ================================== */
.add-review-section {
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    margin-top: 60px;
}

.form-container {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px var(--card-shadow);
    transition: all 0.3s ease;
}

body.light-mode .form-container {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.form-section-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form input[type="text"], form textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 14px 18px;
}

body.light-mode form input[type="text"], 
body.light-mode form textarea {
    background-color: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

form input[type="text"]:focus, form textarea:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 20px rgba(77, 184, 255, 0.15);
}

body.light-mode form input[type="text"]:focus, 
body.light-mode form textarea:focus {
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.12);
}

form textarea {
    resize: none;
}

/* Segmented Scalar Ratings Selector */
.ratings-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.ratings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
}

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

.rating-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.scalar-rating {
    display: flex;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .scalar-rating {
    background-color: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.scalar-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scalar-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

body.light-mode .scalar-btn:hover {
    background-color: #e2e8f0;
}

.scalar-btn.active {
    background-color: var(--primary-color);
    color: #02070b;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(77, 184, 255, 0.35);
}

body.light-mode .scalar-btn.active {
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* File Upload drag and drop box */
.drag-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: all 0.2s ease;
}

.drag-drop-area:hover, .drag-drop-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(77, 184, 255, 0.02);
}

body.light-mode .drag-drop-area:hover, 
body.light-mode .drag-drop-area.dragover {
    background-color: rgba(37, 99, 235, 0.02);
}

.drag-drop-area p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.browse-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* Uploaded thumbnail previews */
.image-previews-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.preview-item {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.remove-preview-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.95);
    border: none;
    color: #ffffff;
    font-size: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.remove-preview-btn:hover {
    transform: scale(1.15);
}

/* Submitting button styling */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    color: #02070b;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(77, 184, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

body.light-mode .submit-btn {
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

body.light-mode .submit-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================================
   Lightbox Overlay
   ================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    animation: lightboxScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxScaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}

.prev-btn { left: 32px; }
.next-btn { right: 32px; }

@media (max-width: 600px) {
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .prev-btn { left: 12px; }
    .next-btn { right: 12px; }
}

/* ==================================
   Custom Toast Notifications
   ================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3000;
    max-width: 360px;
    width: calc(100% - 48px);
}

.toast {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px var(--card-shadow);
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

.toast.removing {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }
.toast.info i { color: var(--primary-color); }
