/* ============================================================
   Family Look Studio — Neon Glass Theme v4
   ============================================================ */
:root {
    --bg: #0F0C29;
    --surface: rgba(255, 255, 255, 0.05);
    --text: #FFFFFF;
    --text-dim: #B0B0C0;
    --border: rgba(255, 255, 255, 0.1);
    --border-hl: rgba(162, 89, 255, 0.5);
    --accent: #A259FF;
    --accent2: #FF6EC7;
    --accent-gradient: linear-gradient(135deg, #A259FF 0%, #FF6EC7 100%);
    --secondary-bg: rgba(255, 255, 255, 0.08);
    --danger: #FF4B4B;

    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 80px;
    overflow-x: hidden;
}


/* ── PARTICLE CANVAS ─────────────────────────────────── */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ── ANIMATED GRADIENT ORBS ──────────────────────────── */
.orb-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    /* start hidden, animated in */
    animation: orbFloat linear infinite;
}

.orb--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #A259FF 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-duration: 18s;
    animation-delay: 0s;
    opacity: 0.15;
}

.orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #FF6EC7 0%, transparent 70%);
    bottom: 5%;
    right: -5%;
    animation-duration: 22s;
    animation-delay: -6s;
    opacity: 0.12;
}

.orb--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #5B8CFF 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation-duration: 28s;
    animation-delay: -12s;
    opacity: 0.08;
}

.orb--4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #FF9A8B 0%, transparent 70%);
    top: 70%;
    left: 10%;
    animation-duration: 20s;
    animation-delay: -4s;
    opacity: 0.07;
}

@keyframes orbFloat {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, -60px) scale(0.95);
    }

    75% {
        transform: translate(40px, -20px) scale(1.08);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* ── SCREENS ─────────────────────────────────────────── */
.app {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.screen {
    display: none;
    padding: 20px 16px;
    animation: fadeIn 0.25s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── HEADER ─────────────────────────────────────────── */
.header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.header__logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__tagline {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ── SECTION TITLE ─────────────────────────────────── */
.section-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

/* ── CARDS ──────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ── BALANCE BADGE ──────────────────────────────────── */
.balance-badge {
    text-align: center;
    background: var(--secondary-bg);
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 auto 16px;
    border: 1px solid var(--border-hl);
    width: fit-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 16px rgba(162, 89, 255, 0.25);
}

.balance-badge.low {
    border-color: rgba(255, 75, 75, 0.5);
    box-shadow: 0 0 16px rgba(255, 75, 75, 0.2);
}

/* ── UPLOAD ZONE ────────────────────────────────────── */
.upload-section {
    margin-bottom: 24px;
}

.upload-card {
    position: relative;
    min-height: 160px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    background: var(--secondary-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}

.upload-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(162, 89, 255, 0.15);
}

.upload-card.has-file {
    border-style: solid;
    border-color: var(--accent);
}

.upload-card input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-card__preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
}

.upload-card__preview.visible {
    opacity: 1;
}

.upload-card__preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.7) 0%, transparent 50%);
    border-radius: inherit;
}

.upload-card__content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: opacity 0.3s;
}

.upload-card.has-file .upload-card__content {
    opacity: 0;
    pointer-events: none;
}

.upload-card__icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.upload-card__label {
    font-size: 0.95rem;
    font-weight: 600;
}

.upload-card__hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.upload-change-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.upload-card.has-file:hover .upload-change-hint {
    opacity: 1;
}

/* ── PROFILES CAROUSEL ──────────────────────────────── */
.profiles-section {
    margin-bottom: 24px;
}

.profiles-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scrollbar-width: none;
}

.profiles-track::-webkit-scrollbar {
    display: none;
}

.profile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 72px;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.25s ease;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-item.active .profile-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.25), 0 0 16px rgba(162, 89, 255, 0.3);
}

.profile-item:hover .profile-avatar {
    transform: scale(1.05);
}

.profile-item span {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    text-align: center;
}

.profile-item.active span {
    color: var(--accent);
    font-weight: 700;
}

.profile-add .profile-avatar {
    border: 2px dashed var(--accent);
    background: transparent;
}

.profile-add .profile-avatar span {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 300;
}

/* ── GENERATE BUTTON ─────────────────────────────────── */
.generate-section {
    margin-bottom: 24px;
}

.btn--generate {
    padding: 18px;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.btn--generate:not(:disabled)::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: inherit;
    opacity: 0;
    animation: pulseGlow 2s infinite;
    z-index: -1;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.03);
    }
}

/* ── PREVIEW / RESULT ────────────────────────────────── */
.preview {
    display: none;
}

.preview.active {
    display: block;
}

.preview__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.result-label {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    background: rgba(162, 89, 255, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(162, 89, 255, 0.3);
}

.canvas-wrap {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.canvas-placeholder {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
    padding: 40px 20px;
}

.scan-animation {
    position: absolute;
    inset: 0;
    background: rgba(10, 7, 30, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    gap: 16px;
}

.scan-animation.active {
    display: flex;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent2), var(--accent), var(--accent2), transparent);
    box-shadow: 0 0 20px 6px rgba(255, 110, 199, 0.6);
    animation: scan 2.5s infinite ease-in-out;
}

.scan-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-head);
    animation: pulse 1s infinite alternate;
    text-shadow: 0 0 20px rgba(162, 89, 255, 0.8);
}

@keyframes scan {
    0% {
        top: 5%;
    }

    50% {
        top: 95%;
    }

    100% {
        top: 5%;
    }
}

@keyframes pulse {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}

.result-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    animation: fadeIn 0.4s ease;
}

.result-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-actions__row {
    display: flex;
    gap: 10px;
}

.result-actions__row .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 13px 8px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
    width: 100%;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.btn--primary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--primary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn--accent {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(162, 89, 255, 0.35);
}

.btn--accent:hover {
    box-shadow: 0 6px 28px rgba(162, 89, 255, 0.5);
}

.btn--secondary {
    background: var(--secondary-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn--danger {
    background: rgba(255, 75, 75, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 75, 75, 0.3);
}

/* ── NAVIGATION ──────────────────────────────────────── */
.nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(20px);
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 16px;
    border-radius: 12px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-icon {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
}

.nav-badge {
    position: absolute;
    top: 0;
    right: 8px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    font-size: 0.65rem;
    padding: 1px 5px;
    font-weight: 700;
}

/* ── GALLERY ─────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 4px 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--secondary-bg);
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid var(--border);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.8) 0%, transparent 100%);
    padding: 12px 10px 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-item__name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}

.gallery-item__date {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
}

.gallery-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
    grid-column: 1/-1;
}

.gallery-empty p {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── FAMILY SCREEN ───────────────────────────────────── */
.family-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.family-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--secondary-bg);
    border: 1px solid var(--border);
}

.family-card__avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.family-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.family-card__info {
    flex: 1;
}

.family-card__name {
    font-weight: 700;
    font-size: 1rem;
}

.family-card__default {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 2px;
}

.family-card__actions {
    display: flex;
    gap: 8px;
}

.family-card__actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.family-card__actions button:hover {
    opacity: 1;
}

/* ── MODAL / BOTTOM SHEET ────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 900;
    display: none;
    align-items: flex-end;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.bottom-sheet {
    width: 100%;
    max-width: 600px;
    background: rgba(20, 16, 45, 0.98);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-bottom: none;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.bottom-sheet__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dim);
    cursor: pointer;
}

/* IMAGE VIEWER */
.image-viewer {
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 16px;
    position: relative;
}

.image-viewer img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius);
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-viewer__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.image-viewer__actions .btn {
    flex: 1;
}

/* Profile upload in modal */
.profile-upload {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--secondary-bg);
    border: 2px dashed var(--border);
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.profile-upload:hover {
    border-color: var(--accent);
}

.profile-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.profile-upload__icon {
    font-size: 2rem;
}

.profile-upload__text {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 4px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

/* TOAST */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--accent-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2000;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════════════
   PREMIUM EFFECTS
   ══════════════════════════════════════════════════ */

/* ── SHIMMER SWEEP ON CARDS ──────────────────────── */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 0%,
            rgba(255, 255, 255, 0.03) 40%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 60%,
            transparent 100%);
    transform: skewX(-15deg);
    pointer-events: none;
    z-index: 10;
}

.card:hover::before {
    animation: shimmerSweep 0.75s ease forwards;
}

@keyframes shimmerSweep {
    0% {
        left: -120%;
    }

    100% {
        left: 140%;
    }
}

/* ── CINEMATIC RESULT REVEAL ─────────────────────── */
.result-img {
    animation: cinematicReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cinematicReveal {
    0% {
        opacity: 0;
        filter: blur(14px) brightness(1.6);
        transform: scale(0.95);
    }

    60% {
        filter: blur(3px) brightness(1.05);
    }

    100% {
        opacity: 1;
        filter: blur(0) brightness(1);
        transform: scale(1);
    }
}

/* ── RIPPLE ON BUTTONS ───────────────────────────── */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s linear forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(40);
        opacity: 0;
    }
}

/* ── AVATAR GLOW PULSE ───────────────────────────── */
.profile-item.active .profile-avatar {
    animation: avatarGlow 2.5s ease-in-out infinite;
}

@keyframes avatarGlow {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.25), 0 0 16px rgba(162, 89, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(162, 89, 255, 0.1), 0 0 30px rgba(255, 110, 199, 0.5);
    }
}

/* ── GENERATE BUTTON LIVE GLOW ───────────────────── */
.btn--generate:not(:disabled) {
    animation: generateGlow 3s ease-in-out infinite;
}

@keyframes generateGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(162, 89, 255, 0.35);
    }

    50% {
        box-shadow: 0 6px 42px rgba(255, 110, 199, 0.6), 0 0 0 1px rgba(255, 110, 199, 0.2);
    }
}

/* ── BALANCE BADGE PULSE ─────────────────────────── */
.balance-badge:not(.low) {
    animation: badgeGlow 4s ease-in-out infinite;
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(162, 89, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 22px rgba(162, 89, 255, 0.45);
    }
}

.balance-badge.low {
    animation: badgeAlert 1.5s ease-in-out infinite;
}

@keyframes badgeAlert {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 75, 75, 0.2);
    }

    50% {
        box-shadow: 0 0 26px rgba(255, 75, 75, 0.55);
    }
}

/* ── GALLERY ITEM HOVER LIFT ─────────────────────── */
.gallery-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(162, 89, 255, 0.3);
}