/* Gaya dikongsi RC Digital Gallery (diambil daripada galeri asal). */
        /* Paparan komponen guna :where() (spesifisiti 0) supaya utiliti Tailwind seperti hidden/sm:flex sentiasa menang. */
        :where(.btn, .icon-btn, .avatar-btn, .chip, .segmented, .segmented button, .live-pill, .hero-badge, .hero-chip, .lb-icon, .lb-action, .pill) { display: inline-flex; }
        :where(.tab, .tab-fab, .fab-btn, .dropzone, .admin-row, .toast, .notice-icon, .head-icon, .comment-line) { display: flex; }
        :where(.live-dot) { display: inline-block; }
        :where(.photo-card, .tile) { display: block; }

        /* ================= Token tema ================= */
        :root {
            --canvas: 247 244 238;
            --surface: 255 255 255;
            --surface-2: 242 238 230;
            --line: 227 220 207;
            --ink: 31 27 23;
            --muted: 112 103 91;
            --gold: 164 128 60;
            --gold-2: 214 186 124;
            --olive: 86 98 76;
            --danger: 205 45 45;
            --success: 14 138 94;
            --shadow: 48 38 24;
            --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
            --header-h: 64px;
            color-scheme: light;
        }
        .dark, .force-dark {
            --canvas: 12 11 10;
            --surface: 23 21 19;
            --surface-2: 33 30 27;
            --line: 52 47 41;
            --ink: 241 236 227;
            --muted: 160 150 136;
            --gold: 212 178 110;
            --gold-2: 238 216 162;
            --olive: 152 168 134;
            --danger: 248 113 113;
            --success: 52 211 153;
            --shadow: 0 0 0;
            color-scheme: dark;
        }

        html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
        body {
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
            background: rgb(var(--canvas));
            color: rgb(var(--ink));
            -webkit-font-smoothing: antialiased;
            -webkit-tap-highlight-color: transparent;
            overflow-x: hidden;
            transition: background-color 0.4s ease, color 0.4s ease;
        }
        .font-display { font-family: 'Fraunces', 'Playfair Display', serif; font-optical-sizing: auto; letter-spacing: -0.015em; }
        ::selection { background: rgb(var(--gold) / 0.35); }
        :focus-visible { outline: 2px solid rgb(var(--gold)); outline-offset: 2px; border-radius: 10px; }
        .no-scrollbar { scrollbar-width: none; }
        .no-scrollbar::-webkit-scrollbar { display: none; }
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-thumb { background: rgb(var(--line)); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
        ::-webkit-scrollbar-thumb:hover { background-color: rgb(var(--gold) / 0.6); }

        /* ================= Latar ambien ================= */
        .ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
        .ambient span { position: absolute; border-radius: 999px; filter: blur(100px); opacity: 0.45; animation: drift 26s ease-in-out infinite alternate; }
        .ambient span:nth-child(1) { width: 40rem; height: 40rem; background: rgb(var(--gold-2) / 0.55); top: -16rem; left: -12rem; }
        .ambient span:nth-child(2) { width: 34rem; height: 34rem; background: rgb(var(--olive) / 0.25); top: 35%; right: -14rem; animation-duration: 32s; animation-delay: -10s; }
        .dark .ambient span { opacity: 0.18; }
        @keyframes drift {
            from { transform: translate3d(0, 0, 0) scale(1); }
            to { transform: translate3d(5rem, 4rem, 0) scale(1.15); }
        }

        /* ================= Tipografi & aksen ================= */
        .kicker { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; color: rgb(var(--gold)); }
        .section-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; }
        .gold-text {
            background: linear-gradient(110deg, rgb(var(--gold)) 0%, rgb(var(--gold-2)) 40%, #fff7e0 50%, rgb(var(--gold-2)) 60%, rgb(var(--gold)) 100%);
            background-size: 250% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shimmer 7s linear infinite;
        }
        @keyframes shimmer { to { background-position: 250% center; } }
        .label { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: rgb(var(--muted)); margin-bottom: 0.4rem; }

        /* ================= Butang ================= */
        .btn {
            position: relative; overflow: hidden; isolation: isolate;
            align-items: center; justify-content: center; gap: 0.55rem;
            min-height: 44px; padding: 0.65rem 1.15rem; border-radius: 0.95rem;
            font-weight: 600; font-size: 0.84rem; line-height: 1.1; white-space: nowrap;
            transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease, background-color 0.25s, color 0.25s, border-color 0.25s, opacity 0.2s;
            cursor: pointer; user-select: none;
        }
        .btn:active { transform: scale(0.97); }
        .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
        .btn-lg { min-height: 52px; font-size: 0.92rem; border-radius: 1.05rem; }
        .btn-primary {
            color: #1d170e;
            background: linear-gradient(135deg, rgb(var(--gold-2)) 0%, rgb(var(--gold)) 100%);
            box-shadow: 0 1px 0 rgb(255 255 255 / 0.45) inset, 0 10px 24px -12px rgb(var(--gold) / 0.9);
        }
        .btn-primary::before {
            content: ''; position: absolute; inset: 0; z-index: -1;
            background: linear-gradient(120deg, transparent 25%, rgb(255 255 255 / 0.45) 50%, transparent 75%);
            transform: translateX(-130%); transition: transform 0.9s var(--ease-out);
        }
        .btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.45) inset, 0 18px 32px -14px rgb(var(--gold)); }
        .btn-primary:hover::before { transform: translateX(130%); }
        .btn-dark { background: rgb(var(--ink)); color: rgb(var(--canvas)); }
        .btn-dark:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgb(var(--shadow) / 0.8); }
        .btn-ghost { background: rgb(var(--surface-2)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line)); }
        .btn-ghost:hover:not(:disabled) { border-color: rgb(var(--gold) / 0.6); background: rgb(var(--surface)); }
        .btn-glass { background: rgb(255 255 255 / 0.12); color: #fff; border: 1px solid rgb(255 255 255 / 0.22); backdrop-filter: blur(12px); }
        .btn-glass:hover { background: rgb(255 255 255 / 0.2); }
        .btn-danger { background: rgb(var(--danger)); color: #fff; }
        .btn-danger-soft { background: rgb(var(--danger) / 0.1); color: rgb(var(--danger)); border: 1px solid rgb(var(--danger) / 0.25); }
        .btn-danger-soft:hover:not(:disabled) { background: rgb(var(--danger) / 0.16); }
        .btn-sm { min-height: 36px; padding: 0.45rem 0.8rem; font-size: 0.76rem; border-radius: 0.75rem; }
        .icon-btn { align-items: center; justify-content: center; flex-shrink: 0;
            width: 40px; height: 40px; border-radius: 999px;
            background: rgb(var(--surface-2)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line));
            transition: transform 0.35s var(--ease-spring), background-color 0.25s, border-color 0.25s, color 0.25s;
            cursor: pointer;
        }
        .icon-btn:hover { border-color: rgb(var(--gold) / 0.6); color: rgb(var(--gold)); }
        .icon-btn:active { transform: scale(0.92); }
        .avatar-btn {
            width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0; align-items: center; justify-content: center;
            font-weight: 700; font-size: 0.8rem; color: #1d170e;
            background: linear-gradient(135deg, rgb(var(--gold-2)), rgb(var(--gold)));
            box-shadow: 0 0 0 2px rgb(var(--canvas)), 0 0 0 3.5px rgb(var(--gold) / 0.5);
            transition: transform 0.35s var(--ease-spring);
            cursor: pointer;
        }
        .avatar-btn:hover { transform: scale(1.06); }
        .ripple { position: absolute; border-radius: 999px; transform: scale(0); background: rgb(255 255 255 / 0.45); animation: ripple 0.7s var(--ease-out); pointer-events: none; }
        @keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

        /* ================= Input ================= */
        .input {
            width: 100%; min-height: 48px;
            background: rgb(var(--surface)); color: rgb(var(--ink));
            border: 1px solid rgb(var(--line)); border-radius: 0.95rem;
            font-size: 16px;
            transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
        }
        @media (min-width: 640px) { .input { font-size: 0.875rem; } }
        .input::placeholder { color: rgb(var(--muted) / 0.75); }
        .input:focus { outline: none; border-color: rgb(var(--gold)); box-shadow: 0 0 0 4px rgb(var(--gold) / 0.16); }
        .input-sm { min-height: 42px; border-radius: 0.85rem; }
        .input { padding: 0.75rem 1rem; }
        .input-sm { padding: 0.55rem 0.9rem; }
        .input.pad-icon { padding-left: 2.75rem; }
        .input.input-sm.pad-icon { padding-left: 2.5rem; }
        .input.pad-icon-r { padding-right: 3rem; }
        select.input, select.input.input-sm {
            appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a4803c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 0.95rem center;
        }
        .input-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: rgb(var(--muted)); font-size: 0.85rem; pointer-events: none; }
        .switch {
            appearance: none; -webkit-appearance: none; flex-shrink: 0;
            width: 48px; height: 28px; border-radius: 999px; position: relative; cursor: pointer;
            background: rgb(var(--line)); transition: background-color 0.3s;
        }
        .switch::after {
            content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px;
            background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 0.3); transition: transform 0.4s var(--ease-spring);
        }
        .switch:checked { background: rgb(var(--gold)); }
        .switch:checked::after { transform: translateX(20px); }
        .checkbox { width: 18px; height: 18px; accent-color: rgb(var(--gold)); cursor: pointer; flex-shrink: 0; }

        /* ================= Kad & cip ================= */
        .card {
            background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 1.4rem;
            box-shadow: 0 1px 2px rgb(var(--shadow) / 0.04), 0 18px 40px -26px rgb(var(--shadow) / 0.35);
        }
        .chip { align-items: center; gap: 0.4rem; flex-shrink: 0;
            padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
            background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); color: rgb(var(--ink));
            transition: all 0.25s ease; cursor: pointer;
        }
        .chip:hover { border-color: rgb(var(--gold) / 0.7); }
        .chip[aria-pressed="true"] { background: rgb(var(--ink)); color: rgb(var(--canvas)); border-color: rgb(var(--ink)); }
        .chip .chip-count { font-size: 0.68rem; opacity: 0.6; }
        .segmented { padding: 4px; border-radius: 0.95rem; background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line)); gap: 2px; }
        .segmented button { align-items: center; justify-content: center; gap: 0.45rem; flex: 1;
            padding: 0.5rem 0.85rem; border-radius: 0.7rem; font-size: 0.78rem; font-weight: 600; color: rgb(var(--muted));
            transition: all 0.3s var(--ease-out); white-space: nowrap; cursor: pointer;
        }
        .segmented button:hover { color: rgb(var(--ink)); }
        .segmented button[aria-pressed="true"] { background: rgb(var(--surface)); color: rgb(var(--ink)); box-shadow: 0 2px 10px -4px rgb(var(--shadow) / 0.35); }
        .dark .segmented button[aria-pressed="true"] { background: rgb(var(--line)); }
        .live-dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: rgb(var(--success)); flex-shrink: 0; }
        .live-dot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
        @keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
        .live-pill { align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; border-radius: 999px;
            font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
            color: rgb(var(--success)); background: rgb(var(--success) / 0.1); border: 1px solid rgb(var(--success) / 0.25);
        }

        /* ================= Header & navigasi ================= */
        .header-glass {
            background: rgb(var(--canvas) / 0.78);
            backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
            border-bottom: 1px solid rgb(var(--line) / 0.7);
            transition: box-shadow 0.3s ease;
        }
        .header-glass.is-scrolled { box-shadow: 0 14px 30px -24px rgb(var(--shadow) / 0.6); }
        .nav-link { padding: 0.5rem 0.85rem; border-radius: 0.75rem; font-size: 0.84rem; font-weight: 600; color: rgb(var(--muted)); transition: color 0.2s, background-color 0.2s; cursor: pointer; }
        .nav-link:hover { color: rgb(var(--ink)); background: rgb(var(--surface-2)); }
        .logo-ring { position: relative; display: inline-flex; border-radius: 0.85rem; padding: 2px; background: conic-gradient(from var(--angle, 0deg), rgb(var(--gold)), rgb(var(--gold-2)), rgb(var(--olive)), rgb(var(--gold))); animation: spin-angle 6s linear infinite; flex-shrink: 0; }
        .logo-ring img { border-radius: 0.72rem; background: rgb(var(--surface)); }
        @property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
        @keyframes spin-angle { to { --angle: 360deg; } }
        .bottom-nav {
            background: rgb(var(--surface) / 0.86);
            backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
            border-top: 1px solid rgb(var(--line) / 0.8);
            padding-bottom: env(safe-area-inset-bottom);
            box-shadow: 0 -12px 30px -22px rgb(var(--shadow) / 0.5);
        }
        .tab { flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.45rem 0 0.55rem; font-size: 0.66rem; font-weight: 600; color: rgb(var(--muted)); transition: color 0.2s; cursor: pointer; }
        .tab i { font-size: 1.05rem; transition: transform 0.35s var(--ease-spring); }
        .tab:active i { transform: scale(0.85); }
        .tab.is-active { color: rgb(var(--ink)); }
        .tab.is-active i { color: rgb(var(--gold)); }
        .tab-fab { flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.66rem; font-weight: 700; color: rgb(var(--ink)); margin-top: -1.6rem; padding-bottom: 0.55rem; cursor: pointer; }
        .fab-btn {
            width: 56px; height: 56px; border-radius: 1.2rem; align-items: center; justify-content: center;
            font-size: 1.25rem; color: #1d170e; position: relative;
            background: linear-gradient(135deg, rgb(var(--gold-2)), rgb(var(--gold)));
            box-shadow: 0 0 0 5px rgb(var(--canvas)), 0 14px 26px -10px rgb(var(--gold));
            transition: transform 0.35s var(--ease-spring);
        }
        .fab-btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: pulse-ring 2.6s ease-out infinite; }
        @keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgb(var(--gold) / 0.55); } 70%, 100% { box-shadow: 0 0 0 16px rgb(var(--gold) / 0); } }
        .fab-btn i, .btn i, .icon-btn i, .lb-action i, .lb-icon i, .tab i, .head-icon i, .toast-icon i, .dropzone-icon i { line-height: 1; display: block; }
        .tab-fab:active .fab-btn { transform: scale(0.92) rotate(-6deg); }
        #scrollProgress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); z-index: 50; background: linear-gradient(90deg, rgb(var(--gold)), rgb(var(--gold-2))); }

        /* ================= Hero ================= */
        .hero { min-height: 460px; isolation: isolate; color: #F3EEE6; }
        @media (min-width: 640px) { .hero { min-height: 520px; } }
        .hero-fallback { background: radial-gradient(900px 500px at 15% 0%, rgb(164 128 60 / 0.55), transparent 60%), radial-gradient(800px 500px at 100% 100%, rgb(86 98 76 / 0.6), transparent 60%), #15120F; }
        .hero-shade { background: linear-gradient(180deg, rgb(12 10 8 / 0.25) 0%, rgb(12 10 8 / 0.55) 45%, rgb(12 10 8 / 0.94) 100%); }
        @media (min-width: 1024px) { .hero-shade { background: linear-gradient(90deg, rgb(12 10 8 / 0.92) 0%, rgb(12 10 8 / 0.7) 45%, rgb(12 10 8 / 0.15) 100%); } }
        .kenburns { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 60% 40%; }
        @keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate3d(-1.5%, 1%, 0); } }
        .hero-badge { align-items: center; gap: 0.55rem; padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.2); backdrop-filter: blur(10px); }
        .hero-chip { align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; border-radius: 0.85rem; font-size: 0.78rem; font-weight: 600; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); backdrop-filter: blur(10px); }
        .hero-chip i { color: rgb(var(--gold-2)); }
        .stat-tile { padding: 0.85rem 0.6rem; border-radius: 1.1rem; text-align: center; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14); backdrop-filter: blur(12px); transition: transform 0.4s var(--ease-spring), background-color 0.3s; }
        .stat-tile:hover { transform: translateY(-3px); background: rgb(255 255 255 / 0.13); }
        .stat-tile strong { display: block; font-family: 'Fraunces', serif; font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
        .stat-tile span { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
        .particle { position: absolute; bottom: -10px; border-radius: 999px; background: radial-gradient(circle, #FFF1C9 0%, rgb(214 186 124 / 0.6) 45%, transparent 70%); animation: rise linear infinite; opacity: 0; }
        @keyframes rise { 0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translate3d(var(--drift, 20px), -520px, 0) scale(1.1); opacity: 0; } }

        /* ================= Sorotan ================= */
        .highlight { position: relative; flex-shrink: 0; width: 72%; aspect-ratio: 4 / 5; border-radius: 1.4rem; overflow: hidden; background: rgb(var(--surface-2)); scroll-snap-align: start; cursor: pointer; transition: transform 0.5s var(--ease-out); }
        @media (min-width: 640px) { .highlight { width: 260px; } }
        .highlight:hover { transform: translateY(-4px); }
        .highlight img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
        .highlight:hover img { transform: scale(1.07); }
        .hl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(10 8 6 / 0.88)); }
        .hl-rank { position: absolute; top: 0.8rem; left: 0.8rem; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.05rem; color: #1d170e; padding: 0.15rem 0.6rem; border-radius: 0.6rem; background: linear-gradient(135deg, #EEDBA6, #B08D48); }
        .hl-info { position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem; color: #fff; text-align: left; }

        /* ================= Galeri ================= */
        .toolbar {
            background: rgb(var(--canvas) / 0.82);
            backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
            border: 1px solid transparent;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .toolbar.is-stuck { border-color: rgb(var(--line) / 0.8); box-shadow: 0 14px 30px -26px rgb(var(--shadow) / 0.7); }
        .masonry { column-count: 2; column-gap: 0.75rem; }
        @media (min-width: 640px) { .masonry { column-count: 3; column-gap: 1.25rem; } }
        @media (min-width: 1024px) { .masonry { column-count: 4; } }
        .masonry > * { margin-bottom: 0.75rem; }
        @media (min-width: 640px) { .masonry > * { margin-bottom: 1.25rem; } }
        .grid-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
        @media (min-width: 640px) { .grid-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; } }
        @media (min-width: 1024px) { .grid-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

        .photo-card {
            position: relative; break-inside: avoid; cursor: pointer;
            background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 1.25rem; overflow: hidden;
            box-shadow: 0 1px 2px rgb(var(--shadow) / 0.05), 0 16px 34px -26px rgb(var(--shadow) / 0.45);
            transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
            transition: transform 0.6s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
        }
        .photo-card:hover { --lift: -4px; border-color: rgb(var(--gold) / 0.55); box-shadow: 0 28px 50px -28px rgb(var(--shadow) / 0.6); }
        .photo-card.is-tilting { transition: transform 0.12s linear, box-shadow 0.4s ease, border-color 0.4s ease; }
        .photo-media { position: relative; overflow: hidden; min-height: 120px; background: rgb(var(--surface-2)); }
        .photo-img { display: block; width: 100%; height: auto; opacity: 0; transform: scale(1.04); transition: opacity 0.6s ease, transform 1.2s var(--ease-out); }
        .photo-img.is-loaded { opacity: 1; transform: scale(1); }
        .photo-card:hover .photo-img.is-loaded { transform: scale(1.06); }
        .photo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.18) 0%, transparent 28%, transparent 55%, rgb(0 0 0 / 0.72) 100%); pointer-events: none; }
        .photo-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 0.35), transparent 55%); opacity: 0; transition: opacity 0.4s; mix-blend-mode: soft-light; }
        .photo-card:hover .photo-glare { opacity: 1; }
        .photo-meta { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.7rem; color: #fff; pointer-events: none; }
        .photo-body { padding: 0.75rem 0.85rem 0.85rem; }
        .photo-caption { font-family: 'Fraunces', serif; font-style: italic; font-size: 0.86rem; line-height: 1.4; color: rgb(var(--ink) / 0.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .comment-line { margin-top: 0.5rem; font-size: 0.72rem; color: rgb(var(--muted)); gap: 0.35rem; align-items: baseline; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
        .comment-line b { color: rgb(var(--ink)); font-weight: 700; }
        .like-chip {
            position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2;
            display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.65rem; min-height: 32px;
            border-radius: 999px; font-size: 0.74rem; font-weight: 700; color: #fff;
            background: rgb(0 0 0 / 0.35); border: 1px solid rgb(255 255 255 / 0.25); backdrop-filter: blur(10px);
            transition: transform 0.35s var(--ease-spring), background-color 0.25s; cursor: pointer;
        }
        .like-chip:hover { transform: scale(1.08); }
        .like-chip:active { transform: scale(0.88); }
        .like-chip.is-liked { background: #ef4444; border-color: #f87171; }
        .like-chip.is-liked i { animation: heart-beat 0.7s var(--ease-spring); }
        @keyframes heart-beat { 30% { transform: scale(1.5); } 60% { transform: scale(0.9); } }
        .badge-new { position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2; padding: 0.25rem 0.55rem; border-radius: 999px; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; color: #1d170e; background: linear-gradient(135deg, #EEDBA6, #B08D48); animation: pop-in 0.7s var(--ease-spring) 0.3s backwards; }
        .tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0.6rem; background: rgb(var(--surface-2)); cursor: pointer; }
        @media (min-width: 640px) { .tile { border-radius: 0.9rem; } }
        .tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s, transform 0.8s var(--ease-out); }
        .tile img.is-loaded { opacity: 1; }
        .tile:hover img { transform: scale(1.08); }
        .tile-likes { position: absolute; bottom: 0.35rem; left: 0.35rem; font-size: 0.65rem; font-weight: 700; color: #fff; padding: 0.15rem 0.45rem; border-radius: 999px; background: rgb(0 0 0 / 0.45); backdrop-filter: blur(6px); }
        .card-enter { animation: card-in 0.85s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
        @keyframes card-in { from { opacity: 0; transform: perspective(1000px) translateY(36px) rotateX(8deg) scale(0.96); } }
        .card-new { animation: card-in 0.85s var(--ease-out) backwards, new-glow 2.2s ease-out 0.4s 2; }
        @keyframes new-glow { 0% { box-shadow: 0 0 0 0 rgb(var(--gold) / 0.7); } 100% { box-shadow: 0 0 0 18px rgb(var(--gold) / 0); } }
        @keyframes pop-in { from { opacity: 0; transform: scale(0.4) rotate(-10deg); } }
        .skeleton { background: linear-gradient(90deg, rgb(var(--surface-2)) 25%, rgb(var(--line) / 0.6) 45%, rgb(var(--surface-2)) 65%); background-size: 300% 100%; animation: skeleton 1.5s ease-in-out infinite; }
        @keyframes skeleton { from { background-position: 100% 0; } to { background-position: -100% 0; } }
        .float-y { animation: float-y 3.6s ease-in-out infinite; }
        @keyframes float-y { 50% { transform: translateY(-8px); } }

        /* ================= Dialog / helaian bawah ================= */
        .dialog {
            position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
            background: rgb(10 8 6 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        }
        .dialog.hidden { display: none; }
        .dialog:not(.hidden) { animation: fade-in 0.3s ease both; }
        .dialog.is-closing { animation: fade-out 0.22s ease forwards; }
        .dialog-panel {
            position: relative; width: 100%; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
            background: rgb(var(--surface)); color: rgb(var(--ink));
            border-radius: 1.75rem 1.75rem 0 0; border: 1px solid rgb(var(--line)); border-bottom: 0;
            padding: 0.75rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom));
            box-shadow: 0 -30px 60px -30px rgb(0 0 0 / 0.5);
            animation: sheet-up 0.5s var(--ease-out) both;
        }
        .dialog.is-closing .dialog-panel { animation: sheet-down 0.22s ease-in forwards; }
        .sheet-handle { width: 42px; height: 5px; border-radius: 999px; background: rgb(var(--line)); margin: 0 auto 0.9rem; }
        @media (min-width: 640px) {
            .dialog { align-items: center; padding: 1.5rem; }
            .dialog-panel { max-width: var(--w, 32rem); max-height: 90vh; border-radius: 1.75rem; border-bottom: 1px solid rgb(var(--line)); padding: 1.6rem 1.75rem 1.75rem; animation: pop 0.45s var(--ease-spring) both; }
            .dialog.is-closing .dialog-panel { animation: pop-out 0.2s ease-in forwards; }
            .sheet-handle { display: none; }
        }
        .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
        .dialog-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
        .head-icon { width: 46px; height: 46px; border-radius: 1rem; align-items: center; justify-content: center; flex-shrink: 0; color: #1d170e; background: linear-gradient(135deg, rgb(var(--gold-2)), rgb(var(--gold))); box-shadow: 0 10px 22px -12px rgb(var(--gold)); }
        .stagger > * { animation: rise-in 0.7s var(--ease-out) backwards; }
        .stagger > *:nth-child(1) { animation-delay: 0.05s; } .stagger > *:nth-child(2) { animation-delay: 0.1s; }
        .stagger > *:nth-child(3) { animation-delay: 0.15s; } .stagger > *:nth-child(4) { animation-delay: 0.2s; }
        .stagger > *:nth-child(5) { animation-delay: 0.25s; } .stagger > *:nth-child(6) { animation-delay: 0.3s; }
        .stagger > *:nth-child(7) { animation-delay: 0.35s; } .stagger > *:nth-child(8) { animation-delay: 0.4s; }
        @keyframes fade-in { from { opacity: 0; } }
        @keyframes fade-out { to { opacity: 0; } }
        @keyframes sheet-up { from { transform: translateY(100%); } }
        @keyframes sheet-down { to { transform: translateY(100%); } }
        @keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.95); } }
        @keyframes pop-out { to { opacity: 0; transform: translateY(12px) scale(0.97); } }
        @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }
        .shake { animation: shake 0.45s cubic-bezier(.36, .07, .19, .97) both; }
        @keyframes shake { 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }

        /* ================= Gerbang (log masuk / nama / sekatan) ================= */
        .gate { position: fixed; inset: 0; z-index: 70; overflow-y: auto; background: rgb(var(--canvas)); }
        .gate.hidden { display: none; }
        .gate-visual { color: #F3EEE6; min-height: 250px; }
        @media (min-width: 1024px) { .gate-visual { position: sticky; top: 0; height: 100vh; } }
        .gate-shade { background: linear-gradient(180deg, rgb(12 10 8 / 0.3), rgb(12 10 8 / 0.85)); }
        @media (min-width: 1024px) { .gate-shade { background: linear-gradient(180deg, rgb(12 10 8 / 0.15) 0%, rgb(12 10 8 / 0.5) 50%, rgb(12 10 8 / 0.92) 100%); } }
        .gate-panel:not(.hidden) { animation: rise-in 0.6s var(--ease-out) both; }
        .notice-icon { width: 64px; height: 64px; border-radius: 1.3rem; align-items: center; justify-content: center; font-size: 1.5rem; position: relative; }
        .notice-icon::after { content: ''; position: absolute; inset: -7px; border-radius: 1.6rem; border: 1.5px solid currentColor; opacity: 0; animation: ring 2.4s ease-out infinite; }
        @keyframes ring { 0% { opacity: 0.55; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.3); } }
        .alert-box { padding: 0.9rem 1rem; border-radius: 1rem; font-size: 0.78rem; background: rgb(var(--danger) / 0.08); border: 1px solid rgb(var(--danger) / 0.25); color: rgb(var(--danger)); }
        .alert-box .text-ink { color: rgb(var(--ink)); }

        /* ================= Muat naik ================= */
        .dropzone {
            flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; text-align: center;
            padding: 1.6rem 1rem; border-radius: 1.2rem; cursor: pointer;
            border: 2px dashed rgb(var(--line)); background: rgb(var(--surface-2) / 0.6);
            transition: border-color 0.25s, background-color 0.25s, transform 0.4s var(--ease-spring);
        }
        .dropzone:hover, .dropzone.is-drag { border-color: rgb(var(--gold)); background: rgb(var(--gold) / 0.07); }
        .dropzone.is-drag { transform: scale(1.015); }
        .dropzone-icon { width: 54px; height: 54px; border-radius: 1.1rem; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #1d170e; background: linear-gradient(135deg, rgb(var(--gold-2)), rgb(var(--gold))); margin-bottom: 0.4rem; transition: transform 0.5s var(--ease-spring); }
        .dropzone:hover .dropzone-icon, .dropzone.is-drag .dropzone-icon { transform: translateY(-5px) rotate(-6deg) scale(1.08); }
        .preview { position: relative; aspect-ratio: 1; border-radius: 0.8rem; overflow: hidden; background: rgb(var(--surface-2)); animation: pop-in 0.5s var(--ease-spring) backwards; }
        .preview img { width: 100%; height: 100%; object-fit: cover; }
        .preview button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 999px; font-size: 0.7rem; color: #fff; background: rgb(0 0 0 / 0.6); display: flex; align-items: center; justify-content: center; cursor: pointer; }
        .preview span { position: absolute; left: 4px; bottom: 4px; font-size: 0.58rem; font-weight: 700; color: #fff; padding: 0.1rem 0.35rem; border-radius: 999px; background: rgb(0 0 0 / 0.55); }
        .progress { height: 8px; border-radius: 999px; background: rgb(var(--surface-2)); overflow: hidden; border: 1px solid rgb(var(--line)); }
        .progress > span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--gold)), rgb(var(--gold-2))); transition: width 0.4s var(--ease-out); }

        /* ================= Lightbox ================= */
        .lightbox { position: fixed; inset: 0; z-index: 60; background: #0B0A09; color: rgb(var(--ink)); overflow: hidden; }
        .lightbox.hidden { display: none; }
        .lightbox:not(.hidden) { animation: fade-in 0.3s ease both; }
        .lightbox.is-closing { animation: fade-out 0.22s ease forwards; }
        .lb-backdrop { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(60px) saturate(1.3); opacity: 0.35; transition: opacity 0.6s; }
        .lb-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(0.75rem + env(safe-area-inset-top)) 1rem 0.75rem; }
        .lb-icon { width: 42px; height: 42px; border-radius: 999px; align-items: center; justify-content: center; flex-shrink: 0; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.14); color: #fff; transition: all 0.3s var(--ease-spring); cursor: pointer; }
        .lb-icon:hover { background: rgb(var(--gold)); color: #1d170e; transform: scale(1.06); }
        .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 999px; align-items: center; justify-content: center; z-index: 3; background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.16); color: #fff; backdrop-filter: blur(10px); transition: all 0.3s var(--ease-spring); cursor: pointer; }
        .lb-nav:hover:not(:disabled) { background: rgb(var(--gold)); color: #1d170e; transform: translateY(-50%) scale(1.08); }
        .lb-nav:disabled { opacity: 0.25; cursor: default; }
        .lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0.9rem; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.9); user-select: none; -webkit-user-drag: none; touch-action: pan-y; }
        .lb-img-in { animation: lb-in 0.6s var(--ease-out) backwards; }
        @keyframes lb-in { from { opacity: 0; transform: translateX(var(--lb-x, 0px)) scale(0.95); filter: blur(8px); } }
        .lb-big-heart { position: absolute; left: 50%; top: 50%; font-size: 6rem; color: #fff; filter: drop-shadow(0 10px 30px rgb(239 68 68 / 0.8)); opacity: 0; transform: translate(-50%, -50%) scale(0); pointer-events: none; }
        .lb-big-heart.is-on { animation: big-heart 0.9s var(--ease-spring); }
        @keyframes big-heart { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(0.95); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
        .lb-bottom { padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
        .lb-action { align-items: center; justify-content: center; gap: 0.45rem; min-height: 44px; min-width: 44px; padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #fff; background: rgb(255 255 255 / 0.09); border: 1px solid rgb(255 255 255 / 0.14); transition: all 0.3s var(--ease-spring); cursor: pointer; }
        .lb-action:hover { background: rgb(255 255 255 / 0.16); }
        .lb-action:active { transform: scale(0.92); }
        .lb-action.is-liked { background: #ef4444; border-color: #f87171; }
        .lb-action.is-liked i { animation: heart-beat 0.7s var(--ease-spring); }
        .lb-action.is-done { color: rgb(var(--gold-2)); border-color: rgb(var(--gold) / 0.5); }
        .lb-danger { color: #fca5a5; border-color: rgb(248 113 113 / 0.35); }
        .lb-aside {
            position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 72dvh;
            display: flex; flex-direction: column; background: rgb(var(--surface)); border-radius: 1.6rem 1.6rem 0 0;
            border-top: 1px solid rgb(var(--line)); box-shadow: 0 -30px 60px -20px rgb(0 0 0 / 0.8);
            transform: translateY(105%); transition: transform 0.5s var(--ease-out);
            padding-bottom: env(safe-area-inset-bottom);
        }
        .lb-aside.is-open { transform: none; }
        @media (min-width: 1024px) {
            .lb-aside { position: relative; transform: none; height: auto; width: 380px; flex-shrink: 0; border-radius: 0; border-top: 0; border-left: 1px solid rgb(var(--line)); box-shadow: none; background: rgb(var(--surface) / 0.92); }
        }
        .comment { animation: rise-in 0.45s var(--ease-out) backwards; }

        /* ================= Skrin besar ================= */
        .projector { position: fixed; inset: 0; z-index: 60; background: #0B0A09; color: rgb(var(--ink)); display: flex; flex-direction: column; overflow: hidden; }
        .projector.hidden { display: none; }
        .projector:not(.hidden) { animation: fade-in 0.4s ease both; }
        .projector.is-closing { animation: fade-out 0.22s ease forwards; }
        .projector-ambient { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 450px at 10% 0%, rgb(212 178 110 / 0.16), transparent 60%), radial-gradient(800px 450px at 90% 100%, rgb(120 135 105 / 0.18), transparent 60%); animation: ambient 14s ease-in-out infinite alternate; }
        @keyframes ambient { from { opacity: 0.6; } to { opacity: 1; } }
        .projector-col { position: relative; height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
        @keyframes scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
        @keyframes scroll-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
        .animate-scroll-up { display: flex; flex-direction: column; animation: scroll-up var(--speed, 60s) linear infinite; }
        .animate-scroll-down { display: flex; flex-direction: column; animation: scroll-down var(--speed, 60s) linear infinite; }
        .animate-scroll-up:hover, .animate-scroll-down:hover { animation-play-state: paused; }
        .projector-photo-item { position: relative; border-radius: 1.1rem; overflow: hidden; background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.08); cursor: pointer; transition: transform 0.6s var(--ease-out), border-color 0.4s, box-shadow 0.6s; }
        .projector-photo-item:hover { transform: scale(1.03); border-color: rgb(var(--gold) / 0.8); box-shadow: 0 0 40px -6px rgb(var(--gold) / 0.6); z-index: 2; }
        .projector-photo-item img { display: block; width: 100%; height: auto; }
        .featured-card { box-shadow: 0 0 60px -10px rgb(212 178 110 / 0.6), 0 40px 80px -20px rgb(0 0 0 / 0.9); animation: featured-glow 2.6s ease-in-out infinite; }
        @keyframes featured-glow { 50% { box-shadow: 0 0 110px -5px rgb(238 216 162 / 0.75), 0 40px 80px -20px rgb(0 0 0 / 0.9); } }
        #featuredPhotoOverlay:not(.hidden) { animation: fade-in 0.5s ease both; }

        /* ================= Admin ================= */
        .admin-panel { min-height: 88dvh; }
        @media (min-width: 640px) { .admin-panel { min-height: 0; height: 88vh; display: flex; flex-direction: column; overflow: hidden; } }
        .admin-stat { padding: 1rem; border-radius: 1.1rem; background: rgb(var(--surface-2)); border: 1px solid rgb(var(--line)); }
        .admin-stat strong { display: block; font-family: 'Fraunces', serif; font-size: 1.65rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
        .admin-stat span { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: rgb(var(--muted)); }
        .admin-row { gap: 0.85rem; align-items: center; padding: 0.7rem; border-radius: 1.1rem; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); transition: border-color 0.25s, background-color 0.25s; }
        .admin-row:hover { border-color: rgb(var(--gold) / 0.5); }
        .admin-row.is-selected { border-color: rgb(var(--gold)); background: rgb(var(--gold) / 0.06); }
        .admin-thumb { width: 64px; height: 64px; border-radius: 0.8rem; object-fit: cover; flex-shrink: 0; background: rgb(var(--surface-2)); cursor: zoom-in; }
        .pill { align-items: center; gap: 0.3rem; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.64rem; font-weight: 700; }
        .pill-ok { background: rgb(var(--success) / 0.12); color: rgb(var(--success)); }
        .pill-warn { background: rgb(217 119 6 / 0.14); color: rgb(217 119 6); }
        .pill-bad { background: rgb(var(--danger) / 0.12); color: rgb(var(--danger)); }
        .pill-mute { background: rgb(var(--surface-2)); color: rgb(var(--muted)); border: 1px solid rgb(var(--line)); }
        .setting-card { padding: 1.15rem 1.25rem; border-radius: 1.2rem; background: rgb(var(--surface-2) / 0.6); border: 1px solid rgb(var(--line)); }

        /* ================= Toast ================= */
        #toastStack { position: fixed; z-index: 100; top: calc(0.75rem + env(safe-area-inset-top)); left: 0.75rem; right: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; align-items: center; }
        @media (min-width: 640px) { #toastStack { left: auto; right: 1.25rem; top: 5rem; align-items: flex-end; } }
        .toast {
            pointer-events: auto; position: relative; overflow: hidden; width: 100%; max-width: 380px; gap: 0.75rem; align-items: center; padding: 0.85rem 1rem 0.95rem;
            border-radius: 1.1rem; background: rgb(var(--surface) / 0.94); border: 1px solid rgb(var(--line));
            backdrop-filter: blur(16px); box-shadow: 0 20px 40px -20px rgb(var(--shadow) / 0.55);
            animation: toast-in 0.55s var(--ease-spring) both; cursor: pointer;
        }
        .toast.is-leaving { animation: toast-out 0.3s ease forwards; }
        .toast-icon { width: 36px; height: 36px; border-radius: 0.8rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #1d170e; background: linear-gradient(135deg, rgb(var(--gold-2)), rgb(var(--gold))); }
        .toast-error .toast-icon { color: #fff; background: rgb(var(--danger)); }
        .toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; background: rgb(var(--gold)); animation: toast-bar 4.5s linear forwards; }
        .toast-error .toast-bar { background: rgb(var(--danger)); }
        @keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(0.95); } }
        @keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(0.96); } }
        @keyframes toast-bar { to { transform: scaleX(0); } }

        /* ================= Splash & kesan ================= */
        #splash { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0B0A09; color: #F3EEE6; transition: opacity 0.7s var(--ease-out), visibility 0.7s; }
        #splash.is-out { opacity: 0; visibility: hidden; }
        .splash-bar { width: 160px; height: 2px; border-radius: 999px; overflow: hidden; background: rgb(255 255 255 / 0.1); }
        .splash-bar span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, #EEDBA6, transparent); animation: splash-bar 1.2s ease-in-out infinite; }
        @keyframes splash-bar { from { transform: translateX(-120%); } to { transform: translateX(300%); } }
        .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
        .js .reveal.is-visible { opacity: 1; transform: none; }
        .float-heart { position: fixed; z-index: 110; pointer-events: none; color: #ef4444; animation: heart-fly 1.1s var(--ease-out) forwards; }
        @keyframes heart-fly { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.9) rotate(var(--r)); } }
        .confetti { position: fixed; top: -14px; z-index: 110; width: 8px; height: 14px; border-radius: 2px; pointer-events: none; animation: confetti var(--dur, 3s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
        @keyframes confetti { to { transform: translate3d(var(--dx, 0px), 105vh, 0) rotate(var(--rot, 720deg)); opacity: 0.3; } }
        .spinner { width: 18px; height: 18px; border-radius: 999px; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; display: inline-block; }
        @keyframes spin { to { transform: rotate(360deg); } }
        body.is-locked { overflow: hidden; }


        /* ================= Tema floral ================= */
        :root { --blush: 226 178 168; --blush-2: 244 214 204; --leaf: 132 150 116; }
        .dark, .force-dark { --blush: 176 112 108; --blush-2: 214 158 150; --leaf: 112 132 100; }
        .floral-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
        .floral-pattern { position: absolute; inset: 0; opacity: 0.55; background-size: 220px 220px; }
        .dark .floral-pattern { opacity: 0.35; }
        .floral-corner { position: absolute; width: clamp(200px, 38vw, 470px); aspect-ratio: 1; opacity: 0.62; animation: sway 14s ease-in-out infinite alternate; }
        .dark .floral-corner { opacity: 0.4; }
        .floral-corner svg { width: 100%; height: 100%; overflow: visible; }
        .floral-corner.is-bl { left: calc(-1 * clamp(40px, 6vw, 70px)); bottom: calc(-1 * clamp(30px, 5vw, 60px)); transform-origin: 0% 100%; }
        .floral-corner.is-tr { right: calc(-1 * clamp(40px, 6vw, 70px)); top: calc(var(--header-h) - clamp(30px, 5vw, 50px)); transform-origin: 100% 0%; }
        .floral-corner.is-tr svg { transform: scale(-1, -1); }
        @media (max-width: 639px) { .floral-corner { width: 58vw; opacity: 0.45; } .dark .floral-corner { opacity: 0.3; } }
        @keyframes sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }
        .petal { position: absolute; top: -24px; width: 12px; height: 15px; border-radius: 100% 0 100% 0; background: linear-gradient(135deg, rgb(var(--blush-2)), rgb(var(--blush))); opacity: 0.55; animation: petal-fall var(--dur, 22s) linear infinite; animation-delay: var(--delay, 0s); }
        .dark .petal { opacity: 0.35; }
        @keyframes petal-fall {
            0% { transform: translate3d(0, 0, 0) rotate(0deg); }
            25% { transform: translate3d(var(--sway, 40px), 25vh, 0) rotate(90deg); }
            50% { transform: translate3d(calc(var(--sway, 40px) * -0.5), 50vh, 0) rotate(180deg); }
            75% { transform: translate3d(var(--sway, 40px), 75vh, 0) rotate(270deg); }
            100% { transform: translate3d(0, 105vh, 0) rotate(360deg); }
        }
        .floral-accent { position: absolute; pointer-events: none; width: clamp(150px, 30vw, 330px); aspect-ratio: 1; opacity: 0.9; }
        .floral-accent svg { width: 100%; height: 100%; overflow: visible; }
        .floral-accent.is-tr { top: -18px; right: -18px; }
        .floral-accent.is-tr svg { transform: scale(-1, -1); }
        .floral-accent.is-bl { bottom: -18px; left: -18px; }
        .floral-accent.is-br { bottom: -24px; right: -24px; }
        .floral-accent.is-br svg { transform: scaleX(-1); }
        .gate-floral { opacity: 0.55; width: clamp(170px, 28vw, 340px); }
        .dark .gate-floral { opacity: 0.35; }
        .kicker { display: inline-flex; align-items: center; gap: 0.5em; }
        .kicker::before {
            content: ''; width: 0.95em; height: 0.95em; flex-shrink: 0; background: currentColor;
            -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2'/%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2' transform='rotate(72 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2' transform='rotate(144 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2' transform='rotate(216 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2' transform='rotate(288 12 12)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2'/%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2' transform='rotate(72 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2' transform='rotate(144 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2' transform='rotate(216 12 12)'/%3E%3Cellipse cx='12' cy='6.2' rx='3.3' ry='5.2' transform='rotate(288 12 12)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
        }
        .ornament { display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: rgb(var(--gold)); }
        .ornament::before, .ornament::after { content: ''; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, rgb(var(--gold) / 0.7)); }
        .ornament::after { transform: scaleX(-1); }

        /* ================= Kemasan responsif & sentuhan ================= */
        button, a, [role="button"], .chip, .tab, .tab-fab { touch-action: manipulation; }
        .btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
        .hero-title, .section-title, .dialog-title, h1, h2 { overflow-wrap: break-word; text-wrap: balance; }
        .hero-chip { max-width: 100%; }
        .hero-chip > span { min-width: 0; overflow-wrap: anywhere; }
        .stat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
        .stat-tile span { white-space: nowrap; }
        .chip:active, .segmented button:active, .lb-action:active, .icon-btn:active, .avatar-btn:active { transform: scale(0.94); }
        .tab:active, .tab-fab:active { opacity: 0.85; }
        @media (hover: none) { .photo-card:active { --lift: 0px; transform: scale(0.985); transition-duration: 0.15s; } .highlight:active { transform: scale(0.97); } }
        @media (max-width: 639px) {
            .admin-tabs { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); }
            .admin-tabs button { flex-direction: column; gap: 0.3rem; padding: 0.55rem 0.2rem; font-size: 0.68rem; }
            .admin-row { flex-wrap: wrap; }
            .admin-row > .flex-shrink-0:last-child { flex-direction: row; width: 100%; justify-content: flex-end; padding-top: 0.55rem; border-top: 1px dashed rgb(var(--line)); }
            .dialog-title { font-size: 1.2rem; }
            .bulk-actions .btn { flex-direction: column; gap: 0.25rem; padding: 0.5rem 0.25rem; font-size: 0.7rem; min-height: 52px; }
            .lb-action { padding: 0.5rem 0.8rem; }
        }
        @media (max-height: 500px) and (orientation: landscape) {
            .hero { min-height: 0; }
            .hero > .relative { min-height: 0 !important; padding-top: 1.5rem; padding-bottom: 1.5rem; }
            .gate-visual { min-height: 180px; }
            .lb-bottom { padding-top: 0.4rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
            .lb-top { padding-top: calc(0.4rem + env(safe-area-inset-top)); padding-bottom: 0.4rem; }
            #lightboxCaption { display: none; }
            .lb-aside { height: 88dvh; }
            .tab-fab { margin-top: -1.1rem; }
            .fab-btn { width: 48px; height: 48px; }
        }
        ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
            .animate-scroll-up, .animate-scroll-down { animation-duration: var(--speed, 60s) !important; animation-iteration-count: infinite !important; }
            .petal { display: none; }
            .js .reveal { opacity: 1; transform: none; }
        }
    
