@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Legacy colors (preserved for compatibility) */
    --pink: #FFB6E1;
    --lavender: #D4B5FF;
    --mint: #B5FFE1;
    --peach: #FFD4B5;
    --yellow: #FFF6B5;
    --text: #4A4A4A;
    --text-light: #6A6A6A;
    
    /* Calculator-specific colors (preserved) */
    --calc-pink-light: #FFE1F0;
    --calc-pink: #FF9EC7;
    --calc-pink-dark: #FF6B9D;
    --calc-pink-darker: #E84A7A;
    --calc-rose: #FFC1E3;
    --calc-magenta: #FF6B9D;
    --calc-screen-bg: #1a1a2e;
    --calc-screen-green: #4ECDC4;
    --calc-screen-text: #E0E0E0;
    
    /* Luxury Design System - HSL format for easy manipulation */
    --background: 40 30% 96%;
    --foreground: 25 25% 18%;
    --card: 40 35% 98%;
    --card-foreground: 25 25% 18%;
    --primary: 25 35% 35%;
    --primary-foreground: 40 30% 98%;
    --secondary: 35 20% 90%;
    --secondary-foreground: 25 25% 25%;
    --muted: 38 25% 92%;
    --muted-foreground: 25 15% 45%;
    --accent: 15 45% 55%;
    --accent-foreground: 40 30% 98%;
    --border: 35 20% 85%;
    --input: 40 30% 96%;
    --ring: 25 35% 35%;
    
    /* Premium Custom Tokens */
    --gold: 35 45% 45%;
    --gold-light: 38 40% 55%;
    --gold-dark: 30 40% 35%;
    --champagne: 38 30% 75%;
    --bronze: 25 45% 40%;
    --ivory: 45 40% 97%;
    --obsidian: 25 20% 15%;
    --rose-gold: 12 35% 60%;
    --cream: 40 35% 94%;
    --mocha: 25 30% 30%;
    --taupe: 28 20% 55%;
    
    /* Luxury Gradients */
    --gradient-gold: linear-gradient(135deg, hsl(25 35% 35%), hsl(30 40% 45%), hsl(35 35% 40%));
    --gradient-dark: linear-gradient(180deg, hsl(40 35% 98%), hsl(40 30% 96%));
    --gradient-shimmer: linear-gradient(110deg, transparent 25%, hsl(40 40% 100% / 0.6) 50%, transparent 75%);
    
    /* Premium Shadows */
    --shadow-gold: 0 4px 30px hsl(25 35% 35% / 0.15);
    --shadow-luxury: 0 20px 60px -15px hsl(25 20% 20% / 0.12);
    --shadow-inner: inset 0 1px 0 hsl(0 0% 100% / 0.5);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: hsl(var(--background));
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: hsl(var(--foreground));
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Video Background Container */
.video-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.25);
}

.video-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 249, 246, 0.88) 0%, rgba(255, 249, 246, 0.6) 25%, rgba(255, 249, 246, 0.25) 50%, rgba(255, 249, 246, 0.1) 100%);
    pointer-events: none;
}

.video-background .bg-radial-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, hsl(var(--background) / 0.4) 70%);
    pointer-events: none;
}

.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.decor {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    filter: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .decor {
        animation: none !important;
    }
}

/* Positioning icons distributed across the background */
.decor-1 { top: 8%; left: 12%; animation-delay: 0s; font-size: 1.8rem; }
.decor-2 { top: 15%; right: 15%; animation-delay: 1s; font-size: 2.8rem; }
.decor-3 { bottom: 12%; left: 15%; animation-delay: 2s; font-size: 2rem; }
.decor-4 { bottom: 10%; right: 12%; animation-delay: 3s; font-size: 2.2rem; }
.decor-5 { top: 35%; left: 20%; animation-delay: 4s; font-size: 1.6rem; }
.decor-6 { top: 45%; right: 22%; animation-delay: 5s; font-size: 2.4rem; }
.decor-7 { top: 22%; left: 35%; animation-delay: 0.5s; font-size: 1.4rem; }
.decor-8 { bottom: 25%; right: 38%; animation-delay: 1.5s; font-size: 1.8rem; }
.decor-9 { top: 65%; left: 25%; animation-delay: 2.5s; font-size: 2.6rem; }
.decor-10 { top: 75%; right: 28%; animation-delay: 3.5s; font-size: 2rem; }
.decor-11 { top: 48%; left: 30%; animation-delay: 4.5s; font-size: 1.5rem; }
.decor-12 { top: 52%; right: 32%; animation-delay: 5.5s; font-size: 1.9rem; }
.decor-13 { bottom: 45%; left: 28%; animation-delay: 0.2s; font-size: 1.7rem; }
.decor-14 { bottom: 55%; right: 30%; animation-delay: 1.2s; font-size: 2.1rem; }
.decor-15 { top: 82%; left: 35%; animation-delay: 2.2s; font-size: 1.4rem; }
.decor-16 { top: 12%; left: 28%; animation-delay: 1s; font-size: 2.3rem; }
.decor-17 { top: 18%; right: 35%; animation-delay: 2s; font-size: 2.5rem; }
.decor-18 { bottom: 35%; left: 12%; animation-delay: 3s; font-size: 1.6rem; }
.decor-19 { bottom: 28%; right: 15%; animation-delay: 4s; font-size: 1.8rem; }
.decor-20 { top: 25%; left: 55%; animation-delay: 5s; font-size: 2.4rem; }
.decor-21 { bottom: 42%; left: 65%; animation-delay: 0.5s; font-size: 1.9rem; }
.decor-22 { top: 58%; left: 15%; animation-delay: 1.5s; font-size: 2.2rem; }
.decor-23 { top: 78%; right: 18%; animation-delay: 2.5s; font-size: 1.7rem; }
.decor-24 { top: 15%; right: 55%; animation-delay: 3.5s; font-size: 2.1rem; }
.decor-25 { bottom: 18%; left: 55%; animation-delay: 4.5s; font-size: 1.5rem; }
.decor-26 { top: 68%; left: 58%; animation-delay: 0.5s; font-size: 2.3rem; }
.decor-27 { top: 85%; left: 18%; animation-delay: 1.5s; font-size: 1.8rem; }
.decor-28 { top: 88%; right: 22%; animation-delay: 2.5s; font-size: 2.4rem; }
.decor-29 { top: 42%; left: 68%; animation-delay: 3.5s; font-size: 1.6rem; }
.decor-30 { top: 30%; left: 10%; animation-delay: 4.5s; font-size: 2rem; }

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 2.5rem 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 4rem 1rem;
    }
}

/* Calculator Body - Glass Card Style */
.calculator-body {
    background: linear-gradient(145deg, hsl(40 40% 99% / 0.75), hsl(40 35% 97% / 0.7));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    box-shadow: 
        var(--shadow-luxury),
        var(--shadow-inner),
        0 1px 0 hsl(0 0% 100% / 0.5);
    border: 1px solid hsl(var(--mocha) / 0.12);
    position: relative;
    max-width: 32rem;
    width: 100%;
}

@media (min-width: 768px) {
    .calculator-body {
        padding: 2.5rem;
    }
}

.calculator-body::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0.1));
    border-radius: 25px;
    z-index: -1;
}

/* Calculator Screen - Glass Display Style */
.calculator-screen {
    background: linear-gradient(180deg, hsl(40 30% 96%), hsl(38 25% 94%));
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 
        inset 0 2px 10px hsl(25 20% 20% / 0.04),
        0 1px 0 hsl(0 0% 100% / 0.6);
    border: 1px solid hsl(var(--mocha) / 0.06);
    min-height: 200px;
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', 'Monaco', monospace;
}

.calculator-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(78, 205, 196, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.screen-content {
    position: relative;
    z-index: 1;
    font-family: 'Courier New', 'Monaco', monospace;
}

.screen-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(78, 205, 196, 0.2);
}

.screen-line:last-of-type {
    border-bottom: none;
}

.screen-main {
    border-bottom: 2px solid rgba(78, 205, 196, 0.4);
    margin-bottom: 15px;
    padding-bottom: 12px;
}

.screen-label {
    color: var(--calc-screen-green);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.screen-value {
    color: hsl(var(--mocha));
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.screen-main .screen-value {
    font-size: 1.4rem;
    color: var(--calc-screen-green);
}

.screen-justification {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(78, 205, 196, 0.3);
    color: var(--calc-screen-text);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    min-height: 40px;
}

/* Calculator Keypad */
.calculator-keypad {
    margin-top: 20px;
}

.keypad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.keypad-key {
    position: relative;
}

.keypad-key-full {
    grid-column: 1 / -1;
}

.key-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.key-input,
.key-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted)));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
    color: hsl(var(--foreground));
    box-shadow: 
        0 2px 6px hsl(var(--mocha) / 0.06),
        inset 0 1px 0 hsl(0 0% 100% / 0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.key-input:focus,
.key-select:focus {
    outline: none !important;
    border-color: hsl(var(--border)) !important;
    box-shadow: 
        0 2px 6px hsl(var(--mocha) / 0.06),
        inset 0 1px 0 hsl(0 0% 100% / 0.5) !important;
    transform: none;
    background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted)));
}

/* Ensure all number inputs in calculator use brown focus */
input[type="number"].key-input:focus {
    outline: none !important;
    border-color: hsl(var(--border)) !important;
    box-shadow: 
        0 2px 6px hsl(var(--mocha) / 0.06),
        inset 0 1px 0 hsl(0 0% 100% / 0.5) !important;
}

.key-input:active,
.key-select:active {
    transform: translateY(1px);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.key-output {
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    cursor: default;
    color: var(--text);
}

.key-output:focus {
    border-color: hsl(var(--border));
    box-shadow: 
        0 2px 6px hsl(var(--mocha) / 0.06),
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        inset 0 -1px 2px rgba(0, 0, 0, 0.05);
    transform: none;
}

.key-input::placeholder {
    color: hsl(var(--muted-foreground) / 0.6);
}

.input-helper {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.375rem;
    font-style: normal;
    min-height: 1em;
    font-family: 'Outfit', sans-serif;
}

.key-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232E2418' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease;
    position: relative;
    z-index: 10;
}

.title {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
    text-shadow: 0 2px 8px hsl(var(--gold) / 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    .title {
        font-size: 3rem;
    }
}

.sparkle-v {
    visibility: hidden;
    font-size: 2rem;
}

.sparkle {
    font-size: 2rem;
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: hsl(var(--mocha));
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Action buttons in keypad */
.results-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.results-share .action-btn {
    flex: 1;
    max-width: 160px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--mocha) / 0.3);
    background: linear-gradient(145deg, hsl(var(--mocha)), hsl(var(--bronze)));
    color: hsl(var(--primary-foreground));
    box-shadow: 
        0 2px 8px hsl(var(--mocha) / 0.15),
        inset 0 1px 0 hsl(0 0% 100% / 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.results-share .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: sparkline 3s infinite;
}

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

.results-share .action-btn:hover {
    background: linear-gradient(145deg, hsl(var(--bronze)), hsl(var(--mocha)));
    box-shadow: 
        0 4px 12px hsl(var(--mocha) / 0.25),
        inset 0 1px 0 hsl(0 0% 100% / 0.3);
    transform: translateY(-1px);
}

.results-share .action-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 4px hsl(var(--mocha) / 0.2),
        inset 0 2px 4px hsl(var(--mocha) / 0.3);
}

.results-share .action-btn.primary {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    color: var(--calc-magenta);
}

/* Removed redundant specific secondary style */

input[type="date"] {
    width: 100%;
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input[type="date"]:focus {
    outline: none !important;
    border-color: hsl(var(--border)) !important;
    box-shadow: 0 2px 6px hsl(var(--mocha) / 0.06) !important;
}


.live-preview {
    margin: 20px 0;
    padding: 0;
}

.live-preview-content {
    padding: 15px;
    background: rgba(255, 182, 225, 0.2);
    border-radius: 15px;
    border: 2px dashed var(--pink);
}

.live-preview .live-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.live-preview .live-verdict {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 5px 0;
}

.live-preview .live-message {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 8px;
}


input[type="number"],
select {
    width: 100%;
    padding: 15px;
    border: 1px solid hsl(var(--border));
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input[type="number"]:focus,
select:focus {
    outline: none !important;
    border-color: hsl(var(--border)) !important;
    box-shadow: 0 2px 6px hsl(var(--mocha) / 0.06) !important;
}


.cta-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #FF6B9D, #C44569);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Screen animations */
@keyframes screenFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.calculator-screen.visible .screen-value {
    animation: screenFadeIn 0.3s ease;
}

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

.context-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.context-pill {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(212, 181, 255, 0.3);
    border: 1px solid var(--lavender);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.card-header h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text);
    letter-spacing: 2px;
}

.stamp-container {
    text-align: center;
    margin-bottom: 30px;
    min-height: 80px;
}

.stamp {
    display: inline-block;
    padding: 20px 40px;
    border: 4px solid;
    border-radius: 10px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    transform: rotate(-5deg);
    animation: stampSlam 0.8s ease;
}

@keyframes stampSlam {
    0% {
        transform: scale(0) rotate(-5deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(-5deg);
        opacity: 1;
    }
}

.stamp.approved {
    border-color: #4CAF50;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.stamp.justified {
    border-color: #2196F3;
    color: #2196F3;
    background: rgba(33, 150, 243, 0.1);
}

.stamp.questionable {
    border-color: #FF9800;
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

.stamp.denied {
    border-color: #F44336;
    color: #F44336;
    background: rgba(244, 67, 54, 0.1);
}

.confidence-meter {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.confidence-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.confidence-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.confidence-bar-container {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.confidence-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--lavender), var(--mint));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.verdict-message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}


.community-insights-container {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 182, 225, 0.3), rgba(212, 181, 255, 0.3));
    border-radius: 15px;
    border: 2px dashed var(--pink);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.community-insights-container h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 700;
}

.insight-text {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    font-style: italic;
    padding: 10px;
}

.what-if-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 181, 255, 0.2), rgba(255, 182, 225, 0.2));
    border-radius: 15px;
    border: 2px solid var(--lavender);
    animation: fadeInUp 0.6s ease 0.5s both;
}

.what-if-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 700;
    text-align: center;
}

.what-if-scenarios {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.what-if-scenario {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.what-if-scenario:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--pink);
    background: rgba(255, 255, 255, 1);
}

.what-if-scenario:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.what-if-description {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.what-if-result {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.what-if-score {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.what-if-verdict {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 5px;
}

.what-if-verdict.approved {
    background: rgba(144, 238, 144, 0.3);
    color: #2d5016;
}

.what-if-verdict.justified {
    background: rgba(255, 182, 225, 0.4);
    color: #6b2d5c;
}

.what-if-verdict.questionable {
    background: rgba(255, 246, 181, 0.4);
    color: #6b5d2d;
}

.what-if-verdict.denied {
    background: rgba(255, 99, 132, 0.3);
    color: #721c24;
}

.live-preview-content {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 200px;
    animation: slideUp 0.3s ease;
}

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

.live-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.live-verdict {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 5px 0;
}

.live-message {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 5px;
}

.metrics {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 182, 225, 0.2), rgba(212, 181, 255, 0.2));
    border-radius: 20px;
}

.metric-line {
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.metric-line:last-child {
    border-bottom: none;
}

.metric-label {
    color: var(--text-light);
    font-weight: 500;
}

.metric-value {
    color: var(--text);
    float: right;
}

.calculation-disclosure {
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    line-height: 1.4;
}

.punchline {
    text-align: center;
    padding: 30px;
    margin-top: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(135deg, var(--yellow), var(--peach));
    border-radius: 20px;
    line-height: 1.5;
    color: var(--text);
    max-width: 100%;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    padding: 0.875rem 1.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted)));
    color: hsl(var(--foreground));
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    text-align: center;
    letter-spacing: 0.01em;
    box-shadow: 
        0 2px 8px hsl(var(--mocha) / 0.08),
        inset 0 1px 0 hsl(0 0% 100% / 0.5);
}

.action-btn:hover {
    background: linear-gradient(145deg, hsl(var(--muted)), hsl(var(--secondary)));
    border-color: hsl(var(--gold) / 0.3);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px hsl(var(--mocha) / 0.12),
        inset 0 1px 0 hsl(0 0% 100% / 0.6);
}

.action-btn.primary {
    background: var(--gradient-gold);
    border: 1px solid hsl(var(--gold) / 0.2);
    color: hsl(var(--primary-foreground));
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px hsl(var(--gold) / 0.25),
        inset 0 1px 0 hsl(0 0% 100% / 0.3);
}

.action-btn.secondary {
    background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted)));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.action-btn.secondary-small {
    background: transparent;
    border: 2px solid var(--lavender);
    color: var(--text);
    font-size: 0.9rem;
    padding: 10px 20px;
}

.action-btn.secondary-small:hover {
    background: var(--lavender);
    color: white;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
        padding: 10px;
    }
    
    .title {
        font-size: 2rem;
        margin-bottom: 4px;
        gap: 6px;
    }
    
    .sparkle {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    .calculator-body {
        padding: 15px;
        border-radius: 20px;
    }
    
    .calculator-screen {
        padding: 20px 15px;
        border-radius: 12px;
        min-height: 180px;
    }
    
    .screen-label {
        font-size: 0.8rem;
    }
    
    .screen-value {
        font-size: 1rem;
    }
    
    .screen-main .screen-value {
        font-size: 1.2rem;
    }
    
    .screen-justification {
        font-size: 0.75rem;
        padding-top: 12px;
        margin-top: 12px;
    }
    
    .keypad-grid {
        gap: 12px;
    }
    
    .key-input,
    .key-select {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .key-label {
        font-size: 0.7rem;
    }
    
    .results-share {
        flex-direction: column;
        gap: 10px;
    }
    
    .results-share .action-btn {
        width: 100%;
        padding: 14px;
    }
    
    header {
        margin-bottom: 20px;
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ShareableCard Styles for Social Media Stories (1080x1920) */
.shareable-card {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1080px;
    height: 1920px;
    background: #FFB6E1;
    overflow: hidden;
    z-index: -1;
    box-sizing: border-box;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.shareable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ffffff 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.2;
    pointer-events: none;
}

.shareable-card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.shareable-header {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    letter-spacing: 10px;
    margin-bottom: 60px;
    text-transform: uppercase;
    background: #FF6B9D;
    padding: 30px 80px;
    border-radius: 100px;
    box-shadow: 0 15px 0px #E84A7A;
    border: 6px solid white;
}

.shareable-item-box {
    width: 85%;
    background: white;
    border-radius: 60px;
    padding: 60px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.05);
    border: 4px solid #FFE1F0;
}

.shareable-category {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF6B9D;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.shareable-price {
    font-size: 10rem;
    font-weight: 950;
    color: #4A4A4A;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.shareable-stamp-container {
    margin-bottom: 60px;
    position: relative;
}

.shareable-stamp {
    font-size: 9rem;
    font-weight: 900;
    letter-spacing: 12px;
    text-align: center;
    padding: 80px 120px;
    border: 18px solid;
    border-radius: 40px;
    transform: rotate(-4deg);
    background: white;
    box-shadow: 25px 25px 0px rgba(0, 0, 0, 0.1);
    margin: 0;
    box-sizing: border-box;
    display: inline-block;
}

.shareable-stamp::before {
    content: '⭐' !important;
    position: absolute;
    top: -50px;
    left: -50px;
    font-size: 120px !important;
    opacity: 1 !important;
    transform: rotate(-15deg);
}

.shareable-stamp::after {
    content: '⭐' !important;
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-size: 120px !important;
    opacity: 1 !important;
    transform: rotate(15deg);
}

.shareable-stamp.approved { border-color: #4ECDC4; color: #4ECDC4; }
.shareable-stamp.justified { border-color: #D4B5FF; color: #D4B5FF; }
.shareable-stamp.questionable { border-color: #FFD4B5; color: #FFD4B5; }
.shareable-stamp.denied { border-color: #FF6B6B; color: #FF6B6B; }

.shareable-metrics-box {
    width: 85%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.shareable-metric {
    background: white;
    padding: 40px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.05);
    border: 4px solid #F0F0F0;
}

.shareable-metric-label {
    font-size: 1.8rem;
    font-weight: 800;
    color: #9B9B9B;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.shareable-cost-per-use, .shareable-score {
    font-size: 5rem;
    font-weight: 900;
    color: #4A4A4A;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.shareable-punchline {
    font-size: 4.8rem;
    font-weight: 800;
    font-style: normal;
    text-align: center;
    color: white;
    line-height: 1.2;
    padding: 80px;
    background: #FF6B9D;
    border-radius: 60px;
    width: 85%;
    box-shadow: 20px 20px 0px #E84A7A;
    margin-bottom: 80px;
    box-sizing: border-box;
    position: relative;
    border: 6px solid white !important;
}

.shareable-footer {
    width: 85%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.shareable-url {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    background: rgba(0, 0, 0, 0.1);
    padding: 20px 50px;
    border-radius: 100px;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border: none !important;
}

.shareable-tag {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: 6px;
}

/* Verdict backgrounds */
.shareable-card.approved { background-color: #FFB6E1; }
.shareable-card.justified { background-color: #D4B5FF; }
.shareable-card.questionable { background-color: #FFD4B5; }
.shareable-card.denied { background-color: #FF9E9E; }

/* Baseline Section */
.baseline-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.baseline-header {
    width: 100%;
    background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted)));
    border: 1px solid hsl(var(--border));
    padding: 14px 16px;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: hsl(var(--mocha));
    box-shadow:
        0 2px 8px hsl(var(--mocha) / 0.08),
        inset 0 1px 0 hsl(0 0% 100% / 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.baseline-header[aria-expanded="true"] {
    border-color: hsl(var(--gold) / 0.3);
    box-shadow:
        0 3px 10px hsl(var(--mocha) / 0.1),
        inset 0 1px 0 hsl(0 0% 100% / 0.5);
}

.baseline-header:hover {
    transform: translateY(-1px);
    box-shadow:
        0 4px 12px hsl(var(--mocha) / 0.12),
        inset 0 1px 0 hsl(0 0% 100% / 0.5);
}

.baseline-header:focus {
    outline: none;
}

.baseline-header:hover .baseline-arrow {
    transform: translateY(2px);
}

.baseline-header[aria-expanded="true"]:hover .baseline-arrow {
    transform: rotate(180deg) translateY(-2px);
}

.baseline-arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232E2418' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
    margin-left: 10px;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.baseline-header[aria-expanded="true"] .baseline-arrow {
    transform: rotate(180deg);
}

.expand-hint {
    display: none;
}

.baseline-content {
    padding: 0 15px 15px 15px;
}

.section-title {
    font-size: 0.95rem !important;
    text-align: left;
    margin: 0 !important;
    color: hsl(var(--mocha)) !important;
    letter-spacing: 0.08em;
    flex: 1;
    font-weight: 600;
}

.section-subtitle {
    font-size: 0.75rem;
    text-align: center;
    color: hsl(var(--mocha));
    margin-bottom: 15px;
    font-style: italic;
}

.tiny-emoji {
    font-size: 0.8rem;
    vertical-align: middle;
}

.baseline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.baseline-field-full {
    grid-column: 1 / -1;
}

.key-slider {
    width: 100%;
    height: 10px;
    background: hsl(var(--muted));
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    margin: 15px 0 10px 0;
    position: relative;
}

.key-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--calc-magenta);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.key-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: hsl(var(--mocha));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#vibeLabel {
    color: hsl(var(--mocha));
    font-weight: 700;
}

.skip-vibe-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.skip-vibe-container:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.skip-vibe-label {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    margin: 0 !important;
    cursor: pointer;
    color: hsl(var(--mocha)) !important;
    letter-spacing: 0.5px;
    flex: 1;
}

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

.footer {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    color: white;
    line-height: 1.5;
    opacity: 0.9;
    position: relative;
    z-index: 10;
}

@media (max-width: 600px) {
    .footer {
        margin-top: 20px;
        padding: 10px;
        font-size: 0.65rem;
    }
}

/* Camera Page Styles */
.camera-screen {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.camera-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.camera-placeholder {
    width: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(78, 205, 196, 0.1);
    border: 3px dashed rgba(78, 205, 196, 0.4);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-placeholder:hover {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.6);
}

.camera-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.camera-placeholder-text {
    color: var(--calc-screen-green);
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(78, 205, 196, 0.6);
    text-align: center;
}

#videoElement {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    background: var(--calc-screen-bg);
    object-fit: cover;
    max-height: 400px;
}

.captured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    background: var(--calc-screen-bg);
    object-fit: contain;
    max-height: 400px;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.camera-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.camera-btn.capture-btn {
    background: linear-gradient(145deg, #4ECDC4, #3aa8a0);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.camera-btn.capture-btn:hover {
    background: linear-gradient(145deg, #3aa8a0, #2e8b84);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.camera-btn.capture-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.camera-btn.retake-btn {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: var(--calc-screen-bg);
    border: 2px solid rgba(78, 205, 196, 0.4);
}

.camera-btn.retake-btn:hover {
    background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    border-color: rgba(78, 205, 196, 0.6);
    transform: translateY(-2px);
}

.camera-btn.retake-btn:active {
    transform: translateY(0);
}

#canvasElement {
    display: none;
}

/* Navigation link styles */
header nav {
    margin-top: 15px;
    text-align: center;
}

header nav a {
    display: inline-block;
}

/* Tab Navigation Styles */
.tabs-nav {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.tab-link {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: linear-gradient(145deg, hsl(var(--card) / 0.8), hsl(var(--muted) / 0.6));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 
        0 2px 6px hsl(var(--mocha) / 0.06),
        inset 0 1px 0 hsl(0 0% 100% / 0.4);
}

.tab-link:hover {
    background: linear-gradient(145deg, hsl(var(--muted) / 0.9), hsl(var(--secondary) / 0.7));
    border-color: hsl(var(--gold) / 0.3);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 10px hsl(var(--mocha) / 0.1),
        inset 0 1px 0 hsl(0 0% 100% / 0.5);
}

.tab-link.active {
    background: var(--gradient-gold);
    border-color: hsl(var(--gold) / 0.2);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-gold);
}

.tab-link.active:hover {
    background: var(--gradient-gold);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px hsl(var(--gold) / 0.25),
        inset 0 1px 0 hsl(0 0% 100% / 0.3);
}

/* Loading and Error States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px dashed rgba(78, 205, 196, 0.4);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(78, 205, 196, 0.2);
    border-top-color: var(--calc-screen-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-text {
    color: var(--calc-screen-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(78, 205, 196, 0.6);
    text-align: center;
}

.error-container {
    padding: 15px 20px;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid rgba(244, 67, 54, 0.4);
    border-radius: 12px;
    margin-bottom: 15px;
}

.error-text {
    color: #d32f2f;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

@media (max-width: 600px) {
    .camera-screen {
        min-height: 250px;
        padding: 15px;
    }
    
    .camera-container {
        min-height: 200px;
    }
    
    .camera-placeholder {
        min-height: 200px;
    }
    
    .camera-icon {
        font-size: 3rem;
        margin-bottom: 10px;
    }
    
    .camera-placeholder-text {
        font-size: 0.9rem;
    }
    
    .camera-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .camera-controls {
        margin-top: 12px;
        gap: 12px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 0.85rem;
    }
    
    .error-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   GIRL MATH SCANNER STYLES
   Standalone scanner - NOT connected to Calculator
   ============================================ */

/* Scanner Result Header */
.scanner-result-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.result-header-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Primary Result View (status=ok) */
.scanner-primary-result {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.primary-product-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.primary-product-name .brand-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.primary-price-range {
    font-size: 2rem;
    font-weight: 900;
    color: var(--calc-screen-green);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.6);
}

.primary-assumptions {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Other Matches Expandable */
.other-matches {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.other-matches-summary {
    padding: 12px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.other-matches-summary::-webkit-details-marker {
    display: none;
}

.other-matches-summary::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.other-matches[open] .other-matches-summary::after {
    transform: rotate(180deg);
}

.other-matches-list {
    padding: 10px 15px 15px;
}

.other-match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.other-match-item:last-child {
    margin-bottom: 0;
}

.other-match-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
}

.other-match-name {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.other-match-price {
    font-weight: 700;
    color: var(--calc-screen-green);
    font-size: 0.9rem;
}

/* Disambiguation View (status=needs_disambiguation) */
.scanner-disambiguation {
    padding: 10px 0;
}

.disambiguation-prompt {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

/* Candidate Cards */
.candidate-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.candidate-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    padding: 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.candidate-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: rgba(78, 205, 196, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.candidate-card-header {
    margin-bottom: 10px;
}

.candidate-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.candidate-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.candidate-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--calc-screen-green);
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.candidate-card-confidence {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 15px;
    overflow: hidden;
}

.confidence-indicator {
    height: 100%;
    background: linear-gradient(90deg, var(--calc-screen-green), #7FE5DD);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.candidate-select-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, var(--calc-screen-green), #3aa8a0);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.candidate-select-btn:hover {
    background: linear-gradient(145deg, #5ed9d0, #4ECDC4);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Quick Pick Options */
.quick-pick-options {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.quick-pick-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    text-align: center;
}

.quick-pick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.quick-pick-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-pick-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(78, 205, 196, 0.6);
    transform: scale(1.05);
}

.quick-pick-btn:active {
    transform: scale(0.98);
}

.disambiguation-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Needs More Info View (status=needs_more_info) */
.scanner-needs-info {
    text-align: center;
    padding: 20px 10px;
}

.needs-info-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.needs-info-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.4;
}

.needs-info-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.needs-info-actions .action-btn {
    padding: 14px 20px;
}

/* Manual Category Selector */
.manual-category-selector {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.manual-category-selector .key-label {
    margin-bottom: 10px;
}

.manual-category-selector .key-select {
    margin-bottom: 15px;
}

/* Selected Result View */
.scanner-selected-result {
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.2), rgba(78, 205, 196, 0.05));
    border-radius: 15px;
    padding: 25px 20px;
    border: 3px solid var(--calc-screen-green);
    position: relative;
}

.selected-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--calc-screen-green);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.selected-product-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.selected-product-name .brand-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.selected-price-range {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--calc-screen-green);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.7);
}

.selected-assumptions {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

/* Mobile Responsive Adjustments for Scanner */
@media (max-width: 600px) {
    .scanner-result-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .result-header-text {
        font-size: 1.1rem;
    }
    
    .primary-product-name,
    .selected-product-name {
        font-size: 1.3rem;
    }
    
    .primary-price-range,
    .selected-price-range {
        font-size: 1.8rem;
    }
    
    .candidate-name {
        font-size: 1.1rem;
    }
    
    .candidate-card-price {
        font-size: 1.2rem;
    }
    
    .quick-pick-buttons {
        flex-direction: column;
    }
    
    .quick-pick-btn {
        width: 100%;
    }
    
    .needs-info-actions {
        gap: 10px;
    }
}
