:root {
    --bg-1: #fff5f8;
    --bg-2: #f0f4ff;
    --bg-3: #ecfeff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --text: #1e1b4b;
    --muted: #64748b;
    --primary: #7c3aed;
    --primary-2: #ec4899;
    --accent: #06b6d4;
    --accent-warm: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --border: rgba(148, 163, 184, 0.25);
    --radius: 20px;
    --radius-lg: 28px;
    --shadow: 0 20px 50px rgba(124, 58, 237, 0.12);
    --shadow-btn: 0 10px 30px rgba(236, 72, 153, 0.35);
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Nunito', system-ui, sans-serif;
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
    --gradient-soft: linear-gradient(135deg, #ede9fe, #fce7f3, #cffafe);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-1);
    line-height: 1.65;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(236, 72, 153, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(124, 58, 237, 0.15), transparent),
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(6, 182, 212, 0.12), transparent),
        linear-gradient(180deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3));
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

.container { width: min(1140px, calc(100% - 1.5rem)); margin: 0 auto; }
.container-narrow { width: min(720px, calc(100% - 1.5rem)); margin: 0 auto; }

/* ── Header ── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 70px;
}
.brand {
    display: flex; align-items: center; gap: .65rem;
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.15rem;
    color: var(--text); text-decoration: none;
}
.brand img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    animation: float 4s ease-in-out infinite;
}
.site-nav { display: flex; gap: .5rem; align-items: center; }
.site-nav a {
    color: var(--text); font-weight: 700; text-decoration: none;
    padding: .55rem 1rem; border-radius: 999px;
    transition: all .25s ease;
}
.site-nav a:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    transform: translateY(-1px);
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: rgba(124, 58, 237, 0.1); border: none; cursor: pointer;
    padding: .6rem; border-radius: 12px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2.5px;
    background: var(--primary); border-radius: 2px; transition: .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-main {
    min-height: calc(100vh - 140px);
    position: relative;
    z-index: 1;
}
.site-footer {
    margin-top: 3rem; padding: 2rem 0;
    text-align: center; color: var(--muted);
    border-top: 1px solid var(--border);
}
.footer-sub { margin: .25rem 0 0; font-size: .9rem; }

/* ── Hero full width ── */
.hero-full {
    padding: 2.5rem 0 2rem;
    text-align: center;
}
.hero-full-inner {
    max-width: 680px;
    margin: 0 auto;
    animation: fadeUp .6s ease both;
}
.hero-full-inner h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 6vw, 3rem);
    line-height: 1.12;
    margin: .65rem 0;
}
.hero-full-inner p {
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 auto;
    max-width: 42ch;
}
.hero-stats-center {
    justify-content: center;
    margin: 1.5rem auto;
}
.hero-cta {
    margin-top: .5rem;
    min-width: min(100%, 280px);
}

.hero {
    padding: 3rem 0 2rem;
    position: relative;
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 2rem; align-items: center;
}
.hero-copy { animation: fadeUp .7s ease both; }
.hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.08; margin: .6rem 0;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p { color: var(--muted); font-size: 1.08rem; max-width: 48ch; }
.hero-stats {
    display: flex; gap: .85rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.hero-stats div {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 18px; padding: .9rem 1.15rem; min-width: 100px;
    box-shadow: var(--shadow);
    animation: fadeUp .7s ease both;
    transition: transform .25s ease;
}
.hero-stats div:nth-child(2) { animation-delay: .1s; }
.hero-stats div:nth-child(3) { animation-delay: .2s; }
.hero-stats div:hover { transform: translateY(-4px) scale(1.02); }
.hero-stats strong {
    display: block; font-family: var(--font-display);
    font-size: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { color: var(--muted); font-size: .82rem; font-weight: 600; }

/* hero-visual removed — full-width hero used instead */

.section { padding: 2.5rem 0; }
.section-alt {
    background: rgba(255, 255, 255, 0.45);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-head { margin-bottom: 1.5rem; }
.section-head h1, .section-head h2 {
    font-family: var(--font-display);
    margin: 0 0 .35rem; letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); margin: 0; font-weight: 600; }

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .4rem .85rem; border-radius: 999px;
    background: linear-gradient(135deg, #ede9fe, #fce7f3);
    color: var(--primary); font-size: .78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em;
    border: 1px solid rgba(124,58,237,.15);
}
.badge-success { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.pill {
    display: inline-flex; padding: .35rem .8rem; border-radius: 999px;
    background: rgba(124,58,237,.1); color: var(--primary);
    font-size: .8rem; font-weight: 800;
}
.pill-sm { font-size: .72rem; }

/* ── Cards & grids ── */
.campaign-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.campaign-card, .gallery-card, .card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.card {
    backdrop-filter: blur(8px);
    background: var(--surface);
}
.campaign-card {
    text-decoration: none; color: inherit;
    animation: fadeUp .6s ease both;
}
.campaign-card:nth-child(2) { animation-delay: .08s; }
.campaign-card:nth-child(3) { animation-delay: .16s; }
.campaign-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow);
    text-decoration: none;
}
.campaign-card-cover {
    min-height: 200px; max-height: 320px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-soft);
    padding: .75rem;
}
.campaign-card-cover img {
    width: auto; height: auto;
    max-width: 100%; max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.12));
    transition: transform .35s ease;
}
.campaign-card:hover .campaign-card-cover img { transform: scale(1.03); }
.cover-placeholder {
    font-family: var(--font-display);
    font-weight: 800; font-size: 1.3rem;
    color: var(--primary); opacity: .6;
}
.campaign-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.campaign-card-body h3 {
    font-family: var(--font-display);
    margin: 0 0 .35rem;
}
.campaign-card-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.campaign-meta {
    display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap;
}
.campaign-meta span {
    font-size: .78rem; font-weight: 700;
    padding: .25rem .6rem; border-radius: 999px;
    background: rgba(6,182,212,.1); color: #0e7490;
}

.back-link {
    display: inline-flex; align-items: center; gap: .3rem;
    margin-bottom: .6rem; color: var(--muted); font-weight: 700;
    transition: color .2s;
}
.back-link:hover { color: var(--primary); }
.lead { color: var(--muted); font-size: 1.05rem; }
.campaign-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.campaign-actions-top { display: flex; gap: .6rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    border: none; border-radius: 14px; padding: .8rem 1.25rem;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    cursor: pointer; text-decoration: none;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
    position: relative; overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.btn:hover::after { transform: translateX(100%); }
.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 36px rgba(236, 72, 153, 0.45);
    color: #fff; text-decoration: none;
}
.btn-secondary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff; box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}
.btn-secondary:hover { transform: translateY(-2px); color: #fff; }
.btn-outline {
    background: rgba(255,255,255,.8);
    border: 2px solid rgba(124,58,237,.25);
    color: var(--primary);
}
.btn-outline:hover {
    background: rgba(124,58,237,.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    text-decoration: none; color: var(--primary);
}
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(124,58,237,.08); color: var(--primary); text-decoration: none; }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-glow { animation: pulseGlow 2.5s ease-in-out infinite; }
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.btn-danger:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.45);
}

/* ── Modal konfirmasi ── */
body.fm-modal-open { overflow: hidden; }
.fm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.fm-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.fm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.fm-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(400px, calc(100% - 2rem));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-modal-card {
    width: 100%;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.35rem;
    text-align: center;
    box-shadow: 0 24px 60px rgba(30, 27, 75, 0.25);
    transform: scale(.9) translateY(16px);
    transition: transform .28s cubic-bezier(.34, 1.2, .64, 1);
}
.fm-modal.open .fm-modal-card {
    transform: scale(1) translateY(0);
}
.fm-modal-icon { font-size: 2.25rem; margin-bottom: .5rem; line-height: 1; }
.fm-modal-title {
    font-family: var(--font-display);
    margin: 0 0 .5rem;
    font-size: 1.25rem;
    color: var(--text);
}
.fm-modal-message {
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 1.35rem;
    line-height: 1.55;
    font-size: .95rem;
}
.fm-modal-actions {
    display: flex;
    gap: .65rem;
    justify-content: center;
    flex-wrap: wrap;
}
.fm-modal-actions .btn {
    min-width: 130px;
    flex: 1 1 auto;
    max-width: 160px;
}

label {
    display: block; font-weight: 800; margin-bottom: 1rem;
    font-family: var(--font-display); font-size: .92rem;
}
label input, label textarea, label select {
    display: block; width: 100%; margin-top: .45rem;
    border: 2px solid var(--border); border-radius: 14px;
    padding: .85rem 1rem;
    font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    background: rgba(255,255,255,.9);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
label input:focus, label textarea:focus, label select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
    transform: translateY(-1px);
}

.upload-zone {
    border: 2px dashed rgba(124,58,237,.35);
    border-radius: 18px; padding: 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(237,233,254,.5), rgba(252,231,243,.5));
    transition: all .25s ease;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.is-dragover {
    border-color: var(--primary);
    background: rgba(124,58,237,.08);
    transform: scale(1.01);
}
.upload-zone-icon { font-size: 2rem; margin-bottom: .35rem; }
.upload-zone p { margin: 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.upload-zone input[type="file"] { display: none; }

.photo-upload-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-bottom: .5rem;
}
.photo-upload-actions .btn {
    padding: .85rem .65rem;
    font-size: .88rem;
    line-height: 1.25;
    min-height: 52px;
}
.photo-upload-hint {
    margin: 0 0 .75rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.45;
}
#makerCanvasSection {
    scroll-margin-top: 88px;
}
.maker-canvas.is-highlight {
    animation: canvasHighlight .9s ease;
}
@keyframes canvasHighlight {
    0% { box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06); }
    35% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.35), 0 12px 40px rgba(124, 58, 237, 0.2); }
    100% { box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06); }
}

.alert {
    padding: 1rem 1.1rem; border-radius: 16px; margin-bottom: 1rem;
    font-weight: 700; border: 1px solid transparent;
}
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-success { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.alert-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.empty-state {
    padding: 2.5rem; text-align: center; color: var(--muted);
    background: var(--surface);
    border: 2px dashed rgba(124,58,237,.2);
    border-radius: var(--radius-lg);
}
.text-muted { color: var(--muted); }

/* ── Twibbon maker ── */
.twibbon-maker { margin-top: 1.25rem; }
.maker-steps {
    display: flex; gap: .75rem; margin-bottom: 1.25rem;
}
.maker-step {
    flex: 1; padding: .85rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,.6);
    border: 2px solid var(--border);
    font-family: var(--font-display); font-weight: 700; font-size: .88rem;
    color: var(--muted);
    transition: all .3s ease;
    display: flex; align-items: center; gap: .5rem;
}
.maker-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(124,58,237,.1);
    font-size: .8rem;
}
.maker-step.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(237,233,254,.9), rgba(252,231,243,.9));
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(124,58,237,.15);
}
.maker-step.active .maker-step-num {
    background: var(--gradient-main);
    color: #fff;
}
.maker-step.done { border-color: var(--success); color: var(--success); }
.maker-step.done .maker-step-num { background: var(--success); color: #fff; }

.maker-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.25rem; }
.maker-form, .maker-canvas { padding: 1.35rem; }
.maker-form h2, .maker-canvas h2 {
    font-family: var(--font-display);
    margin-top: 0; font-size: 1.2rem;
}
.caption-card {
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(237,233,254,.65), rgba(252,231,243,.65));
    border: 2px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
    padding: .85rem;
    overflow: hidden;
}
.caption-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .6rem;
}
.caption-card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .92rem;
    color: var(--text);
}
.caption-card-text {
    display: block;
    width: 100%;
    min-height: 96px;
    max-height: 160px;
    padding: .85rem 1rem;
    border: none;
    border-radius: 12px;
    background: var(--surface-solid);
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text);
    resize: none;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.06);
}
.caption-card-text:focus {
    outline: 2px solid rgba(124, 58, 237, 0.25);
}

.canvas-wrap {
    position: relative;
    width: min(100%, calc(min(75vh, 720px) * var(--frame-w, 1) / var(--frame-h, 1)));
    max-width: 100%;
    aspect-ratio: var(--frame-w, 1) / var(--frame-h, 1);
    max-height: min(75vh, 720px);
    margin-inline: auto;
    background: linear-gradient(145deg, #1e1b4b, #312e81);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0,0,0,.3), 0 12px 40px rgba(30,27,75,.25);
}
#twibbonCanvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}
.canvas-controls {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.55), rgba(252, 231, 243, 0.5));
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
}
.canvas-controls label input[type="range"] {
    width: 100%; accent-color: var(--primary);
    margin-top: .5rem;
}
.move-hint {
    color: var(--muted); font-size: .85rem; margin: .65rem 0 0;
    font-weight: 600;
}
.zoom-label {
    font-family: var(--font-display); font-weight: 700; font-size: .9rem;
    margin-bottom: 0;
}
.canvas-reset-btn {
    margin-top: .85rem;
    min-height: 46px;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.85);
    font-size: .92rem;
}
.canvas-reset-btn:hover {
    background: rgba(124, 58, 237, 0.08);
}

/* ── Gallery ── */
.gallery-thumb {
    display: flex; align-items: center; justify-content: center;
    min-height: 200px; max-height: 320px;
    background: var(--gradient-soft); padding: .5rem;
}
.gallery-thumb img {
    max-width: 100%; max-height: 300px;
    width: auto; height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.1));
}
.gallery-card-body { padding: 1rem; }
.gallery-card-body h3 { font-family: var(--font-display); margin: .3rem 0 .15rem; }
.gallery-from { color: var(--muted); font-size: .88rem; margin: 0; }
.gallery-caption { font-size: .86rem; color: #475569; margin: .45rem 0; }
.gallery-actions { display: flex; gap: .45rem; flex-wrap: wrap; }

/* ── Result page ── */
.result-page .result-card {
    padding: 1.75rem;
    animation: fadeUp .6s ease both;
    border: 1px solid rgba(124,58,237,.12);
}
.result-success { text-align: center; margin-bottom: 1.25rem; }
.result-success h1 { font-family: var(--font-display); font-size: 1.6rem; }
.result-image-wrap {
    border-radius: 20px; overflow: hidden;
    background: var(--gradient-soft);
    display: flex; align-items: center; justify-content: center;
    padding: .75rem;
    box-shadow: var(--shadow);
}
.result-image {
    width: auto; max-width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    animation: fadeUp .8s .2s ease both;
}
.confetti-burst {
    font-size: 2.5rem;
    animation: float 2s ease-in-out infinite;
    margin-bottom: .5rem;
}
.caption-box { margin: 1.25rem 0; }
.result-actions { display: flex; gap: .65rem; flex-wrap: wrap; justify-content: center; }
.share-section {
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px dashed var(--border);
    text-align: center;
}
.share-section h3 { font-family: var(--font-display); }
.share-buttons { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.share-btn {
    border: none; border-radius: 12px; padding: .7rem 1.1rem;
    font-family: var(--font-display); font-weight: 700;
    color: #fff; cursor: pointer; text-decoration: none;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.share-btn:hover { transform: translateY(-3px) scale(1.05); text-decoration: none; color: #fff; }
.share-wa { background: linear-gradient(135deg, #22c55e, #16a34a); }
.share-fb { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.share-tw { background: linear-gradient(135deg, #334155, #0f172a); }
.share-tg { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.share-native { background: linear-gradient(135deg, #a855f7, #7c3aed); }

/* ── Pagination ── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a {
    min-width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 12px; background: var(--surface-solid);
    border: 1px solid var(--border);
    color: var(--text); text-decoration: none; font-weight: 800;
    transition: all .2s ease;
}
.pagination a:hover { transform: translateY(-2px); border-color: var(--primary); }
.pagination a.active {
    background: var(--gradient-main); color: #fff; border-color: transparent;
}
.pagination-ellipsis { color: var(--muted); padding: 0 .25rem; align-self: center; }

/* ── Toast & loading ── */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%) translateY(24px);
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    color: #fff; padding: .85rem 1.25rem; border-radius: 999px;
    font-weight: 700; font-family: var(--font-display);
    opacity: 0; pointer-events: none;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    z-index: 200; box-shadow: 0 12px 40px rgba(30,27,75,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: linear-gradient(135deg, #991b1b, #dc2626); }

.spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin .65s linear infinite; vertical-align: middle;
}
.canvas-wrap.is-loading::after {
    content: '✨ Memuat bingkai...';
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: rgba(30, 27, 75, 0.75);
    color: #fff; font-weight: 800;
    font-family: var(--font-display);
    backdrop-filter: blur(4px);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(236, 72, 153, 0.35); }
    50% { box-shadow: 0 10px 40px rgba(124, 58, 237, 0.55); }
}

.reveal {
    animation: fadeUp .55s ease both;
}

/* ── Homepage: cara pakai & recent ── */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.how-step {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.how-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.how-step-icon {
    width: 52px; height: 52px;
    margin: 0 auto .75rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--gradient-soft);
    font-size: 1.5rem;
}
.how-step h3 {
    font-family: var(--font-display);
    margin: 0 0 .35rem;
    font-size: 1rem;
}
.how-step p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
}
.home-cta-band {
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.15);
    text-align: center;
}
.home-cta-band h2 {
    font-family: var(--font-display);
    margin: 0 0 .5rem;
}
.home-cta-band p {
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 1rem;
}
.home-cta-actions {
    display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap;
}
.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ── Install / auth ── */
.install-body, .auth-body {
    min-height: 100vh; display: grid; place-items: center; padding: 1rem;
}
.install-card, .auth-card {
    width: min(520px, 100%);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow);
}
.install-head, .auth-card { text-align: center; }
.install-head h1, .auth-card h1 { font-family: var(--font-display); }
.form-grid h3 { font-family: var(--font-display); margin: 1rem 0 .25rem; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.form-actions { display: flex; gap: .75rem; }
code { background: rgba(124,58,237,.1); padding: .15rem .4rem; border-radius: 6px; color: var(--primary); }

/* ── Mobile ── */
@media (max-width: 900px) {
    .hero-grid, .maker-grid, .form-row { grid-template-columns: 1fr; }
    .maker-steps { flex-direction: column; }
    .maker-canvas { order: 2; }
    .maker-form { order: 1; }
    .photo-upload-actions { grid-template-columns: 1fr; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column; padding: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-header .header-inner { position: relative; }
    .hero { padding-top: 2rem; }
    .hero-full { padding-top: 1.75rem; }
    .hero-stats, .hero-stats-center { justify-content: center; }
    .result-actions .btn { flex: 1 1 100%; }
    .caption-card-header { flex-wrap: wrap; }
    .container { width: calc(100% - 1.25rem); }
}
