/* ============================================================
   RUSS & BRIT — WEDDING WEBSITE
   Premium dark aesthetic with gold accents & glassmorphism
   ============================================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    /* Colors */
    --color-bg:           #0c0c14;
    --color-bg-secondary: #12121e;
    --color-bg-card:      rgba(255, 255, 255, 0.04);
    --color-bg-glass:     rgba(255, 255, 255, 0.06);
    --color-surface:      #1a1a2e;
    --color-surface-2:    #232340;

    --color-gold:         #c9a84c;
    --color-gold-light:   #e8d48b;
    --color-gold-dark:    #8a6d2b;
    --color-gold-glow:    rgba(201, 168, 76, 0.25);

    --color-text:         #f0ece2;
    --color-text-muted:   #9a96a6;
    --color-text-faint:   #5d5a6b;

    --color-accent:       #7c6bc4;
    --color-accent-soft:  rgba(124, 107, 196, 0.15);

    --color-success:      #4ade80;
    --color-error:        #f87171;
    --color-warning:      #fbbf24;

    --color-border:       rgba(255, 255, 255, 0.08);
    --color-border-focus: rgba(201, 168, 76, 0.5);

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body:    'Outfit', 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs:   0.25rem;
    --space-sm:   0.5rem;
    --space-md:   1rem;
    --space-lg:   1.5rem;
    --space-xl:   2.5rem;
    --space-2xl:  4rem;
    --space-3xl:  6rem;

    /* Borders */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
    --shadow-gold:  0 4px 30px rgba(201,168,76,0.2);
    --shadow-glow:  0 0 40px rgba(201,168,76,0.15);

    /* Transitions */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-med:  400ms;
    --duration-slow: 700ms;

    /* Layout */
    --nav-height: 72px;
    --max-width:  1280px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img, video {
    max-width: 100%;
    display: block;
}

input, textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    outline: none;
    transition: border-color var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease;
    width: 100%;
}

input:focus, textarea:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px var(--color-gold-glow);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

::selection {
    background: var(--color-gold);
    color: var(--color-bg);
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-rings {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
}

.ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 50%;
}

.ring-1 {
    border-top-color: var(--color-gold);
    animation: ring-spin 1.2s linear infinite;
}

.ring-2 {
    inset: 8px;
    border-bottom-color: var(--color-gold-light);
    animation: ring-spin 1.2s linear infinite reverse;
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-gold);
    letter-spacing: 0.2em;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    transition: background var(--duration-med) ease,
                box-shadow var(--duration-med) ease,
                backdrop-filter var(--duration-med) ease;
}

.nav.scrolled {
    background: rgba(12, 12, 20, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    box-shadow: 0 1px 0 var(--color-border);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.15em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--duration-fast) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width var(--duration-med) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--duration-fast) ease,
                opacity var(--duration-fast) ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.05);
    animation: hero-zoom 20s ease-in-out infinite alternate;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-img-active {
    opacity: 1;
}

@keyframes hero-zoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(12, 12, 20, 0.3) 0%,
            rgba(12, 12, 20, 0.5) 40%,
            rgba(12, 12, 20, 0.85) 80%,
            var(--color-bg) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-xl);
    animation: fade-up 1.2s var(--ease-out) 0.5s both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    animation: fade-up 1.2s var(--ease-out) 0.7s both;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fade-up 1.2s var(--ease-out) 0.9s both;
}

.hero-name {
    display: inline-block;
}

.hero-ampersand {
    display: inline-block;
    font-style: italic;
    color: var(--color-gold);
    margin: 0 0.15em;
    font-weight: 300;
}

.hero-date {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    animation: fade-up 1.2s var(--ease-out) 0.95s both;
}

.hero-date sup {
    font-size: 0.6em;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2xl);
    animation: fade-up 1.2s var(--ease-out) 1.1s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-up 1.2s var(--ease-out) 1.3s both;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    animation: fade-up 1.2s var(--ease-out) 1.6s both;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-faint);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* Floating Petals */
.petals-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse, var(--color-gold-light), var(--color-gold));
    border-radius: 50% 0 50% 0;
    opacity: 0;
    animation: petal-fall linear forwards;
}

@keyframes petal-fall {
    0%   { opacity: 0; transform: translateY(-20px) rotate(0deg) scale(0.5); }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.2); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-fast) ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    color: var(--color-bg);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(201,168,76,0.35);
}

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

.btn-outline {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------- Sections ---------- */
.section {
    padding: var(--space-3xl) var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: var(--color-gold-glow);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- Scripture Quote ---------- */
.quote-section {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    max-width: 750px;
    margin: 0 auto;
}

.quote-ornament {
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 0.5em;
    margin-bottom: var(--space-xl);
    opacity: 0.6;
}

.quote-text {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0 0 var(--space-lg);
    border: none;
    padding: 0;
}

.quote-cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* ---------- Gallery Section ---------- */
.gallery-section {
    max-width: 1400px;
}

/* ---------- Staging Section ---------- */
.staging-section {
    max-width: 1400px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(201, 168, 76, 0.03);
    padding: var(--space-2xl) var(--space-xl);
    margin: 0 auto var(--space-2xl);
}

.staging-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

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

.staging-grid .gallery-item {
    position: relative;
}

/* Staging item action buttons */
.staging-item-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    z-index: 3;
}

.staging-btn {
    flex: 1;
    border: none;
    padding: 8px 0;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.staging-btn-approve {
    background: rgba(72, 187, 120, 0.9);
    color: white;
}

.staging-btn-approve:hover {
    background: rgba(72, 187, 120, 1);
}

.staging-btn-edit {
    background: rgba(201, 168, 76, 0.9);
    color: var(--color-bg);
}

.staging-btn-edit:hover {
    background: rgba(201, 168, 76, 1);
}

.staging-btn-reject {
    background: rgba(229, 62, 62, 0.9);
    color: white;
}

.staging-btn-reject:hover {
    background: rgba(229, 62, 62, 1);
}

/* ---------- Staging Groups (per uploader) ---------- */
.staging-group {
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-md);
    background: rgba(201, 168, 76, 0.02);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.staging-group-header {
    padding: var(--space-md) var(--space-lg);
    background: rgba(201, 168, 76, 0.08);
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: background var(--duration-fast) ease;
}

.staging-group-header:hover {
    background: rgba(201, 168, 76, 0.14);
}

.staging-group-chevron {
    transition: transform var(--duration-normal) ease;
    color: var(--gold);
    flex-shrink: 0;
}

.staging-group-collapsed .staging-group-chevron {
    transform: rotate(-90deg);
}

.staging-group-body {
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.3s ease;
}

.staging-group-collapsed .staging-group-body {
    max-height: 0;
}

.staging-group-collapsed .staging-group-header {
    border-bottom-color: transparent;
}

.staging-group-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.staging-group-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin: 0;
}

.staging-group-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.staging-group-caption {
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.staging-group-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.staging-group-btn {
    font-size: 0.78rem;
    padding: 6px 14px;
}

.staging-group-select-wrap {
    font-size: 0.82rem;
}

.staging-group .staging-grid {
    padding: var(--space-md);
}

@media (max-width: 768px) {
    .staging-group-actions {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }
    .staging-group-info {
        flex-direction: column;
        align-items: flex-start;
    }
}
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--duration-fast) ease;
}

.filter-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.filter-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg);
    box-shadow: var(--shadow-gold);
}

/* Gallery tab divider */
.gallery-tab-divider {
    width: 1px;
    height: 24px;
    background: var(--color-border);
    align-self: center;
    display: none;
}

body.admin-mode .gallery-tab-divider,
.gallery-tab-divider.has-tabs {
    display: block;
}

#custom-gallery-tabs {
    display: contents;
}

/* Gallery tab with admin edit */
.gallery-tab-wrap {
    position: relative;
    display: inline-flex;
}

.gallery-tab-edit {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: rgba(201, 168, 76, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--color-bg);
    font-size: 0.55rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

body.admin-mode .gallery-tab-edit {
    display: flex;
}

.gallery-tab-edit:hover {
    background: var(--color-gold);
    transform: scale(1.2);
}

/* Create gallery button */
.gallery-create-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px dashed var(--color-gold);
    background: none;
    color: var(--color-gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    display: none;
}

body.admin-mode .gallery-create-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.gallery-create-btn:hover {
    background: rgba(201, 168, 76, 0.12);
    border-style: solid;
    transform: scale(1.1);
}

/* Gallery assign dropdown */
.admin-gallery-assign {
    margin-top: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.gallery-assign-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.gallery-assign-select {
    flex: 1;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--color-text);
    font-size: 0.8rem;
    font-family: var(--font-body);
    cursor: pointer;
}

.gallery-assign-select:focus {
    outline: none;
    border-color: var(--color-gold);
}

/* btn-danger */
.btn-danger {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.btn-danger:hover {
    background: #c53030;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    animation: fade-up 0.6s var(--ease-out);
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--color-surface);
    transition: transform var(--duration-med) var(--ease-out),
                box-shadow var(--duration-med) ease;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity var(--duration-med) ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.gallery-item-caption {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Like button on gallery items */
.gallery-item-like {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: var(--radius-full);
    padding: 5px 10px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    backdrop-filter: blur(4px);
}

.gallery-item-like:hover {
    background: rgba(229, 62, 62, 0.8);
    transform: scale(1.05);
}

.gallery-item-like.liked {
    color: #e53e3e;
}

.gallery-item-like.liked .heart-icon {
    fill: #e53e3e;
    stroke: #e53e3e;
}

.gallery-item-like .heart-icon {
    width: 14px;
    height: 14px;
    transition: all var(--duration-fast) ease;
}

/* Comment count badge */
.gallery-item-comments {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-full);
    padding: 5px 10px;
    color: white;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Move buttons (admin only) */
.gallery-item-move {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: none;
    gap: 4px;
}

body.admin-mode .gallery-item-move {
    display: flex;
}

.move-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
    backdrop-filter: blur(4px);
}

.move-btn:hover {
    background: rgba(201, 168, 76, 0.8);
    border-color: var(--color-gold);
    transform: scale(1.15);
}

/* ---------- Photo Detail Modal ---------- */
.photo-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInEditor var(--duration-med) ease;
}

.photo-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
}

.photo-detail-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Prev/Next nav arrows */
.photo-detail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
    backdrop-filter: blur(4px);
    line-height: 1;
}

.photo-detail-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-50%) scale(1.1);
}

.photo-detail-prev { left: 16px; }
.photo-detail-next { right: 16px; }

/* Staging actions bar in detail modal */
.photo-detail-staging-actions {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
}

.btn-staging-approve,
.btn-staging-edit,
.btn-staging-reject {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.btn-staging-approve {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}
.btn-staging-approve:hover {
    background: rgba(72, 187, 120, 0.3);
}

.btn-staging-edit {
    background: rgba(201, 168, 76, 0.15);
    color: var(--color-gold);
}
.btn-staging-edit:hover {
    background: rgba(201, 168, 76, 0.3);
}

.btn-staging-reject {
    background: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
}
.btn-staging-reject:hover {
    background: rgba(229, 62, 62, 0.3);
}

.photo-detail-content {
    display: flex;
    max-width: 1100px;
    max-height: 90vh;
    width: 95%;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.photo-detail-image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080810;
    min-height: 300px;
    overflow: hidden;
}

.photo-detail-image-wrap img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.photo-detail-sidebar {
    width: 340px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
}

.photo-detail-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.photo-detail-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: var(--space-xs);
}

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

.photo-detail-like-row {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.photo-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    color: var(--color-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.photo-like-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
}

.photo-like-btn.liked {
    border-color: #e53e3e;
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.08);
}

.photo-like-btn.liked .heart-icon {
    fill: #e53e3e;
    stroke: #e53e3e;
}

.photo-like-btn .heart-icon {
    transition: all var(--duration-fast) ease;
}

/* Comments */
.photo-detail-comments {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) var(--space-lg);
}

.comments-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.comment-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 2px;
}

.comment-text {
    font-size: 0.85rem;
    color: var(--color-text);
    line-height: 1.4;
}

.comment-time {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.comments-empty {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    padding: var(--space-lg) 0;
}

/* Comment item with admin delete */
.comment-item {
    position: relative;
}

.comment-delete-btn {
    position: absolute;
    top: 8px;
    right: 0;
    background: none;
    border: none;
    color: rgba(229, 62, 62, 0.6);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--duration-fast) ease;
}

.comment-delete-btn:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
}

/* Admin reset likes button */
.admin-reset-likes {
    background: none;
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: rgba(229, 62, 62, 0.7);
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    margin-left: auto;
}

.admin-reset-likes:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.08);
}

body.admin-mode .admin-reset-likes {
    display: inline-block !important;
}

.photo-detail-like-row {
    display: flex;
    align-items: center;
}

/* Admin promote/demote button */
.admin-promote-btn {
    display: inline-block;
    margin-top: var(--space-sm);
    background: none;
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--color-gold);
    font-size: 0.7rem;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.admin-promote-btn:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--color-gold);
}

.admin-promote-btn.demote {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-muted);
}

.admin-promote-btn.demote:hover {
    border-color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.admin-pending-btn {
    display: inline-block;
    margin-top: var(--space-xs);
    background: none;
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 0.7rem;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.admin-pending-btn:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: #fbbf24;
}

/* Comment form */
.comment-form {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.comment-form input {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--color-text);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.comment-form input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.comment-input-row {
    display: flex;
    gap: var(--space-sm);
}

.comment-input-row input {
    flex: 1;
}

.comment-submit {
    padding: 8px 16px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .photo-detail-content {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
    }
    .photo-detail-image-wrap {
        max-height: none;
        min-height: auto;
        flex: none;
    }
    .photo-detail-image-wrap img {
        max-width: 100%;
        max-height: 60vh;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }
    .photo-detail-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--color-border);
        flex: none;
    }

    /* Gallery grid: 2 columns on phone */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Nav responsive */
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(12, 12, 20, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: var(--space-lg) 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--duration-med) var(--ease-out),
                    opacity var(--duration-med) ease;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-menu li {
        list-style: none;
    }
    .nav-link {
        display: block;
        padding: var(--space-md) var(--space-xl);
    }
    .nav-toggle {
        display: flex;
    }

    /* Detail modal nav arrows on mobile */
    .photo-detail-prev { left: 8px; }
    .photo-detail-next { right: 8px; }
    .photo-detail-nav {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }
}

.gallery-loading,
.gallery-empty {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-text-muted);
}

.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.empty-icon {
    font-size: 3rem;
    opacity: 0.5;
}

/* Spinner */
.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: ring-spin 0.8s linear infinite;
    margin: 0 auto var(--space-md);
}

.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: ring-spin 0.8s linear infinite;
}

/* ---------- Upload Section ---------- */
.upload-section {
    position: relative;
}

.upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.upload-container {
    max-width: 640px;
    margin: 0 auto;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.upload-dropzone {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-med) ease;
    position: relative;
    background: var(--color-bg-card);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--color-gold);
    background: var(--color-gold-glow);
}

.dropzone-icon {
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.dropzone-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.dropzone-subtext {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.dropzone-hint {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

/* Upload Previews */
.upload-previews {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.upload-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--color-border);
}

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

.upload-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration-fast) ease;
}

.upload-preview-remove:hover {
    background: var(--color-error);
}

.upload-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.optional {
    font-weight: 300;
    color: var(--color-text-faint);
}

.btn-upload,
.btn-guestbook {
    align-self: center;
    min-width: 200px;
}

/* Upload Progress */
.upload-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.3s ease;
}

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

/* ---------- Guestbook Section ---------- */
.guestbook-section {
    position: relative;
}

.guestbook-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.guestbook-form-container {
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Message Type Selector */
.message-type-selector {
    display: flex;
    gap: var(--space-sm);
    background: var(--color-bg-card);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
}

.type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.7rem var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: all var(--duration-fast) ease;
}

.type-btn:hover {
    color: var(--color-text);
    background: var(--color-bg-glass);
}

.type-btn.active {
    background: var(--color-gold);
    color: var(--color-bg);
    box-shadow: var(--shadow-gold);
}

.type-btn svg {
    flex-shrink: 0;
}

/* Recorder Panel */
.recorder-panel {
    text-align: center;
    padding: var(--space-lg) 0;
}

.recorder-visualizer {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.recorder-visualizer canvas {
    border-radius: var(--radius-sm);
    background: var(--color-bg-card);
}

.recorder-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.recorder-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    transition: all var(--duration-fast) ease;
}

.recorder-btn:hover {
    border-color: var(--color-gold);
    background: var(--color-gold-glow);
}

.recorder-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-error);
}

.recorder-btn.recording .recorder-dot {
    animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(248,113,113,0.5); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 8px rgba(248,113,113,0); }
}

.recorder-square {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--color-text);
}

.recorder-stop {
    border-color: var(--color-error);
    color: var(--color-error);
}

.recorder-playback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.recorder-playback audio {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-md);
}

.btn-discard {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: underline;
    transition: color var(--duration-fast) ease;
}

.btn-discard:hover {
    color: var(--color-error);
}

.recorder-hint {
    font-size: 0.75rem;
    color: var(--color-text-faint);
    margin-top: var(--space-sm);
}

.link-btn {
    background: none;
    border: none;
    color: var(--color-gold);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

/* Video Preview */
.video-preview-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-card);
    aspect-ratio: 16 / 9;
}

.video-live, .video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Guestbook Entries */
.guestbook-entries {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.guestbook-entry {
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fade-up 0.5s var(--ease-out);
    transition: transform var(--duration-med) ease,
                box-shadow var(--duration-med) ease;
}

.guestbook-entry:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.entry-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.entry-meta {
    flex: 1;
}

.entry-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.entry-time {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

.entry-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.entry-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

.entry-body audio,
.entry-body video {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
}

.guestbook-loading {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-text-muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightbox-in 0.3s ease;
}

@keyframes lightbox-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    font-size: 2rem;
    color: var(--color-text);
    transition: color var(--duration-fast) ease;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    color: var(--color-gold);
    background: var(--color-bg-glass);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--color-text);
    transition: all var(--duration-fast) ease;
    z-index: 2;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-prev { left: var(--space-xl); }
.lightbox-next { right: var(--space-xl); }

.lightbox-nav:hover {
    color: var(--color-gold);
    background: var(--color-bg-glass);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox-info {
    text-align: center;
    margin-top: var(--space-lg);
}

.lightbox-caption {
    font-size: 1rem;
    color: var(--color-text);
}

.lightbox-credit {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
    animation: toast-in 0.4s var(--ease-spring);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.85rem;
    line-height: 1.4;
}

.toast.success { border-left: 3px solid var(--color-success); }
.toast.error   { border-left: 3px solid var(--color-error); }
.toast.warning { border-left: 3px solid var(--color-warning); }

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-names {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-gold);
}

.footer-heart {
    font-size: 1.5rem;
    color: var(--color-gold);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14%      { transform: scale(1.15); }
    28%      { transform: scale(1); }
    42%      { transform: scale(1.15); }
    56%      { transform: scale(1); }
}

.footer-note {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-faint);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(12, 12, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: var(--space-xl) 0;
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-med) var(--ease-out);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .section {
        padding: var(--space-2xl) var(--space-md);
    }

    .section-header {
        margin-bottom: var(--space-2xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--space-sm);
    }

    .upload-meta {
        grid-template-columns: 1fr;
    }

    .guestbook-form-container {
        padding: var(--space-lg);
    }

    .type-btn span {
        display: none;
    }

    .lightbox-nav {
        display: none;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
        bottom: var(--space-md);
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

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

/* ---------- Admin Mode ---------- */
.admin-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-faint);
    transition: all var(--duration-fast) ease;
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.admin-toggle:hover {
    color: var(--color-gold);
    background: var(--color-gold-glow);
}

.admin-toggle.active {
    color: var(--color-bg);
    background: var(--color-gold);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
}

/* Modal Overlays */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    animation: lightbox-in 0.2s ease;
}

.modal-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.modal-btn {
    min-width: 100px;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: linear-gradient(135deg, #c53030, #e53e3e) !important;
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.25) !important;
}

.btn-danger:hover {
    box-shadow: 0 6px 30px rgba(229, 62, 62, 0.35) !important;
}

/* Admin buttons on gallery items (hidden by default) */
.gallery-item-delete,
.guestbook-entry-delete {
    display: none;
}

/* Edit button — always available, shown on hover */
.gallery-item-edit {
    display: flex;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.9);
    color: var(--color-bg);
    font-size: 15px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all var(--duration-fast) ease;
    opacity: 0;
}

.gallery-item:hover .gallery-item-edit {
    opacity: 1;
}

.gallery-item-edit:hover {
    background: var(--color-gold);
    transform: scale(1.1);
}

body.admin-mode .gallery-item-delete {
    display: flex;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(229, 62, 62, 0.9);
    color: white;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all var(--duration-fast) ease;
}

body.admin-mode .gallery-item-delete:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

/* In admin mode, move edit button below delete and always show */
body.admin-mode .gallery-item-edit {
    top: 46px;
    opacity: 1;
}

body.admin-mode .guestbook-entry-delete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(229, 62, 62, 0.15);
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: var(--color-error);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

body.admin-mode .guestbook-entry-delete:hover {
    background: rgba(229, 62, 62, 0.25);
    border-color: var(--color-error);
}

/* Admin mode indicator bar */
body.admin-mode .nav {
    border-bottom: 2px solid var(--color-gold);
}

/* ---------- Photo Editor Modal ---------- */
.photo-editor {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    animation: editor-in 0.3s var(--ease-out);
}

@keyframes editor-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.editor-cancel {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: color var(--duration-fast) ease;
}

.editor-cancel:hover {
    color: var(--color-text);
}

.editor-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.05em;
}

.editor-apply {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

.editor-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.editor-canvas-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: #080810;
    overflow: hidden;
    position: relative;
}

.editor-canvas-wrap canvas {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

/* Crop Overlay */
.crop-overlay {
    position: absolute;
    inset: 0;
    cursor: crosshair;
    z-index: 5;
}

.crop-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.crop-selection {
    position: absolute;
    border: 2px dashed var(--color-gold);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    cursor: move;
    min-width: 20px;
    min-height: 20px;
    z-index: 6;
}

.crop-handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--color-gold);
    border: 2px solid var(--color-bg);
    border-radius: 2px;
    z-index: 7;
}

.crop-handle-nw { top: -7px; left: -7px; cursor: nw-resize; }
.crop-handle-ne { top: -7px; right: -7px; cursor: ne-resize; }
.crop-handle-sw { bottom: -7px; left: -7px; cursor: sw-resize; }
.crop-handle-se { bottom: -7px; right: -7px; cursor: se-resize; }

/* Crop action buttons */
.crop-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.crop-action-btn {
    flex: 1;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
}

.editor-crop-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg);
}

/* Editor Controls Panel */
.editor-controls {
    width: 300px;
    flex-shrink: 0;
    padding: var(--space-xl);
    overflow-y: auto;
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    background: var(--color-bg-secondary);
}

.editor-control-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.editor-control-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.editor-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-slider-value {
    font-size: 0.75rem;
    color: var(--color-gold);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Custom Range Slider */
.editor-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    outline: none;
    border: none;
    padding: 0;
    margin: var(--space-sm) 0;
}

.editor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-gold);
    cursor: pointer;
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-gold-dark), var(--shadow-sm);
    transition: transform var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease;
}

.editor-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--color-gold), var(--shadow-gold);
}

.editor-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-gold);
    cursor: pointer;
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-gold-dark);
}

/* Rotate Buttons */
.editor-rotate-btns {
    display: flex;
    gap: var(--space-sm);
}

.editor-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--duration-fast) ease;
}

.editor-icon-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: var(--color-gold-glow);
}

/* Filter Preset Buttons */
.editor-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xs);
}

.editor-filter-btn {
    padding: 0.5rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all var(--duration-fast) ease;
    text-align: center;
}

.editor-filter-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.editor-filter-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg);
    box-shadow: var(--shadow-gold);
}

/* Reset Button */
.editor-reset {
    font-size: 0.8rem;
    color: var(--color-text-faint);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--duration-fast) ease;
    padding: var(--space-sm) 0;
    margin-top: auto;
}

.editor-reset:hover {
    color: var(--color-error);
}

/* Upload Preview Edit Button */
.upload-preview-edit {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-bg);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--duration-fast) ease,
                transform var(--duration-fast) ease;
    border: none;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.upload-preview-edit:hover {
    background: var(--color-gold-light);
    transform: scale(1.15);
}

/* Editor Responsive */
@media (max-width: 768px) {
    .editor-body {
        flex-direction: column;
    }

    .editor-canvas-wrap {
        flex: 1;
        min-height: 0;
        padding: var(--space-md);
    }

    .editor-controls {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--color-border);
        max-height: 45vh;
        padding: var(--space-lg);
        gap: var(--space-lg);
    }

    .editor-filters {
        grid-template-columns: repeat(3, 1fr);
    }

    .editor-header {
        padding: var(--space-sm) var(--space-md);
    }
}

/* Staging multi-select */
.staging-select-all-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    user-select: none;
}

.staging-select-all-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.staging-checkbox-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    cursor: pointer;
}

.staging-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--color-gold);
    cursor: pointer;
    border-radius: 4px;
}

.gallery-item.staging-selected {
    outline: 3px solid var(--color-gold);
    outline-offset: -3px;
}

.staging-actions {
    align-items: center;
}

/* ==================== VIDEO IN GALLERY ==================== */

.gallery-video-wrap {
    position: relative;
    width: 100%;
    background: #080810;
}

.gallery-video-thumb {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.gallery-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--duration-med) var(--ease-out);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gallery-item:hover .gallery-video-play {
    background: rgba(201, 168, 76, 0.85);
    border-color: var(--color-gold);
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.gallery-video-play svg {
    margin-left: 3px;
}

.gallery-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(201, 168, 76, 0.9);
    color: var(--color-bg);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

/* Video in Photo Detail Modal */
.photo-detail-video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #080810;
}

/* Video in Lightbox */
.lightbox-video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-md);
    background: #000;
}

/* ==================== ZIP CHECKBOX ==================== */

.upload-zip-option {
    margin-top: -0.5rem;
}

.zip-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    user-select: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: all var(--duration-fast) ease;
}

.zip-checkbox-label:hover {
    border-color: var(--color-gold);
    background: var(--color-gold-glow);
}

.zip-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.zip-checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--color-text-faint);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
    position: relative;
}

.zip-checkbox-custom::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: solid transparent;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s var(--ease-spring);
    margin-top: -2px;
}

.zip-checkbox-label input:checked + .zip-checkbox-custom {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.zip-checkbox-label input:checked + .zip-checkbox-custom::after {
    border-color: var(--color-bg);
    transform: rotate(45deg) scale(1);
}

.zip-checkbox-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.zip-checkbox-text svg {
    color: var(--color-gold);
    flex-shrink: 0;
}

.zip-checkbox-label input:checked ~ .zip-checkbox-text {
    color: var(--color-gold);
}

/* ==================== VIDEO PREVIEW IN UPLOAD ==================== */

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

.upload-preview-video-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    background: rgba(201, 168, 76, 0.9);
    color: var(--color-bg);
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.06em;
}

/* ==================== DOWNLOADS PAGE ==================== */

.downloads-page {
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 80vh;
}

.downloads-container {
    max-width: 900px;
    margin: 0 auto;
}

.downloads-loading {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-text-muted);
}

.downloads-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
    padding: var(--space-3xl);
    color: var(--color-text-muted);
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    animation: fade-up 0.6s var(--ease-out);
}

.download-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-med) ease;
}

.download-card:hover {
    border-color: var(--color-gold);
    background: rgba(201, 168, 76, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.download-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
}

.download-card-info {
    flex: 1;
    min-width: 0;
}

.download-card-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    word-break: break-all;
}

.download-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
}

.download-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.download-meta-item svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.download-card-btn {
    white-space: nowrap;
    padding: 0.7rem 1.6rem;
    font-size: 0.8rem;
    gap: 6px;
    text-decoration: none;
}

/* Downloads responsive */
@media (max-width: 768px) {
    .download-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .download-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .download-card-btn {
        width: 100%;
        justify-content: center;
    }

    .download-card-meta {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

/* Download card actions (download + delete) */
.download-card-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* Admin delete button on download cards */
.download-delete-btn,
.download-rename-btn {
    display: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.download-rename-btn {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold);
}

.download-rename-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.08);
}

body.admin-mode .download-delete-btn,
body.admin-mode .download-rename-btn {
    display: flex;
}

.download-delete-btn:hover {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .download-card-actions {
        width: 100%;
    }
    .download-card-actions .download-card-btn {
        flex: 1;
    }
}
