* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    color: white;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #3b0764, #0f766e, #1d4ed8);
    background-size: 500% 500%;
    animation: animatedBg 14s ease infinite;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
}

@keyframes animatedBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes zoomIn {
    from { transform: scale(0.97); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   HEADER / NAV
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(10, 10, 30, 0.75);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nav-wrap {
    max-width: 1400px;
    margin: auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff, #67e8f9, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1002;
}

.main-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.main-nav a:hover,
.nav-highlight {
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.hamburger {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    position: relative;
    z-index: 1002;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay {
    display: none;
}

/* =========================
   HERO / GENERAL SECTIONS
========================= */

.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px 40px;
}

.hero-inner {
    max-width: 900px;
    background: rgba(255,255,255,0.08);
    padding: 40px 28px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.hero h1,
.auth-card h1 {
    font-size: clamp(32px, 6vw, 64px);
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #ffffff, #67e8f9, #c084fc, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: #e5e7eb;
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions a,
.form-btn {
    color: white;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: bold;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary,
.form-btn {
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
}

.btn-secondary {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
}

.hero-actions a:hover,
.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

section {
    max-width: 1400px;
    margin: auto;
    padding: 70px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: #dbeafe;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffffff, #67e8f9, #c084fc, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading p {
    color: #dbeafe;
    font-size: 15px;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

/* =========================
   SEARCH / FILTER
========================= */

.filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.search-box {
    flex: 1 1 320px;
    max-width: 450px;
    position: relative;
}

.search-box input,
.filter-select select,
.form-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-size: 15px;
    outline: none;
    backdrop-filter: blur(12px);
}

.search-box input::placeholder,
.form-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

.filter-select {
    min-width: 210px;
}

.filter-select select option {
    color: #111827;
}

/* =========================
   GRID / CARD
========================= */

.gallery-grid,
.simple-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.info-box,
.auth-card,
.blog-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0,0,0,0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    backdrop-filter: blur(12px);
}

.card {
    animation: fadeIn 0.35s ease;
    will-change: transform;
}

.card:hover,
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.32);
}

.card.hidden-card {
    display: none;
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 18px;
    contain: layout paint;
}

.card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.image-overlay-stats {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    opacity: 0.62;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 3;
}

.card:hover .image-overlay-stats,
.card-img-wrap:hover .image-overlay-stats {
    opacity: 1;
    transform: translateY(-2px);
}

.overlay-stat {
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    cursor: pointer;
    transition: 0.2s ease;
}

.overlay-stat:hover {
    transform: scale(1.03);
    opacity: 1;
}

.like-stat {
    background: rgba(236, 72, 153, 0.22);
}

.download-stat {
    background: rgba(6, 182, 212, 0.22);
}

.overlay-stat.liked,
.like-trigger.liked {
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.78), rgba(139, 92, 246, 0.78));
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.overlay-icon,
.overlay-count {
    display: inline-flex;
    align-items: center;
}

.card-content {
    padding: 18px;
}

.card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.card h3,
.info-box h3,
.blog-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.category-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.14);
    color: #dbeafe;
    font-size: 12px;
    white-space: nowrap;
}

.author,
.info-box p,
.auth-subtitle,
.auth-switch,
.blog-card p {
    color: #e2e8f0;
    line-height: 1.7;
}

.author {
    font-size: 14px;
    margin-bottom: 0;
}

.image-description,
.image-tags {
    color: #dbeafe;
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 14px;
}

.no-results {
    display: none;
    text-align: center;
    padding: 28px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    color: #dbeafe;
    font-size: 18px;
    margin-top: 30px;
}

.infinite-loader {
    text-align: center;
    margin: 34px 0 12px;
    color: #dbeafe;
    font-size: 15px;
    display: none;
}

/* =========================
   BUTTONS / ACTIONS
========================= */

.card-actions,
.manage-actions,
.inline-form-actions,
.moderation-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn,
.small-action-btn {
    border: none;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn {
    text-decoration: none;
}

.like-btn {
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.download-btn {
    background: linear-gradient(90deg, #06b6d4, #22c55e);
}

.action-btn:hover,
.small-action-btn:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

.small-action-btn {
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.10);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.26);
}

.static-btn {
    cursor: default;
    pointer-events: none;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 50px;
    background: rgba(0,0,0,0.35);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 28px 20px;
    text-align: center;
    color: #d1d5db;
}

.site-footer a,
.auth-switch a,
.forgot-link {
    color: #93c5fd;
}

.forgot-link {
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-links-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
    margin-bottom: 6px;
}

/* =========================
   MODAL
========================= */

.modal,
.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0,0,0,0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal {
    z-index: 6000;
    background: rgba(0,0,0,0.82);
}

.modal.show,
.custom-modal.show {
    display: flex;
}

.close-modal,
.custom-modal-close {
    position: absolute;
    background: white;
    color: black;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
}

.close-modal {
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(8px);
    z-index: 3;
}

.close-modal:hover {
    background: rgba(255,255,255,0.24);
}

.custom-modal-close {
    top: 14px;
    right: 16px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 24px;
}

.custom-modal-box {
    width: min(700px, 100%);
    background: linear-gradient(145deg, rgba(18, 20, 44, 0.98), rgba(38, 26, 76, 0.96));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    position: relative;
}

.custom-modal-box h2 {
    margin-bottom: 18px;
    font-size: 30px;
    background: linear-gradient(90deg, #ffffff, #67e8f9, #c084fc, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gallery-only modal */
.gallery-image-only {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
}

.gallery-image-only .card-content {
    display: none;
}

.gallery-image-only:hover {
    transform: translateY(-6px);
    box-shadow: none;
}

.gallery-image-only .card-img-wrap {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
}

.gallery-image-only .card-img-wrap img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.gallery-detail-modal {
    width: min(1180px, 96vw);
    max-height: 88vh;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    background: linear-gradient(145deg, rgba(14, 18, 40, 0.98), rgba(32, 22, 68, 0.96));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    animation: zoomIn 0.2s ease;
}

.gallery-detail-media {
    background: radial-gradient(circle at center, rgba(255,255,255,0.05), rgba(0,0,0,0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 520px;
}

.gallery-detail-media img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.03);
}

.gallery-detail-sidebar {
    padding: 28px 24px;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.gallery-detail-sidebar h2 {
    font-size: 30px;
    margin-bottom: 18px;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.gallery-detail-meta {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-detail-meta p {
    color: #dbeafe;
    line-height: 1.7;
    font-size: 15px;
    word-break: break-word;
}

.gallery-detail-meta strong {
    color: #fff;
}

.gallery-detail-description {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}

.gallery-detail-description h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 18px;
}

.gallery-detail-description p {
    color: #dbeafe;
    line-height: 1.8;
    font-size: 15px;
    white-space: pre-line;
}

.gallery-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.gallery-detail-actions .overlay-stat,
.gallery-detail-actions .action-btn {
    min-width: 140px;
    justify-content: center;
}

/* =========================
   REVEAL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   AUTH / FORMS / UPLOAD
========================= */

.auth-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    padding: 32px 24px;
    overflow: visible;
}

.auth-card h1 {
    font-size: clamp(28px, 5vw, 44px);
}

.auth-subtitle {
    margin-bottom: 22px;
}

.auth-form,
.edit-image-form,
.moderation-form {
    display: grid;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.upload-card {
    max-width: 760px;
}

.upload-form textarea,
.upload-form select,
.bio-edit-form textarea,
.edit-image-form textarea,
.edit-image-form select,
.edit-image-form input,
.moderation-right input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    font-size: 15px;
}

.upload-form textarea,
.upload-form select {
    padding: 14px 18px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
}

.upload-form textarea::placeholder,
.upload-form select,
.upload-form option,
.moderation-right input::placeholder {
    color: rgba(135, 172, 255, 85.65);
}

.form-note {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.selected-files-box {
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    line-height: 1.7;
}

.selected-files-box .file-item {
    display: block;
    margin-bottom: 4px;
}

.hidden-form {
    display: none;
}

.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.14);
}

.error-alert {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.success-alert {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.full-width-box {
    grid-column: 1 / -1;
}

/* =========================
   PROFILE
========================= */

.profile-hero-section,
.profile-dashboard-section,
.profile-insights-section,
.profile-gallery-section,
.profile-feedback-section {
    max-width: 1320px;
    margin: 0 auto;
}

.profile-hero-section,
.profile-dashboard-section,
.profile-insights-section,
.profile-gallery-section {
    padding: 48px 20px 10px;
}

.profile-feedback-section {
    padding: 10px 20px 0;
}

.profile-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    backdrop-filter: blur(16px);
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-avatar-large {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(0,0,0,0.26);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.18);
}

.profile-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: #dbeafe;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.profile-identity h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
    margin-bottom: 8px;
    color: #fff;
}

.profile-handle {
    color: #93c5fd;
    font-size: 16px;
    margin-bottom: 12px;
}

.profile-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.profile-meta-list span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #dbeafe;
    font-size: 13px;
}

.profile-bio-panel {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.profile-bio-panel h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
}

.profile-bio-panel p {
    color: #dbeafe;
    line-height: 1.8;
    font-size: 15px;
}

.profile-bio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* =========================
   DASHBOARD / INSIGHTS
========================= */

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-stat-card {
    padding: 24px 20px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    backdrop-filter: blur(14px);
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(0,0,0,0.30);
}

.dashboard-stat-title {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.dashboard-stat-number {
    display: block;
    font-size: 40px;
    line-height: 1;
    color: #fff;
    font-weight: 800;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.insight-card {
    position: relative;
    padding: 26px 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    backdrop-filter: blur(14px);
    min-height: 220px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(0,0,0,0.30);
}

.insight-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: #dbeafe;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.insight-card h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 14px;
}

.insight-main {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.insight-sub {
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* =========================
   STATUS BADGES
========================= */

.status-badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.visibility-public {
    background: rgba(34, 197, 94, 0.20);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.35);
}

.visibility-private {
    background: rgba(244, 114, 182, 0.20);
    color: #fbcfe8;
    border-color: rgba(244, 114, 182, 0.35);
}

.approval-approved {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.35);
}

.approval-pending {
    background: rgba(251, 191, 36, 0.18);
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.35);
}

.approval-rejected {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.35);
}

/* =========================
   ADMIN
========================= */

.admin-hero-section,
.admin-overview-section,
.admin-users-section,
.admin-images-section,
.admin-feedback-section,
.admin-moderation-section {
    max-width: 1320px;
    margin: 0 auto;
    padding: 42px 20px 10px;
}

.admin-hero-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    backdrop-filter: blur(16px);
}

.admin-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: #dbeafe;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-hero-left h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
    margin-bottom: 12px;
    color: #fff;
}

.admin-hero-left p {
    color: #dbeafe;
    line-height: 1.8;
    font-size: 15px;
    max-width: 680px;
}

.admin-hero-right {
    display: grid;
    gap: 16px;
    align-content: center;
}

.admin-mini-stat {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.admin-mini-stat span {
    display: block;
    color: #cbd5e1;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-mini-stat strong {
    font-size: 34px;
    color: #fff;
}

.admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-storage-number {
    font-size: 28px;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
}

.admin-table thead th {
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #dbeafe;
    padding: 18px 16px;
    background: rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.admin-table tbody td {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.admin-user-cell {
    display: grid;
    gap: 4px;
}

.admin-user-cell strong {
    color: #fff;
}

.admin-user-cell span,
.admin-user-cell small {
    color: #cbd5e1;
}

.admin-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.14);
}

.badge-admin {
    background: rgba(168, 85, 247, 0.18);
    color: #e9d5ff;
}

.badge-user {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.admin-self-tag {
    color: #93c5fd;
    font-weight: 700;
}

/* =========================
   MODERATION
========================= */

.moderation-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}

.moderation-left {
    align-items: center;
}

.moderation-right {
    flex: 1 1 320px;
    max-width: 440px;
}

.moderation-check {
    padding: 12px 14px 0;
    color: #dbeafe;
    font-size: 14px;
}

.moderation-check input {
    margin-right: 8px;
    transform: translateY(1px);
}

.moderation-card {
    padding-top: 0;
}

.select-all-box {
    gap: 8px;
    user-select: none;
}

.select-all-box input {
    margin: 0;
}

/* =========================
   BLOG / ABOUT PAGES
========================= */

.page-hero {
    padding: 80px 20px 40px;
    text-align: center;
}

.page-hero-inner {
    max-width: 800px;
    margin: auto;
}

.page-hero h1 {
    font-size: clamp(34px, 6vw, 60px);
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, #67e8f9, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.7;
}

.blog-page {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px 80px;
}

.blog-card {
    padding: 24px;
}

.about-page {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px 80px;
}

.about-card {
    max-width: 800px;
    margin: auto;
    padding: 30px;
    border-radius: 26px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    line-height: 1.9;
    color: #e2e8f0;
}

/* =========================
   LOAD MORE
========================= */

.load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6);
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .profile-hero-card,
    .admin-hero-card {
        grid-template-columns: 1fr;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image-only .card-img-wrap img {
        height: 290px;
    }
}

@media (max-width: 900px) {
    .admin-hero-card,
    .gallery-detail-modal {
        grid-template-columns: 1fr;
    }

    .gallery-detail-modal {
        width: min(96vw, 760px);
        max-height: 92vh;
    }

    .gallery-detail-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .gallery-detail-media {
        min-height: auto;
        padding: 20px;
    }

    .gallery-detail-media img {
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .nav-wrap {
        padding: 14px 16px;
    }

    .hamburger {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: 78px;
        left: 16px;
        right: 16px;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 18px;
        background: rgba(11, 15, 35, 0.96);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 22px;
        backdrop-filter: blur(16px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px) scale(0.98);
        transition: 0.3s ease;
        flex-wrap: nowrap;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
    }

    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease;
        z-index: 999;
    }

    .mobile-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }

    .moderation-toolbar {
        padding: 16px;
    }

    .moderation-left,
    .moderation-right {
        width: 100%;
        max-width: 100%;
    }

    .profile-bio-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .manage-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-modal-box {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .custom-modal-box h2,
    .gallery-detail-sidebar h2 {
        font-size: 26px;
    }

    .profile-hero-section,
    .profile-dashboard-section,
    .profile-insights-section,
    .profile-gallery-section {
        padding: 34px 16px 8px;
    }

    .profile-hero-card {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .profile-hero-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar-large {
        width: 78px;
        height: 78px;
        font-size: 30px;
    }

    .profile-identity h1 {
        font-size: 34px;
    }

    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .dashboard-stat-card {
        padding: 18px 16px;
    }

    .dashboard-stat-number {
        font-size: 30px;
    }

    .gallery-image-only .card-img-wrap img {
        height: 250px;
    }

    .gallery-detail-sidebar {
        padding: 20px 16px;
    }

    .gallery-detail-meta,
    .gallery-detail-description {
        padding: 14px 15px;
        border-radius: 16px;
    }

    .gallery-detail-actions {
        flex-direction: column;
    }

    .gallery-detail-actions .overlay-stat,
    .gallery-detail-actions .action-btn {
        width: 100%;
        min-width: 100%;
    }

    .close-modal {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 520px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-image-only .card-img-wrap img {
        height: 220px;
    }
}

@media (min-width: 769px) {
    .main-nav {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        flex-direction: row !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }

    .hamburger {
        display: none !important;
    }

    .mobile-overlay {
        display: none !important;
    }
}

.admin-filter-bar {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
}

.admin-filter-grid input,
.admin-filter-grid select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
}

.admin-filter-grid select option {
    color: #111827;
}

.admin-empty-state {
    text-align: center;
    padding: 36px 28px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 20px 45px rgba(0,0,0,0.22);
}

.admin-empty-icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.admin-empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.admin-empty-state p {
    color: #dbeafe;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

.admin-empty-inline {
    text-align: center;
    padding: 14px 0;
    color: #dbeafe;
}

.admin-sort-link {
    color: #dbeafe;
    text-decoration: none;
}

.admin-sort-link:hover {
    color: #fff;
}

.admin-image-grid .admin-gallery-card .card-content {
    display: block;
    padding-top: 14px;
}

.admin-static-overlay {
    opacity: 0.82;
    pointer-events: none;
}

.admin-gallery-card .image-overlay-stats {
    opacity: 0.58;
}

.admin-gallery-card:hover .image-overlay-stats,
.admin-gallery-card .card-img-wrap:hover .image-overlay-stats {
    opacity: 1;
}

.admin-user-filter-bar {
    margin-bottom: 20px;
}

@media (max-width: 1100px) {
    .admin-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-bar {
        padding: 16px;
    }
}
#adminUsersSection,
#adminImagesSection {
    transition: opacity 0.25s ease;
}

/* ===============================
   ADMIN IMAGE CARD FIX
================================= */

.admin-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(6px);
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* image area */
.admin-card .card-img-wrap {
    position: relative;
    overflow: hidden;
}

.admin-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* overlay stats (like/download) */
.admin-card .image-overlay-stats {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    opacity: 0.6;
    transition: 0.3s;
}

.admin-card:hover .image-overlay-stats {
    opacity: 1;
}

/* content area */
.admin-card .card-content {
    padding: 12px 14px;
}

/* title spacing */
.admin-card h3 {
    margin-bottom: 6px;
    font-size: 14px;
}

/* author */
.admin-card .author {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 6px;
}

/* tags / storage */
.admin-card .image-tags {
    font-size: 11px;
    opacity: 0.6;
}

/* action buttons */
.admin-card .manage-actions {
    margin-top: 10px;
}
.admin-card:hover {
    box-shadow: 0 0 20px rgba(0,200,255,0.2),
                0 10px 28px rgba(0,0,0,0.35);
}
.admin-card .manage-actions,
.moderation-card .manage-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card .manage-actions .small-action-btn,
.moderation-card .manage-actions .small-action-btn {
    flex: 1 1 auto;
}

#adminUsersSection,
#adminImagesSection {
    transition: opacity 0.25s ease;
}

.admin-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(6px);
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0,200,255,0.2), 0 10px 28px rgba(0,0,0,0.35);
}

.admin-card .card-img-wrap {
    position: relative;
    overflow: hidden;
}

.admin-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.admin-card .image-overlay-stats {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    opacity: 0.6;
    transition: 0.3s;
}

.admin-card:hover .image-overlay-stats {
    opacity: 1;
}

.admin-card .card-content {
    padding: 12px 14px;
    display: block;
}

.admin-card h3 {
    margin-bottom: 6px;
    font-size: 14px;
}

.admin-card .author {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.admin-card .image-tags {
    font-size: 11px;
    opacity: 0.85;
}

.admin-card .manage-actions,
.moderation-card .manage-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card .manage-actions .small-action-btn,
.moderation-card .manage-actions .small-action-btn {
    flex: 1 1 auto;
}

.admin-filter-bar {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
}

.admin-filter-grid input,
.admin-filter-grid select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
}

.admin-filter-grid select option {
    color: #111827;
}

.admin-empty-state {
    text-align: center;
    padding: 36px 28px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 20px 45px rgba(0,0,0,0.22);
}

.admin-empty-icon {
    font-size: 42px;
    margin-bottom: 14px;
}

.admin-empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.admin-empty-state p {
    color: #dbeafe;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

.admin-empty-inline {
    text-align: center;
    padding: 14px 0;
    color: #dbeafe;
}

.admin-sort-link {
    color: #dbeafe;
    text-decoration: none;
}

.admin-sort-link:hover {
    color: #fff;
}

.admin-static-overlay {
    opacity: 0.82;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .admin-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-bar {
        padding: 16px;
    }
}