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

        /* Wake-up Banner */
        .wake-up-banner {
            background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            padding: 15px;
            text-align: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: none;
            animation: slideDown 0.5s ease-out;
        }

        @keyframes slideDown {
            from { transform: translateY(-100%); }
            to { transform: translateY(0); }
        }

        .wake-up-banner i {
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }

        .wake-up-banner.success {
            background: linear-gradient(90deg, #10b981 0%, #059669 100%);
        }

        .skip-button {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            margin-left: 15px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .skip-button:hover {
            background: rgba(255,255,255,0.3);
        }

        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #f59e0b;
            --success: #10b981;
            --danger: #ef4444;
            --dark: #1f2937;
            --light: #f3f4f6;
            --white: #ffffff;
            --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }

        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: var(--dark);
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
            transition: padding-top 0.3s ease;
        }

        .container.banner-active {
            padding-top: 5rem;
        }

        /* Header */
        .header {
            text-align: center;
            margin-bottom: 3rem;
            color: var(--white);
        }

        .header h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .header p {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        /* Main Content */
        .main-content {
            background: var(--white);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: var(--shadow-lg);
        }

        /* Server Status Indicator */
        .server-status {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.9);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow);
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #fbbf24;
            animation: pulse 2s infinite;
        }

        .status-dot.online {
            background: #10b981;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Info Box */
        .info-box {
            background: #eff6ff;
            border: 1px solid #dbeafe;
            border-radius: 10px;
            padding: 1rem;
            margin-bottom: 2rem;
            display: flex;
            align-items: start;
            gap: 1rem;
        }

        .info-box i {
            color: #3b82f6;
            font-size: 1.2rem;
            margin-top: 2px;
        }

        .info-box p {
            color: #1e40af;
            line-height: 1.5;
            margin: 0;
        }

        .info-box strong {
            display: inline-block;
            margin-bottom: 0.25rem;
        }

        /* Upload Section */
        .upload-section {
            margin-bottom: 3rem;
        }

        .upload-area {
            border: 3px dashed var(--primary);
            border-radius: 20px;
            padding: 3rem;
            text-align: center;
            background: var(--light);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .upload-area:hover {
            background: #e5e7eb;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .upload-area.drag-over {
            background: var(--primary);
            color: var(--white);
            border-color: var(--primary-dark);
            transform: scale(1.02);
        }

        .upload-icon {
            font-size: 4rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .upload-area.drag-over .upload-icon {
            color: var(--white);
        }

        .upload-text h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }

        .upload-text p {
            color: #6b7280;
        }

        .upload-area.drag-over .upload-text h3,
        .upload-area.drag-over .upload-text p {
            color: var(--white);
        }

        input[type="file"] {
            display: none;
        }

        /* Image Preview */
        .preview-section {
            display: none;
            margin-bottom: 2rem;
            text-align: center;
        }

        .preview-container {
            position: relative;
            display: inline-block;
        }

        .preview-image {
            max-width: 100%;
            max-height: 400px;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }

        .remove-image {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--danger);
            color: var(--white);
            border: none;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .remove-image:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow);
        }

        /* Buttons */
        .button-group {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 2rem;
        }

        .btn {
            padding: 0.75rem 2rem;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

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

        .btn-primary:hover:not(:disabled) {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .btn-secondary {
            background: var(--light);
            color: var(--dark);
        }

        .btn-secondary:hover {
            background: #e5e7eb;
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        /* Loading */
        .loading {
            display: none;
            text-align: center;
            padding: 2rem;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid var(--light);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 1rem;
        }

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

        .loading p {
            color: var(--primary);
            font-weight: 500;
        }

        /* Error Message */
        .error-message {
            display: none;
            background: #fee;
            border: 1px solid #fcc;
            color: var(--danger);
            padding: 1.5rem;
            border-radius: 10px;
            margin-top: 2rem;
            text-align: center;
            animation: shake 0.5s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        /* Results Section */
        .results-section {
            display: none;
            margin-top: 3rem;
            animation: fadeIn 0.5s ease;
        }

        .results-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .results-header h2 {
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .face-results {
            display: grid;
            gap: 2rem;
        }

        .face-card {
            background: var(--light);
            border-radius: 15px;
            padding: 2rem;
            animation: slideIn 0.5s ease;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

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

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

        .face-header {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .face-index {
            background: var(--primary);
            color: var(--white);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            margin-right: 1rem;
        }

        .prediction-main {
            background: var(--white);
            border-radius: 10px;
            padding: 1.5rem;
            margin-bottom: 1rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .prediction-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.5rem;
        }

        .confidence-bar {
            width: 100%;
            height: 10px;
            background: #e5e7eb;
            border-radius: 5px;
            overflow: hidden;
            margin: 0.5rem 0;
        }

        .confidence-fill {
            height: 100%;
            background: var(--success);
            transition: width 1s ease;
            width: 0;
        }

        .confidence-text {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--success);
        }

        .other-predictions {
            margin-top: 1rem;
        }

        .other-predictions h4 {
            color: var(--dark);
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .prediction-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            background: var(--white);
            border-radius: 8px;
            margin-bottom: 0.5rem;
        }

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

        .prediction-score {
            background: var(--light);
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.9rem;
            color: #666;
            font-weight: 500;
        }

        /* Celebrity Gallery */
        .celebrity-gallery {
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid #e5e7eb;
        }

        .gallery-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .gallery-header h3 {
            color: var(--dark);
            margin-bottom: 0.5rem;
        }

        .celebrity-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
        }

        .celebrity-card {
            text-align: center;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .celebrity-card:hover {
            transform: translateY(-5px);
        }

        .celebrity-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 0.5rem;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
        }

        .celebrity-card:hover .celebrity-image {
            box-shadow: var(--shadow-lg);
            transform: scale(1.05);
        }

        .celebrity-name {
            font-weight: 600;
            color: var(--dark);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2rem;
            }
            
            .header p {
                font-size: 1rem;
            }
            
            .upload-area {
                padding: 2rem;
            }
            
            .celebrity-grid {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 1rem;
            }
            
            .celebrity-image {
                width: 80px;
                height: 80px;
            }

            .server-status {
                position: relative;
                top: auto;
                right: auto;
                margin-bottom: 1rem;
                justify-content: center;
            }

            .main-content {
                padding: 1.5rem;
            }

            .button-group {
                flex-direction: column;
            }

            .btn {
                width: 100%;
                justify-content: center;
            }
        }