/* Shared UI blocks consolidated from inline <style> tags in layouts/pages. */

body.layout-fixed .app-content {
    padding-bottom: 3rem;
}

.app-content .container-fluid {
    max-width: 1680px;
}

.app-content-header {
    padding: 0 0 1rem;
    margin-bottom: .35rem;
    background: transparent !important;
    border: 0 !important;
}

.content-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.75rem;
    padding: 1.75rem 1.85rem;
    border: 1px solid rgba(205, 216, 231, 0.9);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(244, 193, 105, .18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(22, 84, 146, .10), transparent 30%),
        linear-gradient(180deg, #fcfdff 0%, #f6f9fe 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .08);
}

.content-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -58% auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 153, .42) 0%, rgba(255, 214, 153, 0) 68%);
    pointer-events: none;
}

.content-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.content-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(255, 166, 0, .10);
    color: #c56612;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.content-hero__title {
    margin: .9rem 0 .4rem;
    color: #0f2342;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1.02;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

.content-hero__copy {
    max-width: 880px;
    margin: 0;
    color: #5d6f85;
    font-size: 1.03rem;
    line-height: 1.75;
}

.content-hero__trail {
    min-width: 250px;
    margin-left: auto;
}

.content-hero__crumb {
    display: flex;
    justify-content: end;
    gap: .55rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .98rem;
    color: #5f6f82;
}

.content-hero__crumb a {
    color: #1d5dca;
    text-decoration: none;
    font-weight: 600;
}

.content-hero__crumb li + li::before {
    content: "/";
    margin-right: .55rem;
    color: #8ba0bb;
}

.content-hero__crumb li {
    display: inline-flex;
    align-items: center;
}

.client-premium-shell {
    display: grid;
    gap: 1.5rem;
}

.client-premium-card,
.legal-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(242, 190, 108, .10), transparent 22%),
        linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
    color: var(--app-text, #10223c);
    border: 1px solid rgba(208, 218, 231, .92);
    border-radius: 30px;
    padding: 1.45rem;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.07);
}

.client-premium-card--ink {
    background:
        radial-gradient(circle at bottom right, rgba(188, 84, 18, .58), transparent 32%),
        linear-gradient(135deg, #141d2d 0%, #1b2436 100%);
    border-color: rgba(22, 31, 48, .88);
    color: #fff;
}

.client-premium-card--soft {
    background:
        radial-gradient(circle at top right, rgba(56, 132, 255, .08), transparent 22%),
        linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
}

.client-premium-card__eyebrow,
.legal-header-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .84rem;
    border-radius: 999px;
    background: rgba(28, 87, 181, .09);
    color: #295fb9;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.client-premium-card__eyebrow--amber {
    background: rgba(245, 158, 11, .12);
    color: #c56c18;
}

.client-premium-card__title {
    margin: .95rem 0 .55rem;
    color: #17253d;
    font-size: clamp(1.75rem, 2.3vw, 2.8rem);
    line-height: 1.06;
    font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

.client-premium-card__text {
    margin: 0;
    color: #5d6f85;
    line-height: 1.75;
}

.client-premium-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .78rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(209, 219, 232, .95);
    color: #11233f;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.client-premium-grid {
    display: grid;
    gap: 1.35rem;
    grid-template-columns: 1.35fr .65fr;
    align-items: stretch;
}

.client-premium-reading {
    min-height: 100%;
}

.client-premium-reading__label {
    display: block;
    color: #7386a0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.client-premium-reading__value {
    color: #17253d;
    font-size: clamp(1.55rem, 2.1vw, 2.4rem);
    line-height: 1.05;
    font-weight: 800;
}

.client-premium-reading__subtext {
    margin-top: .55rem;
    color: #5d6f85;
    line-height: 1.65;
}

.client-premium-card--ink .client-premium-card__title,
.client-premium-card--ink .client-premium-card__text,
.client-premium-card--ink .client-premium-reading__value,
.client-premium-card--ink .client-premium-reading__subtext {
    color: #ffffff;
}

.client-premium-card--ink .client-premium-reading__label {
    color: rgba(255, 214, 91, .9);
}

.client-premium-form {
    display: grid;
    gap: 1rem;
}

.client-premium-form .form-label {
    margin-bottom: .55rem;
    color: #1f304d !important;
    font-weight: 700;
}

.client-premium-form .form-control,
.client-premium-form .form-select {
    min-height: 52px;
    border-radius: 18px;
    border-color: #cdd8e7 !important;
    background: linear-gradient(180deg, #fdfefe 0%, #ffffff 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.client-premium-form .form-control:focus,
.client-premium-form .form-select:focus {
    border-color: #7aa7ff !important;
    box-shadow: 0 0 0 .22rem rgba(74, 123, 255, .14) !important;
}

.client-premium-table {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(208, 218, 231, .92);
    background: #fff;
}

.client-premium-table .table {
    margin-bottom: 0;
}

.client-premium-table .table thead th {
    background: #f7f9fd !important;
    color: #667892 !important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(214, 224, 236, .92);
}

.client-premium-table .table tbody tr:hover {
    background: #fbfcff;
}

/* Shared "legal" page layout primitives */
.legal-wrapper {
    max-width: 1680px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 24px;
}

.legal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.legal-header h6 {
    margin: 0;
    font-weight: 800;
    color: #18355c;
    letter-spacing: .02em;
}

.legal-bullet {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #1f5cff 0%, #60a5fa 100%);
    border-radius: 999px;
    box-shadow: 0 0 0 6px rgba(96, 165, 250, .14);
}

.table-hover tbody tr:hover {
    background-color: color-mix(in srgb, var(--app-surface-soft, #f7f9fc) 72%, transparent);
}

.legal-action-btn {
    border-radius: 14px;
    transition: all 0.25s ease;
}

.legal-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.legal-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.legal-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.35);
}

@media (max-width: 991.98px) {
    .content-hero {
        padding: 1.35rem 1.2rem;
        border-radius: 24px;
    }

    .content-hero__trail {
        width: 100%;
        margin-left: 0;
    }

    .content-hero__crumb {
        justify-content: start;
    }

    .client-premium-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared premium date input enhancer */
.date-input-wrap {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.date-input-wrap .date-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a58ca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.date-input-premium {
    border: 1px solid var(--app-form-border, #cfd9ea);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--app-surface-soft, #f4f8ff) 0%, var(--app-form-bg, #ffffff) 65%);
    min-height: 46px;
    font-weight: 600;
    color: var(--app-form-text, #0f172a);
    padding: 10px 42px 10px 40px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.date-input-premium:focus {
    border-color: #4f86ff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
    background-color: var(--app-form-bg, #fff);
}

.date-input-premium:disabled,
.date-input-premium[readonly] {
    background: var(--app-surface-muted, #eef2f7);
    cursor: not-allowed;
}

.date-input-wrap .date-input-trigger {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    width: 32px;
    height: 32px;
    background: color-mix(in srgb, var(--app-link, #0d6efd) 12%, var(--app-surface, #ffffff));
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.date-input-wrap .date-input-trigger:hover {
    background: color-mix(in srgb, var(--app-link, #0d6efd) 18%, var(--app-surface, #ffffff));
    color: #0a58ca;
}

.date-input-premium::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
}

.form-control-sm.date-input-premium {
    min-height: 34px;
    padding: 5px 36px 5px 34px;
}

/* Admin dashboard local layout */
#sidebar {
    width: 240px;
    transition: transform 0.2s ease;
}

#sidebar.collapsed {
    transform: translateX(-240px);
}

#content {
    margin-left: 240px;
    transition: margin-left 0.2s ease;
}

#content.full {
    margin-left: 0;
}

.nav-link {
    font-size: 14px;
}

/* Login page (scoped) */
.auth-login-page {
    background: radial-gradient(circle at top, #f8fafc 0%, #eef2f7 45%, #e5eaf1 100%);
}

.auth-login-page .auth-login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.05),
        rgba(220, 53, 69, 0.05)
    );
    z-index: 0;
}

.auth-login-page .auth-login-card > * {
    position: relative;
    z-index: 1;
}

.auth-login-page .form-control {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.auth-login-page .form-control:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.auth-login-page .user-type {
    transition: all 0.25s ease;
    background: #fff;
}

.auth-login-page .user-type:hover {
    border-color: #0d6efd;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
    transform: translateY(-2px);
}

.auth-login-page .btn-dark {
    background: linear-gradient(135deg, #111827, #1f2937);
    border: none;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.auth-login-page .btn-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Error layout */
.error-page-body {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #2b2b2b;
    font-family: "Poppins", sans-serif;
}

.error-container {
    text-align: center;
    padding: 50px 20px;
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: #0d6efd;
    letter-spacing: -5px;
    margin-bottom: 10px;
}

.error-message {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.error-detail {
    color: #6c757d;
    margin-bottom: 30px;
}

.btn-main {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 50px;
    font-weight: 500;
    padding: 10px 25px;
    transition: all 0.2s ease-in-out;
}

.btn-main:hover {
    background-color: #0b5ed7;
    color: #fff;
    transform: translateY(-2px);
}

.logo {
    width: 150px;
    margin-bottom: 25px;
}

.error-page-body footer {
    margin-top: 40px;
    color: #6c757d;
    font-size: 0.9rem;
}
