* {
    box-sizing: border-box;
}

:root {
    --primary: #1159cb;
    --primary-dark: #0d47a6;
    --primary-soft: #eaf2ff;
    --border: #dbe5f2;
    --text: #16355f;
    --muted: #6e7f97;
    --surface: #ffffff;
    --shadow: 0 18px 55px rgba(17, 89, 203, 0.12);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(17, 89, 203, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    position: relative;
    overflow-x: hidden;
}

.page-bg,
.page-dots {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.page-bg {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 89, 203, 0.11) 0%, rgba(17, 89, 203, 0.03) 45%, transparent 72%);
}

.page-bg-right {
    right: -130px;
    top: 330px;
}

.page-bg-left {
    left: -150px;
    top: 90px;
}

.page-dots {
    width: 130px;
    height: 80px;
    opacity: 0.45;
    background-image: radial-gradient(circle, #c8daf7 2px, transparent 2px);
    background-size: 18px 18px;
}

.page-dots-top {
    top: 250px;
    right: 48px;
}

.page-dots-bottom {
    bottom: 80px;
    left: 32px;
}

.topbar,
.page-shell,
.site-footer {
    position: relative;
}

.topbar {
    z-index: 30;
}

.page-shell,
.site-footer {
    z-index: 1;
}

.topbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(203, 220, 241, 0.7);
}

.topbar-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    width: 132px;
    height: 132px;
    object-fit: contain;
    flex-shrink: 0;
}

.topbar-action {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #4b5f7a;
    font-size: 17px;
}

.topbar-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid #9fbef4;
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    background: #fff;
    box-shadow: 0 4px 16px rgba(17, 89, 203, 0.05);
}

.topbar-button-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

.topbar-button-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 28px auto 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(205, 220, 240, 0.85);
    border-radius: 26px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 390px 1fr;
    overflow: hidden;
}

.auth-aside {
    padding: 42px 34px;
    border-left: 1px solid rgba(205, 220, 240, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 32% 10%, rgba(17, 89, 203, 0.08), transparent 27%),
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.aside-illustration {
    width: 240px;
    max-width: 100%;
    margin: 0 auto 18px;
    display: block;
}

.aside-title {
    margin: 0 0 10px;
    text-align: center;
    color: var(--primary-dark);
    font-size: 28px;
    line-height: 1.35;
}

.aside-copy {
    margin: 0 auto 34px;
    max-width: 280px;
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.feature-list {
    display: grid;
    gap: 20px;
    margin-top: 6px;
}

.feature-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 14px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f4f8ff 0%, #e4efff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: inset 0 0 0 1px #d6e3fb;
}

.feature-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-title {
    margin: 0 0 4px;
    font-size: 16px;
    color: #183764;
}

.feature-text {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.auth-form-panel {
    padding: 34px 46px 26px;
}

.form-heading {
    text-align: center;
    margin-bottom: 26px;
}

.form-title {
    margin: 0 0 10px;
    font-size: clamp(34px, 3vw, 38px);
    color: var(--primary-dark);
}

.form-subtitle {
    margin: 0;
    font-size: 17px;
    color: #617390;
    font-weight: 700;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.7;
}

.alert-error {
    background: #fff0f0;
    color: #a11c2c;
    border: 1px solid #f3c8cf;
}

.alert-success {
    background: #ebfff4;
    color: #117646;
    border: 1px solid #bfe8cf;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.field label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
    color: #1e3555;
    font-size: 16px;
    font-weight: 700;
}

.required-mark {
    color: #d53131;
    margin-right: 6px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: #5f7190;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.input-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

input,
select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px 12px 48px;
    font-size: 16px;
    color: #1b3355;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    color: #1b3355;
    background: #fff;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: #8db4f5;
    box-shadow: 0 0 0 4px rgba(17, 89, 203, 0.1);
}

input::placeholder,
select:invalid {
    color: #95a3ba;
}

input:focus,
select:focus {
    outline: none;
    border-color: #8db4f5;
    box-shadow: 0 0 0 4px rgba(17, 89, 203, 0.1);
}

.field-note {
    margin-top: 8px;
    color: #169455;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-note svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    min-height: 54px;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 12px 24px rgba(17, 89, 203, 0.18);
}

.button:hover {
    filter: brightness(1.04);
}

.form-agreement {
    margin: 16px 0 0;
    text-align: center;
    color: #6e7f97;
    font-size: 15px;
}

.form-agreement a,
.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.actions {
    margin-top: 18px;
    text-align: center;
}

.meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.meta div {
    background: linear-gradient(180deg, #f9fbff 0%, #eff5ff 100%);
    border: 1px solid #dce7f5;
    padding: 14px 16px;
    border-radius: 14px;
}

.site-footer {
    padding: 14px 20px 24px;
    text-align: center;
    color: #5d6f89;
    font-size: 15px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 28, 55, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.modal-backdrop.is-visible {
    display: flex;
}

.modal-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 28px 60px rgba(0, 24, 74, 0.28);
}

.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, #eaf6ef 0%, #d3f3de 100%);
    color: #159455;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
}

.modal-card h3 {
    margin: 0 0 10px;
    color: #183764;
    font-size: 27px;
}

.modal-card p {
    margin: 0 0 20px;
    color: #5f7190;
    line-height: 1.8;
    font-size: 16px;
}

.modal-button {
    min-width: 140px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.landing-card {
    max-width: 760px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 26px;
    border: 1px solid rgba(205, 220, 240, 0.85);
    box-shadow: var(--shadow);
    padding: 42px;
    text-align: center;
}

.landing-card h2 {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-size: 36px;
}

.landing-card p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.home-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.home-links a {
    min-width: 190px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

.primary-link {
    color: #fff;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.secondary-link {
    color: var(--primary);
    border: 1px solid #9fbef4;
    background: #fff;
}

.topbar-dashboard {
    border: 1px solid rgba(205, 220, 240, 0.85);
    border-radius: 22px;
    width: min(1500px, calc(100% - 20px));
    margin: 10px auto 0;
    box-shadow: 0 10px 32px rgba(17, 89, 203, 0.08);
    overflow: visible;
}

.topbar-inner-dashboard {
    width: calc(100% - 46px);
    min-height: 108px;
}

.brand-block-dashboard {
    gap: 20px;
}

.topbar-dashboard .brand-logo {
    width: 118px;
    height: 118px;
}

.dashboard-userbar {
    display: flex;
    align-items: center;
    gap: 18px;
}

.notification-wrap {
    position: relative;
    z-index: 40;
}

.notification-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #243d60;
    cursor: pointer;
}

.notification-button svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -3px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #f24b4b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 340px;
    max-width: min(90vw, 340px);
    background: #fff;
    border: 1px solid #dce7f5;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(17, 89, 203, 0.16);
    padding: 16px;
    display: none;
    z-index: 100;
}

.notification-dropdown.is-visible {
    display: block;
}

.notification-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.notification-dropdown-head strong {
    color: #183764;
    font-size: 17px;
}

.notification-dropdown-head a {
    color: #1e69de;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-item {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.notification-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    background: #d0d9e8;
}

.notification-dot.review {
    background: #d67c00;
}

.notification-dot.rejected {
    background: #d44357;
}

.notification-dot.audit {
    background: #1159cb;
}

.notification-dot.returned {
    background: #9a6a00;
}

.notification-dot.accepted {
    background: #14975d;
}

.notification-dot.closed {
    background: #14975d;
}

.notification-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #183764;
    font-size: 15px;
}

.notification-copy p {
    margin: 0 0 6px;
    color: #617390;
    font-size: 14px;
    line-height: 1.7;
}

.notification-copy small,
.notification-empty {
    color: #7b8da6;
    font-size: 13px;
}

.notification-empty {
    padding: 10px 2px 4px;
}

.user-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-mini-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.user-mini-greeting {
    color: #7384a0;
    font-size: 16px;
}

.user-mini-name {
    color: #183764;
    font-size: 24px;
    font-weight: 600;
}

.user-mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f2f6ff 0%, #d9e7ff 100%);
    color: #4f85d9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-mini-avatar svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: currentColor;
    stroke-width: 1.5;
}

.dashboard-shell {
    width: min(1500px, calc(100% - 20px));
    margin-top: 14px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

.dashboard-sidebar,
.dashboard-main {
    display: grid;
    gap: 18px;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(205, 220, 240, 0.85);
    border-radius: 22px;
    box-shadow: 0 10px 34px rgba(17, 89, 203, 0.08);
}

.dashboard-greeting {
    padding: 26px 24px 20px;
}

.dashboard-greeting h2 {
    margin: 0 0 8px;
    color: #163d7a;
    font-size: 26px;
}

.dashboard-greeting p {
    margin: 0;
    color: #6a7d97;
    font-size: 17px;
}

.wave {
    font-size: 28px;
}

.panel-title {
    margin: 0;
    color: #183764;
    font-size: 18px;
}

.quick-actions {
    padding: 22px 18px;
}

.quick-actions .panel-title,
.dashboard-notices .panel-title {
    margin-bottom: 16px;
}

.action-item {
    display: grid;
    grid-template-columns: 14px 1fr 54px;
    align-items: center;
    gap: 14px;
    padding: 18px 10px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid #edf2fa;
}

.action-item:first-of-type {
    border-top: 0;
}

.action-arrow {
    color: #4a78d0;
    font-size: 28px;
    line-height: 1;
}

.action-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-copy strong {
    color: #183764;
    font-size: 17px;
}

.action-copy span {
    color: #6e7f97;
    font-size: 14px;
}

.action-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon.blue {
    background: linear-gradient(180deg, #f2f7ff 0%, #deebff 100%);
    color: #1e69de;
}

.action-icon svg,
.panel-bell svg,
.notice-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-notices {
    padding: 22px 18px;
}

.panel-title-with-icon {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-bell {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f6ff;
    color: #1e69de;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
}

.notice-blue {
    background: linear-gradient(90deg, #f8fbff 0%, #eef5ff 100%);
}

.notice-green {
    background: linear-gradient(90deg, #f8fffb 0%, #eefcf5 100%);
}

.notice-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-blue .notice-icon {
    background: #e7f0ff;
    color: #2c72e4;
}

.notice-green .notice-icon {
    background: #def7ea;
    color: #15a15f;
}

.notice-card strong {
    display: block;
    margin-bottom: 6px;
    color: #183764;
}

.notice-card p {
    margin: 0 0 8px;
    color: #5f7190;
    line-height: 1.7;
    font-size: 14px;
}

.notice-card span {
    color: #7d8da7;
    font-size: 13px;
}

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

.stat-card {
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    align-items: center;
}

.stat-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card.green .stat-icon {
    background: #e3f7ee;
    color: #0e9d63;
}

.stat-card.blue .stat-icon {
    background: #e8f1ff;
    color: #1e69de;
}

.stat-card.orange .stat-icon {
    background: #fff1dd;
    color: #f39711;
}

.stat-card.purple .stat-icon {
    background: #f2eaff;
    color: #7b49df;
}

.stat-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-copy strong {
    color: #183764;
    font-size: 24px;
}

.stat-card.green .stat-copy strong {
    color: #0e9d63;
}

.stat-card.blue .stat-copy strong {
    color: #1e69de;
}

.stat-card.orange .stat-copy strong {
    color: #f39711;
}

.stat-card.purple .stat-copy strong {
    color: #5a37c9;
}

.stat-copy small {
    font-size: 14px;
}

.stat-copy span {
    color: #5f7190;
    font-size: 15px;
}

.stat-copy a,
.panel-link {
    color: #1e69de;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.current-request {
    padding: 22px 24px;
}

.current-request-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 16px;
}

.current-request h3 {
    margin: 0;
    color: #183764;
    font-size: 18px;
}

.request-title-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.request-title-block strong {
    color: #183764;
    font-size: 18px;
}

.request-title-block span {
    color: #7687a0;
    font-size: 14px;
}

.status-badge {
    background: #e3f8ea;
    color: #17995e;
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.request-meta {
    display: flex;
    gap: 60px;
    margin-top: 22px;
}

.request-meta div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-meta span {
    color: #7789a3;
    font-size: 14px;
}

.request-meta strong {
    color: #183764;
    font-size: 18px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 28px 0 20px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 10%;
    left: 10%;
    height: 2px;
    border-top: 2px dashed #d7e1f1;
}

.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.timeline-index {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ccd7ea;
    background: #fff;
    color: #7d8da7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-step strong {
    display: block;
    color: #183764;
    font-size: 15px;
    margin-bottom: 6px;
}

.timeline-step small {
    color: #7b8da6;
    font-size: 13px;
}

.timeline-step.done .timeline-index {
    border-color: #1e69de;
    color: #1e69de;
}

.timeline-step.active .timeline-index {
    background: #1e69de;
    color: #fff;
}

.outline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 176px;
    min-height: 44px;
    border: 1px solid #9ebdf3;
    border-radius: 12px;
    color: #1e69de;
    text-decoration: none;
    font-weight: 500;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 18px;
}

.installments-panel,
.latest-requests-panel {
    padding: 22px 20px;
}

.panel-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.installments-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 18px;
    border: 1px solid #e3ebf7;
    border-radius: 16px;
    overflow: hidden;
}

.summary-box {
    padding: 18px 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.summary-box span {
    color: #7a8ba5;
    font-size: 14px;
}

.summary-box strong {
    color: #183764;
    font-size: 19px;
}

.summary-box.paid strong {
    color: #0e9d63;
}

.summary-box.remaining {
    background: #f5f9ff;
}

.summary-box.remaining strong {
    color: #1e69de;
}

.progress-ring {
    --progress: 40;
    display: grid;
    place-items: center;
    padding: 14px;
    background:
        radial-gradient(closest-side, #fff 74%, transparent 75% 100%),
        conic-gradient(#1e69de calc(var(--progress) * 1%), #e8eef9 0);
}

.progress-ring-inner {
    width: 100%;
    height: 100%;
    min-height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.progress-ring-inner strong {
    color: #304f7d;
    font-size: 28px;
}

.progress-ring-inner span {
    color: #6c7d96;
    font-size: 14px;
}

.data-table {
    border-top: 1px solid #edf2fa;
}

.table-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr 1.2fr;
    gap: 12px;
    align-items: center;
    padding: 16px 4px;
    border-bottom: 1px solid #edf2fa;
    color: #304f7d;
    font-size: 15px;
}

.table-head {
    color: #7b8da6;
    font-size: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.pill.paid {
    background: #e4f7ed;
    color: #14975d;
}

.pill.review {
    background: #fff1de;
    color: #d67c00;
}

.pill.rejected {
    background: #ffe8eb;
    color: #d44357;
}

.pill.audit {
    background: #e8f0ff;
    color: #1159cb;
}

.pill.returned {
    background: #fff4dd;
    color: #9a6a00;
}

.pill.accepted {
    background: #e4f7ed;
    color: #14975d;
}

.pill.closed {
    background: #eef2f8;
    color: #6d7c92;
}

.request-list {
    display: grid;
    gap: 12px;
}

.request-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #edf2fa;
}

.request-list-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.request-list-item strong {
    display: block;
    margin-bottom: 6px;
    color: #183764;
}

.request-list-item span {
    color: #72839d;
    font-size: 14px;
}

.request-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.request-item-meta small {
    color: #72839d;
    font-size: 13px;
}

.request-page {
    display: grid;
    gap: 18px;
}

.request-hero {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.request-hero h2 {
    margin: 0 0 8px;
    color: #163d7a;
    font-size: 30px;
}

.request-hero p {
    margin: 0;
    color: #6a7d97;
    font-size: 16px;
    line-height: 1.8;
}

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

.category-card {
    border: 1px solid rgba(205, 220, 240, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 34px rgba(17, 89, 203, 0.08);
    padding: 28px 26px;
    text-align: right;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-card.is-active {
    transform: translateY(-2px);
    border-color: #8db4f5;
    box-shadow: 0 18px 38px rgba(17, 89, 203, 0.12);
}

.category-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-icon.support {
    background: linear-gradient(180deg, #e8f9f1 0%, #d8f3e6 100%);
    color: #119b63;
}

.category-icon.loan {
    background: linear-gradient(180deg, #edf4ff 0%, #dfeaff 100%);
    color: #1e69de;
}

.category-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    color: #183764;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: #6e7f97;
    font-size: 16px;
    line-height: 1.8;
}

.subcategory-panel {
    padding: 22px;
    display: none;
}

.subcategory-panel.is-visible {
    display: block;
}

.panel-helper {
    color: #7486a1;
    font-size: 14px;
}

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

.subcategory-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid #e2ebf7;
    border-radius: 20px;
    padding: 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.subcategory-card:hover {
    transform: translateY(-2px);
    border-color: #8db4f5;
    box-shadow: 0 16px 30px rgba(17, 89, 203, 0.1);
}

.subcategory-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e7f4ed;
    color: #159455;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.loan-badge {
    background: #e8f1ff;
    color: #1e69de;
}

.subcategory-card strong {
    display: block;
    margin-bottom: 10px;
    color: #183764;
    font-size: 22px;
}

.subcategory-card p {
    margin: 0 0 18px;
    color: #6e7f97;
    line-height: 1.8;
    font-size: 15px;
}

.subcategory-link {
    color: #1e69de;
    font-weight: 600;
    font-size: 15px;
}

.request-form-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

.request-form-aside,
.request-form-panel {
    padding: 24px;
}

.request-form-aside h3 {
    margin: 0 0 18px;
    color: #183764;
    font-size: 22px;
}

.request-summary-list {
    display: grid;
    gap: 16px;
}

.request-summary-list div {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
    border: 1px solid #e3ebf7;
}

.request-summary-list span {
    display: block;
    margin-bottom: 8px;
    color: #71839d;
    font-size: 14px;
}

.request-summary-list strong {
    color: #183764;
    font-size: 17px;
}

.form-section {
    border: 1px solid #e6eef9;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 20px;
    margin-bottom: 20px;
}

.form-section-head {
    margin-bottom: 18px;
}

.form-section-head h3 {
    margin: 0 0 6px;
    color: #183764;
    font-size: 22px;
}

.form-section-head p {
    margin: 0;
    color: #7384a0;
    font-size: 14px;
}

.form-grid-two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-heading-left {
    text-align: right;
}

.field-full {
    grid-column: 1 / -1;
}

.followup-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.followup-stat-card {
    padding: 22px;
    display: grid;
    gap: 8px;
}

.followup-stat-label,
.followup-stat-card small {
    color: #72839d;
    font-size: 14px;
}

.followup-stat-card strong {
    color: #183764;
    font-size: 34px;
}

.followup-stat-card.blue strong {
    color: #1e69de;
}

.followup-stat-card.green strong {
    color: #12985f;
}

.followup-highlight,
.followup-list-panel {
    padding: 22px;
}

.followup-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.followup-highlight-grid div,
.followup-request-meta div {
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
    border: 1px solid #e3ebf7;
    padding: 16px;
    border-radius: 16px;
}

.followup-highlight-grid span,
.followup-request-meta span {
    display: block;
    margin-bottom: 8px;
    color: #71839d;
    font-size: 14px;
}

.followup-highlight-grid strong,
.followup-request-meta strong {
    color: #183764;
    font-size: 17px;
}

.followup-request-list {
    display: grid;
    gap: 16px;
}

.followup-request-card {
    border: 1px solid #e4ecf8;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 20px;
}

.followup-request-main {
    display: grid;
    gap: 16px;
}

.followup-request-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.followup-request-title-row h3 {
    margin: 0 0 6px;
    color: #183764;
    font-size: 22px;
}

.followup-request-title-row p {
    margin: 0;
    color: #7384a0;
    font-size: 14px;
}

.followup-request-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.followup-request-files {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #cfe0fb;
    color: #1e69de;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #f7fbff;
}

.empty-state {
    text-align: center;
    padding: 34px 20px;
}

.empty-state h3 {
    margin: 0 0 10px;
    color: #183764;
    font-size: 26px;
}

.empty-state p {
    margin: 0 0 18px;
    color: #70829d;
    font-size: 16px;
}

.empty-state-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.account-panel {
    padding: 24px;
}

.readonly-field {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    color: #1b3355;
    font-size: 16px;
}

.account-button {
    max-width: 320px;
}

@media (max-width: 980px) {
    .topbar-inner {
        width: min(100%, calc(100% - 28px));
        padding: 18px 0;
        min-height: auto;
        flex-direction: column;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        border-left: 0;
        border-bottom: 1px solid rgba(205, 220, 240, 0.85);
    }

    .auth-form-panel {
        padding: 30px 22px 24px;
    }

    .page-shell {
        width: min(100%, calc(100% - 24px));
    }

    .meta {
        grid-template-columns: 1fr;
    }

    .topbar-dashboard {
        width: calc(100% - 16px);
    }

    .topbar-inner-dashboard {
        width: calc(100% - 24px);
    }

    .dashboard-layout,
    .dashboard-bottom-grid,
    .stats-grid,
    .followup-stats-grid,
    .request-category-grid,
    .subcategory-grid,
    .request-form-layout,
    .followup-highlight-grid,
    .followup-request-meta {
        grid-template-columns: 1fr;
    }

    .form-grid-two-columns {
        grid-template-columns: 1fr;
    }

    .dashboard-shell {
        width: calc(100% - 16px);
    }

    .dashboard-sidebar {
        order: 2;
    }

    .current-request-header,
    .request-meta,
    .installments-summary {
        grid-template-columns: 1fr;
        display: grid;
        gap: 14px;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        display: none;
    }

    .table-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .brand-block {
        flex-direction: column-reverse;
        text-align: center;
    }

    .brand-logo {
        width: 110px;
        height: 110px;
    }

    .topbar-action {
        flex-direction: column;
        width: 100%;
    }

    .topbar-button {
        width: 100%;
        justify-content: center;
    }

    .notification-dropdown {
        left: auto;
        right: 0;
        width: min(90vw, 320px);
    }

    .form-title {
        font-size: 30px;
    }

    .aside-title {
        font-size: 25px;
    }

    .landing-card {
        padding: 30px 22px;
    }

    .brand-block-dashboard {
        flex-direction: column;
    }

    .topbar-dashboard .brand-logo {
        width: 102px;
        height: 102px;
    }

    .dashboard-userbar,
    .user-mini-card,
    .panel-head-row,
    .followup-request-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-mini-card {
        width: 100%;
    }

    .stats-grid {
        gap: 14px;
    }

    .stat-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stat-icon {
        margin: 0 auto;
    }

    .request-list-item,
    .action-item {
        grid-template-columns: 1fr;
    }

    .action-arrow {
        display: none;
    }

    .request-item-meta {
        align-items: flex-start;
    }

    .table-row {
        grid-template-columns: 1fr;
    }

    .category-card,
    .subcategory-card,
    .request-form-panel,
    .request-form-aside,
    .form-section {
        padding: 20px;
    }
}
