@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700&family=Noto+Serif+Georgian:wght@500;700&display=swap');

:root {
    --accent: #f49bb9;
    --accent-soft: #ffb5cd;
    --on-accent: #301927;
    --base: #1a0f1c;
    --bgA: #5a2342;
    --bgB: #3a1f5c;
    --bg-image: none;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Noto Sans Georgian', sans-serif;
    color: white;
    background: var(--base);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 15px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(15,10,18,.55), rgba(15,10,18,.8)),
        var(--bg-image),
        radial-gradient(circle at 20% 15%, var(--bgA) 0%, transparent 55%),
        radial-gradient(circle at 85% 85%, var(--bgB) 0%, transparent 55%),
        var(--base);
    background-size: cover;
    background-position: center;
}

.container {
    width: 100%;
    max-width: 620px;
    text-align: center;
    padding: 40px 28px;
    background: rgba(255,255,255,.09);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: appear .6s ease;
}

@keyframes appear {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    font-family: 'Noto Serif Georgian', serif;
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.25;
    margin-bottom: 15px;
}

h2 {
    font-family: 'Noto Serif Georgian', serif;
    font-size: 27px;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    color: #f3e4ee;
    line-height: 1.7;
    margin-bottom: 18px;
}

.to { color: var(--accent-soft); font-weight: 600; margin-bottom: 8px; }
.hint { color: var(--accent-soft); font-size: 14px; }

.heart {
    color: var(--accent);
    font-size: 36px;
    margin-bottom: 10px;
    animation: beat 1.6s ease-in-out infinite;
}
@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 28px;
    flex-wrap: wrap;
}

button {
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    transition: .25s;
}
button:hover { transform: translateY(-3px); }

.yes, .next { background: var(--accent); color: var(--on-accent); }
.next { margin-top: 25px; }
.no {
    background: rgba(255,255,255,.17);
    color: white;
    border: 1px solid rgba(255,255,255,.4);
}
.back {
    background: transparent;
    border: 1px solid white;
    color: white;
    margin-top: 25px;
    margin-right: 8px;
}

.hidden { display: none !important; }

.movie-list, .food-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    text-align: left;
}

.option {
    padding: 14px 15px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: .2s;
}
.option:hover { background: rgba(255,255,255,.16); }
.option.selected {
    background: rgba(255,255,255,.18);
    background: color-mix(in srgb, var(--accent) 28%, transparent);
    border-color: var(--accent);
}
.option input {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.option small { display: block; color: #d9c3d0; font-size: 13px; }

input[type="date"], input[type="time"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 54px;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
    padding: 14px;
    margin: 10px 0 20px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    color: white;
    font-family: inherit;
    font-size: 16px;
    color-scheme: dark;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.2em;
}

.field { text-align: left; margin-top: 15px; min-width: 0; }
.field label { font-weight: 600; }

.no-image { margin: 15px 0; font-size: 80px; }
.no-image img {
    width: 100%;
    max-width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}

.summary {
    text-align: left;
    background: rgba(255,255,255,.1);
    padding: 20px;
    border-radius: 15px;
    margin: 22px 0;
    line-height: 2;
}
.summary strong { color: var(--accent-soft); }

.music-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    padding: 9px 15px;
    font-size: 13px;
    background: rgba(255,255,255,.16);
    color: white;
    border: 1px solid rgba(255,255,255,.3);
    z-index: 10;
}

.from { color: var(--accent-soft); font-weight: 600; margin-top: 4px; }

.footer {
    margin-top: 28px;
    font-size: 12px;
    color: rgba(255,255,255,.5);
}

/* გამყიდველის პანელი (მხოლოდ #seller ბმულზე) */
.seller {
    position: fixed; inset: 0; z-index: 100; background: rgba(10,5,12,.96);
    padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.seller textarea {
    flex: 1; width: 100%; background: #0f0812; color: #e9d9e4;
    border: 1px solid rgba(255,255,255,.25); border-radius: 12px;
    padding: 12px; font-family: monospace; font-size: 12px;
}
.seller .row { display: flex; gap: 10px; }

@media (max-width: 480px) {
    .container { padding: 30px 18px; }
    h2 { font-size: 23px; }
    .buttons button { flex: 1; padding: 13px 20px; }
}

/* პრევიუს ზოლი (მხოლოდ #c=... ბმულზე) */
.preview-ribbon {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--accent); color: var(--on-accent);
    font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
}
body:has(.preview-ribbon) .container { padding-bottom: 70px; }

/* ბმული ღილაკის სახით (ვადაგასული გვერდი) */
.linkbtn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 8px;
}
