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

:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --secondary: #F472B6;
    --accent: #FBBF24;
    --bg-dark: #0F0A1A;
    --bg-mid: #1E1B4B;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, #2D1B69 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    position: relative;
}

/* Particle Canvas */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Screens */
.screen {
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
}

/* Opening Screen */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 100%, rgba(244, 114, 182, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 50%);
    animation: aurora 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes aurora {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(244, 114, 182, 0.5);
    margin-bottom: 0.5rem;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 3rem;
}

/* Portal Orb */
.portal-orb {
    width: 180px;
    height: 180px;
    margin: 2rem auto;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portal-orb:hover {
    transform: scale(1.05);
}

.portal-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--accent) 0%, var(--secondary) 50%, var(--primary) 100%);
    border-radius: 50%;
    animation: pulse-inner 2s ease-in-out infinite;
}

@keyframes pulse-inner {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid;
    animation: orbit 4s linear infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border-color: rgba(244, 114, 182, 0.6);
}

.ring-2 {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border-color: rgba(124, 58, 237, 0.5);
    animation-duration: 6s;
    animation-direction: reverse;
}

.ring-3 {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
    border-color: rgba(251, 191, 36, 0.4);
    animation-duration: 8s;
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.3) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    font-size: 1.5rem;
    animation: float-up 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Buttons */
.start-btn, .submit-btn, .mint-btn, .save-btn {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
}

.start-btn:hover, .submit-btn.ready:hover, .mint-btn:hover, .save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.5);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.submit-btn:not(.ready) {
    opacity: 0.5;
    cursor: not-allowed;
}

.ghost-hint {
    position: absolute;
    bottom: -80px;
    right: 10%;
    font-size: 2rem;
    opacity: 0.3;
    animation: ghost-float 4s ease-in-out infinite;
}

@keyframes ghost-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Profile Screen */
.screen-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    text-align: left;
}

.input-wrapper {
    position: relative;
}

.soul-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.soul-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.3);
}

.soul-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-wrapper.focused .sparkle-trail {
    opacity: 1;
}

.sparkle-trail {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.sparkle-trail::before {
    content: '✨';
    animation: sparkle 1s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

/* Element Grid */
.element-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.element-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.element-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.element-btn.selected {
    border-color: var(--element-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px color-mix(in srgb, var(--element-color) 40%, transparent);
}

.element-emoji {
    font-size: 1.5rem;
}

.element-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Slider */
.slider-container {
    position: relative;
    padding: 0.5rem 0;
}

.heart-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

.heart-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(244, 114, 182, 0.5);
}

.slider-glow {
    position: absolute;
    top: 50%;
    left: 0;
    height: 8px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    pointer-events: none;
}

/* Constellation Grid */
.constellation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.constellation-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.constellation-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.constellation-btn.selected {
    border-color: var(--accent);
    background: rgba(251, 191, 36, 0.1);
}

.constellation-symbol {
    font-size: 1.5rem;
}

.constellation-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Scanning Screen */
.scan-container {
    text-align: center;
}

.scan-orb {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

.scan-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    border-radius: 50%;
    animation: scan-pulse 1.5s ease-in-out infinite;
}

@keyframes scan-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.scan-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.orbiting-hearts {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    animation: orbit 4s linear infinite;
}

.orbit-heart {
    position: absolute;
    font-size: 1.2rem;
}

.orbit-heart:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-heart:nth-child(2) { top: 25%; right: 0; }
.orbit-heart:nth-child(3) { bottom: 25%; right: 0; }
.orbit-heart:nth-child(4) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit-heart:nth-child(5) { bottom: 25%; left: 0; }
.orbit-heart:nth-child(6) { top: 25%; left: 0; }

.progress-container {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 4px;
    transition: width 0.1s ease;
}

.scan-phase {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    min-height: 2em;
}

.gas-fee-joke {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

/* Match Screen */
.match-screen {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.match-screen.revealed {
    opacity: 1;
}

.match-container {
    max-width: 700px;
}

.match-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    animation: title-glow 2s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(244, 114, 182, 0.5); }
    50% { text-shadow: 0 0 40px rgba(244, 114, 182, 0.8); }
}

.profiles-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    width: 180px;
    animation: slide-in 0.6s ease-out;
}

.user-profile {
    animation-delay: 0.2s;
}

.match-profile {
    animation-delay: 0.4s;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.ai-avatar {
    overflow: hidden;
    padding: 0;
}

.ai-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ai-avatar img.loaded {
    opacity: 1;
}

.avatar-loading {
    font-size: 2rem;
    animation: sparkle 1s infinite;
}

.profile-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.profile-element {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.profile-constellation {
    font-size: 0.75rem;
    color: var(--accent);
}

.profile-bio {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Red Thread */
.red-thread {
    position: relative;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thread-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF6B6B, transparent);
    animation: thread-pulse 2s ease-in-out infinite;
}

@keyframes thread-pulse {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.thread-heart {
    position: absolute;
    animation: heart-beat 1s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.stat-card.destiny {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(244, 114, 182, 0.2));
    border-color: var(--secondary);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.destiny .stat-value {
    font-size: 2rem;
}

.consensus-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

/* Certificate Screen */
.certificate-wrapper {
    max-width: 500px;
    width: 100%;
}

.certificate {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(251, 191, 36, 0.3),
        0 0 80px rgba(124, 58, 237, 0.2);
    margin-bottom: 2rem;
}

.cert-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cert-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.cert-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.cert-header {
    text-align: center;
}

.cert-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.cert-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.cert-profiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cert-profile {
    text-align: center;
}

.cert-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.5rem;
    overflow: hidden;
}

.cert-avatar.ai img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-profile p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
}

.cert-bond-symbol {
    font-size: 2rem;
    color: var(--accent);
    animation: infinity-spin 4s linear infinite;
}

@keyframes infinity-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cert-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.cert-stat {
    text-align: center;
}

.cert-stat span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.cert-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent);
}

.cert-id {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    word-break: break-all;
}

.cert-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.near-badge {
    background: linear-gradient(135deg, #00C1DE, #00EC97);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.6rem;
    color: black;
}

.cert-holographic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    animation: holographic 3s linear infinite;
    pointer-events: none;
}

@keyframes holographic {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cert-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.save-btn.saving {
    opacity: 0.7;
    cursor: wait;
}

.saved-message {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    text-align: center;
    color: #86EFAC;
}

.new-bond-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-bond-btn:hover {
    border-color: var(--secondary);
    background: rgba(244, 114, 182, 0.1);
}

/* Gallery Screen */
.gallery-screen {
    justify-content: flex-start;
    padding-top: 4rem;
}

.gallery-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.empty-gallery {
    text-align: center;
    padding: 3rem;
}

.empty-gallery span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-gallery p {
    color: rgba(255, 255, 255, 0.7);
}

.empty-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5) !important;
}

.bonds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.bond-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.bond-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.bond-card.burning {
    animation: burn 1.5s forwards;
}

@keyframes burn {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); background: rgba(249, 115, 22, 0.3); }
    100% { transform: scale(0); opacity: 0; }
}

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

.bond-score {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent);
}

.burn-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.burn-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.bond-profiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bond-link {
    font-size: 1rem;
    animation: heart-beat 1s ease-in-out infinite;
}

.bond-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.bond-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    word-break: break-all;
}

/* Gallery FAB */
.gallery-fab {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
}

.gallery-fab:hover {
    transform: scale(1.05);
}

/* Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(180deg, transparent, rgba(15, 10, 26, 0.9));
    z-index: 50;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.berrry-link {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.berrry-link:hover {
    color: var(--accent);
}

.footer-divider {
    opacity: 0.3;
}

.dedication {
    font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
    .screen {
        padding: 1rem;
        padding-bottom: 4rem;
    }

    .element-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .element-grid .element-btn:nth-child(4),
    .element-grid .element-btn:nth-child(5) {
        grid-column: span 1;
    }

    .constellation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profiles-wrapper {
        flex-direction: column;
    }

    .red-thread {
        transform: rotate(90deg);
        height: 40px;
        width: 40px;
    }

    .profile-card {
        width: 100%;
        max-width: 200px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card.destiny {
        grid-column: span 1;
    }

    .cert-profiles {
        flex-direction: row;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-divider {
        display: none;
    }
}