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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at top, #1a0a00 0%, #0a0a0a 70%);
}

.hero-content {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.logo-text {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b35, #ff2d2d, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text-small {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ff6b35, #ff2d2d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fire {
    -webkit-text-fill-color: initial;
    display: inline-block;
    animation: flame 0.5s ease-in-out infinite alternate;
}

@keyframes flame {
    from { transform: scale(1) rotate(-3deg); }
    to { transform: scale(1.1) rotate(3deg); }
}

.tagline {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #333;
    border-radius: 20px;
    padding: 3rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 107, 53, 0.03);
    margin-bottom: 1.5rem;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.08);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: #666;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #111;
    border-radius: 12px;
    padding: 4px;
}

.mode-btn {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #666;
}

.mode-btn.active {
    background: #1a1a1a;
    color: #fff;
}

.savage-btn.active {
    background: linear-gradient(135deg, #8b0000, #ff2d2d);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 45, 45, 0.3);
}

/* Preview */
.preview-section {
    margin-bottom: 1.5rem;
}

.preview-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ff6b35;
    margin-bottom: 1rem;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

/* Buttons */
.roast-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #ff6b35, #ff2d2d);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 1px;
}

.roast-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
}

.cancel-btn {
    display: block;
    margin: 0.8rem auto 0;
    padding: 0.5rem 1.5rem;
    background: none;
    border: 1px solid #333;
    border-radius: 50px;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    border-color: #ff2d2d;
    color: #ff2d2d;
}

/* Loading */
.loading-section {
    padding: 2rem 0;
}

.flame-loader {
    font-size: 4rem;
    animation: flame 0.3s ease-in-out infinite alternate;
}

.loading-text {
    font-size: 1.1rem;
    color: #aaa;
    margin: 1rem 0;
    font-weight: 600;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b35, #ff2d2d);
    border-radius: 2px;
    animation: fillBar 4s ease-in-out forwards;
}

@keyframes fillBar {
    0% { width: 0%; }
    50% { width: 70%; }
    90% { width: 90%; }
    100% { width: 95%; }
}

/* Result */
.result-section {
    animation: fadeUp 0.5s ease-out;
}

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

.roast-card {
    background: #111;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #222;
}

.shared-card {
    border-color: #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.1);
}

.result-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #ff6b35;
}

.roast-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ddd;
    text-align: left;
    white-space: pre-wrap;
}

.savage-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b0000, #ff2d2d);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

/* Share */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #333;
    border-radius: 50px;
    background: #111;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    transform: scale(1.05);
}

.whatsapp-share:hover {
    border-color: #25d366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.twitter-share:hover {
    border-color: #1da1f2;
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.3);
}

.copy-share:hover {
    border-color: #ff6b35;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.try-again-btn {
    padding: 0.8rem 2rem;
    background: none;
    border: 2px solid #ff6b35;
    border-radius: 50px;
    color: #ff6b35;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.try-again-btn:hover {
    background: #ff6b35;
    color: #fff;
}

/* Shared page */
.shared-cta {
    margin: 1.5rem 0;
}

.cta-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #aaa;
}

.view-count {
    font-size: 0.85rem;
    color: #444;
    margin-top: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: #333;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 480px) {
    .logo-text {
        font-size: 2.8rem;
    }
    
    .upload-zone {
        padding: 2rem 1.5rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
}
