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

body {
    font-family: 'Inter', Arial, sans-serif;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 30%),
      linear-gradient(135deg, #6a5acd, #7b68ee);
    color: white;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

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

header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
}

header h1 i {
    margin-right: 15px;
}

.search-section {
    padding: 1rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

#searchInput {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.15);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchInput:focus {
    outline: none;
    border-color: #ff9a46;
    background: rgba(0, 0, 0, 0.25);
}

button {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

#searchBtn {
    background: linear-gradient(135deg, #ff9a46, #ff6a95);
}

#searchBtn:hover {
    background: linear-gradient(135deg, #ffb06b, #ff88ab);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

#clearBtn {
    background: rgba(0, 0, 0, 0.28);
}

#clearBtn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.info-section {
    text-align: center;
    margin-bottom: 2rem;
}

#fileInfo {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-section {
    padding: 0;
}

.results-count {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.results-container {
    display: grid;
    gap: 15px;
}

.account-card-first {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.account-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.account-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.account-field {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.field-value {
    color: white;
    font-size: 1.1rem;
    word-break: break-all;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #6a5acd, #7b68ee);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1001;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: rgba(244, 67, 54, 0.9);
}

.toast.warning {
    background: rgba(255, 152, 0, 0.9);
}

.hidden {
    display: none !important;
}

.success {
    color: white;
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
}

.error {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
}

.warning {
    background: rgba(255, 152, 0, 0.2);
    border-color: rgba(255, 152, 0, 0.5);
}

.stats {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .search-box {
        flex-direction: column;
    }
    
    #searchInput {
        min-width: 100%;
    }
    
    .account-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    button {
        width: 100%;
        justify-content: center;
    }
    
    .account-field {
        text-align: center;
    }
}