/* ============================================================
   Wedding invitation — global theme
   Palette: cream, blush, gold, ivory.
   ============================================================ */

:root {
    --cream: #fff5f8;
    --cream-soft: #fffafd;
    --ivory: #fff8fb;
    --blush: #fbd6e1;
    --blush-soft: #fde7ee;
    --rose: #f48fb1;
    --gold: #e8a3b8;
    --gold-deep: #c2417a;
    --gold-soft: #f7c8d5;
    --ink: #5d2a44;
    --ink-soft: #8a5a73;
    --shadow-warm: 0 30px 60px -20px rgba(194, 65, 122, 0.18);
    --shadow-card: 0 14px 30px -12px rgba(194, 65, 122, 0.22);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0.005em;
    overflow-x: hidden;
    /* Safety net: break long unbreakable strings (guest names, place names,
       the hashtag) so text never spills past its card/border on narrow
       screens. overflow-wrap is inherited and only breaks when a word can't
       fit, so ordinary text is unaffected. */
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(244, 143, 177, 0.28), transparent 50%),
        radial-gradient(circle at 82% 88%, rgba(251, 214, 225, 0.55), transparent 55%),
        linear-gradient(180deg, #fffafd 0%, #fde7ee 55%, #fbd6e1 100%);
    z-index: -2;
    pointer-events: none;
}

a {
    color: var(--gold-deep);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover { color: var(--rose); }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.005em;
    color: var(--ink);
    margin: 0;
}

.script {
    font-family: 'Pinyon Script', 'Parisienne', cursive;
    font-weight: 400;
    color: var(--gold-deep);
    letter-spacing: 0.01em;
}

.script-soft {
    font-family: 'Parisienne', 'Pinyon Script', cursive;
    font-weight: 400;
    color: var(--gold-deep);
}

.caps {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-weight: 400;
}

.serif { font-family: 'Cormorant Garamond', serif; }
.sans  { font-family: 'Outfit', 'Inter', sans-serif; }

/* ===== Section scaffolding ===== */
section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
    position: relative;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title .eyebrow {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.78rem;
    color: var(--gold-deep);
    display: block;
    margin-bottom: 0.8rem;
}

.section-title h2 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.2;
}

/* On phones the 2.2rem floor is too big for long single Armenian words
   (e.g. "բարեմաղթանքներով"), which then break mid-word. Scale the heading
   down so the longest word fits on one line. */
@media (max-width: 600px) {
    .section-title h2 { font-size: clamp(1.4rem, 8vw, 2rem); }
}

/* ===== Floral / gold separator ===== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem auto;
    color: var(--gold);
}

.divider::before,
.divider::after {
    content: "";
    width: clamp(40px, 18vw, 130px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider svg {
    width: 28px;
    height: 28px;
    fill: var(--gold);
    flex-shrink: 0;
}

/* ===== Buttons ===== */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #fff;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(164, 133, 74, 0.55);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(164, 133, 74, 0.65);
    filter: brightness(1.05);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: var(--gold-deep);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    cursor: pointer;
    transition: background 220ms ease, color 220ms ease;
}

.btn-ghost:hover {
    background: var(--gold);
    color: #fff;
}

/* ===== Form controls ===== */
input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(232, 163, 184, 0.55);
    border-radius: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.4;
    transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
    box-shadow: inset 0 1px 2px rgba(194, 65, 122, 0.04);
}

input::placeholder,
textarea::placeholder {
    color: rgba(138, 90, 115, 0.55);
    font-style: italic;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--rose);
    background: #fff;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-deep);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(244, 143, 177, 0.2);
}

textarea {
    resize: vertical;
    min-height: 96px;
}

label {
    display: block;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.55rem;
}

.invalid {
    outline: none;
    border-color: rgba(177, 73, 61, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(177, 73, 61, 0.12) !important;
}

.validation-message {
    color: #b1493d;
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 0.4rem;
    display: block;
}

/* ===== Reveal-on-scroll utility ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1100ms ease, transform 1100ms cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Floating particles ===== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particles span {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 240, 0.95) 0%, rgba(244, 143, 177, 0) 70%);
    opacity: 0;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0%   { transform: translateY(0) scale(0.6); opacity: 0; }
    20%  { opacity: 0.9; }
    100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* ===== Floating control cluster ===== */
.floating-controls {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 50;
    display: flex;
    gap: 0.6rem;
}

.floating-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 106, 0.5);
    background: rgba(255, 248, 236, 0.85);
    backdrop-filter: blur(6px);
    color: var(--gold-deep);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-card);
    transition: transform 220ms ease, background 220ms ease;
}

.floating-controls button:hover {
    transform: scale(1.06);
    background: #fff;
}

.floating-controls button.is-on {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold-deep);
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    section { padding: 4rem 1rem; }
    .floating-controls { top: 0.8rem; right: 0.8rem; }
}

/* ============================================================
   Envelope
   ============================================================ */

.cover-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.2rem 4.5rem;
    position: relative;
    flex-direction: column;
    gap: 1rem;
}

.cover-glow {
    position: absolute;
    width: min(720px, 96vw);
    height: min(540px, 70vh);
    background: radial-gradient(ellipse, rgba(244, 143, 177, 0.22) 0%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    transition: opacity 1500ms ease 800ms, transform 1500ms ease;
}

.cover-stage.is-open .cover-glow {
    opacity: 0;
    transform: scale(1.6);
}

.envelope {
    position: relative;
    width: min(620px, 94vw);
    min-height: clamp(420px, 60vh, 520px);
    padding: clamp(2.4rem, 5vw, 3rem) clamp(1.6rem, 5vw, 2.6rem) clamp(1.6rem, 4vw, 2.4rem);
    background:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.04) 0 2px,
            transparent 2px 8px),
        linear-gradient(155deg, #fff5f8 0%, #fde7ee 50%, #fbd6e1 100%);
    border: 1px solid rgba(232, 163, 184, 0.55);
    border-radius: 4px;
    box-shadow:
        0 30px 60px -22px rgba(194, 65, 122, 0.35),
        0 8px 18px -10px rgba(194, 65, 122, 0.18);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition:
        transform 1100ms cubic-bezier(.5,.0,.4,1) 200ms,
        opacity 700ms ease 800ms,
        box-shadow 800ms ease;
}

.envelope::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(232, 163, 184, 0.4);
    border-radius: 2px;
    pointer-events: none;
}

.cover-stage.is-open .envelope {
    transform: translateY(-32px) scale(0.96);
    opacity: 0;
}

.env-stamp {
    position: absolute;
    top: clamp(20px, 4%, 32px);
    right: clamp(20px, 4%, 32px);
    width: clamp(64px, 11%, 84px);
    aspect-ratio: 4 / 5;
    background:
        repeating-linear-gradient(0deg,
            transparent 0 6px,
            rgba(255, 255, 255, 0.4) 6px 7px),
        linear-gradient(180deg, #fff5f8, #fbd6e1);
    border: 1px dashed rgba(194, 65, 122, 0.55);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--gold-deep);
    padding: 4px;
    box-shadow: 0 2px 4px -2px rgba(194, 65, 122, 0.3);
    pointer-events: none;
}

.env-stamp svg {
    width: 50%;
    height: auto;
    fill: currentColor;
    opacity: 0.85;
}

.env-stamp-year,
.env-stamp-place {
    font-family: 'Marcellus', serif;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    line-height: 1;
}

.env-stamp-place { font-size: 0.5rem; }

.env-sprig {
    position: absolute;
    top: clamp(10px, 2.2%, 22px);
    left: clamp(10px, 2.2%, 22px);
    width: clamp(54px, 10%, 76px);
    height: clamp(54px, 10%, 76px);
    color: var(--gold-deep);
    opacity: 0.55;
    pointer-events: none;
}

.env-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
}

.cover-eyebrow {
    color: var(--gold-deep);
    font-size: 0.74rem;
    letter-spacing: 0.4em;
    margin: 0 0 0.4rem;
}

.cover-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1;
    margin: 0;
}

.cover-name {
    font-style: italic;
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    color: var(--ink);
    letter-spacing: 0.005em;
}

.cover-amp {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    color: var(--gold-deep);
    margin: 0.05rem 0;
    line-height: 1;
}

.cover-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0.6rem auto 0.8rem;
    color: var(--rose);
}

.cover-divider span {
    flex: 0 1 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0.7;
}

.cover-divider svg {
    width: 16px;
    height: 16px;
    fill: var(--gold-deep);
    flex-shrink: 0;
    opacity: 0.85;
}

.cover-date {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-size: clamp(0.85rem, 2.4vw, 1rem);
    letter-spacing: 0.32em;
    text-indent: 0.32em;
    color: var(--ink);
    margin: 0;
}

.cover-seal {
    position: relative;
    margin: 1.4rem auto 0;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: none;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 244, 232, 0.0) 36%),
        radial-gradient(circle at 50% 50%,
            #fce5d6 0%,
            #e9b8a1 32%,
            #c8896f 70%,
            #a36450 100%);
    color: #5a2333;
    cursor: pointer;
    box-shadow:
        0 12px 28px -8px rgba(163, 100, 80, 0.5),
        0 2px 6px -2px rgba(140, 80, 60, 0.35),
        inset 0 -3px 10px rgba(120, 70, 60, 0.3),
        inset 0 2px 5px rgba(255, 245, 230, 0.45);
    z-index: 3;
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 400ms ease;
    animation: seal-pulse 2.6s ease-in-out infinite;
}

.cover-seal::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 245, 230, 0.45);
}

.cover-seal::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px dashed rgba(120, 70, 60, 0.35);
}

.cover-seal-letters {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: inherit;
    line-height: 1;
    text-shadow:
        0 1px 0 rgba(255, 245, 230, 0.6),
        0 -1px 0 rgba(120, 70, 60, 0.25);
}

.cover-seal:hover {
    transform: scale(1.08);
    animation-play-state: paused;
    box-shadow:
        0 16px 32px -8px rgba(163, 100, 80, 0.65),
        0 2px 6px -2px rgba(140, 80, 60, 0.4),
        inset 0 -3px 10px rgba(120, 70, 60, 0.3),
        inset 0 2px 5px rgba(255, 245, 230, 0.5);
}

.cover-stage.is-open .cover-seal {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

@keyframes seal-pulse {
    0%, 100% {
        box-shadow:
            0 12px 28px -8px rgba(163, 100, 80, 0.5),
            0 2px 6px -2px rgba(140, 80, 60, 0.35),
            inset 0 -3px 10px rgba(120, 70, 60, 0.3),
            inset 0 2px 5px rgba(255, 245, 230, 0.45),
            0 0 0 0 rgba(232, 184, 161, 0.55);
    }
    50% {
        box-shadow:
            0 12px 28px -8px rgba(163, 100, 80, 0.5),
            0 2px 6px -2px rgba(140, 80, 60, 0.35),
            inset 0 -3px 10px rgba(120, 70, 60, 0.3),
            inset 0 2px 5px rgba(255, 245, 230, 0.45),
            0 0 0 16px rgba(232, 184, 161, 0);
    }
}

.cover-cta {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 3rem 0 0;
    letter-spacing: 0.05em;
    transition: opacity 600ms ease;
    animation: cta-nudge 2.4s ease-in-out infinite;
    z-index: 1;
}

.cover-stage.is-open .cover-cta { opacity: 0; }

@keyframes cta-nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

@media (max-width: 560px) {
    .envelope {
        min-height: clamp(420px, 70vh, 560px);
        /* Extra top padding so the eyebrow / "Dear …" line starts below the
           postage stamp (top-right) instead of running under it. */
        padding: 5.25rem 1.2rem 1.4rem;
    }
    /* Widen the stamp and tighten its text so the place name (esp. the wider
       English "YEREVAN") fits inside the dashed box instead of spilling out. */
    .env-stamp { width: 62px; top: 14px; right: 14px; padding: 5px 3px; }
    .env-stamp-year { font-size: 0.5rem; letter-spacing: 0.08em; }
    .env-stamp-place { font-size: 0.44rem; letter-spacing: 0.04em; }
    .env-sprig { width: 50px; height: 50px; top: 14px; left: 14px; }
    .cover-seal { width: 62px; height: 62px; }
    .cover-seal-letters { font-size: 0.7rem; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.65) 0%, transparent 55%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23f48fb1' stroke-opacity='0.10' stroke-width='1'><circle cx='80' cy='80' r='30'/><circle cx='80' cy='80' r='55'/><circle cx='80' cy='80' r='80'/></g></svg>");
}

.hero-card {
    max-width: 760px;
    width: calc(100% - 2rem);
    margin: 0 auto;
    scroll-margin-top: 2rem;
    padding: clamp(1.8rem, 4vw, 3rem) clamp(1.5rem, 5vw, 3.5rem);
    text-align: center;
    background: rgba(255, 250, 253, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 8px;
    box-shadow: var(--shadow-warm);
    position: relative;
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    opacity: 0.45;
}

.hero-card::before {
    top: 14px;
    left: 14px;
    border-right: none;
    border-bottom: none;
}

.hero-card::after {
    bottom: 14px;
    right: 14px;
    border-left: none;
    border-top: none;
}

.hero-eyebrow {
    color: var(--gold-deep);
    font-size: 0.78rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1;
}

.hero-name {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.4rem, 7vw, 4.4rem);
    color: var(--ink);
    line-height: 1;
}

.hero-amp {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(2.4rem, 6.5vw, 3.6rem);
    color: var(--gold-deep);
    line-height: 1;
    margin: 0.1rem 0;
}

.hero-quote {
    margin-top: 1rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-style: italic;
    color: var(--ink-soft);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-meta {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    color: var(--ink);
}

.hero-meta .dot { color: var(--gold); }

.hero-date-big {
    color: var(--gold-deep);
    font-weight: 500;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

@media (max-width: 480px) {
    .hero-meta { font-size: 0.7rem; gap: 0.4rem; }
    .hero-meta .dot { display: none; }
}

/* ============================================================
   Countdown
   ============================================================ */

.countdown-section {
    background: linear-gradient(180deg, transparent 0%, rgba(251, 214, 225, 0.45) 100%);
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 2vw, 1.2rem);
    flex-wrap: wrap;
}

.cd-cell {
    width: clamp(80px, 15vw, 130px);
    aspect-ratio: 1 / 1.05;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(253, 231, 238, 0.9));
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.cd-num {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--gold-deep);
    line-height: 1;
}

.cd-label {
    font-size: 0.65rem;
    color: var(--ink-soft);
    margin-top: 0.6rem;
}

.cd-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: var(--rose);
    margin-bottom: 1.2rem;
}

.countdown-finale {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--gold-deep);
}

@media (max-width: 480px) {
    .cd-sep { display: none; }
    .cd-cell { width: 22vw; min-width: 70px; }
}

/* ============================================================
   Timeline + TimelineItem
   ============================================================ */

.timeline-welcome {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.4rem;
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    color: var(--ink-soft);
    line-height: 1.6;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    max-width: 820px;
    margin-inline: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 31px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
    opacity: 0.55;
}

@media (min-width: 720px) {
    .timeline::before { left: 50%; }
}

.t-item {
    position: relative;
    padding: 1rem 0 2.5rem 5rem;
    min-height: 80px;
}

.t-marker {
    position: absolute;
    top: 0.75rem;
    left: 6px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffafd, #fbd6e1);
    border: 1px solid var(--rose);
    box-shadow: 0 6px 14px -6px rgba(194, 65, 122, 0.4);
    display: grid;
    place-items: center;
    color: var(--gold-deep);
}

.t-marker svg { width: 24px; height: 24px; }

.t-card {
    background: rgba(255, 250, 253, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 8px;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-card);
    position: relative;
}

.t-card::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 22px;
    width: 14px;
    height: 14px;
    background: rgba(255, 250, 253, 0.9);
    border-left: 1px solid rgba(232, 163, 184, 0.5);
    border-bottom: 1px solid rgba(232, 163, 184, 0.5);
    transform: rotate(45deg);
}

.t-time {
    color: var(--gold-deep);
    font-size: 0.78rem;
    font-weight: 600;
}

.t-title {
    margin: 0.4rem 0 0.2rem;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.t-place {
    margin: 0;
    color: var(--ink-soft);
    font-style: italic;
}

.t-desc {
    margin: 0.8rem 0 1.2rem;
    color: var(--ink);
    line-height: 1.65;
}

@media (min-width: 720px) {
    .t-item {
        padding: 1rem 0 3rem 0;
        width: 50%;
    }

    .t-item:nth-child(odd) {
        margin-left: 0;
        padding-right: 3.5rem;
        text-align: right;
    }

    .t-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 3.5rem;
    }

    .t-item:nth-child(odd) .t-marker {
        left: auto;
        right: -25px;
    }

    .t-item:nth-child(even) .t-marker {
        left: -25px;
    }

    .t-item:nth-child(odd) .t-card::before {
        left: auto;
        right: -8px;
        border-left: none;
        border-bottom: none;
        border-right: 1px solid rgba(232, 163, 184, 0.5);
        border-top: 1px solid rgba(232, 163, 184, 0.5);
    }

    .t-item:nth-child(odd) .btn-ghost {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    /* The marker rail eats ~5rem of the row; trim it and the card padding,
       and shrink the title so long Armenian words (e.g. "Տեսանկարահանում")
       fit on their own line instead of breaking mid-word. */
    .t-item { padding-left: 3.6rem; }
    .t-card { padding: 1.2rem 1.1rem; }
    .t-title { font-size: 1.3rem; }
}

/* ============================================================
   JourneyMap + MapCard
   ============================================================ */

.journey-section {
    background: linear-gradient(180deg, rgba(251, 214, 225, 0.35) 0%, transparent 100%);
}

.journey-path {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 2rem 0 2.5rem;
    flex-wrap: nowrap;
}

.stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    max-width: 150px;
    text-align: center;
}

.stop-dot {
    width: 14px;
    height: 14px;
    background: var(--rose);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(244, 143, 177, 0.25);
}

.stop-name {
    font-style: italic;
    font-size: 1.05rem;
    margin: 0;
    color: var(--ink);
    white-space: normal;
}

.stop-time {
    font-size: 0.7rem;
    color: var(--gold-deep);
    white-space: nowrap;
}

.path-line {
    width: clamp(24px, 6vw, 90px);
    height: 60px;
    flex-shrink: 1;
    min-width: 16px;
}

.journey-note {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.map-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
}

/* With only two route stops, center the pair instead of left-aligning. */
@media (min-width: 901px) {
    .map-grid.is-two {
        grid-template-columns: repeat(2, minmax(0, 340px));
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .map-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (max-width: 480px) {
    .map-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    /* Stack the stops vertically. The base rule uses flex-wrap:nowrap to keep
       all four on one row on wider screens; on phones that would squash them
       into each other, so switch to a column here. */
    .journey-path { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 0.6rem; }
    .path-line { display: none; }
    .stop { flex-direction: row; align-items: center; gap: 0.7rem; width: 100%; max-width: none; justify-content: center; }
    .stop-name { white-space: nowrap; }
}

.map-card {
    background: rgba(255, 250, 253, 0.9);
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.map-frame {
    aspect-ratio: 4 / 3;
    width: 100%;
    background: var(--blush-soft);
    overflow: hidden;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-meta {
    padding: 0.9rem 0.9rem 1rem;
    text-align: center;
}

.map-title {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.2;
}

.map-time {
    display: block;
    color: var(--gold-deep);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    margin: 0.3rem 0 0.7rem;
}

.map-meta .btn-ghost {
    font-size: 0.62rem;
    padding: 0.55rem 1rem;
    letter-spacing: 0.18em;
}

/* ============================================================
   Gallery
   ============================================================ */

.gallery-section {
    background: linear-gradient(180deg, transparent 0%, rgba(251, 214, 225, 0.3) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.g-tile {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4 / 5;
    border: 1px solid rgba(232, 163, 184, 0.5);
    background: var(--blush-soft);
}

.g-tile:nth-child(3n+1) { aspect-ratio: 4 / 5; }
.g-tile:nth-child(3n+2) { aspect-ratio: 1 / 1; }
.g-tile:nth-child(3n)   { aspect-ratio: 4 / 5; }

.g-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms ease, filter 700ms ease;
    filter: saturate(0.95);
}

.g-tile:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.g-tile figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.6rem 1rem 1rem;
    color: #fff;
    font-size: 1.4rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(93, 42, 68, 0.7));
    text-shadow: 0 2px 6px rgba(80, 30, 60, 0.5);
    opacity: 0;
    transition: opacity 320ms ease;
}

.g-tile:hover figcaption { opacity: 1; }

/* ============================================================
   RSVP
   ============================================================ */

.rsvp-section {
    background: radial-gradient(ellipse at top, rgba(251, 214, 225, 0.55) 0%, transparent 55%);
}

.rsvp-deadline {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem) !important;
    letter-spacing: 0.01em;
}

/* Armenian deadline: use an Armenian-capable serif so letters and the "14"
   digits render in one consistent font (Cormorant Garamond lacks Armenian
   glyphs, which left the digits in a mismatched fallback font). */
.rsvp-deadline.lang-hy {
    font-family: 'Noto Serif Armenian', 'Cormorant Garamond', serif !important;
}

.rsvp-card {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 250, 253, 0.95);
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 18px;
    box-shadow: var(--shadow-warm);
    padding: clamp(2.2rem, 5vw, 3.5rem);
    position: relative;
}

.rsvp-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(232, 163, 184, 0.3);
    border-radius: 12px;
    pointer-events: none;
}

/* Smaller typography within the RSVP form. */
.rsvp-card label {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.4rem;
}

.rsvp-card input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),
.rsvp-card select,
.rsvp-card textarea {
    font-size: 0.92rem;
    padding: 0.7rem 0.95rem;
}

.rsvp-card .pill {
    font-size: 0.7rem;
    padding: 0.65rem 0.85rem;
}

.rsvp-card .pill::before {
    font-size: 0.8rem;
}

.rsvp-card .pill-side {
    font-size: 0.7rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 1rem;
}

.field {
    margin-bottom: 1.4rem;
    position: relative;
}

.field-narrow { width: 100%; }

.attendance-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.pill {
    flex: 1 1 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.3rem;
    border: 1px solid rgba(232, 163, 184, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.08rem;
    font-style: italic;
    color: var(--ink);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
    transition: background 220ms ease, border-color 220ms ease,
                color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
    margin-bottom: 0;
    user-select: none;
    position: relative;
}

.pill:not(.pill-side)::before {
    content: "♡";
    font-size: 1.05rem;
    color: var(--rose);
    transition: color 220ms ease, transform 220ms ease;
    line-height: 1;
}

.pill-side {
    flex: 1 1 110px;
    padding: 0.85rem 1.1rem;
    font-size: 1.02rem;
}

.pill:hover {
    border-color: var(--rose);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.pill.is-active {
    background: linear-gradient(135deg, var(--rose) 0%, var(--gold-deep) 100%);
    border-color: var(--gold-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(194, 65, 122, 0.55);
}

.pill.is-active:not(.pill-side)::before {
    content: "♥";
    color: #fff;
    transform: scale(1.15);
}

.pill:focus-within {
    outline: 2px solid rgba(244, 143, 177, 0.45);
    outline-offset: 3px;
}

.submit-row {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.rsvp-thanks {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
}

.thanks-headline {
    font-size: clamp(2.1rem, 5.5vw, 3rem);
    color: var(--gold-deep);
    margin: 0 0 0.8rem;
    line-height: 1.1;
}

.rsvp-thanks p:not(.thanks-headline) {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto;
}

@media (max-width: 520px) {
    .form-row { grid-template-columns: 1fr; }
    .pill { padding: 0.85rem 1rem; font-size: 1rem; }
    .rsvp-card { padding: 1.8rem 1.4rem; }
    .rsvp-card::before { inset: 8px; }
    /* Shrink the long "Շնորհակալություն" headline so it stays on one line.
       Fluid so it also fits the narrowest phones (~320px). rem is relative to
       the 18px root, so these are ~22.5–31.5px. */
    .thanks-headline,
    .msg-thanks .thanks-headline { font-size: clamp(1rem, 5.6vw, 1.75rem); }
}

/* ============================================================
   MessageBoard
   ============================================================ */

.msg-form {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 250, 253, 0.92);
    border: 1px solid rgba(232, 163, 184, 0.45);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.msg-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.messages-section .submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
}

.msg-thanks {
    text-align: center;
    padding: 1rem 0.5rem;
}

.msg-thanks .thanks-headline {
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    color: var(--gold-deep);
    margin: 0 0 0.6rem;
    line-height: 1;
}

.msg-thanks p:not(.thanks-headline) {
    font-style: italic;
    color: var(--ink-soft);
    margin: 0;
}

@media (max-width: 520px) {
    .msg-row { grid-template-columns: 1fr; }
    .msg-form { padding: 1.4rem; }
    /* Must live here (after the base .msg-thanks .thanks-headline rule above)
       so source order wins — otherwise the big base size keeps it on 2 rows. */
    .msg-thanks .thanks-headline { font-size: clamp(1rem, 5.6vw, 1.75rem); }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    text-align: center;
    padding: clamp(4rem, 10vw, 6.5rem) 1.2rem clamp(2.5rem, 5vw, 3.5rem);
    background:
        radial-gradient(ellipse at top, rgba(251, 214, 225, 0.4) 0%, transparent 60%),
        linear-gradient(180deg, transparent, rgba(251, 214, 225, 0.55));
    color: var(--ink-soft);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(120px, 30vw, 220px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0.6;
}

.footer-inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-names {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    color: var(--ink);
    margin: 0;
    line-height: 1.2;
}

.footer-amp {
    font-family: 'Marcellus', 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 400;
    color: var(--rose);
    margin: 0 0.15em;
}

.footer-meta {
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: var(--gold-deep);
    margin: 0.6rem 0 0;
}

.footer-meta-dot {
    color: var(--rose);
    margin: 0 0.4em;
    letter-spacing: 0;
}

.footer-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.6rem auto 0.8rem;
    color: var(--rose);
    width: 100%;
}

.footer-rule span {
    flex: 0 1 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    opacity: 0.7;
}

.footer-rule svg {
    width: 16px;
    height: 16px;
    fill: var(--gold-deep);
    opacity: 0.85;
    flex-shrink: 0;
}

.footer-quote {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    color: var(--ink-soft);
    max-width: 460px;
    line-height: 1.6;
    margin: 0.6rem 0 0;
}

.footer-tag {
    color: var(--gold-deep);
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    margin: 1.5rem 0 0;
}

.footer-fine {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--ink-soft);
    opacity: 0.7;
    margin: 1.8rem 0 0;
    letter-spacing: 0.02em;
}

.footer-fine-dot {
    color: var(--rose);
    margin: 0 0.4em;
}

@media (max-width: 480px) {
    .footer-meta { font-size: 0.7rem; letter-spacing: 0.22em; }
    .footer-rule span { flex-basis: 60px; }
    /* Tighten the hashtag so the single long token fits without breaking. */
    .footer-tag { letter-spacing: 0.16em; }
}

/* ============================================================
   Admin panel
   ============================================================ */

.admin-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--gold-deep);
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat {
    background: var(--cream-soft);
    border: 1px solid var(--blush-soft);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
}

.admin-stat-value {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--gold-deep);
    line-height: 1.1;
}

.admin-stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 6px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--blush-soft);
}

.admin-tab {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 120ms ease, border-color 120ms ease;
}

.admin-tab:hover {
    color: var(--gold-deep);
}

.admin-tab.is-active {
    color: var(--gold-deep);
    border-bottom-color: var(--gold-deep);
}

.admin-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-filterbar-spacer {
    flex: 1 1 auto;
}

.admin-input {
    font: inherit;
    font-size: 0.95rem;
    padding: 8px 12px;
    border: 1px solid var(--blush);
    border-radius: 8px;
    background: var(--ivory);
    color: var(--ink);
    min-width: 160px;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.admin-input:focus {
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px rgba(194, 65, 122, 0.12);
}

.admin-result-count {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-left: 4px;
}

.admin-btn {
    font: inherit;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--gold-deep);
    background: var(--gold-deep);
    color: #fff;
    cursor: pointer;
    transition: background 120ms ease, opacity 120ms ease;
}

.admin-btn:hover {
    background: #a8336a;
}

.admin-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-logout-btn,
.admin-export-btn {
    background: transparent;
    color: var(--gold-deep);
}

.admin-logout-btn:hover,
.admin-export-btn:hover {
    background: var(--blush-soft);
}

.admin-table-wrap {
    overflow-x: auto;
    background: var(--cream-soft);
    border: 1px solid var(--blush-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table thead {
    background: var(--blush-soft);
}

.admin-table th,
.admin-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--blush-soft);
    vertical-align: top;
}

.admin-table th {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-th-sort {
    cursor: pointer;
    user-select: none;
}

.admin-th-sort:hover {
    color: var(--gold-deep);
}

.admin-sort-arrow {
    display: inline-block;
    width: 0.8em;
    color: transparent;
    font-size: 0.7em;
}

.admin-sort-arrow.is-active {
    color: var(--gold-deep);
}

.admin-table tbody tr:hover {
    background: rgba(251, 214, 225, 0.25);
}

.admin-cell-message,
.admin-cell-text {
    max-width: 360px;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 24px 16px;
    font-style: italic;
}

/* Login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
}

.admin-login-form {
    background: var(--cream-soft);
    border: 1px solid var(--blush-soft);
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow-warm);
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-login-title {
    margin: 0 0 6px;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gold-deep);
    text-align: center;
}

.admin-error {
    color: #b3294f;
    font-size: 0.85rem;
    min-height: 1.2em;
    visibility: hidden;
}

.admin-error.is-visible {
    visibility: visible;
}

@media (max-width: 720px) {
    .admin-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
    .admin-summary { grid-template-columns: 1fr; }
    .admin-shell { padding: 20px 14px 48px; }
    .admin-input { min-width: 120px; flex: 1 1 140px; }
}

/* ---------- personalized invitation greeting ---------- */
.cover-dear {
  font-size: 1.35rem;
  color: var(--gold-deep, #b8860b);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

/* ---------- admin: invitation form & table ---------- */
.admin-invite-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.2rem 1.2rem 0.8rem;
  margin-bottom: 1.2rem;
}
.admin-invite-form-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.9);
}
.admin-invite-form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.admin-invite-form-row .field { flex: 1; }
.admin-invite-form-row label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.2rem;
}
.admin-invite-form-full { flex-direction: column; }
.admin-invite-form textarea.admin-input { width: 100%; resize: vertical; }

.admin-copy-btn { font-size: 0.75rem; padding: 2px 8px; }
.admin-del-btn { font-size: 0.75rem; padding: 2px 8px; background: #c0392b; }
.admin-del-btn:hover { background: #e74c3c; }

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.admin-badge-viewed { background: #d4edda; color: #155724; }
.admin-badge-pending { background: #fff3cd; color: #856404; }
.admin-badge-attending { background: #d4edda; color: #155724; }
.admin-badge-declined { background: #f8d7da; color: #721c24; }

.admin-success {
  display: none;
  color: #27ae60;
  font-size: 0.85rem;
  margin: 0.4rem 0;
  word-break: break-all;
}
.admin-success.is-visible { display: block; }

@media (max-width: 600px) {
  .admin-invite-form-row { flex-direction: column; }
}

/* ---------- admin: tags, sub-guests, import modal ---------- */
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}
.admin-chip-static { margin: 1px 3px 1px 0; }
.admin-chip-x {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.85rem;
  line-height: 1;
}
.admin-chip-x:hover { color: #fff; }

.admin-chip-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(0,0,0,0.2);
  min-height: 38px;
  align-items: center;
}
.admin-chip-input {
  flex: 1;
  min-width: 120px;
  border: 0 !important;
  background: transparent !important;
  padding: 4px 6px !important;
  height: 28px !important;
}

.admin-chip-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.4rem 0 0.8rem;
  align-items: center;
}
.admin-chip-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.admin-chip-toggle:hover { background: rgba(255,255,255,0.16); }
.admin-chip-toggle.is-active {
  background: #d4af37;
  color: #1a1a1a;
  font-weight: 600;
}
.admin-chip-clear {
  font-size: 0.75rem;
  padding: 2px 10px;
}
.admin-empty-hint { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

.admin-cell-tags .admin-chip-static { font-size: 0.7rem; }
.admin-cell-subguests {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-subguest-editor { display: flex; flex-direction: column; gap: 6px; }
.admin-subguest-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.admin-subguest-row .admin-input { flex: 1; }
.admin-subguest-row .admin-del-btn { flex: 0 0 32px; padding: 2px 8px; }

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-modal {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  color: rgba(255,255,255,0.9);
}
.admin-modal-head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.admin-modal-sub { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 0.8rem; }
.admin-modal-scroll { overflow: auto; flex: 1; min-height: 200px; }
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0.8rem;
}
.admin-import-modal table { font-size: 0.85rem; }
