/* Returning customer hub — big square menu */

.aiea-customer-hub {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1rem;
    max-width: min(720px, 100%);
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.aiea-customer-hub__header {
    text-align: center;
}

.aiea-customer-hub__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.aiea-customer-hub__lead {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.aiea-customer-hub__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 560px) {
    .aiea-customer-hub__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

.aiea-hub-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 6.5rem;
    padding: 0.85rem 0.65rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.aiea-hub-tile:hover {
    border-color: var(--adv-accent, #2563eb);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.aiea-hub-tile:focus-visible {
    outline: 2px solid var(--adv-accent, #2563eb);
    outline-offset: 2px;
}

.aiea-hub-tile__icon {
    font-size: 1.55rem;
    line-height: 1;
}

.aiea-hub-tile__label {
    display: block;
}

.aiea-hub-tile--danger {
    border-color: #fecaca;
    color: #991b1b;
}

.aiea-hub-tile--danger:hover {
    border-color: #ef4444;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12);
}

.aiea-customer-hub__panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    align-items: stretch;
}

.aiea-customer-hub__back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.aiea-customer-hub__back:hover {
    background: #f8fafc;
}

.aiea-customer-hub__section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.aiea-company-docs__subtitle {
    margin: -0.35rem 0 1rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.45;
}

.aiea-company-docs__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.aiea-company-docs__card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #fff;
}

.aiea-company-docs__name {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    word-break: break-word;
}

.aiea-company-docs__meta,
.aiea-company-docs__status,
.aiea-company-docs__usage {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: #334155;
}

.aiea-company-docs__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.aiea-company-docs__btn {
    min-height: 40px;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.aiea-company-docs__btn--danger {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff;
}

.aiea-company-docs__upload {
    margin-bottom: 0.5rem;
}

.aiea-company-docs__limits {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.aiea-company-docs__empty {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.aiea-company-docs__loading {
    color: #64748b;
}

@media (max-width: 480px) {
    .aiea-company-docs__actions {
        flex-direction: column;
    }

    .aiea-company-docs__btn {
        width: 100%;
    }
}

.aiea-customer-hub__notice {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.45;
}

.aiea-customer-hub__notice--info {
    background: #eff6ff;
    color: #1e40af;
}

.aiea-customer-hub__notice--warn {
    background: #fffbeb;
    color: #92400e;
}

.aiea-customer-hub__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.aiea-customer-hub__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: #334155;
}

.aiea-customer-hub__field input,
.aiea-customer-hub__field select,
.aiea-customer-hub__field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.45rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.82rem;
    color: #0f172a;
    background: #fff;
}

.aiea-customer-hub__field select {
    min-height: 2.65rem;
    appearance: auto;
    -webkit-appearance: menulist;
    overflow-wrap: anywhere;
    white-space: normal;
    text-overflow: clip;
}

.aiea-customer-hub__field select option {
    white-space: normal;
    overflow-wrap: anywhere;
}

.aiea-customer-hub__panel .aiea-customer-hub__field:first-of-type select {
    border-color: var(--adv-accent, #2563eb);
    font-weight: 600;
}

.aiea-customer-hub__field textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.aiea-customer-hub__pricing {
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.78rem;
    line-height: 1.5;
}

.aiea-customer-hub__pricing strong {
    color: #0f172a;
}

.aiea-customer-hub__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.aiea-customer-hub__actions--inline {
    margin-top: 0.5rem;
}

.aiea-customer-hub__btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.aiea-customer-hub__btn--primary {
    background: var(--adv-accent, #2563eb);
    color: #fff;
}

.aiea-customer-hub__btn--primary:disabled {
    opacity: 0.55;
    cursor: default;
}

.aiea-customer-hub__btn--outline,
.aiea-customer-hub__btn--secondary {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.aiea-customer-hub__btn--ghost {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.aiea-customer-hub__status {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.4;
}

.aiea-customer-hub__status--ok {
    color: #15803d;
}

.aiea-customer-hub__status--err {
    color: #b91c1c;
}

.aiea-customer-hub__status--info {
    color: #475569;
}

.aiea-customer-hub__course-detail {
    margin: 0.15rem 0 0.5rem;
    padding: 0.75rem;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fafc;
}

.aiea-customer-hub__course-summary {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #334155;
}

.aiea-customer-hub__course-duration {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: #64748b;
}

.aiea-customer-hub__course-self-paced-note {
    margin: 0 0 0.45rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.aiea-customer-hub__course-link {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--adv-accent, #2563eb);
    text-decoration: none;
}

.aiea-customer-hub__course-link:hover {
    text-decoration: underline;
}

.aiea-customer-hub__voucher-step {
    margin: 0.25rem 0 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.aiea-customer-hub__voucher-account {
    margin-bottom: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.aiea-customer-hub__voucher-account-label {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aiea-customer-hub__voucher-code {
    margin: 0;
    font-size: 0.9rem;
    color: #14532d;
}

.aiea-customer-hub__legal {
    margin: 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.45;
}

.aiea-customer-hub__legal ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.aiea-customer-hub__mct-credential {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.aiea-customer-hub__mct-credential p {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.aiea-customer-hub__mct-logo {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 8px;
}
