/* ==========================================================================
   🎁 GIFTUNBOX: Playful Youth & Kids Design System (Duolingo & Intertoys Inspired)
   ========================================================================== */

:root {
    /* Playful Color Palette */
    --color-green: var(--success);
    --color-green-shadow: #46a302;
    --color-green-light: #e8f9d6;
    --color-blue: #1cb0f6;
    --color-blue-shadow: #1899d6;
    --color-blue-light: #ddf4ff;
    --color-yellow: #ffc800;
    --color-yellow-shadow: #e58600;
    --color-yellow-light: #fff8d6;
    --color-red: #ff4b4b;
    --color-red-shadow: #d32f2f;
    --color-red-light: #ffe5e5;
    --color-violet: #ce82ff;
    --color-violet-shadow: #a855f7;
    --color-violet-light: #f6e8ff;
    --color-orange: #ff9600;
    --color-orange-shadow: #d97706;
    /* Neutrals & Surfaces */
    --bg-page: var(--on-primary);
    --bg-card: #ffffff;
    --border-card: #e2e8f0;
    --border-card-shadow: #cbd5e1;
    --border-focus: #58cc02;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    /* Typography */
    --font-heading: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Radii */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
}

/* Reset & Global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.playful-theme {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Floating Festive Accents Background */
.bg-festive-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
@keyframes floatDoodle {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-25px) rotate(15deg) scale(1.1); }
    100% { transform: translateY(15px) rotate(-10deg) scale(0.95); }
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header & Brand Navigation
   ========================================================================== */
.site-header {
    background: var(--surface-raised);
    border-bottom: 3px solid var(--rule-strong);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
@keyframes gentleWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg) scale(1.1); }
    75% { transform: rotate(8deg) scale(1.1); }
}
/* ==========================================================================
   Navigation Hamburger Menu & Dropdown
   ========================================================================== */
.nav-menu-wrapper {
    position: relative;
}

.nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    padding: 0.95rem;
    z-index: 10000;
    display: none;
    animation: menuPopDown 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-menu-dropdown.show {
    display: block;
}

@keyframes menuPopDown {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ==========================================================================
   Tactile 3D Buttons (Duolingo Feather Style)
   ========================================================================== */
.btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
    position: relative;
    text-align: center;
    line-height: 1.2;
}

.btn-3d:active {
    transform: translateY(4px);
}

/* Green (Primary Action) */
.btn-3d-green {
    background: var(--success);
    color: var(--on-primary);
}
.btn-3d-green:hover {
    filter: brightness(1.06);
}
.btn-3d-green:active {}

/* Blue (Interactive / Supporting) */
.btn-3d-blue {
    background: var(--secondary);
    color: var(--on-primary);
}
.btn-3d-blue:hover {
    filter: brightness(1.06);
}
.btn-3d-blue:active {}

/* Yellow (Celebration / Attention) */
.btn-3d-yellow {
    background: var(--accent);
    color: var(--ink);
}
.btn-3d-yellow:hover {
    filter: brightness(1.05);
}
.btn-3d-yellow:active {}

/* Violet (Surprise / Magic) */
.btn-3d-violet {
    background: var(--secondary);
    color: var(--on-primary);
}
.btn-3d-violet:hover {
    filter: brightness(1.06);
}
.btn-3d-violet:active {}

/* Red / Coral */
.btn-3d-red {
    background: var(--danger);
    color: var(--on-primary);
}
.btn-3d-red:hover {
    filter: brightness(1.06);
}
.btn-3d-red:active {}

/* White / Outline */
.btn-3d-outline {
    background: var(--surface-raised);
    color: var(--ink);
    border: 1.5px solid var(--rule-strong);
}
.btn-3d-outline:hover {
    background: var(--surface-raised);
}
.btn-3d-outline:active {}

/* Sizes */
.btn-sm {
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
}
.btn-sm:active {
    transform: translateY(2.5px);
}

.btn-lg {
    font-size: 1.2rem;
    padding: 1.05rem 2rem;
    border-radius: var(--radius-lg);
}
.btn-lg:active {
    transform: translateY(5px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Playful Toy Cards & Layout Containers
   ========================================================================== */
.main-content {
    flex: 1;
    padding: 2.5rem 0 3.5rem;
}

.toy-card {
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toy-card.interactive:hover {
    transform: translateY(-2px);
}

/* Badges & Pills */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--wash-accent);
    color: var(--ink);
    border: 1.5px solid var(--accent);
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.22rem;
    color: var(--ink-soft);
    font-weight: 600;
    line-height: 1.55;
}
.pillar-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.85rem;
    width: fit-content;
}
/* ==========================================================================
   Creation Form & Interactive Live Preview
   ========================================================================== */
.creation-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .creation-grid {
    grid-template-columns: 1fr;
}
}

/* Single-column wizard: the form card uses the full content width. */
.creation-grid--solo {
    grid-template-columns: 1fr;
}
/* On the gift step the live preview sits beside the form on desktop,
   and falls back to stacked below on tablet/mobile. */
@media (min-width: 901px) {
    .creation-grid--solo.creation-grid--with-preview {
    grid-template-columns: 1.4fr 0.9fr;
}

    .creation-grid--solo.creation-grid--with-preview .preview-toy-card {
    position: sticky;
    top: 5.5rem;
    max-width: none;
    margin: 0;
}
}

.form-card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.form-card-sub {
    font-size: 0.98rem;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.styled-form .form-group {
    margin-bottom: 1.4rem;
}

.styled-form .form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.styled-form .required {
    color: var(--danger);
}

.styled-form .form-control,
.styled-form input[type="text"],
.styled-form input[type="url"],
.styled-form input[type="number"],
.styled-form input[type="email"],
.styled-form textarea,
.styled-input,
input.styled-input {
    width: 100%;
    font-family: var(--font-text);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.1rem;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.styled-form .form-control:focus,
.styled-form input[type="text"]:focus,
.styled-form input[type="url"]:focus,
.styled-form input[type="number"]:focus,
.styled-form input[type="email"]:focus,
.styled-form textarea:focus,
.styled-input:focus,
input.styled-input:focus {
    border-color: var(--success);
    background: var(--surface-raised);
}

.input-action-group {
    display: flex;
    gap: 0.6rem;
}

.input-action-group .form-control {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
    grid-template-columns: 1fr;
}
}

.currency-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1.1rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink-soft);
    pointer-events: none;
}

.form-control.with-symbol {
    padding-left: 2.4rem;
}

.form-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-weight: 600;
    margin-top: 0.4rem;
}

/* Scraper Notification Status */
.scrape-notification {
    margin-top: 0.65rem;
    padding: 0.6rem 0.95rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.scrape-notification.loading {
    background: var(--wash-secondary);
    border: 1.5px solid var(--secondary);
    color: var(--secondary-hover);
}

.scrape-notification.success {
    background: var(--wash-success);
    border: 1.5px solid var(--success);
    color: var(--success);
}

.scrape-notification.info {
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    color: var(--ink-soft);
}

.scrape-notification.warning {
    background: var(--wash-accent);
    border: 1.5px solid var(--accent);
    color: var(--ink);
}

.scrape-notification.error {
    background: var(--surface-raised);
    border: 1.5px solid var(--danger);
    color: var(--danger);
}

.field-highlight {
    animation: fieldPulse 1.5s ease-out;
    border-color: var(--success) !important;
    background: var(--wash-success) !important;
}

@keyframes fieldPulse {
    0% { transform: scale(1.02); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}
.preview-pill-live {
    background: var(--wash-danger);
    color: var(--danger);
    border: 1.5px solid var(--danger);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
}
.preview-for-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.2rem;
}
.stat-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.duo-track {
    width: 100%;
    height: 24px;
    background: var(--paper);
    border-radius: var(--radius-pill);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.duo-fill {
    height: 100%;
    background: var(--success);
    border-radius: var(--radius-pill);
    position: relative;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.duo-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    animation: progressShine 2.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
.btn-chip {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.1s ease;
}

.btn-chip:hover {
    background: var(--wash-secondary);
    border-color: var(--secondary);
    color: var(--secondary-hover);
}

.btn-chip.active {
    background: var(--secondary);
    border-color: var(--secondary-hover);
    color: var(--on-primary);
    transform: translateY(2px);
}

.btn-chip:active {
    transform: translateY(3px);
}

/* ==========================================================================
   Wall of Warm Birthday Wishes (Sticky Cards Style)
   ========================================================================== */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.sticky-msg-card {
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticky-msg-card:hover {
    transform: translateY(-4px) rotate(1deg);
}

.msg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.avatar-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--wash-accent);
    border: 1.5px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

.avatar-badge--sticker {
    width: 52px;
    height: 52px;
    flex: none;
    font-size: 2.1rem;
    background: var(--surface-raised);
    border-color: var(--rule-strong);
}

.contributor-name-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.pledge-tag-pill {
    background: var(--wash-success);
    color: var(--success);
    border: 1.5px solid var(--success);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
}

.msg-quote {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-weight: 600;
    font-style: italic;
    line-height: 1.45;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.notif-container {
    margin-top: 1rem;
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.alert-success {
    background: var(--wash-success);
    border: 1.5px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: var(--wash-danger);
    border: 1.5px solid var(--danger);
    color: var(--danger-hover);
}
/* Footer */
.site-footer {
    position: relative;
    z-index: 10;
    background: var(--surface-raised);
    border-top: 3px solid var(--rule-strong);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 600;
}
.footer-tagline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}
/* Animations */
.animate-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    0% { transform: scale(0.85); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Party-First Dashboard Hub & Contributor Squad Components
   ========================================================================== */

.party-hub-card {
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 2.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.party-hub-card:hover {}

.party-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 2.5px dashed var(--rule-strong);
    margin-bottom: 1.5rem;
}

.party-badge-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: var(--wash-accent);
    border: 1.5px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    flex-shrink: 0;
}

.party-meta-pill-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.4rem;
}

.party-meta-sep {
    color: var(--rule-strong);
}

.party-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.party-module-card {
    min-width: 0; /* a nowrap title must not stretch the grid track past the viewport */
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.party-module-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
}

.contributor-squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 0.65rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.contributor-squad-grid::-webkit-scrollbar {
    width: 6px;
}
.contributor-squad-grid::-webkit-scrollbar-thumb {
    background: var(--wash-secondary);
    border-radius: 999px;
}

.contributor-chip {
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.contributor-chip-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.contributor-chip-sticker {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.contributor-chip-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contributor-chip-badge {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--wash-success);
    color: var(--success);
    border: 1.5px solid var(--success);
    flex-shrink: 0;
}

.party-allergy-alert {
    background: var(--paper);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    color: var(--ink);
    font-size: 0.92rem;
}

.party-action-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 2px solid var(--rule-strong);
}

@media (max-width: 768px) {
    .party-hub-card {
    padding: 1.25rem;
}
    .party-module-grid {
    grid-template-columns: minmax(0, 1fr);
}
    .party-action-toolbar {
    flex-direction: column;
    align-items: stretch;
}
    .party-action-toolbar > div {
    width: 100%;
    justify-content: center;
}
}

/* The meta line wraps one item per row on a phone: a bullet would dangle at the end of each row. */
@media (max-width: 520px) {
    .party-meta-sep {
    display: none;
}
}

/* ==========================================================================
   Dual-Role Dashboard Tab Navigation & Guest Party Cards
   ========================================================================== */
.dashboard-tab-bar {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-tab-btn {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.dashboard-tab-btn:hover {
    background: var(--surface-raised);
    color: var(--ink);
    transform: translateY(-2px);
}

.dashboard-tab-btn.active {
    background: var(--wash-secondary);
    border-color: var(--secondary);
    color: var(--secondary-hover);
}

.dashboard-tab-btn:active {
    transform: translateY(2px);
}

.guest-party-card {
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guest-party-card:hover {}

.guest-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.guest-status-box {
    min-width: 0;
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@keyframes popIn {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }
    70% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================================================
   Personal Gift Wishlist & Kid Drag-and-Drop Studio Styles
   ========================================================================= */

.wishlist-board {
    user-select: none;
}

.wishlist-card {
    cursor: default;
    border-radius: var(--radius-xl);
    padding: 1rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.wishlist-card:hover {}

.wishlist-card.dragging {
    opacity: 0.45;
    transform: scale(0.98) rotate(-1.5deg);
    border-style: dashed !important;
    border-color: var(--secondary) !important;
    box-shadow: none !important;
}

.wishlist-card--top {
    padding: 1.15rem 1.45rem;
    position: relative;
}

.wishlist-card--claimed {
    background: var(--surface-raised) !important;
    opacity: 0.88;
}

/* Header row: Top-left Rank Tag & Top-right Droomcadeau Button */
.wishlist-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.wishlist-card-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Rank Badges */
.rank-badge-wrap {
    display: flex;
    align-items: center;
}

.rank-badge {
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}

.rank-badge-gold {
    background: var(--accent);
    border: 1.5px solid var(--accent);
    color: var(--ink);
    font-weight: 600;
    padding: 0.32rem 0.8rem;
    font-size: 0.88rem;
    animation: goldShimmer 3s ease-in-out infinite;
}

.rank-badge-silver {
    background: var(--paper);
    border: 1.5px solid var(--secondary);
    color: var(--secondary);
    padding: 0.28rem 0.75rem;
    font-size: 0.84rem;
}

.rank-badge-bronze {
    background: var(--wash-accent);
    border: 1.5px solid var(--accent);
    color: var(--danger);
    padding: 0.28rem 0.75rem;
    font-size: 0.84rem;
}

.rank-badge-pill {
    background: var(--paper);
    border: 1.5px solid color-mix(in srgb, var(--secondary) 40%, transparent);
    color: var(--secondary);
    padding: 0.22rem 0.65rem;
    font-size: 0.8rem;
}

.rank-emoji {
    font-size: 1.1rem;
    line-height: 1;
}

@keyframes goldShimmer {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(234, 179, 8, 0.25);
    }
    50% {
        box-shadow: 0 3px 14px rgba(234, 179, 8, 0.45);
    }
}

/* Droomcadeau & Action Buttons in Header */
.btn-dream-gift {
    font-size: 0.8rem;
    padding: 0.32rem 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-make-dream {
    font-size: 0.8rem;
    padding: 0.32rem 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-color: var(--accent);
    color: var(--ink);
    background: var(--paper);
}

.badge-dream-tag {
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--accent);
    color: var(--ink);
    border: 1.5px solid var(--accent);
    padding: 0.22rem 0.6rem;
}

/* Card Body */
.wishlist-card-body {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    width: 100%;
}

.drag-handle {
    cursor: grab;
    font-size: 1.5rem;
    color: var(--secondary);
    user-select: none;
    padding: 0.2rem 0.25rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.drag-handle:hover {
    color: var(--secondary) !important;
    transform: scale(1.2);
}

/* Compact Toy Visuals */
.wishlist-card-img-wrap {
    width: 118px;
    height: 118px;
    min-width: 118px;
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-md);
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wishlist-card-img-wrap--top {
    width: 135px;
    height: 135px;
    min-width: 135px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
}

.wishlist-card:hover .wishlist-card-img {
    transform: scale(1.05);
}

.wishlist-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Info Section */
.wishlist-card-info {
    min-width: 0;
    flex: 1;
}

.wishlist-card-meta {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
    align-items: center;
}

.badge-store {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary);
    background: var(--wash-secondary);
    padding: 0.15rem 0.5rem;
}

.badge-wildcard {
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--wash-secondary);
    color: var(--secondary);
    border: 1.5px solid color-mix(in srgb, var(--secondary) 40%, transparent);
    padding: 0.15rem 0.5rem;
}

.badge-occasion {
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--wash-accent);
    color: var(--ink);
    border: 1.5px solid var(--accent);
    padding: 0.15rem 0.5rem;
}

.wishlist-card-title-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wishlist-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: var(--ink);
    line-height: 1.3;
}

.wishlist-card--top .wishlist-card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.wishlist-card-title--wildcard {
    color: var(--secondary);
    font-style: italic;
}

.quantity-chip {
    background: var(--wash-secondary);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}

.wishlist-card-price-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.price-chip {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--success);
    background: var(--wash-success);
    border: 1.5px solid var(--success);
    padding: 0.18rem 0.55rem;
    border-radius: 8px;
    line-height: 1.2;
}

.price-chip--dream {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.tikkie-chip {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--paper);
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
    padding: 0.18rem 0.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.product-store-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.15s ease;
}

.product-store-link:hover {
    color: var(--secondary-hover);
    text-decoration: underline;
}

.claimed-chip {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    background: var(--wash-success);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.55rem;
    border-radius: 8px;
    border: 1.5px solid var(--success);
}

.wishlist-card-notes {
    font-size: 0.84rem;
    color: var(--ink-soft);
    font-weight: 600;
    margin-top: 0.25rem;
    line-height: 1.35;
}

/* Side Controls */
.wishlist-card-side-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.nudge-buttons {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.btn-nudge {
    background: var(--paper);
    border: 1.5px solid color-mix(in srgb, var(--secondary) 40%, transparent);
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.btn-nudge:hover:not(:disabled) {
    background: var(--wash-secondary) !important;
    color: var(--secondary-hover) !important;
}

.btn-delete-item {
    padding: 0.38rem 0.65rem;
    color: var(--danger);
    border-color: var(--danger);
    font-size: 0.88rem;
}

.btn-claim-wildcard {
    background: var(--secondary);
    color: var(--on-primary);
    padding: 0.45rem 0.95rem;
    font-size: 0.88rem;
}

.btn-claim-item {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
}

/* Mobile Responsive */
@media (max-width: 720px) {
    .wishlist-card {
    padding: 0.95rem 1rem !important;
    gap: 0.65rem !important;
}
    .wishlist-card-header {
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
}
    .wishlist-card-body {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.85rem !important;
}
    .wishlist-card-img-wrap {
    width: 118px !important;
    height: 118px !important;
    min-width: 118px !important;
    margin: 0 auto !important;
}
    .wishlist-card-img-wrap--top {
    width: 135px !important;
    height: 135px !important;
    min-width: 135px !important;
}
    .wishlist-card-info {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
    .wishlist-card-meta,
    .wishlist-card-title-row,
    .wishlist-card-price-row {
    justify-content: center !important;
}
    .wishlist-card-side-actions {
    width: 100% !important;
    justify-content: center !important;
    border-top: 1.5px solid var(--rule-strong);
    padding-top: 0.65rem;
}
    .nudge-buttons {
    flex-direction: row !important;
}
}

/* ==========================================================================
   Party Page: Sticker & Felicitatie Module + Prikbord Responsive
   ========================================================================== */
.wish-lower-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.sticker-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.65rem;
    background: var(--paper);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-md);
}

.sticker-option {
    cursor: pointer;
    text-align: center;
    padding: 0.45rem 0.25rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--rule-strong);
    background: var(--surface-raised);
    transition: all 0.15s ease;
    position: relative;
    user-select: none;
}

.sticker-option:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.sticker-option.active {
    border-color: var(--secondary) !important;
    background: var(--paper) !important;
    transform: scale(1.06);
}

.sticker-option .sticker-emoji {
    font-size: 2.6rem;
    display: block;
    line-height: 1.1;
}

.sticker-option .sticker-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-soft);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .wish-lower-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
}
}

@media (max-width: 600px) {
    .wish-lower-grid {
    gap: 1.25rem !important;
    margin-bottom: 1.75rem !important;
}
    .sticker-picker-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.4rem !important;
    padding: 0.45rem !important;
}
    .sticker-option {
    padding: 0.35rem 0.15rem !important;
}
    .sticker-option .sticker-emoji {
    font-size: 2.3rem !important;
}
    .sticker-option .sticker-name {
    font-size: 0.66rem !important;
}
    .pledge-card,
    .supporters-card {
    padding: 1.25rem 0.95rem !important;
}
    .msg-card-header {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}
}

@media (max-width: 380px) {
    .sticker-picker-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
}
    .pledge-card,
    .supporters-card {
    padding: 1rem 0.75rem !important;
}
}

/* ==========================================================================
   Legal pages (privacy, terms) — deliberately calmer/more formal than the
   playful 3D-button aesthetic used elsewhere: this is where a visitor is
   checking whether to trust the site with their data.
   ========================================================================== */
.legal-page {
    max-width: 760px;
    margin: 2.5rem auto 4rem;
    padding: 0 1.25rem;
}
.legal-page .legal-card {
    background: var(--surface-raised);
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.75rem);
}
.legal-page h1 {
    font-family: var(--font-heading, 'Fredoka', sans-serif);
    font-size: 2rem;
    margin: 0 0 0.35rem;
    color: var(--ink);
}
.legal-page .legal-updated {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: 0 0 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule-strong);
}
.legal-page h2 {
    font-size: 1.15rem;
    color: var(--ink);
    margin: 1.9rem 0 0.6rem;
}
.legal-page h2:first-of-type {
    margin-top: 0;
}
.legal-page p,
.legal-page li {
    color: var(--secondary);
    line-height: 1.7;
    font-size: 0.98rem;
}
.legal-page ul {
    margin: 0.4rem 0 0.9rem;
    padding-left: 1.3rem;
}
.legal-page li {
    margin: 0.35rem 0;
}
.legal-page a {
    color: var(--secondary);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.35);
}
.legal-page .legal-business-block {
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 0.6rem 0 1.4rem;
    font-size: 0.92rem;
}
.legal-page .legal-business-block dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.9rem;
    margin: 0;
}
.legal-page .legal-business-block dt {
    color: var(--ink-soft);
    font-weight: 600;
}
.legal-page .legal-business-block dd {
    margin: 0;
}
.legal-page .legal-back {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 600;
}

/* ==========================================================================
   Admin / Ops Dashboard (internal customer-service tooling)
   Reuses the same toy-card / btn-3d / badge-tag language as the parent
   dashboard, just laid out plainer and denser — this is for staff, not
   parents, so it skips the playful marketing polish on purpose.
   ========================================================================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.admin-header h1 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: var(--ink);
}
.admin-header-meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
}
.admin-header-nav {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-search-bar {
    display: flex;
    gap: 0.6rem;
    margin: 0 0 1.75rem;
}
.admin-search-bar input[type="email"] {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}
.admin-search-bar input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.admin-stat-card {
    text-align: center;
    padding: 1.1rem 0.75rem;
}
.admin-stat-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
}
.admin-stat-label {
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.15rem;
}
.admin-stat-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-top: 0.35rem;
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}
.trend-up {
    background: var(--wash-success);
    color: var(--success);
}
.trend-down {
    background: var(--wash-danger);
    color: var(--danger-hover);
}
.trend-flat {
    background: var(--paper);
    color: var(--ink-soft);
}

.admin-section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-table-wrap {
    overflow-x: auto;
}
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
table.admin-table th {
    text-align: left;
    padding: 0.6rem 0.65rem;
    border-bottom: 2px solid var(--rule-strong);
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.82rem;
    white-space: nowrap;
}
table.admin-table td {
    padding: 0.6rem 0.65rem;
    border-bottom: 1px solid var(--rule-strong);
    color: var(--ink);
    vertical-align: middle;
}
table.admin-table tbody tr:hover {
    background: var(--paper);
}
table.admin-table tbody tr:last-child td {
    border-bottom: none;
}
table.admin-table .admin-table-muted {
    color: var(--ink-soft);
}

/* Slim CSS-only bar for a relative-size visualization inside a table cell —
   no JS/canvas/SVG, same pill shape as the rest of the app's progress bars,
   just sized for an inline table row instead of a full progress block. */
.admin-bar-track {
    width: 100%;
    min-width: 70px;
    height: 10px;
    background: var(--paper);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.admin-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    border-radius: var(--radius-pill);
}

.admin-result-card {
    margin-bottom: 1.5rem;
}
.admin-result-email {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}
.admin-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--ink-soft);
}

.admin-actions-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--rule-strong);
}




