:root {
    --bg: #f7f6f3;
    --bg-subtle: #f0efeb;
    --bg-card: rgba(255, 255, 255, 0.7);
    --white: #ffffff;

    --warm-100: #f5f0ea;
    --warm-200: #e8dfd4;
    --warm-300: #d4c5b3;
    --warm-400: #bfa88c;
    --warm-500: #a38d6e;
    --warm-600: #8a7459;

    --ink: #1a1816;
    --ink-80: #3a3632;
    --ink-60: #5c5753;
    --ink-40: #8a8580;
    --ink-25: #b5b0ab;
    --ink-15: #d4d0cc;
    --ink-08: #e8e5e2;
    --ink-04: #f2f0ee;

    --accent: #c4a882;
    --accent-light: #dccfbc;
    --accent-dark: #a08660;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-3: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-4: 0 24px 64px rgba(0, 0, 0, 0.1);
    --shadow-warm: 0 8px 30px rgba(164, 134, 96, 0.12);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Assistant', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══ BACKGROUND ═══ */
.bg-wash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-wash::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    top: -20%;
    right: -15%;
    background: radial-gradient(circle, rgba(196, 168, 130, 0.08) 0%, transparent 70%);
    animation: float 30s ease-in-out infinite alternate;
}

.bg-wash::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(180, 170, 155, 0.06) 0%, transparent 70%);
    animation: float 22s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(25px, -20px);
    }
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ PAGE ═══ */
.page {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 0 auto;
    padding: 56px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ═══ MONOGRAM ═══ */
.mono {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--ink-15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    background: var(--white);
    box-shadow: var(--shadow-2);
    position: relative;
    opacity: 0;
    animation: reveal 0.7s var(--ease-out) 0.1s forwards;
}

.mono-text {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mono-text .amp {
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 0;
}

.mono-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--ink-08);
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.15;
    }
}

/* ═══ HEADER ═══ */
.header {
    text-align: center;
    margin-bottom: 36px;
    opacity: 0;
    animation: reveal 0.8s var(--ease-out) 0.2s forwards;
}

.header h1 {
    font-family: 'Assistant', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 15.5px;
    color: var(--ink-60);
    font-weight: 300;
    line-height: 1.8;
    max-width: 420px;
    margin: 0 auto;
}

.rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.rule span {
    width: 28px;
    height: 1px;
    background: var(--ink-15);
}

.rule i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
}

/* ═══ STEPS ═══ */
.steps {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-bottom: 32px;
    opacity: 0;
    animation: reveal 0.75s var(--ease-out) 0.32s forwards;
}

.stp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.stp-n {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.5s var(--ease);
    z-index: 2;
}

.stp.on .stp-n {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 2px 10px rgba(26, 24, 22, 0.18);
}

.stp.ok .stp-n {
    background: var(--accent);
    color: #fff;
}

.stp.off .stp-n {
    background: var(--white);
    color: var(--ink-25);
    border: 1.5px solid var(--ink-08);
}

.stp-t {
    font-size: 11px;
    color: var(--ink-40);
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.stp.on .stp-t {
    color: var(--ink);
    font-weight: 600;
}

.stp-line {
    flex: 1;
    height: 1.5px;
    background: var(--ink-08);
    margin: 0 5px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.stp-line-inner {
    position: absolute;
    inset: 0;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.8s var(--ease);
}

.stp-line.go .stp-line-inner {
    width: 100%;
}

/* ═══ CARD ═══ */
.card {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ink-08);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    opacity: 0;
    animation: reveal 0.85s var(--ease-out) 0.42s forwards;
    transition: box-shadow 0.5s var(--ease);
}

.card:hover {
    box-shadow: var(--shadow-3);
}

/* ═══ COVER PHOTO ═══ */
.cover-area {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--warm-100);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s var(--ease);
}

.cover-area:hover {
    background: var(--warm-200);
}

.cover-area:hover .cover-prompt {
    opacity: 1;
}

.cover-area:hover .cover-ico {
    transform: translateY(-2px);
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: transform 0.6s var(--ease);
}

.cover-area:hover .cover-img {
    transform: scale(1.02);
}

.cover-img.on {
    display: block;
}

.cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    transition: all 0.4s var(--ease);
}

.cover-placeholder.hidden {
    display: none;
}

.cover-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--ink-08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--ease-spring);
    box-shadow: var(--shadow-1);
}

.cover-ico svg {
    width: 18px;
    height: 18px;
    color: var(--ink-40);
}

.cover-label {
    font-size: 13px;
    color: var(--ink-40);
    font-weight: 500;
}

.cover-hint {
    font-size: 11px;
    color: var(--ink-25);
    font-weight: 300;
}

/* Overlay prompt when cover is set */
.cover-prompt {
    position: absolute;
    inset: 0;
    background: rgba(26, 24, 22, 0.35);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.cover-prompt.always-hidden {
    display: none;
}

.cover-prompt svg {
    width: 16px;
    height: 16px;
}

/* Event bar — overlays bottom of cover */
.ev-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--ink-04);
}

.ev-name {
    font-family: 'Assistant', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.ev-name .ico {
    font-size: 13px;
    opacity: 0.6;
}

.ev-date {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    color: var(--ink-40);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ═══ DROP ZONE ═══ */
.dz {
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.5s var(--ease);
}

.dz-border {
    position: absolute;
    inset: 16px;
    border: 1.5px dashed var(--ink-15);
    border-radius: var(--r-md);
    pointer-events: none;
    transition: all 0.5s var(--ease);
}

.dz:hover .dz-border {
    inset: 12px;
    border-color: var(--accent-light);
}

.dz:hover {
    background: rgba(196, 168, 130, 0.03);
}

.dz.over {
    background: rgba(196, 168, 130, 0.06);
}

.dz.over .dz-border {
    border-color: var(--accent);
    border-style: solid;
    inset: 10px;
}

.dz-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--warm-100);
    border: 1px solid var(--warm-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s var(--ease-spring);
}

.dz:hover .dz-ico {
    transform: translateY(-4px);
    box-shadow: var(--shadow-warm);
    border-color: var(--accent-light);
}

.dz-ico svg {
    width: 24px;
    height: 24px;
    color: var(--warm-500);
    transition: color 0.4s var(--ease);
}

.dz:hover .dz-ico svg {
    color: var(--accent-dark);
}

.dz-h {
    font-family: 'Assistant', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
    letter-spacing: -0.2px;
}

.dz-sub {
    font-size: 14px;
    color: var(--ink-40);
    font-weight: 300;
    margin-bottom: 20px;
}

.dz-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    background: var(--white);
    border: 1.5px solid var(--ink-15);
    border-radius: 100px;
    color: var(--ink-80);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    transition: all 0.35s var(--ease);
    letter-spacing: 0.2px;
}

.dz-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 24, 22, 0.12);
}

.chips {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
}

.chip {
    padding: 2px 9px;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-40);
    background: var(--ink-04);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ═══ PREVIEW ═══ */
.pv {
    padding: 0 20px 20px;
    display: none;
}

.pv.on {
    display: block;
    animation: fadeUp 0.4s var(--ease-out) forwards;
}

.pv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pv-count {
    font-size: 13px;
    color: var(--ink-60);
}

.pv-count b {
    color: var(--ink);
    font-weight: 700;
}

.pv-clear {
    font-size: 12px;
    color: var(--ink-40);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Assistant', sans-serif;
    font-weight: 500;
    transition: color 0.3s var(--ease);
    padding: 4px 6px;
    border-radius: 4px;
}

.pv-clear:hover {
    color: #c0392b;
}

.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 5px;
}

.pv-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: var(--bg-subtle);
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.pv-thumb:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-3);
    z-index: 5;
}

.pv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.pv-thumb:hover img {
    transform: scale(1.1);
}

.pv-thumb .xb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.pv-thumb:hover .xb {
    opacity: 1;
}

.pv-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-04);
    border: 1.5px dashed var(--ink-15);
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    color: var(--ink-40);
    font-weight: 600;
}

/* ═══ PROGRESS ═══ */
.prg {
    padding: 0 20px 20px;
    display: none;
}

.prg.on {
    display: block;
    animation: fadeUp 0.35s var(--ease-out) forwards;
}

.prg-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.prg-label {
    font-size: 13px;
    color: var(--ink-60);
    font-weight: 400;
}

.prg-pct {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: var(--accent-dark);
    font-weight: 700;
}

.prg-track {
    width: 100%;
    height: 4px;
    background: var(--ink-04);
    border-radius: 100px;
    overflow: hidden;
}

.prg-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-light), var(--accent-dark), var(--accent));
    background-size: 200% 100%;
    border-radius: 100px;
    transition: width 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}

.prg-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%
    }

    50%,
    100% {
        left: 100%
    }
}

/* ═══ SUCCESS ═══ */
.done-view {
    display: none;
    text-align: center;
    padding: 52px 32px;
}

.done-view.on {
    display: block;
    animation: fadeUp 0.5s var(--ease-out) forwards;
}

.done-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    animation: pop 0.45s var(--ease-spring) forwards;
}

.done-check svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

@keyframes pop {
    0% {
        transform: scale(0);
        opacity: 0
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

.done-view h2 {
    font-family: 'Assistant', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.done-view p {
    font-size: 14.5px;
    color: var(--ink-60);
    font-weight: 300;
    line-height: 1.7;
}

/* ═══ CTA ═══ */
.cta-area {
    width: 100%;
    margin-top: 22px;
    opacity: 0;
    animation: reveal 0.8s var(--ease-out) 0.55s forwards;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    font-size: 15.5px;
    font-weight: 700;
    font-family: 'Assistant', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease);
    box-shadow: 0 4px 16px rgba(26, 24, 22, 0.12);
    letter-spacing: 0.2px;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26, 24, 22, 0.18);
}

.cta:active {
    transform: translateY(0);
}

.cta:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.cta .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transform: scale(0);
    animation: rip 0.6s linear;
    pointer-events: none;
}

@keyframes rip {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.cta .arr {
    font-size: 16px;
    transition: transform 0.3s var(--ease-spring);
}

.cta:hover .arr {
    transform: translateX(-4px);
}

/* Sub-link */
.sub {
    text-align: center;
    margin-top: 16px;
    opacity: 0;
    animation: reveal 0.7s var(--ease-out) 0.65s forwards;
}

.sub p {
    font-size: 12.5px;
    color: var(--ink-40);
    font-weight: 300;
}

.sub a {
    color: var(--ink-60);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}

.sub a:hover {
    border-bottom-color: var(--ink-60);
}

/* Footer */
.ft {
    margin-top: 48px;
    text-align: center;
    opacity: 0;
    animation: reveal 0.6s var(--ease-out) 0.8s forwards;
}

.ft p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: var(--ink-25);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.ft p span {
    color: var(--ink-40);
}

/* ═══ TOAST ═══ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--ink);
    color: #fff;
    border-radius: 100px;
    padding: 11px 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-4);
    z-index: 100;
    transition: transform 0.5s var(--ease-spring);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Assistant', sans-serif;
}

.toast.on {
    transform: translateX(-50%) translateY(0);
}

/* ═══ KEYFRAMES ═══ */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 600px) {
    .page {
        padding: 36px 14px 60px;
    }

    .dz {
        padding: 36px 18px;
    }

    .ev-bar {
        flex-direction: column;
        gap: 2px;
        text-align: center;
        padding: 10px 16px;
    }

    .pv-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        max-width: 100%;
    }

    .stp-t {
        font-size: 10px;
    }

    .cover-area {
        height: 140px;
    }
}

.sr-only {
    display: none;
}