/* ============================================
   Palm Reader AI - Modern Mystical Design
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #9333ea;
    --primary-light: #a855f7;
    --primary-dark: #7e22ce;
    --secondary: #f59e0b;
    --secondary-light: #fbbf24;
    --accent: #06b6d4;
    --background: #0f0a1a;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-mystical: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);

    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
}

.stars,
.stars2,
.stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 200px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 350px 150px, #fff, transparent),
        radial-gradient(2px 2px at 420px 50px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 480px 180px, #fff, transparent),
        radial-gradient(2px 2px at 550px 100px, rgba(255, 255, 255, 0.9), transparent);
    background-size: 600px 300px;
    animation: twinkle 4s ease-in-out infinite;
}

.stars2 {
    background-image:
        radial-gradient(1px 1px at 50px 100px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 120px 200px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 200px 50px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 280px 150px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 380px 220px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 450px 80px, rgba(255, 255, 255, 0.7), transparent);
    background-size: 500px 250px;
    animation: twinkle 6s ease-in-out infinite 1s;
}

.stars3 {
    background-image:
        radial-gradient(1px 1px at 80px 60px, rgba(147, 51, 234, 0.8), transparent),
        radial-gradient(2px 2px at 180px 140px, rgba(245, 158, 11, 0.6), transparent),
        radial-gradient(1px 1px at 320px 90px, rgba(6, 182, 212, 0.7), transparent),
        radial-gradient(2px 2px at 400px 200px, rgba(147, 51, 234, 0.6), transparent);
    background-size: 450px 230px;
    animation: twinkle 8s ease-in-out infinite 2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.2);
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0 60px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 50px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-badge {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    vertical-align: super;
}

.tagline {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* API Section */
.api-section {
    margin-bottom: 40px;
}

.api-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.api-section p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.api-input-group {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 15px;
}

.api-input-group input {
    flex: 1;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.api-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.api-input-group input::placeholder {
    color: var(--text-muted);
}

.api-link {
    display: block;
    text-align: center;
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.api-link:hover {
    color: var(--secondary-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.5);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.btn-icon {
    font-size: 20px;
}

/* Upload Section */
.upload-section {
    margin-bottom: 40px;
}

.upload-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 5px;
    text-align: center;
}

.upload-section>.glass-card>p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.upload-zone:hover {
    border-color: var(--primary);
    transform: scale(1.01);
}

.upload-zone:hover::before {
    opacity: 0.05;
}

.upload-zone.dragging {
    border-color: var(--primary);
    background: rgba(147, 51, 234, 0.1);
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.upload-zone h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text);
}

.upload-zone p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.file-types {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Camera Button */
.btn-camera {
    display: flex;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px;
}

/* Image Preview */
.image-preview {
    display: none;
    position: relative;
    max-width: 400px;
    margin: 30px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.image-preview.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.btn-remove:hover {
    background: var(--error);
}

/* Analyze Button */
.btn-analyze {
    width: 100%;
    max-width: 300px;
    display: none;
    margin: 0 auto;
    font-size: 18px;
    padding: 18px 35px;
}

.btn-analyze.active {
    display: flex;
}

/* Loading Section */
.loading-section {
    display: none;
    margin-bottom: 40px;
}

.loading-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.loading-section .glass-card {
    text-align: center;
    padding: 50px 30px;
}

/* Crystal Ball Animation */
.crystal-ball {
    position: relative;
    margin: 0 auto 30px;
    width: 120px;
}

.ball {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(147, 51, 234, 0.3) 30%,
            rgba(76, 29, 149, 0.5) 60%,
            rgba(49, 46, 129, 0.7) 100%);
    box-shadow:
        0 0 60px rgba(147, 51, 234, 0.5),
        0 0 100px rgba(147, 51, 234, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    animation: glow 2s ease-in-out infinite;
}

.ball-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 70%);
    animation: innerGlow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow:
            0 0 60px rgba(147, 51, 234, 0.5),
            0 0 100px rgba(147, 51, 234, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow:
            0 0 80px rgba(147, 51, 234, 0.7),
            0 0 120px rgba(147, 51, 234, 0.5),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes innerGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.ball-base {
    width: 60px;
    height: 15px;
    margin: -5px auto 0;
    background: linear-gradient(to bottom, #4a4a4a 0%, #2a2a2a 100%);
    border-radius: 0 0 30px 30px;
}

.loading-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 10px;
}

.loading-text {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.loading-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress {
    width: 30%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0%;
        margin-left: 0%;
    }

    50% {
        width: 60%;
        margin-left: 20%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* Results Section */
.results-section {
    display: none;
    margin-bottom: 40px;
}

.results-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.results-card {
    padding: 40px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
}

/* Result Blocks */
.result-block {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    transition: transform var(--transition-fast);
}

.result-block:hover {
    transform: translateX(5px);
}

.result-block h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.result-block h4 {
    font-family: var(--font-display);
    font-size: 17px;
    margin-bottom: 10px;
}

.result-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.result-content p {
    margin-bottom: 10px;
}

.result-content p:last-child {
    margin-bottom: 0;
}

/* Lines Grid */
.lines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.line-block {
    margin-bottom: 0;
}

.line-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.line-icon {
    width: 30px;
    height: 6px;
    border-radius: 3px;
}

.line-icon.life-line {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.line-icon.heart-line {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.line-icon.head-line {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.line-icon.fate-line {
    background: linear-gradient(90deg, #a855f7, #c084fc);
}

/* Personality Traits */
.traits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trait-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gradient-primary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

/* Predictions Grid */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.prediction-card {
    background: var(--surface-hover);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.prediction-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.prediction-card .icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.prediction-card h5 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.prediction-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Lucky Elements Grid */
.lucky-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.lucky-item {
    text-align: center;
    padding: 20px 15px;
    background: var(--surface-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: transform var(--transition-fast);
}

.lucky-item:hover {
    transform: scale(1.05);
}

.lucky-item .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.lucky-item .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lucky-item .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

/* Actions Bar */
.actions-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

/* About Section */
.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.about-section>.glass-card>p {
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.feature-item h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    border: 1px solid var(--border);
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
}

.footer p {
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 12px;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--error);
}

/* Camera Container */
.camera-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--error);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    opacity: 0;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .glass-card {
        padding: 25px 20px;
    }

    .logo h1 {
        font-size: 32px;
    }

    .logo-icon {
        font-size: 40px;
    }

    .tagline {
        font-size: 15px;
    }

    .api-input-group {
        flex-direction: column;
    }

    .lines-grid {
        grid-template-columns: 1fr;
    }

    .predictions-grid {
        grid-template-columns: 1fr;
    }

    .lucky-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-header {
        flex-direction: column;
        text-align: center;
    }

    .results-card {
        padding: 25px 20px;
    }

    .actions-bar {
        flex-direction: column;
    }

    .actions-bar .btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .faq-item h4 {
        font-size: 15px;
    }

    .faq-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 0 40px;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo h1 {
        font-size: 28px;
    }

    .tagline {
        font-size: 14px;
    }

    .upload-zone {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 45px;
    }

    .upload-zone h3 {
        font-size: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .result-block {
        padding: 18px;
    }

    .camera-controls {
        flex-direction: column;
    }
}

/* Hidden state */
.hidden {
    display: none !important;
}

/* Print Styles */
@media print {
    .bg-animation {
        display: none;
    }

    .glass-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
        color: black;
    }

    .btn,
    .header,
    .footer,
    .upload-section,
    .api-section {
        display: none;
    }
}