:root {
    --ofuran-primary: #0d6efd;
    --ofuran-surface: #f6f8fb;
}

html,
body {
    min-height: 100%;
}

body {
    background: var(--ofuran-surface);
    color: #172033;
}

.foundation-hero {
    background:
        radial-gradient(circle at 90% 10%, rgba(13, 110, 253, 0.12), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, var(--ofuran-surface) 100%);
}

.status-card {
    border-radius: 1rem;
}

.card {
    border-radius: 0.9rem;
}

.btn {
    border-radius: 0.65rem;
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 15%, rgba(13, 110, 253, 0.12), transparent 28rem),
        radial-gradient(circle at 85% 85%, rgba(25, 135, 84, 0.08), transparent 26rem),
        #f6f8fb;
}

.auth-header {
    min-height: 72px;
}

.auth-main {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-shell {
    max-width: 540px;
}

.auth-card-wide {
    width: min(720px, calc(100vw - 2rem));
    margin-left: 50%;
    transform: translateX(-50%);
}

.auth-card {
    border-radius: 1.25rem;
}

.auth-icon {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(13, 110, 253, 0.1);
    font-size: 2rem;
}

.selection-grid {
    display: grid;
    gap: 0.75rem;
}

.selection-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.8rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.selection-card:hover,
.selection-card:has(input:checked) {
    border-color: var(--ofuran-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.context-box {
    height: 100%;
    padding: 1rem;
    border: 1px solid #e5e9f0;
    border-radius: 0.8rem;
    background: #f8f9fa;
}

.management-page-header,
.management-empty {
    max-width: 860px;
}

.management-table th {
    padding: 1rem;
    color: #5e687b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.management-table td {
    padding: 1rem;
}

.business-logo-sm,
.business-logo-lg {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    object-fit: contain;
    border: 1px solid #e4e8ef;
    border-radius: 0.8rem;
    background: #fff;
}

.business-logo-sm {
    width: 2.75rem;
    height: 2.75rem;
}

.business-logo-lg {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.4rem;
}

.logo-placeholder {
    color: var(--ofuran-primary);
    background: rgba(13, 110, 253, 0.08);
    font-weight: 800;
}

.logo-preview {
    display: grid;
    place-items: center;
    min-height: 150px;
    overflow: hidden;
    border: 1px dashed #cdd4df;
    border-radius: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
}

.logo-preview img {
    width: 100%;
    max-height: 180px;
    padding: 1rem;
    object-fit: contain;
}

.status-active {
    color: #0f5132;
    background: #d1e7dd;
}

.status-pending {
    color: #664d03;
    background: #fff3cd;
}

.status-suspended,
.status-inactive {
    color: #842029;
    background: #f8d7da;
}

.management-details dt,
.management-details dd {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #eef1f5;
}

.management-details dd {
    margin-bottom: 0;
}

.usage-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eef1f5;
}

.usage-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

@media (max-width: 575.98px) {
    .auth-main {
        align-items: flex-start;
        padding-top: 1rem;
    }

    .auth-card-wide {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .management-table th,
    .management-table td {
        padding: 0.8rem;
    }

    .management-details dt {
        padding-bottom: 0;
        border-bottom: 0;
    }
}
