:root {
    --font-ui: "Noto Sans Bengali", "Plus Jakarta Sans", sans-serif;
    --font-display: "Plus Jakarta Sans", "Noto Sans Bengali", sans-serif;
    --navy-950: #08162d;
    --navy-900: #0c2348;
    --navy-800: #143a6d;
    --navy-700: #1d4f87;
    --cyan-500: #23c4d7;
    --cyan-400: #56d4df;
    --mint-500: #1fc987;
    --mint-400: #58da9f;
    --coral-500: #ff6f61;
    --amber-400: #ffbe4a;
    --sky-100: #e9f7ff;
    --surface: #f5f8ff;
    --surface-strong: #eef4ff;
    --card: rgba(255, 255, 255, 0.94);
    --card-solid: #ffffff;
    --text: #10213e;
    --muted: #66748f;
    --line: rgba(18, 41, 79, 0.09);
    --line-strong: rgba(18, 41, 79, 0.15);
    --success: #1d9b62;
    --danger: #d84e48;
    --warning: #d58a0b;
    --shadow-soft: 0 24px 60px rgba(13, 35, 72, 0.12);
    --shadow-card: 0 18px 48px rgba(18, 41, 79, 0.1);
    --shadow-float: 0 20px 36px rgba(9, 24, 49, 0.18);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-ui);
    background:
        radial-gradient(circle at top left, rgba(86, 212, 223, 0.18), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 111, 97, 0.12), transparent 22%),
        linear-gradient(180deg, #f3f8ff 0%, #f7fbff 45%, #f5f7fc 100%);
}

body.drawer-open,
body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(35, 196, 215, 0.25), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 111, 97, 0.15), transparent 28%),
        linear-gradient(180deg, #eff6ff 0%, #f7fbff 100%);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.auth-card,
.panel-card,
.list-card,
.project-card,
.profile-card,
.form-card,
.request-card {
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.auth-card::before,
.panel-card::before,
.list-card::before,
.project-card::before,
.profile-card::before,
.form-card::before,
.request-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.1));
}

.auth-card {
    width: min(100%, 470px);
    padding: 32px 24px 24px;
}

.auth-card__brand h1,
.page-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 4vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.auth-card__eyebrow,
.page-head__eyebrow,
.topbar__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.auth-card__eyebrow {
    margin-bottom: 16px;
    background: rgba(20, 58, 109, 0.08);
    color: var(--navy-800);
}

.auth-card__brand p,
.page-head p,
.list-row p,
.history-row p,
.request-card__head p,
.form-card__header p,
.modal__lead {
    color: var(--muted);
    margin: 10px 0 0;
    line-height: 1.55;
}

.stack-lg > * + *,
.stack-md > * + *,
.stack-sm > * + * {
    margin-top: 18px;
}

.stack-lg > * + * {
    margin-top: 24px;
}

.stack-sm > * + * {
    margin-top: 12px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--navy-900);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid rgba(17, 41, 79, 0.08);
    border-radius: 18px;
    padding: 15px 17px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.92));
    color: var(--text);
    outline: none;
    transition: 0.22s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #93a0b8;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(29, 79, 135, 0.3);
    box-shadow:
        0 0 0 4px rgba(35, 196, 215, 0.12),
        0 10px 24px rgba(12, 35, 72, 0.06);
    transform: translateY(-1px);
}

.btn {
    border: 0;
    border-radius: 18px;
    padding: 14px 18px;
    min-height: 52px;
    font-weight: 800;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.22s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    box-shadow: 0 14px 28px rgba(16, 46, 94, 0.22);
}

.btn--outline {
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(16, 35, 72, 0.1);
    box-shadow: 0 10px 22px rgba(12, 35, 72, 0.06);
}

.btn--danger {
    color: var(--danger);
    background: rgba(255, 111, 97, 0.12);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.auth-demo {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(233, 247, 255, 0.85), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(16, 35, 72, 0.08);
    color: var(--muted);
}

.auth-demo p + p {
    margin-top: 8px;
}

.app-shell {
    position: relative;
    min-height: 100vh;
    padding-bottom: 118px;
}

.app-shell__glow {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    opacity: 0.42;
    z-index: 0;
}

.app-shell__glow--one {
    top: -120px;
    right: -80px;
    background: rgba(35, 196, 215, 0.26);
}

.app-shell__glow--two {
    bottom: 140px;
    left: -110px;
    background: rgba(255, 111, 97, 0.16);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 18px 16px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(8, 22, 45, 0.96), rgba(20, 58, 109, 0.93)),
        linear-gradient(90deg, rgba(35, 196, 215, 0.12), transparent);
    box-shadow: 0 18px 38px rgba(10, 28, 57, 0.22);
    backdrop-filter: blur(18px);
}

.topbar__left,
.topbar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar__brand {
    display: grid;
    gap: 4px;
}

.topbar__eyebrow {
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.topbar__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.icon-button {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 0;
    color: inherit;
    display: grid;
    place-items: center;
    font-size: 1.22rem;
    transition: 0.22s ease;
}

.icon-button:hover {
    transform: translateY(-1px);
}

.icon-button--glass {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 24, 0.42);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 34;
}

.drawer {
    position: fixed;
    inset: 100px auto 18px 16px;
    width: min(88vw, 380px);
    padding: 22px 18px 24px;
    display: grid;
    align-content: start;
    gap: 12px;
    color: #f7fbff;
    background:
        linear-gradient(180deg, rgba(10, 29, 60, 0.98), rgba(18, 44, 86, 0.96)),
        linear-gradient(140deg, rgba(35, 196, 215, 0.08), transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-float);
    z-index: 40;
    overflow-y: auto;
}

body.drawer-open .drawer {
    transform: translateX(0);
}

body.drawer-open .drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

.drawer__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 6px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer__header-copy h3 {
    margin: 0;
    font-size: 1.28rem;
    font-family: var(--font-display);
    line-height: 1.12;
}

.drawer__header-copy p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.drawer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.drawer__meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer__group {
    display: grid;
    gap: 8px;
}

.drawer__heading {
    margin: 8px 8px 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.drawer__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.9);
    transition: 0.22s ease;
}

.drawer__link:hover,
.drawer__link.is-active {
    background: linear-gradient(90deg, rgba(35, 196, 215, 0.17), rgba(86, 212, 223, 0.05));
}

.drawer__footer {
    margin-top: 10px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
}

.drawer__footer span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
}

.drawer__footer strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.avatar,
.profile-card__avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 30px;
    background: linear-gradient(145deg, var(--cyan-500), var(--navy-700));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    font-weight: 800;
    box-shadow: 0 18px 28px rgba(20, 58, 109, 0.22);
}

.profile-card__avatar--green {
    background: linear-gradient(145deg, var(--mint-400), var(--mint-500));
}

.avatar--large {
    width: 74px;
    height: 74px;
    margin: 0;
    border-radius: 24px;
    font-size: 1.8rem;
}

.page-content {
    position: relative;
    z-index: 1;
    padding: 22px 16px 36px;
}

.page-content__inner {
    width: min(100%, 1140px);
    margin: 0 auto;
}

.flash {
    position: relative;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
}

.flash--success {
    color: #0f6b43;
    background: rgba(31, 201, 135, 0.12);
    border-color: rgba(31, 201, 135, 0.14);
}

.flash--danger {
    color: #9f3430;
    background: rgba(255, 111, 97, 0.12);
    border-color: rgba(216, 78, 72, 0.14);
}

.page-head {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 26px 22px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(35, 196, 215, 0.2), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
}

.page-head::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -46px;
    top: -54px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 196, 215, 0.2), transparent 68%);
}

.page-head__eyebrow {
    margin-bottom: 16px;
    background: rgba(12, 35, 72, 0.06);
    color: var(--navy-700);
}

.page-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy-700);
    border: 1px solid rgba(20, 58, 109, 0.08);
    font-size: 0.9rem;
    font-weight: 700;
}

.info-chip--dark {
    color: #fff;
    background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
    border-color: transparent;
}

.section-block {
    margin-bottom: 28px;
}

.section-block h2 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: 1.58rem;
    letter-spacing: -0.03em;
}

.stats-grid,
.grid-two,
.cards-grid,
.project-grid,
.request-card__meta,
.upload-grid {
    display: grid;
    gap: 16px;
}

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

.stats-grid--three,
.cards-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid--four,
.cards-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid--asymmetric {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.cards-grid--two,
.project-grid,
.grid-two,
.request-card__meta,
.upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid--tight {
    margin-bottom: 22px;
}

.stat-card,
.mini-card {
    position: relative;
    overflow: hidden;
    min-height: 154px;
    padding: 22px;
    border-radius: 28px;
    box-shadow: var(--shadow-card);
}

.stat-card::before,
.mini-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
}

.stat-card span,
.mini-card span {
    position: relative;
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
}

.stat-card strong,
.mini-card strong {
    position: relative;
    display: block;
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.stat-card i {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.stat-card--blue {
    color: #fff;
    background: linear-gradient(145deg, var(--navy-900), #1a5c9a);
}

.stat-card--green {
    color: #fff;
    background: linear-gradient(145deg, #15925c, var(--mint-500));
}

.stat-card--red {
    color: #fff;
    background: linear-gradient(145deg, #e45948, var(--coral-500));
}

.stat-card--light,
.mini-card {
    color: var(--text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.96));
    border: 1px solid rgba(16, 35, 72, 0.08);
}

.stat-card--light i {
    color: var(--navy-700);
    background: rgba(20, 58, 109, 0.08);
}

.stat-card--large {
    min-height: 220px;
}

.panel-card__head,
.list-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.panel-card__head--blue {
    color: #fff;
    border: 0;
    background: linear-gradient(125deg, var(--navy-900), var(--navy-700));
}

.panel-card__head h3,
.list-card__head h3,
.project-card__head h3,
.profile-card h3,
.request-card__head h3,
.modal__content h2,
.form-card__header h3 {
    margin: 0;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.split-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.split-summary > div {
    padding: 22px 16px;
}

.split-summary strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2.35rem;
    letter-spacing: -0.04em;
}

.member-list__row,
.list-row,
.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border-top: 1px solid rgba(16, 35, 72, 0.06);
}

.member-list__row:first-of-type,
.list-row:first-of-type,
.history-row:first-of-type {
    border-top: 0;
}

.list-row strong,
.history-row strong {
    font-size: 1.04rem;
}

.history-row {
    align-items: flex-start;
}

.history-row__content {
    flex: 1;
}

.project-card {
    padding: 24px 22px;
}

.project-card__head,
.project-card__footer,
.request-card__head,
.request-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.project-grid span,
.project-card__footer span,
.request-card__meta span,
.profile-card__meta span {
    color: var(--muted);
    display: block;
    font-size: 0.88rem;
}

.project-grid strong,
.project-card__footer strong,
.profile-card__meta strong {
    display: block;
    margin-top: 5px;
    font-size: 1.05rem;
}

.project-card__footer {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(16, 35, 72, 0.06);
}

.tab-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 35, 72, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.tab-strip__item {
    padding: 13px 10px;
    border-radius: 16px;
    text-align: center;
    font-weight: 800;
    color: var(--muted);
    transition: 0.22s ease;
}

.tab-strip__item.is-active {
    color: var(--navy-900);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.98));
    box-shadow: 0 10px 20px rgba(12, 35, 72, 0.08);
}

.profile-card {
    padding: 26px 22px;
    text-align: center;
}

.profile-card__thumb {
    width: 104px;
    height: 104px;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 20px 26px rgba(16, 46, 94, 0.18);
}

.profile-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card__meta {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    text-align: left;
}

.profile-card__meta div {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(241, 246, 255, 0.9), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(16, 35, 72, 0.06);
}

.profile-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.form-card {
    padding: 26px 22px;
}

.form-card--narrow {
    max-width: 760px;
    margin: 0 auto;
}

.form-card__header {
    margin-bottom: 20px;
}

.pagination-wrap {
    padding: 20px 22px 24px;
}

.pagination-wrap nav {
    display: flex;
    justify-content: center;
}

.pagination-wrap svg {
    width: 18px;
    height: 18px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table th,
.table td {
    padding: 16px 18px;
    border-top: 1px solid rgba(16, 35, 72, 0.06);
    text-align: left;
    white-space: nowrap;
}

.table th {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    background: rgba(241, 246, 255, 0.55);
}

.table tbody tr {
    transition: 0.18s ease;
}

.table tbody tr:hover {
    background: rgba(241, 246, 255, 0.6);
}

.request-card {
    padding: 22px;
}

.request-card__meta {
    margin: 18px 0;
}

.request-card__meta span {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(241, 246, 255, 0.72);
}

.request-card__actions form {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.badge--primary {
    color: var(--navy-800);
    background: rgba(20, 58, 109, 0.1);
}

.badge--muted {
    color: #50607e;
    background: rgba(80, 96, 126, 0.1);
}

.badge--success {
    color: var(--success);
    background: rgba(31, 201, 135, 0.14);
}

.badge--danger {
    color: var(--danger);
    background: rgba(255, 111, 97, 0.14);
}

.badge--warning {
    color: var(--warning);
    background: rgba(255, 190, 74, 0.2);
}

.text-green {
    color: var(--success) !important;
}

.text-red {
    color: var(--danger) !important;
}

.text-dark {
    color: var(--text) !important;
}

.empty-state {
    padding: 34px 22px;
    color: var(--muted);
    text-align: center;
}

.upload-box {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 24px;
    border: 1px dashed rgba(16, 35, 72, 0.15);
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.92), rgba(255, 255, 255, 0.98));
}

.upload-box input[type="file"] {
    display: block;
    font-size: 0.88rem;
}

.upload-box__label {
    font-weight: 800;
    color: var(--navy-900);
}

.upload-box small {
    color: var(--muted);
}

.upload-box__preview {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(241, 246, 255, 0.92);
    color: var(--navy-700);
    font-size: 2rem;
}

.upload-box__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-box__preview--document img {
    object-fit: contain;
    background: #fff;
}

.bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    gap: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 35, 72, 0.08);
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(9, 24, 49, 0.14);
    backdrop-filter: blur(16px);
}

.bottom-nav__item {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 8px 6px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 18px;
    transition: 0.2s ease;
}

.bottom-nav__item i {
    font-size: 1.32rem;
}

.bottom-nav__item.is-active {
    color: var(--navy-900);
    background: linear-gradient(180deg, rgba(20, 58, 109, 0.08), rgba(35, 196, 215, 0.08));
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 34, 0.54);
    backdrop-filter: blur(6px);
}

.modal__content {
    position: relative;
    width: min(94vw, 760px);
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    margin: 14px auto;
    padding: 28px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
    border-radius: 30px;
    box-shadow: var(--shadow-float);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(241, 246, 255, 0.9);
    color: var(--muted);
}

@media (max-width: 960px) {
    .stats-grid--four,
    .cards-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 16px 14px;
    }

    .topbar__title {
        font-size: 1.24rem;
    }

    .stats-grid,
    .stats-grid--three,
    .stats-grid--four,
    .stats-grid--asymmetric,
    .cards-grid--two,
    .cards-grid--three,
    .cards-grid--four,
    .project-grid,
    .grid-two,
    .request-card__meta,
    .upload-grid {
        grid-template-columns: 1fr;
    }

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

    .project-card__head,
    .project-card__footer,
    .request-card__head,
    .request-card__actions,
    .member-list__row,
    .list-row,
    .history-row,
    .panel-card__head,
    .list-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .request-card__actions form,
    .request-card__actions .btn {
        width: 100%;
    }

    .modal__content {
        width: 100%;
        max-height: calc(100vh - 10px);
        margin: 10px 0 0;
        padding: 26px 18px 28px;
        border-radius: 28px 28px 0 0;
    }

    .drawer {
        inset: 96px 12px 110px 12px;
        width: auto;
    }
}

@media (max-width: 540px) {
    .auth-card,
    .page-head,
    .project-card,
    .profile-card,
    .form-card,
    .request-card,
    .panel-card,
    .list-card {
        border-radius: 26px;
    }

    .page-content {
        padding: 18px 12px 28px;
    }

    .stat-card,
    .mini-card {
        min-height: 134px;
        padding: 20px;
    }

    .stat-card strong,
    .mini-card strong,
    .split-summary strong {
        font-size: 1.7rem;
    }

    .bottom-nav__item {
        font-size: 0.74rem;
    }

    .bottom-nav__item i {
        font-size: 1.18rem;
    }

    .admin-actions .btn {
        width: 100%;
    }
}
