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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px;
}

header {
    text-align: center;
    margin-bottom: 28px;
}

header h1 {
    font-size: 1.75rem;
    color: #1a365d;
    margin-bottom: 4px;
}

.subtitle {
    color: #718096;
    font-size: 0.95rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: #edf2f7;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
}

.tab.active {
    background: #2b6cb0;
    color: white;
}

.form-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.form-panel.active {
    display: flex;
}

input[type="email"],
input[type="password"] {
    padding: 12px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

input:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn.primary {
    background: #2b6cb0;
    color: white;
}

.btn.primary:hover {
    background: #2c5282;
}

.btn.secondary {
    background: #edf2f7;
    color: #2d3748;
}

.btn.small {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: #e2e8f0;
    color: #4a5568;
}

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

.error {
    color: #c53030;
    font-size: 0.9rem;
    margin-top: 8px;
}

.success {
    color: #276749;
    font-weight: 600;
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

.user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    background: #c6f6d5;
    color: #276749;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge.free {
    background: #feebc8;
    color: #c05621;
}

.usage {
    font-size: 0.9rem;
    color: #4a5568;
}

.drop-zone {
    border: 2px dashed #a0aec0;
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    color: #718096;
    transition: border-color 0.2s, background 0.2s;
}

.drop-zone.dragover {
    border-color: #2b6cb0;
    background: #ebf8ff;
}

.drop-zone p {
    margin-bottom: 12px;
}

.file-info {
    text-align: center;
}

.file-info p {
    margin-bottom: 16px;
    word-break: break-all;
}

.progress {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #2b6cb0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.result {
    text-align: center;
}

.result p {
    margin-bottom: 12px;
}

.result .btn {
    margin: 6px;
}

.info-box h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.info-box ul {
    padding-left: 20px;
    margin-bottom: 12px;
    color: #4a5568;
    font-size: 0.9rem;
}

.info-box li {
    margin-bottom: 4px;
}

.note {
    font-size: 0.85rem;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4rem;
    }
    .card {
        padding: 18px;
    }
}
