.taxai-portal-integrated {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.taxai-portal-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    margin-bottom: 24px;
}

.taxai-portal-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.taxai-portal-hero h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.25;
}

.taxai-portal-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
}

.taxai-portal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.taxai-btn-primary,
.taxai-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.taxai-btn-primary {
    background: #fff;
    color: #1d4ed8;
}

.taxai-btn-secondary {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
}

.taxai-portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.taxai-portal-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.taxai-portal-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.taxai-portal-card-head h3 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.taxai-portal-card-head a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

.taxai-portal-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #eef2f7;
}

.taxai-portal-row:first-of-type {
    border-top: 0;
}

.taxai-portal-row strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.taxai-portal-row p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.taxai-portal-row span {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

.taxai-portal-empty {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
}

.taxai-portal-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
}

.taxai-portal-upload-card {
    margin-top: 18px;
}

.taxai-portal-upload-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.taxai-portal-upload-form input[type="file"] {
    flex: 1;
    min-width: 240px;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.taxai-portal-upload-form button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 860px) {
    .taxai-portal-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .taxai-portal-grid {
        grid-template-columns: 1fr;
    }
}
