:root {
    --primary: #ff4d8d;
    --secondary: #ffd166;
    --ink: #181824;
    --muted: #696a7c;
    --paper: #ffffff;
    --line: rgba(24, 24, 36, 0.12);
    --shadow: 0 24px 70px rgba(19, 22, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.85), transparent 28%),
        linear-gradient(135deg, #fff7fb, #edf7ff 45%, #fff8df);
}

a {
    color: inherit;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.creator-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 28px;
    align-items: center;
    padding: 42px 0;
}

.intro-panel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    padding: 42px;
    border-radius: 8px;
    color: white;
    background:
        linear-gradient(rgba(13, 18, 38, 0.35), rgba(13, 18, 38, 0.58)),
        url("https://images.unsplash.com/photo-1530103862676-de8c9debad1d?auto=format&fit=crop&w=1200&q=80") center/cover;
    box-shadow: var(--shadow);
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 800;
}

.eyebrow,
.wish-type {
    margin: 26px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
}

.intro-panel h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 0.95;
}

.intro-copy {
    max-width: 540px;
    font-size: 1.08rem;
    line-height: 1.7;
}

.floating-preview {
    position: absolute;
    right: 34px;
    bottom: 34px;
    width: min(320px, calc(100% - 68px));
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.floating-preview span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
}

.floating-preview strong {
    font-size: 1.45rem;
}

.form-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.form-panel h2 {
    margin: 0 0 22px;
    font-size: 1.7rem;
}

.wish-form {
    display: grid;
    gap: 16px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 8px;
    color: #35364a;
    font-size: 0.92rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: white;
    font: inherit;
}

textarea {
    resize: vertical;
    line-height: 1.55;
}

input[type="color"] {
    padding: 4px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid rgba(24, 24, 36, 0.15);
    border-radius: 8px;
    color: var(--ink);
    background: white;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.primary {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.button.ghost {
    background: rgba(255, 255, 255, 0.25);
}

.alert {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 8px;
    line-height: 1.5;
}

.alert.error {
    color: #8d102b;
    background: #ffe8ee;
}

.alert.success {
    color: #124b33;
    background: #e7fff4;
}

.wish-body {
    overflow-x: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary), white 68%), color-mix(in srgb, var(--secondary), white 58%));
}

.theme-gold {
    background: linear-gradient(135deg, #fff8d9, #fff0f5, #fffef8);
}

.theme-ocean {
    background: linear-gradient(135deg, #e1fbff, #f6fcff, #ddf2ff);
}

.theme-garden {
    background: linear-gradient(135deg, #efffe9, #fff8f0, #e7fff6);
}

.theme-midnight {
    background: linear-gradient(135deg, #11142b, #352057, #0e2033);
}

.theme-sunrise {
    background: linear-gradient(135deg, #fff1d5, #ffe7ef, #eaf8ff);
}

.wish-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 34px 16px;
}

.wish-card {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    overflow: hidden;
    padding: clamp(20px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    animation: riseIn 800ms ease both;
}

.theme-midnight .wish-card {
    color: white;
    background: rgba(18, 20, 42, 0.88);
}

.logo-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.name-logo {
    min-width: 0;
    padding: 13px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary), white 82%);
}

.receiver {
    background: color-mix(in srgb, var(--secondary), white 76%);
}

.name-logo span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.name-logo strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: clamp(1rem, 4vw, 1.45rem);
}

.heart-badge {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--primary);
    animation: pulse 1.35s ease-in-out infinite;
}

.wish-image,
.image-placeholder {
    width: min(430px, 100%);
    aspect-ratio: 4 / 3;
    margin: 28px auto 18px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.image-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.9), transparent 23%),
        linear-gradient(135deg, var(--primary), var(--secondary));
}

.image-placeholder span {
    font-size: 6rem;
    animation: float 2.8s ease-in-out infinite;
}

.wish-type {
    color: var(--primary);
}

.wish-card h1 {
    margin: 0;
    font-size: clamp(2.1rem, 7vw, 5.2rem);
    line-height: 1;
    overflow-wrap: anywhere;
}

.message {
    max-width: 620px;
    margin: 22px auto;
    color: #424357;
    font-size: clamp(1.02rem, 2.5vw, 1.22rem);
    line-height: 1.75;
}

.theme-midnight .message,
.theme-midnight .name-logo span {
    color: rgba(255, 255, 255, 0.74);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti i {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 16px;
    opacity: 0.85;
    animation: confettiFall linear infinite;
}

.not-found {
    min-height: 100vh;
    display: grid;
    place-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.08);
    }
}

@keyframes float {
    50% {
        transform: translateY(-12px) rotate(4deg);
    }
}

@keyframes confettiFall {
    to {
        transform: translateY(110vh) rotate(720deg);
    }
}

@media (max-width: 900px) {
    .creator-shell {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .intro-panel {
        min-height: 520px;
    }
}

@media (max-width: 620px) {
    .shell {
        width: min(100% - 22px, 1180px);
    }

    .creator-shell {
        padding: 12px 0;
        gap: 12px;
    }

    .intro-panel,
    .form-panel {
        padding: 20px;
    }

    .intro-panel {
        min-height: 460px;
    }

    .grid.two,
    .logo-row {
        grid-template-columns: 1fr;
    }

    .heart-badge {
        margin: 0 auto;
    }

    .actions .button {
        width: 100%;
    }
}

