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

:root {
    --bg-dark: #070711;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #7c3aed; /* Purple */
    --primary-light: #a78bfa;
    --accent-blue: #60a5fa;
    --accent-pink: #00d2ff;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.1);
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.4);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    
    /* Legacy variables for compatibility with app.js inline styles */
    --hud-bg: #0a0a1a;
    --hud-blue: #60a5fa;
    --hud-red: #00d2ff;
    --hud-green: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: ''; position: fixed; top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    z-index: -1; pointer-events: none;
}
body::after {
    content: ''; position: fixed; bottom: -10%; right: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 60%);
    z-index: -1; pointer-events: none;
}

/* Visibility Control */
.app-page { display: none !important; opacity: 0; transition: opacity 0.3s ease; }
.app-page.active { display: block !important; opacity: 1; }
#page-setup.active { display: flex !important; }
.dashboard-hud.active { display: flex !important; flex-direction: column; opacity: 1; min-height: 100vh; }
.auth-panel, .setup-block { display: none; }
.auth-panel.active, .setup-block.active { display: block !important; }
.display-none { display: none !important; }

/* Setup & Auth (Netflix entry-style) */
#page-setup {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: transparent;
}

.setup-frame {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.hud-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hud-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.glitch-title {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.version-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hud-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.panel-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.hud-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.hud-tab.active {
    color: var(--text-main);
    border-color: var(--primary);
}

.hud-input-group {
    margin-bottom: 1.5rem;
}

.hud-input-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
    color: var(--primary-light);
}

.hud-primary-btn {
    background: linear-gradient(135deg, var(--primary), #9333ea);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hud-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5);
}
.hud-primary-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.hud-success-btn {
    background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hud-success-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(96, 165, 250, 0.5); }
.hud-success-btn:active { transform: translateY(1px); box-shadow: 0 2px 10px rgba(96, 165, 250, 0.3); }

.hud-danger-btn {
    background: linear-gradient(135deg, var(--accent-pink), #0088cc);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hud-danger-btn:active { transform: translateY(1px); box-shadow: 0 2px 10px rgba(0, 210, 255, 0.3); }

.hud-secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.hud-secondary-btn:active { background: rgba(255, 255, 255, 0.1); }

/* Dashboard Nav */
.top-hud-bar {
    height: 70px;
    background: rgba(10, 10, 17, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bar-left { display: flex; align-items: center; gap: 1rem; }
.mini-logo { width: 32px; height: 32px; border-radius: 8px; }
.sys-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); display: block; }
.sys-val { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
.sys-info { display: flex; flex-direction: column; gap: 2px; }

.bar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.couple-stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pill-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.pill-progress-bg { width: 100px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.pill-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent-blue)); transition: width 0.5s ease; width: 0%; }

.bar-right { display: flex; gap: 1rem; }
.hud-ctrl-btn { 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    color: var(--text-main); 
    padding: 8px 16px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s;
}
.hud-ctrl-btn:active { background: rgba(255, 255, 255, 0.1); }
.hud-ctrl-btn.blue { color: var(--accent-blue); }
.hud-ctrl-btn.red { color: var(--accent-pink); }

/* Dashboard Layout */
.hud-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hud-sector {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.sector-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.player-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #4c1d95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    position: relative;
}

.player-icon.partner {
    background: linear-gradient(135deg, var(--accent-pink), #005580);
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.4);
}

.player-icon.offline {
    background: #333;
    box-shadow: none;
    opacity: 0.6;
}

/* Pulsing Dot */
.pulsing-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background-color: #10b981; /* green */
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}
.pulsing-dot::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}
.status-dot.active { background-color: #10b981; box-shadow: 0 0 8px #10b981; }
.status-dot.offline { background-color: #6b7280; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(3); opacity: 0; }
}

.player-info { flex: 1; }
.player-info h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.25rem; display: flex; align-items: center; }

/* Subtitle for streak */
.streak-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.streak-count { color: #f59e0b; font-weight: 700; }

.health-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.health-bar-container label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.hb-bg {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.hb-fill { height: 100%; border-radius: 3px; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); width: 0%;}
.hb-fill.blue { background: var(--primary); }
.hb-fill.red { background: var(--accent-pink); }
.hb-val { font-size: 0.85rem; font-weight: 700; min-width: 40px; text-align: right; }

.time-pill {
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Tables */
.hud-table-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hud-table { width: 100%; border-collapse: collapse; }
.hud-table th { 
    text-align: left; 
    font-size: 0.7rem; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted); 
    padding: 12px 16px; 
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}
.hud-table td { 
    padding: 16px; 
    border-bottom: 1px solid rgba(255,255,255,0.02); 
    font-size: 0.95rem; 
    color: var(--text-main);
    font-weight: 500;
}
.hud-table tr:last-child td { border-bottom: none; }

.table-subhead td {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.01);
    padding: 12px 16px;
}

/* Checkbox */
.task-checkbox { 
    appearance: none; 
    width: 20px; 
    height: 20px; 
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer; 
    transition: all 0.2s;
    background: rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.task-checkbox:active {
    background: rgba(0,0,0,0.5);
}
.task-checkbox:checked { 
    background: var(--primary); 
    border-color: var(--primary); 
}
.task-checkbox:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.completed-row { opacity: 0.5; }

/* Stat Boxes */
.stat-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1.5rem;
}

.stat-box label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.mini-hud-list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}
.hud-alert-text { color: var(--accent-pink); font-weight: 700; }

/* Branding */
.kevin-branding {
    position: fixed;
    bottom: 20px; right: 20px;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(8px);
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    z-index: 2000;
    display: flex;
    align-items: center;
}

.kevin-text {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #00d2ff, #60a5fa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-gradient-flow 3s linear infinite;
}

@keyframes text-gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Modals */
.hud-modal { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); 
    z-index: 3000; display: none; align-items: center; justify-content: center; 
}
.modal-card { 
    width: 100%; max-width: 480px; background: var(--bg-card); 
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 20px; padding: 2rem; border: 1px solid var(--border); 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); 
}
.modal-card h2 { margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 500; }
.modal-btns { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }

.hud-text-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.hud-text-btn:hover { color: var(--text-main); }
.danger-btn { background: rgba(0, 210, 255, 0.1); border: 1px solid rgba(0, 210, 255, 0.3); color: var(--accent-pink); border-radius: 6px; cursor: pointer; transition: all 0.2s; padding: 6px 12px; }
.danger-btn:hover { background: rgba(0, 210, 255, 0.2); }

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

.setup-block .link-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem;
}
.link-node {
    background: var(--bg-card); border: 1px solid var(--border); padding: 1.5rem; border-radius: 16px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.link-node h3 { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px;}
.mini-form { display: flex; gap: 8px;}
.mini-form input { padding: 8px 12px; font-size: 0.85rem; flex: 1; }
.my-id-box { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); padding: 1rem; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.code-box { background: rgba(0, 0, 0, 0.2); padding: 1rem; border-radius: 12px; font-family: monospace; font-size: 1.2rem; text-align: center; color: var(--primary-light); margin-top: 1rem; border: 1px solid var(--border); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.card-header h2 { font-size: 1.5rem; font-weight: 500;}

@media (max-width: 1024px) {
    .hud-main-grid { grid-template-columns: 1fr; }
}/* Custom Cursor Refinement (Organic & Glowing) */
body, button, a, .hud-tab, .task-checkbox, .player-icon, .danger-btn {
    cursor: none !important;
}

input {
    cursor: text !important;
}

#cursor-dot {
    width: 4px;
    height: 4px;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10001;
    background: #00f2ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #00f2ff, 0 0 20px rgba(0, 242, 255, 0.5);
}

#cursor-ring {
    width: 40px;
    height: 40px;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid rgba(0, 242, 255, 0.4);
    background: rgba(0, 242, 255, 0.03);
    backdrop-filter: blur(2px);
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.3s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.3s,
                background 0.3s;
}

#cursor-ring.cursor-magnetic {
    width: 60px;
    height: 60px;
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
    border-width: 2px;
}

.cursor-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    border-radius: 50%;
    animation: particle-fade 0.6s ease-out forwards;
}

@keyframes particle-fade {
    0% { transform: scale(1); opacity: 1; filter: brightness(1.5) blur(0px); }
    100% { transform: scale(0); opacity: 0; filter: brightness(1) blur(2px); }
}

/* CELEBRATION EFFECTS */
.celebration-layer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5000;
}

.aurora-border {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 5001;
    border: 0px solid transparent;
    transition: border-width 0.5s ease;
}

.active-celebration .aurora-border {
    border-width: 8px;
    animation: aurora-flow 4s linear infinite;
}

@keyframes aurora-flow {
    0% { border-color: rgba(124, 58, 237, 0.5); box-shadow: inset 0 0 50px rgba(124, 58, 237, 0.3); }
    33% { border-color: rgba(0, 210, 255, 0.5); box-shadow: inset 0 0 50px rgba(0, 210, 255, 0.3); }
    66% { border-color: rgba(16, 185, 129, 0.5); box-shadow: inset 0 0 50px rgba(16, 185, 129, 0.3); }
    100% { border-color: rgba(124, 58, 237, 0.5); box-shadow: inset 0 0 50px rgba(124, 58, 237, 0.3); }
}

.active-celebration body {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.005); }
    100% { transform: scale(1); }
}

.celeb-emoji {
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.4));
}

.active-celebration #quill-emoji {
    animation: quill-scribble 1s ease-in-out infinite;
}

.active-celebration #camera-emoji {
    animation: camera-flash 2s steps(2) infinite;
}

@keyframes quill-scribble {
    0% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(-15deg) translateX(-5px); }
    75% { transform: rotate(15deg) translateX(5px); }
    100% { transform: rotate(0deg) translateX(0); }
}

@keyframes camera-flash {
    0%, 90% { opacity: 1; transform: scale(1); filter: brightness(1); }
    95% { opacity: 1; transform: scale(1.2); filter: brightness(5); }
    100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

.flash-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

.flash-active {
    animation: screen-flash 0.5s ease-out forwards;
}

@keyframes screen-flash {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

.floating-symbol {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 5002;
    animation: float-up 3s ease-out forwards;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0.5) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5) rotate(360deg); opacity: 0; }
}

/* 100% SYNC GLOW EFFECT */
.couple-stat-pill.sync-glow {
    box-shadow: 0 0 25px 8px rgba(16, 185, 129, 0.7), 0 0 15px 3px rgba(0, 210, 255, 0.5), inset 0 0 15px rgba(16, 185, 129, 0.5);
    border-color: rgba(16, 185, 129, 1);
    animation: sync-pulsate 2s infinite ease-in-out;
}

@keyframes sync-pulsate {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.3); }
}

/* ORBITING EMOJIS & FAIRY DUST */
.phantom-emoji {
    position: absolute;
    font-size: 1.5rem;
    z-index: 5010;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phantom-emoji.orbiting {
    animation: emoji-orbit 4s linear infinite;
}

@keyframes emoji-orbit {
    from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

.fairy-dust {
    position: fixed;
    pointer-events: none;
    z-index: 5009;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 5px 2px white, 0 0 10px 4px rgba(255, 255, 255, 0.5);
    animation: fairy-fade 0.8s ease-out forwards;
}

@keyframes fairy-fade {
    0% { transform: scale(1) translateY(0); opacity: 1; }
    100% { transform: scale(0) translateY(-20px); opacity: 0; }
}

/* HEART TRAIL FOR SYNC */
.heart-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    font-size: 1.2rem;
    color: red; /* Starting color for rainbow */
    text-shadow: 0 0 10px currentColor; /* Match glow to the cycling color */
    animation: floatHeart 1s ease-out forwards, rainbowHeart 1s linear infinite;
}

@keyframes rainbowHeart {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes floatHeart {
    0% { transform: scale(0.5) translateY(0); opacity: 1; }
    100% { transform: scale(1.5) translateY(-50px); opacity: 0; }
}