@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   PakARQ Proposal Tool - Premium Modern UI System
   ========================================================================== */

:root {
    --purple-900: #1a0533;
    --purple-800: #2a0a5e;
    --purple-700: #4b14b8;
    --purple-600: #6a1cff;
    --purple-500: #7c1cff;
    --purple-400: #9a4cff;
    --purple-300: #c9a8ff;
    --purple-200: #e6d8ff;
    --purple-100: #f3ecff;
    --purple-50: #faf6ff;
    
    --pink-600: #db2777;
    --pink-500: #ec4899;
    --pink-400: #f472b6;
    --pink-200: #fbcfe8;
    --pink-100: #fce7f3;
    --pink-50: #fdf2f8;

    --ink: #12071b;
    --ink-2: #2d1f42;
    --muted: #6b5887;
    --white: #ffffff;

    --pink-primary: #ec4899;
    --pink-hover: #db2777;

    --grad-purple: linear-gradient(135deg, #7c1cff 0%, #b070ff 100%);
    --grad-primary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --grad-love: linear-gradient(135deg, #ff4b72 0%, #ec4899 50%, #a855f7 100%);
    --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-danger: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    
    --grad-hero: radial-gradient(1200px 700px at 85% -10%, #fbcfe8 0%, rgba(251, 207, 232, 0) 60%),
        radial-gradient(900px 600px at -10% 20%, #e6d8ff 0%, rgba(230, 216, 255, 0) 65%),
        linear-gradient(180deg, #faf6ff 0%, #ffffff 100%);

    --shadow-xl: 0 35px 70px -20px rgba(106, 28, 255, 0.25);
    --shadow-lg: 0 20px 45px -15px rgba(106, 28, 255, 0.18);
    --shadow-md: 0 12px 25px -10px rgba(106, 28, 255, 0.12);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-glow-pink: 0 12px 32px rgba(236, 72, 153, 0.35);
    --shadow-glow-purple: 0 12px 32px rgba(124, 28, 255, 0.3);

    --radius-full: 9999px;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-body: 'Outfit', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--grad-hero);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Serif Italics Signature Style */
.serif, em {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    color: var(--purple-600);
}

/* Multi-color emoji rendering */
.emoji, em .emoji, .serif .emoji, body span.emoji {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif !important;
    font-style: normal !important;
    color: initial !important;
    background: transparent !important;
    -webkit-text-fill-color: initial !important;
}

h1, h2, h3, h4, h5, h6, .section-title, .proposal-title, .page-banner-title {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 12px;
}

/* Page Banner Hero Section */
.page-banner {
    background: var(--grad-hero);
    padding: 145px 0 45px !important;
    border-bottom: 1px solid var(--purple-100);
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-banner .container {
    position: relative;
    z-index: 3;
}

.page-banner .eyebrow {
    background: #ffffff;
    border: 1px solid var(--purple-100);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    font-weight: 700;
    color: var(--purple-600);
    font-size: 0.92rem;
}

.page-banner-title {
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 14px;
}

.page-banner-sub {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

section {
    position: relative;
    z-index: 2;
}

/* MARQUEE TICKER */
.marquee {
    padding: 20px 0;
    background: #ffffff;
    border-top: 1px solid var(--purple-100);
    border-bottom: 1px solid var(--purple-100);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: scroll 45s linear infinite;
    width: max-content;
    align-items: center;
}

.marquee-track > span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.85rem;
    color: var(--purple-700);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 60px;
}

.marquee-track > span::after {
    content: "💖";
    font-size: 1.2rem;
    opacity: 0.8;
}

.marquee-track > span.copy-hide-line {
    color: var(--pink-primary);
    font-weight: 600;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Glass Card Component */
.glass-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 65px -15px rgba(236, 72, 153, 0.2), 0 10px 30px rgba(124, 28, 255, 0.08);
    width: 100%;
    max-width: 560px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    z-index: 3;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 30px 75px -15px rgba(236, 72, 153, 0.28), 0 15px 40px rgba(124, 28, 255, 0.12);
}

/* Floating Background Particles */
.floating-hearts {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -60px;
    font-size: 26px;
    opacity: 0.45;
    pointer-events: none;
    animation: floatUp 12s infinite ease-in-out;
    filter: drop-shadow(0 4px 12px rgba(236, 72, 153, 0.4));
    user-select: none;
    will-change: transform, opacity;
}

.theme-dinner .floating-heart {
    filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.45));
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.85);
        opacity: 0;
    }
    15% {
        opacity: 0.65;
    }
    85% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-112vh) rotate(360deg) scale(1.25);
        opacity: 0;
    }
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--grad-love);
    color: #ffffff !important;
    box-shadow: var(--shadow-glow-pink);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(236, 72, 153, 0.45);
    filter: brightness(1.05);
}

.btn-secondary, .btn-ghost {
    background: #ffffff;
    color: var(--ink-2);
    border: 1.5px solid var(--purple-200);
    box-shadow: 0 4px 14px rgba(106, 28, 255, 0.06);
}

.btn-secondary:hover, .btn-ghost:hover {
    background: var(--purple-50);
    border-color: var(--purple-400);
    color: var(--purple-700);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--grad-danger);
    color: #ffffff;
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.88rem;
}

/* ==========================================================================
   CLEAN PROPOSAL PLAYER CARD ENGINE
   ========================================================================== */

html.proposal-player-html,
html.proposal-player-html body {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

body.proposal-player-body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: block; /* Normal block so fixed floating hearts do not distort flex */
    position: relative;
    overflow-x: hidden;
}

/* Floating ambient glowing light orbs in background */
body.proposal-player-body::before,
body.proposal-player-body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(85px);
    opacity: 0.7;
    animation: ambientFloat 9s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-25px) scale(1.12); }
}

/* 🌹 THEME 1: Romantic Love Proposal (True Romantic Red - e.g. #21, #19) */
body.proposal-player-body.theme-romantic,
body.proposal-player-body {
    background:
        radial-gradient(circle at 50% 20%, rgba(244, 63, 94, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 15% 15%, rgba(225, 29, 72, 0.5) 0%, transparent 52%),
        radial-gradient(circle at 85% 85%, rgba(159, 18, 57, 0.55) 0%, transparent 55%),
        linear-gradient(145deg, #be123c 0%, #9f1239 30%, #881337 65%, #4c0519 100%);
    background-attachment: fixed;
}

body.proposal-player-body.theme-romantic::before {
    top: -80px;
    left: -70px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(255, 75, 110, 0.45) 0%, transparent 70%);
}

body.proposal-player-body.theme-romantic::after {
    bottom: -80px;
    right: -70px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.45) 0%, transparent 70%);
    animation-delay: -4s;
}

body.proposal-player-body.theme-romantic .proposal-player-card {
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.95) inset,
        0 28px 70px -10px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(225, 29, 72, 0.35);
}

body.proposal-player-body.theme-romantic .floating-heart {
    filter: drop-shadow(0 4px 14px rgba(255, 255, 255, 0.4));
}

/* 🍷 THEME 2: Candlelight Dinner Date (Warm Candlelight Amber & Fine Wine - e.g. #20) */
body.proposal-player-body.theme-dinner {
    background:
        radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.38) 0%, transparent 60%),
        radial-gradient(circle at 14% 16%, rgba(234, 88, 12, 0.42) 0%, transparent 50%),
        radial-gradient(circle at 86% 84%, rgba(136, 19, 55, 0.55) 0%, transparent 55%),
        linear-gradient(145deg, #431407 0%, #701a1e 35%, #4c0519 70%, #29040e 100%);
    background-attachment: fixed;
}

body.proposal-player-body.theme-dinner::before {
    top: -80px;
    left: -70px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45) 0%, transparent 70%);
}

body.proposal-player-body.theme-dinner::after {
    bottom: -80px;
    right: -70px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.4) 0%, transparent 70%);
    animation-delay: -4s;
}

body.proposal-player-body.theme-dinner .proposal-player-card {
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.95) inset,
        0 28px 70px -10px rgba(0, 0, 0, 0.5),
        0 0 45px rgba(245, 158, 11, 0.32);
}

body.proposal-player-body.theme-dinner .proposal-player-card::before {
    background: linear-gradient(90deg, #f59e0b, #ea580c, #e11d48, #f59e0b);
    background-size: 200% 100%;
}

body.proposal-player-body.theme-dinner .player-step-badge {
    color: #c2410c;
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.3);
}

body.proposal-player-body.theme-dinner .progress-bar-fill {
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

body.proposal-player-body.theme-dinner .romantic-msg-box {
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
    border-color: rgba(249, 115, 22, 0.45);
    color: #9a3412;
}

body.proposal-player-body.theme-dinner .btn-primary {
    background: linear-gradient(135deg, #ea580c 0%, #e11d48 50%, #9f1239 100%);
    box-shadow: 0 12px 30px rgba(234, 88, 12, 0.4);
}

body.proposal-player-body.theme-dinner .floating-heart {
    filter: drop-shadow(0 4px 14px rgba(251, 191, 36, 0.45));
}

.clean-player-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.proposal-player-card {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 2px solid rgba(255, 182, 218, 0.65);
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 24px 60px -12px rgba(236, 72, 153, 0.28),
        0 12px 30px -8px rgba(139, 92, 246, 0.16);
    padding: 34px 28px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

/* Card Decorative Top Gradient Glow */
.proposal-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ec4899, #a855f7, #3b82f6, #ec4899);
    background-size: 200% 100%;
    animation: shimmerBar 4s linear infinite;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@keyframes shimmerBar {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Step & Progress Indicators */
.player-header-meta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 4px;
    flex-shrink: 0;
}

.player-step-badge {
    display: none !important;
}

.progress-bar-wrap {
    width: 100%;
    max-width: 100%;
    height: 6px;
    background: rgba(236, 72, 153, 0.12);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--grad-love);
    border-radius: 10px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

#player-screen-card {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 0;
}

.screen-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: screenEnter 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.2) both;
}

@keyframes screenEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.screen-media {
    font-size: 4.2rem;
    line-height: 1;
    margin-bottom: 14px;
    animation: bounceSlow 2.4s infinite ease-in-out;
    filter: drop-shadow(0 6px 16px rgba(236, 72, 153, 0.3));
    display: inline-block;
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.06);
    }
}

.proposal-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1c063b;
    line-height: 1.3;
    margin: 0 0 10px;
    word-break: break-word;
}

.proposal-subtitle {
    font-size: 0.98rem;
    color: #6d528b;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 380px;
    word-break: break-word;
}

/* Romantic Message Box */
.romantic-msg-box {
    background: linear-gradient(135deg, #fff5f8 0%, #fef2f7 100%);
    border: 1.5px dashed rgba(236, 72, 153, 0.4);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: #831843;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 24px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.06);
}

/* Yes / No Action Buttons Container */
.yes-no-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    position: relative;
    min-height: 80px;
    width: 100%;
    max-width: 380px;
}

.btn-yes {
    background: var(--grad-success);
    color: #ffffff;
    padding: 14px 38px;
    font-size: 1.12rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.38);
}

.btn-yes:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.48);
}

.btn-no {
    background: var(--grad-danger);
    color: #ffffff;
    padding: 14px 38px;
    font-size: 1.12rem;
    position: relative;
    transition: all 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.32);
}

/* Choice Grid Options */
.choices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 12px 0 24px;
    width: 100%;
    max-width: 400px;
}

.choice-option-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    background: #ffffff;
    border: 2px solid rgba(236, 72, 153, 0.18);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
    color: #2a1142;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.05);
    user-select: none;
}

.choice-option-pill:hover {
    border-color: #ec4899;
    background: #fff5f8;
    transform: translateY(-2px);
}

.choice-option-pill input[type="radio"] {
    accent-color: #ec4899;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.choice-option-pill:has(input[type="radio"]:checked) {
    border-color: #ec4899;
    background: linear-gradient(135deg, #fff0f7, #f6edff);
    color: #7c1cff;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2);
    transform: scale(1.02);
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--ink-2);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid rgba(236, 72, 153, 0.2);
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    color: #1c063b;
}

.form-control:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

/* Builder & Dashboard Components */
.builder-layout {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

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

.screen-card-item {
    background: #ffffff;
    border: 1.5px solid var(--purple-100);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(42, 10, 94, 0.05);
}

.screen-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 800;
    color: var(--purple-600);
}

.response-table-wrap {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--purple-100);
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

.response-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.response-table th {
    background: var(--purple-50);
    padding: 15px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
    border-bottom: 1px solid var(--purple-100);
}

.response-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.94rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-primary { background: #fce7f3; color: #be185d; }

/* Responsive Adjustments */
@media (max-width: 560px) {
    .clean-player-wrap {
        padding: 16px 10px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .proposal-player-card {
        padding: 28px 18px 24px;
        border-radius: 26px;
        max-width: 100%;
    }

    .proposal-title {
        font-size: 1.4rem;
    }

    .proposal-subtitle {
        font-size: 0.94rem;
        margin-bottom: 18px;
    }

    .screen-media {
        font-size: 3.2rem;
        margin-bottom: 12px;
    }

    .btn-yes, .btn-no, .btn-primary {
        padding: 12px 26px;
        font-size: 1rem;
    }

    .choices-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .choice-option-pill {
        padding: 11px 12px;
        font-size: 0.88rem;
    }
}

