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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f5f9 100%);
    height: 100vh;
    height: 100dvh;
    /* Adapts to mobile browser UI */
    overflow: hidden;
    /* Prevents whole page scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1e293b;
    padding: 16px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
    flex-shrink: 0;
}

.subtitle {
    color: #475569;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.4;
    flex-shrink: 0;
}

.search-box {
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.search-box.hidden {
    display: none;
}

input {
    width: 100%;
    padding: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    font-size: 18px;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
    color: #0f172a;
    flex-shrink: 0;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.suggestions-list {
    flex: 1;
    min-height: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    list-style: none;
    border: 1px solid #cbd5e1;
}

.suggestions-list.hidden {
    display: none;
}

.suggestions-list li {
    padding: 20px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 18px;
    transition: background 0.2s;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

.suggestions-list li:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.suggestions-list li strong {
    color: #3b82f6;
}

.qr-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    animation: fadeIn 0.3s ease;
}

.qr-container.hidden {
    display: none;
}

.qr-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

#qrImage {
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
    object-fit: contain;
}

.info-section {
    flex-shrink: 0;
}

#accountNameLabel {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.account-number {
    font-size: 16px;
    color: #475569;
    font-weight: 600;
    margin-bottom: 12px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.download-btn,
.reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    transition: all 0.2s;
}

.download-btn {
    background: #2563eb;
    color: white;
}

.download-btn:active {
    background: #1d4ed8;
    transform: scale(0.98);
}

.reset-btn {
    background: #fff;
    color: #dc2626;
    border: 2px solid #fecaca;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.05);
}

.reset-btn:active {
    background: #fef2f2;
    transform: scale(0.98);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}