/* ==========================================================================
   ZESTRIANA - SENSUAL & MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #08070b;
    --bg-surface: rgba(18, 15, 23, 0.7);
    --bg-surface-hover: rgba(28, 23, 36, 0.85);
    --bg-card: rgba(24, 20, 31, 0.6);
    
    --accent-crimson: #f72585;
    --accent-magenta: #b5179e;
    --accent-purple: #7209b7;
    --accent-deep-blue: #3a0ca3;
    --accent-rose-gold: #ffb4a2;
    --accent-glow: rgba(247, 37, 133, 0.35);

    --text-primary: #fff0f5;
    --text-secondary: #b0a8b9;
    --text-muted: #6e6777;

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(247, 37, 133, 0.25);
    --glass-blur: blur(20px);

    /* Fonts */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #08070b;
}
::-webkit-scrollbar-thumb {
    background: rgba(247, 37, 133, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(247, 37, 133, 0.6);
}

/* ==========================================================================
   AMBIENT BACKGROUND LIGHTS
   ========================================================================== */

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
    animation: floatGlow 18s ease-in-out infinite alternate;
}

.background-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-magenta), transparent 70%);
    top: -100px;
    left: -150px;
}

.background-glow-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-deep-blue), transparent 70%);
    bottom: -150px;
    right: -200px;
    animation-delay: -6s;
}

.background-glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-crimson), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -12s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -60px) scale(1.1); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */

.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-glass);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    gap: 24px;
    max-width: 1920px;
    margin: 0 auto;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: var(--transition-smooth);
}

.brand-logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.08);
    box-shadow: 0 6px 26px rgba(247, 37, 133, 0.6);
}

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

.brand-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
    line-height: 1;
}

.brand-subtitle {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--accent-crimson);
    font-weight: 600;
    margin-top: 2px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.nav-btn i {
    font-size: 14px;
}

.nav-btn.active {
    background: rgba(247, 37, 133, 0.15);
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.2);
}

.nav-btn:not(.active):hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.fav-count-badge {
    background: var(--accent-crimson);
    color: white;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(10, 8, 14, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 0 16px;
    height: 44px;
    transition: var(--transition-smooth);
}

.search-bar:focus-within {
    border-color: var(--accent-crimson);
    box-shadow: 0 0 20px var(--accent-glow);
    background: rgba(15, 12, 22, 0.9);
}

.search-icon {
    color: var(--text-muted);
    font-size: 15px;
    margin-right: 12px;
}

.search-bar input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
}

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

.clear-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

/* Actions & Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    color: white;
    border: none;
    outline: none;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--transition-smooth);
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(247, 37, 133, 0.5);
}

.cloud-setup-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--accent-rose-gold);
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.cloud-setup-btn:hover {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}


/* Density Switcher */
.density-selector {
    display: flex;
    background: rgba(10, 8, 14, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 3px;
    gap: 2px;
}

.density-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.density-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-crimson);
}

.density-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Profile Avatar */
.profile-badge {
    position: relative;
    cursor: pointer;
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b1055, #7597de);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    border: 2px solid var(--border-glow);
    box-shadow: 0 0 10px rgba(117, 151, 222, 0.3);
}

.profile-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00e676;
    border: 2px solid var(--bg-dark);
}

/* Filter Ribbon */
.filter-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px 14px;
    max-width: 1920px;
    margin: 0 auto;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.tags-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent; /* Firefox */
    padding-bottom: 4px;
    flex: 1; /* Allow to fill space */
    min-width: 0; /* Critical to allow truncation and scrolling */
}

/* Custom subtle scrollbar for webkit */
.tags-scroll::-webkit-scrollbar {
    height: 4px;
}
.tags-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.tags-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.tags-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tag-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.tag-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.tag-chip.active {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.2), rgba(114, 9, 183, 0.2));
    color: var(--text-primary);
    border-color: var(--accent-crimson);
}

.media-stats {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   MAIN MASONRY GALLERY
   ========================================================================== */

.container {
    margin-top: 140px;
    padding: 0 28px 60px;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.masonry-grid {
    column-gap: 20px;
    transition: column-count 0.3s ease;
}

.density-3 { column-count: 3; }
.density-5 { column-count: 5; }
.density-7 { column-count: 7; }

@media (max-width: 1600px) {
    .density-7 { column-count: 5; }
    .density-5 { column-count: 4; }
}
@media (max-width: 1200px) {
    .density-7, .density-5 { column-count: 3; }
    .density-3 { column-count: 2; }
}
@media (max-width: 800px) {
    .masonry-grid { column-count: 2 !important; }
}
@media (max-width: 500px) {
    .masonry-grid { column-count: 1 !important; }
}

/* Pin Card */
.pin {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: fadeIn 0.5s ease backwards;
}

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

.pin:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--border-glow);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.pin img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.pin:hover img {
    transform: scale(1.04);
}

/* Pin Overlay */
.pin-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8, 7, 11, 0.4) 0%, rgba(8, 7, 11, 0) 40%, rgba(8, 7, 11, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    pointer-events: none;
}

.pin:hover .pin-overlay {
    opacity: 1;
    pointer-events: auto;
}

.pin-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pin-tag-badge {
    background: rgba(10, 8, 14, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: var(--accent-rose-gold);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    transform: translateY(-8px);
    transition: var(--transition-smooth);
}

.pin:hover .pin-tag-badge {
    transform: translateY(0);
}

.pin-save-btn {
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    color: white;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--accent-glow);
    transform: translateY(-8px);
    transition: var(--transition-smooth);
}

.pin-save-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(247, 37, 133, 0.6);
}

.pin:hover .pin-save-btn {
    transform: translateY(0);
}

/* Bottom Action Bar */
.pin-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    transform: translateY(8px);
    transition: var(--transition-smooth);
}

.pin:hover .pin-bottom-bar {
    transform: translateY(0);
}

.pin-info-mini {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 65%;
}

.pin-title-mini {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pin-sub-mini {
    font-size: 11px;
    color: var(--text-secondary);
}

.pin-action-btns {
    display: flex;
    gap: 6px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    background: rgba(18, 15, 23, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: var(--accent-crimson);
    color: white;
    border-color: var(--accent-crimson);
    transform: scale(1.1);
}

.icon-btn.liked {
    background: var(--accent-crimson);
    color: white;
    border-color: var(--accent-crimson);
}

/* Empty State */
.empty-state {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.empty-state-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.empty-icon {
    font-size: 48px;
    color: var(--accent-crimson);
    margin-bottom: 20px;
}

.empty-state-card h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: 10px;
}

.empty-state-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ==========================================================================
   MODAL WINDOWS & LIGHTBOX
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(5, 4, 7, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

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

.modal-floating-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: white;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition-fast);
}

.modal-floating-close:hover {
    background: var(--accent-crimson);
    transform: scale(1.1) rotate(90deg);
}

/* Upload Dialog */
.upload-dialog {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 540px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal-btn:hover { color: white; }

.drop-zone {
    border: 2px dashed var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    background: rgba(10, 8, 14, 0.5);
    transition: var(--transition-smooth);
}

.drop-zone.dragover {
    border-color: var(--accent-crimson);
    background: rgba(247, 37, 133, 0.08);
}

.drop-icon {
    font-size: 42px;
    color: var(--accent-crimson);
    margin-bottom: 14px;
}

.drop-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 6px;
}

.drop-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.drop-or {
    margin: 16px 0;
    position: relative;
}

.drop-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--border-glass);
}

.drop-or span {
    background: #0a080e;
    padding: 0 10px;
    font-size: 11px;
    color: var(--text-muted);
    position: relative;
}

.select-file-btn {
    display: inline-flex;
    margin-top: 6px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(247, 37, 133, 0.2);
    border-top-color: var(--accent-crimson);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* Pin Detail Maximized Lightbox */
.modal-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 60px 20px 40px;
}

.pin-detail-container {
    max-width: 1140px;
    margin: 0 auto;
}

.pin-detail-card {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(114, 9, 183, 0.15);
    overflow: hidden;
    width: 100%;
    min-height: 560px;
    margin-bottom: 50px;
    animation: slideUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.pin-detail-image-container {
    width: 58%;
    background: rgba(8, 6, 11, 0.9);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

.ambient-image-backdrop {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(45px) opacity(0.3);
    pointer-events: none;
}

.pin-detail-image-container img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.image-overlay-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.img-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 8, 14, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.img-control-btn:hover {
    background: var(--accent-crimson);
}

/* Pin Detail Info Right Side */
.pin-detail-info {
    width: 42%;
    padding: 36px;
    display: flex;
    flex-direction: column;
    background: rgba(15, 12, 20, 0.6);
}

.pin-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.pin-info-actions {
    display: flex;
    gap: 10px;
}

.action-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
}

.action-icon-btn.heart-btn.liked {
    background: var(--accent-crimson);
    color: white;
    border-color: var(--accent-crimson);
    box-shadow: 0 0 15px var(--accent-glow);
}

.action-icon-btn.delete-btn:hover {
    background: #e63946;
    color: white;
    border-color: #e63946;
}

.modal-save-btn {
    padding: 10px 22px;
    font-size: 14px;
}

.pin-category-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-crimson);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.pin-info-content h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    word-break: break-word;
}

.pin-meta-list {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-item {
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pin-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pin-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 24px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 14px;
}

.author-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Comments */
.pin-comments {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pin-comments h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.comments-list {
    flex: 1;
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-comments {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.add-comment-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-comment-box input {
    flex: 1;
    background: rgba(10, 8, 14, 0.7);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: 20px;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: var(--transition-fast);
}

.add-comment-box input:focus {
    border-color: var(--accent-crimson);
}

.send-comment-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-crimson);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.send-comment-btn:hover {
    transform: scale(1.08);
}

/* Related Section */
.more-like-this-section {
    width: 100%;
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 26px;
    margin-bottom: 28px;
    position: relative;
}

.section-title span {
    background: var(--bg-dark);
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-glass);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(24, 20, 31, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-glow);
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3000;
    color: white;
    font-size: 13px;
    font-weight: 500;
    animation: toastPop 0.3s ease;
}

@keyframes toastPop {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.toast-icon { color: var(--accent-crimson); font-size: 16px; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .pin-detail-card {
        flex-direction: column;
    }
    .pin-detail-image-container, .pin-detail-info {
        width: 100%;
    }
    .pin-detail-image-container img {
        max-height: 50vh;
    }
    .navbar {
        padding: 12px 16px;
    }
    .search-bar {
        max-width: none;
    }
    .brand-title {
        font-size: 18px;
    }
}

/* ==========================================================================
   18+ Adult Content Warning Overlay (Zestriana Brand Theme)
   ========================================================================== */
.nsfw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 8, 14, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nsfw-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nsfw-overlay-content {
    background: rgba(18, 14, 24, 0.95);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(247, 37, 133, 0.2);
    color: #ffffff;
    position: relative;
}

/* Zestriana Brand Header */
.nsfw-brand-header {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.nsfw-brand-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nsfw-brand-text {
    text-align: left;
}

.nsfw-brand-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #ffffff;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.nsfw-brand-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #00e676;
    display: block;
    text-transform: uppercase;
}

.nsfw-title-main {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.nsfw-body-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* Action Buttons */
.nsfw-ph-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.nsfw-ph-enter-btn {
    flex: 1;
    max-width: 250px;
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nsfw-ph-enter-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(247, 37, 133, 0.6);
}

.nsfw-ph-exit-btn {
    flex: 1;
    max-width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nsfw-ph-exit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}



/* ==========================================================================
   ABOUT MODAL
   ========================================================================== */

.about-dialog {
    position: relative;
    background: rgba(14, 11, 20, 0.96);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 48px 42px 36px;
    max-width: 520px;
    width: 90%;
    margin: auto;
    box-shadow: 0 0 80px rgba(247, 37, 133, 0.12), 0 32px 64px rgba(0, 0, 0, 0.6);
    animation: aboutSlideIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Brand Header */
.about-brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    position: relative;
    margin-bottom: 28px;
}

.about-logo-glow {
    position: absolute;
    width: 180px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(247, 37, 133, 0.25), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(18px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-logo-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 6px 28px rgba(247, 37, 133, 0.5);
    flex-shrink: 0;
    animation: gemPulse 3s ease-in-out infinite;
}

@keyframes gemPulse {
    0%, 100% { box-shadow: 0 6px 28px rgba(247, 37, 133, 0.5); }
    50%       { box-shadow: 0 8px 36px rgba(247, 37, 133, 0.75), 0 0 0 6px rgba(247, 37, 133, 0.1); }
}

.about-brand-text {
    display: flex;
    flex-direction: column;
}

.about-brand-title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--text-primary);
    line-height: 1;
}

.about-brand-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent-crimson);
    font-weight: 600;
    margin-top: 4px;
}

/* Divider */
.about-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
    margin-bottom: 24px;
}

/* Sections */
.about-section {
    margin-bottom: 24px;
}

.about-section-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-rose-gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.about-section-title i {
    color: var(--accent-crimson);
    font-size: 14px;
}

.about-body-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.about-body-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Discord Card */
.about-discord-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 14px 18px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.about-discord-card:hover {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.45);
    box-shadow: 0 0 18px rgba(88, 101, 242, 0.2);
}

.about-discord-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5865f2, #7289da);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.about-discord-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.about-discord-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.about-discord-handle {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.about-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.about-copy-btn:hover {
    background: var(--accent-crimson);
    border-color: var(--accent-crimson);
    color: white;
    transform: scale(1.08);
}

/* Footer */
.about-footer {
    border-top: 1px solid var(--border-glass);
    margin-top: 8px;
    padding-top: 18px;
    text-align: center;
}

.about-footer span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}


/* ==========================================================================
   ADMIN SETTINGS BUTTON (gear icon, appears only when admin is unlocked)
   ========================================================================== */

.admin-settings-btn {
    position: relative;
    overflow: visible;
}

.admin-settings-btn i {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.admin-settings-btn:hover i {
    transform: rotate(90deg);
}

/* Subtle crimson pulse ring to distinguish it from other icon buttons */
.admin-settings-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-crimson);
    opacity: 0;
    transition: opacity 0.3s;
}
.admin-settings-btn:hover::after {
    opacity: 0.5;
}

/* ==========================================================================
   SETTINGS MODAL
   ========================================================================== */

.settings-dialog {
    background: rgba(14, 11, 20, 0.97);
    border: 1px solid var(--border-glow);
    border-radius: 26px;
    width: 680px;
    max-width: 96vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(247, 37, 133, 0.10);
    animation: settingsSlideIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* Header */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(8, 7, 11, 0.6);
    flex-shrink: 0;
    position: relative;
}
.settings-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-crimson), transparent);
    opacity: 0.7;
}

.settings-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-header-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px;
    box-shadow: 0 4px 16px var(--accent-glow);
    flex-shrink: 0;
}

.settings-header-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.settings-header-sub {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-crimson);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Tab bar */
.settings-tabs {
    display: flex;
    gap: 0;
    background: rgba(8, 7, 11, 0.5);
    border-bottom: 1px solid var(--border-glass);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.settings-tabs::-webkit-scrollbar { display: none; }

.settings-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.settings-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.settings-tab.active {
    color: var(--accent-crimson);
    border-bottom-color: var(--accent-crimson);
    background: rgba(247, 37, 133, 0.06);
}
.settings-tab[data-stab="danger"] { color: rgba(239, 68, 68, 0.6); }
.settings-tab[data-stab="danger"]:hover { color: #ef4444; }
.settings-tab[data-stab="danger"].active {
    color: #ef4444;
    border-bottom-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}

/* Panels */
.settings-panel {
    display: none;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: 6px 0 20px;
    flex: 1;
}
.settings-panel.active { display: flex; }
.settings-panel::-webkit-scrollbar { width: 5px; }
.settings-panel::-webkit-scrollbar-track { background: transparent; }
.settings-panel::-webkit-scrollbar-thumb { background: rgba(247, 37, 133, 0.2); border-radius: 10px; }

/* Section */
.settings-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
}
.settings-section:last-child { border-bottom: none; }

.settings-section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.settings-section-title i { color: var(--accent-crimson); font-size: 13px; }

.settings-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: -6px 0 16px;
}

/* Row */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.settings-row-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.settings-row-desc  { font-size: 11.5px; color: var(--text-muted); }

/* Field group */
.settings-field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}
.settings-field-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Inputs */
.settings-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(10, 8, 14, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: var(--transition-fast);
}
.settings-input:focus {
    border-color: var(--accent-crimson);
    box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.10);
    background: rgba(14, 12, 22, 0.95);
}
.settings-input::placeholder { color: var(--text-muted); }

/* Select */
.settings-select {
    padding: 9px 14px;
    background: rgba(10, 8, 14, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 150px;
}
.settings-select:focus { border-color: var(--accent-crimson); }
.settings-select option { background: #0e0b14; }

/* Toggle switch */
.settings-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.settings-toggle input { display: none; }
.settings-toggle-track {
    width: 44px; height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    position: relative;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.settings-toggle-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.settings-toggle input:checked ~ .settings-toggle-track {
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    border-color: var(--border-glow);
    box-shadow: 0 0 10px var(--accent-glow);
}
.settings-toggle input:checked ~ .settings-toggle-track .settings-toggle-thumb {
    left: 23px;
}

/* Small action buttons */
.settings-action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    flex-shrink: 0;
}
.settings-action-btn:hover {
    background: rgba(247, 37, 133, 0.10);
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.settings-danger-btn {
    background: rgba(239, 68, 68, 0.06) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: rgba(239, 68, 68, 0.7) !important;
}
.settings-danger-btn:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2) !important;
}

/* Footer save row */
.settings-footer-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    margin-top: 4px;
}
.settings-save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--accent-crimson), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.settings-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(247, 37, 133, 0.5);
    filter: brightness(1.1);
}
.settings-save-btn:active { transform: translateY(0); }

/* Danger zone tint */
.settings-danger-zone {
    background: rgba(239, 68, 68, 0.03);
    border-radius: 0 0 26px 26px;
}
.danger-title { color: #ef4444 !important; }
.danger-title i { color: #ef4444 !important; }
.danger-hint { color: rgba(239, 68, 68, 0.6); }

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    .brand-logo {
        justify-content: center;
        margin-bottom: 4px;
    }
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    .nav-actions {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    /* Adjust the container margin so content isn't hidden behind the taller stacked header */
    .container {
        margin-top: 260px; 
        padding: 0 12px 60px;
    }

    .filter-ribbon {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    .tags-scroll {
        width: 100%;
    }
    
    /* Modal adjustments for mobile */
    .modal-content {
        flex-direction: column;
        max-height: 90vh;
    }
    .modal-left {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    .modal-main-image {
        max-height: 40vh;
    }
}

