/* ===== PREMIUM DESIGN SYSTEM ===== */
:root {
    /* Senior Design System - Frosted & Clean */
    --pink: #ff6b9d;
    --pink-light: #ffadd1;
    --pink-dark: #e84393;
    --pink-deep: #db2777; /* Defined missing variable */
    --purple: #a855f7;
    --purple-dark: #7c3aed;
    --lavender: #f3e8ff;
    
    /* Text */
    --text-main: #5e3b4a;
    --text-muted: #8b6d7a;
    
    /* System */
    --bg-soft: #fffbfc;
    --error: #ff4757;
    --success: #2ed573;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 28px;
    --radius-sm: 18px;
    --shadow-soft: 0 10px 30px -5px rgba(255, 133, 161, 0.15);
    --shadow-deep: 0 20px 50px -10px rgba(255, 133, 161, 0.25);
    --pink-glow: 0 0 25px rgba(255, 133, 161, 0.4);
    --milky-glass: rgba(255, 255, 255, 0.6); /* Defined missing variable for glass effect */

    /* Cursors */
    --cursor-default: url('images/newdefV2.png') 16 16, auto;
    --cursor-pointer: url('images/cursor_v2.png') 16 16, pointer;
    --cursor-pet: url('images/cursor_pet.png') 16 16, crosshair;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-soft);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.4;
    cursor: var(--cursor-default);
}

/* Global Cursor States */
button, 
.btn, 
.btn-premium, 
a, 
select, 
label[for], 
input[type="button"], 
input[type="submit"],
.lb-item,
.server-card,
.btn-nav-arrow {
    cursor: var(--cursor-pointer) !important;
}

img, 
.femboy-image, 
.result-image-container,
.result-image-container *,
.hero-image-container,
.hero-image-container *,
.view-server-icon,
.user-avatar {
    cursor: var(--cursor-pet) !important;
}

.hero-visual {
    z-index: 5;
}

/* Screen Management Fix */
.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 10;
}

.screen.active {
    display: flex !important; /* Ensure visibility when active */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Start from top to allow scrolling */
    padding: 100px 20px 60px; /* Account for top-bar */
    animation: fadeIn 0.5s ease-out;
}

/* Soft Kawaii Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 0% 0%, #fff5f7 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, #fef3f7 0%, transparent 50%),
                #ffffff;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: -1;
    animation: float 20s infinite alternate;
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--pink-light);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--lavender);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #ffe4e1;
    top: 40%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 40px) scale(1.1); }
}

@keyframes cardAppear {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* ===== UTILITIES ===== */
.glass {
    background: var(--milky-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius);
}

/* ===== TOP BAR HEADER ===== */
.top-bar {
    position: fixed;
    top: 25px; /* Slightly lower for better spacing */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1300px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    background: transparent; /* Removed white plate */
    border: none; /* Removed borders */
    box-shadow: none; /* Removed shadow */
    backdrop-filter: none;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pink);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(255, 107, 157, 0.2); /* Subtle glow for readability */
}

.top-bar .auth-box {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--pink-light);
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8); /* Slight lift */
}

.btn-secondary {
    background: rgba(255, 255, 255, 1) !important; /* Fully opaque for better visibility */
    border: 2px solid var(--pink-light) !important;
    color: var(--pink-deep) !important; /* Explicit pink text */
    font-weight: 800 !important;
}

#btn-show-leaderboard span {
    color: var(--pink-deep) !important; /* Force span color as well */
}

.btn-secondary:hover {
    background: white !important;
    border-color: var(--pink) !important;
}

.btn-logout {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
    border: none;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-dark);
    border: none;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-logout:hover {
    background: var(--error);
    color: white;
}

.btn-purple:hover {
    background: var(--purple);
    color: white;
}

/* Glass & Utilities */
.glass-white {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    box-shadow: 0 5px 25px rgba(255, 133, 161, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== HERO PAGE ===== */
.dynamic-split {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 60px;
    align-items: center;
    max-width: 1300px;
    width: 95%;
    margin: 0 auto;
    padding: 80px 40px;
    min-height: 85vh;
}

@media (max-width: 1200px) {
    .dynamic-split {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 60px;
        text-align: center;
    }
}

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.hero-image-container {
    width: 100%;
    max-width: 750px; /* Increased from 650px */
    position: relative;
    max-height: 750px; /* Increased from 650px */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -65px; 
    margin-left: -55px;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 15px;
    background: rgba(255, 255, 255, 0.45);
    border: 5px solid white;
    box-shadow: 0 40px 80px rgba(255, 107, 157, 0.25);
    border-radius: 45px;
    backdrop-filter: blur(10px);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(255, 133, 161, 0.3));
    animation: floatHero 6s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--pink-light) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 32px; /* Reduced from 48px (felt too far apart) */
    animation: slideRight 1s var(--transition-smooth);
    pointer-events: none;
    z-index: 10;
}

.hero-content > * {
    pointer-events: auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 550px;
}

.highlight {
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--pink); /* Fallback for browsers that don't support clipping */
    font-weight: 800;
    filter: drop-shadow(0 2px 10px rgba(255, 107, 157, 0.15));
    display: inline-block; /* Required for some clip cases */
}

/* Layout Utilities */
.action-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.action-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

/* ===== PREMIUM BUTTONS ===== */
.btn-premium {
    position: relative;
    padding: 18px 42px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Comfortaa', sans-serif;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    border: none;
    transition: all 0.4s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(251, 111, 146, 0.3);
    overflow: hidden;
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(251, 111, 146, 0.4);
    background: linear-gradient(135deg, #ff9fb4, #ff85a1);
}

.btn-premium::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    left: -100px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.75s var(--transition-smooth);
}

.btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

.btn-premium:hover::after {
    left: 140%;
}


.btn-premium:active {
    transform: translateY(-1px) scale(0.98);
}

/* Specific button mappings */
.btn-start, .btn-next { 
    letter-spacing: 0.5px;
}

.btn-retry { 
    background: linear-gradient(135deg, var(--purple-dark), var(--blue));
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

/* ===== CUSTOM NEON TOGGLE ===== */
.hardmode-wrap {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 1s var(--transition-smooth) 0.3s backwards;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 100px;
    border: 1px solid var(--glass-white-border);
    transition: var(--transition-fast);
}

.toggle-label:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}


.toggle-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white-soft);
}

.toggle-switch {
    position: relative;
    width: 54px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 133, 161, 0.15); /* More visible pinkish tint when OFF */
    transition: .4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
    border: 1px solid rgba(255, 107, 157, 0.3); /* Distinct border for visibility */
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background-color: var(--pink);
    border-color: var(--pink-light);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.hardmode-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 20px;
}

/* ===== PREMIUM DISCORD BUTTON ===== */
.btn-discord {
    background: #5865f2; /* Solid color for better contrast */
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    width: auto; /* Changed from 100% to auto for floating look */
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2); /* Added permanent shadow */
}

.btn-discord:hover {
    background: rgba(88, 101, 242, 1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.discord-icon {
    width: 24px;
    fill: currentColor;
}

/* ===== QUIZ CARDS ===== */
.quiz-card {
    max-width: 680px;
    width: 100%;
    padding: 50px;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
}

.progress-fill {
    background: linear-gradient(90deg, var(--pink), var(--pink-deep));
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
    height: 100%;
    border-radius: 100px;
}

/* Removing duplicate and confusing blocks */

.hero-header {
    margin-bottom: 10px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding: 25px 35px;
    width: fit-content;
    border-radius: var(--radius-sm);
}

@media (max-width: 1200px) {
    .hero-stats { margin: 0 auto; }
}

.stat-num {
    font-size: 2rem;
    display: block;
    font-weight: 800;
    color: var(--white);
    font-family: 'Comfortaa', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 1200px) {
    .hero-buttons { justify-content: center; }
}

.auth-box {
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    max-width: 450px;
}


@media (max-width: 1200px) {
    .auth-box { margin: 0 auto; width: 100%; }
}

.error {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.08);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 71, 87, 0.15);
    margin-top: 10px;
    animation: fadeIn 0.3s ease-out;
    display: none; /* Hidden by default to fix red bar */
}

.error:not(:empty) {
    display: block;
}

.option-btn {
    background: white;
    border: 1px solid rgba(255, 107, 157, 0.15);
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 20px; /* Spacing between letter and text */
    border-radius: 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 133, 161, 0.05);
}

.option-btn:hover {
    transform: translateX(10px) translateY(-3px) scale(1.02);
    border-color: var(--pink);
    background: #fffcfd;
    box-shadow: 0 20px 40px rgba(255, 133, 161, 0.15), 0 0 20px rgba(255, 107, 157, 0.1);
}

.option-btn.selected {
    background: linear-gradient(135deg, white, #fff0f5);
    border-color: var(--pink);
    border-width: 2px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
    transform: scale(1.03);
}

.option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* Slightly larger */
    height: 44px;
    background: linear-gradient(135deg, var(--pink-light), var(--pink));
    color: white;
    border-radius: 14px; /* More squircle look */
    font-weight: 800;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(255, 107, 157, 0.25);
    transition: all 0.3s ease;
}

.option-btn:hover .option-letter {
    background: var(--pink);
    transform: rotate(-10deg) scale(1.1);
}

.option-text {
    flex-grow: 1;
    line-height: 1.4;
    padding-left: 15px; /* Increased spacing between letter and text */
}

/* Quiz Content Spacing */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Increased gap */
    margin: 40px 0;
}

.quiz-question {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.25;
}

.q-emoji {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.btn-nav {
    flex: 1;
    padding: 20px 30px;
    border-radius: 100px;
    font-weight: 800;
    border: 2px solid var(--pink-light);
    background: white;
    color: var(--pink-deep);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(255, 133, 161, 0.1);
}

.btn-nav:hover:not(:disabled) {
    background: #fff5f8;
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.15);
    transform: translateY(-5px);
    border-color: var(--pink);
}

.btn-nav:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    filter: grayscale(1);
    transform: none !important;
}

.btn-nav.btn-next {
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    border: none;
    color: white;
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.3);
}

.btn-nav.btn-next:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8da1, #f43f5e);
    box-shadow: 0 20px 45px rgba(255, 107, 157, 0.4);
    transform: translateY(-5px) scale(1.02);
}

/* Question entrance animation classes */
.question-enter {
    animation: slideUpFade 0.5s var(--transition-smooth) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered entry for options */
.quiz-options button {
    opacity: 0;
    animation: slideUpFade 0.4s var(--transition-smooth) forwards;
}

.quiz-options button:nth-child(1) { animation-delay: 0.1s; }
.quiz-options button:nth-child(2) { animation-delay: 0.15s; }
.quiz-options button:nth-child(3) { animation-delay: 0.2s; }
.quiz-options button:nth-child(4) { animation-delay: 0.25s; }
.quiz-options button:nth-child(5) { animation-delay: 0.3s; }


/* Result Circle Fix (The "Giant Black Circle") */
.result-circle {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 30px auto;
}

.result-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

/* Result Circle Fixes */
.circle-bg {
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 8;
    fill: none !important;
}

.circle-fill {
    stroke: url(#grad);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    fill: none !important;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 900;
    color: var(--pink);
    font-family: 'Outfit', sans-serif;
}

.result-card {
    max-width: 650px;
    width: 100%;
    padding: clamp(25px, 6vw, 50px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    animation: cardAppear 0.6s var(--transition-smooth);
    overflow: hidden; /* Prevent internal overflow */
}

.result-image-wrap {
    width: 100%;
    max-width: 550px; /* Increased from 400px */
    margin: 0 auto 30px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    border: 4px solid var(--pink-light);
    box-shadow: 0 20px 45px rgba(255, 107, 157, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-image {
    width: 100%;
    height: auto;
    max-height: 450px; /* Significantly increased from 280px */
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.6s var(--transition-smooth);
}

.result-image:hover {
    transform: scale(1.03);
}

.result-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 850;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    width: 100%;
}

.result-percent-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.result-desc {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 500;
    color: var(--text-muted);
    margin: 10px 0 25px;
    line-height: 1.5;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word; /* Fix for long names/text */
}

.result-extras {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    width: 100%;
}

.result-tag {
    background: rgba(255, 107, 157, 0.1);
    color: var(--pink-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 107, 157, 0.2);
    transition: var(--transition);
    white-space: nowrap;
}

.result-tag:hover {
    background: var(--pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.result-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Stretch buttons to full width uniformly */
    gap: 12px;
    width: 100%;
    max-width: 400px; /* Keep buttons from being too wide on desktop */
    margin: 20px auto 0;
}

.result-actions .btn-premium {
    width: 100%;
    padding: 16px 20px; /* Standardized padding */
    font-size: 1.05rem; /* Slightly smaller for mobile safety */
    white-space: normal; /* Allow text to wrap if very long */
    height: auto;
    min-height: 56px;
}
@media (max-width: 480px) {
    .result-card { padding: 25px 15px; }
    .result-title { font-size: 1.6rem; }
    .result-image { max-height: 220px; }
    .result-actions .btn-premium { font-size: 0.95rem; padding: 14px 15px; min-height: 50px; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
