.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    border: 1px solid transparent;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background-color: #4f46e5; color: #fff; }
.btn-primary:hover { background-color: #4338ca; }
.btn-secondary { background-color: #fff; border-color: #cbd5e1; color: #334155; }
.btn-secondary:hover { background-color: #f1f5f9; }
.btn-danger { background-color: #dc2626; color: #fff; }
.btn-danger:hover { background-color: #b91c1c; }
.btn-success { background-color: #16a34a; color: #fff; }
.btn-success:hover { background-color: #15803d; }
.btn-sm { padding: .3125rem .75rem; font-size: .75rem; }
.btn-block { width: 100%; }

.input, .select, .textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    padding: .5rem .75rem;
    font-size: .875rem;
    color: #0f172a;
    background-color: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .2);
}
.textarea { min-height: 7rem; resize: vertical; }
.checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: .25rem;
    accent-color: #4f46e5;
}

.label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: .25rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .125rem .625rem;
    border-radius: 9999px;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge-indigo { background: #eef2ff; color: #4338ca; }
.badge-green { background: #f0fdf4; color: #15803d; }
.badge-amber { background: #fffbeb; color: #b45309; }
.badge-red { background: #fef2f2; color: #b91c1c; }
.badge-slate { background: #f1f5f9; color: #475569; }
.badge-blue { background: #eff6ff; color: #1d4ed8; }

.table { width: 100%; font-size: .875rem; border-collapse: collapse; }
.table th {
    text-align: left;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    padding: .625rem .75rem;
    border-bottom: 1px solid #e2e8f0;
}
.table td { padding: .75rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tbody tr:hover { background-color: #f8fafc; }

.alert { border-radius: .75rem; padding: .875rem 1rem; font-size: .875rem; margin-bottom: 1rem; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-lg { width: 4.5rem; height: 4.5rem; font-size: 1.25rem; }

.progress {
    height: .625rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}
.progress-bar { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 9999px; transition: width .4s ease; }

/* CMS-managed rich text */
.cms-content { color: #475569; font-size: .9375rem; line-height: 1.7; }
.cms-content h2 { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 1.75rem 0 .5rem; }
.cms-content h3 { font-size: 1.1rem; font-weight: 600; color: #0f172a; margin: 1.5rem 0 .5rem; }
.cms-content p { margin: .75rem 0; }
.cms-content ul { list-style: disc; padding-left: 1.4rem; margin: .75rem 0; }
.cms-content ol { list-style: decimal; padding-left: 1.4rem; margin: .75rem 0; }
.cms-content li { margin: .3rem 0; }
.cms-content a { color: #4f46e5; text-decoration: underline; }
.cms-content strong { color: #0f172a; }

/* Full-bleed section that escapes a centered container */
.hero-full { width: 100vw; margin-left: calc(50% - 50vw); }
