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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    color: #111827;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: transparent;
}

.menu-btn, .sun-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.menu-btn:hover, .sun-btn:hover {
    transform: scale(1.1);
}

/* Logo Section */
.logo-section {
    padding: 0.5rem 0 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-logo {
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .avatar-logo {
        max-height: 240px;
    }
}

/* Search Container */
.search-container {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: none;
    border-radius: 2rem;
    background-color: #e5e7eb;
    font-size: 1rem;
    color: #374151;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    background-color: #d1d5db;
    ring: 2px;
    ring-color: #facc15;
}

/* Button Container */
.button-container {
    padding: 0.5rem 0 2rem;
    display: flex;
    justify-content: center;
}

.connect-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #facc15;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    background-color: #facc15;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: auto;
}

.connect-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

.connect-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.connect-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.connect-btn.connected {
    background-color: #22c55e;
    border-color: #22c55e;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Features List */
.features-list {
    width: 100%;
    max-width: 500px;
    padding: 0 1rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-card {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    background-color: #f3f4f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:active {
    transform: scale(0.95);
}

.feature-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.icon-container {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-container {
    transform: scale(1.1);
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.feature-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.arrow {
    flex-shrink: 0;
    color: #d1d5db;
    font-size: 1.5rem;
    margin-top: 0.25rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .arrow {
    transform: translateX(0.25rem);
}

@media (max-width: 768px) {
    .feature-card {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .icon-container {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .feature-title {
        font-size: 0.9rem;
    }

    .feature-description {
        font-size: 0.75rem;
    }
}

/* Progress Modal - Simple Light Design */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(4px);
}

.progress-modal.hidden {
    display: none;
}

.progress-container {
    background: white;
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    border: 2px solid #000;
}

.progress-feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0;
}

.progress-title span {
    color: #facc15;
    font-weight: 700;
}

.progress-bar-wrapper {
    width: 100%;
    height: 16px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #000;
}

#progressBar {
    height: 100%;
    background: linear-gradient(90deg, #facc15 0%, #fbbf24 100%);
    width: 0%;
    transition: width 0.3s ease-out;
    border-radius: 9px;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: #facc15;
}

.progress-status {
    font-size: 0.9rem;
    color: #6b7280;
}

.progress-processing-text {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

.progress-processing-text span {
    color: #facc15;
    font-weight: 700;
}

@media (max-width: 768px) {
    .progress-container {
        max-width: 360px;
        padding: 2.5rem 2rem;
        gap: 2rem;
    }

    .progress-feature-title {
        font-size: 1.25rem;
    }

    .progress-percent {
        font-size: 1.25rem;
    }

    .progress-processing-text {
        font-size: 0.95rem;
    }
}
