:root {
    --bg-1: #f6fbff;
    --bg-2: #eef8f2;
    --ink-900: #10253a;
    --ink-700: #36526d;
    --ink-500: #617e98;
    --line: rgba(67, 96, 128, 0.2);
    --panel: rgba(255, 255, 255, 0.86);
    --primary: #0b7f8d;
    --primary-700: #066874;
    --secondary: #1c74d9;
    --danger: #c73a3a;
    --good: #0f9b63;
    --warn: #d68418;
}

* {
    box-sizing: border-box;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(15, 155, 99, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(15, 155, 99, 0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-140%);
    }
    100% {
        transform: translateX(140%);
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(1100px 560px at 5% -3%, #dff3ff 0%, transparent 56%),
        radial-gradient(900px 460px at 100% 5%, #dbf6e8 0%, transparent 56%),
        linear-gradient(155deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.orb-one {
    width: 280px;
    height: 280px;
    top: -90px;
    right: 14%;
    background: #b0dfff;
}

.orb-two {
    width: 220px;
    height: 220px;
    bottom: 12%;
    left: -90px;
    background: #b7e7d6;
}

.orb-three {
    width: 180px;
    height: 180px;
    top: 40%;
    right: -70px;
    background: #d2e7ff;
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.shadow-soft {
    box-shadow: 0 26px 50px rgba(18, 39, 63, 0.11);
}

.sidebar {
    margin: 18px 0 18px 18px;
    border-radius: 22px;
    background: linear-gradient(185deg, #102132 0%, #173851 58%, #18506c 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f9ff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: riseIn 450ms ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: linear-gradient(145deg, rgba(42, 232, 199, 0.3), rgba(110, 178, 255, 0.35));
}

.brand-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.brand-subtitle {
    margin: 2px 0 0;
    color: rgba(232, 241, 250, 0.76);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    text-decoration: none;
    color: #d7e8fa;
    border-radius: 12px;
    padding: 12px 14px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sidebar-link:hover {
    color: #fff;
    transform: translateX(3px);
    background: rgba(142, 193, 248, 0.16);
    border-color: rgba(202, 230, 255, 0.22);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(120deg, rgba(13, 211, 179, 0.29), rgba(65, 152, 247, 0.4));
    border-color: rgba(215, 241, 255, 0.46);
}

.sidebar-foot {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 14px 8px 0;
    color: rgba(225, 238, 252, 0.86);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #54f4af;
    animation: pulseGlow 2.2s ease-in-out infinite;
}

.main-shell {
    padding: 18px 18px 18px 14px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}

.card-panel {
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(5px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    animation: riseIn 420ms ease 40ms both;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.topbar-subtitle {
    margin-top: 2px;
    font-size: 0.83rem;
    color: var(--ink-500);
}

.topbar-pill {
    border-radius: 999px;
    border: 1px solid rgba(54, 138, 211, 0.24);
    background: linear-gradient(130deg, rgba(38, 145, 229, 0.16), rgba(40, 209, 171, 0.16));
    color: #1c6ca5;
    font-size: 0.8rem;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.content-area {
    display: grid;
    gap: 14px;
}

.page-head {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: riseIn 440ms ease 70ms both;
}

.page-head-compact {
    padding: 10px 14px;
    gap: 10px;
}

.page-head-compact .eyebrow {
    font-size: 0.72rem;
    margin: 0 0 2px;
    line-height: 1.1;
}

.page-head-compact .page-title {
    font-size: 1.6rem;
    line-height: 1.1;
}

.page-head-compact .page-subtitle {
    margin: 2px 0 0;
    font-size: 0.9rem;
    line-height: 1.1;
}

.page-head-compact .head-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.06rem;
    box-shadow: 0 12px 20px rgba(23, 125, 191, 0.24);
}

.eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: #4f7697;
    font-weight: 700;
}

.page-title {
    margin: 0;
    font-size: 1.62rem;
    font-weight: 700;
}

.page-subtitle {
    margin: 4px 0 0;
    color: var(--ink-500);
    font-size: 0.93rem;
}

.head-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.22rem;
    background: linear-gradient(135deg, #089281 0%, #217fde 100%);
    box-shadow: 0 16px 30px rgba(23, 125, 191, 0.32);
}

.card {
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    padding: 16px;
    box-shadow: 0 18px 36px rgba(17, 37, 60, 0.06);
    animation: riseIn 460ms ease both;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    color: #173858;
}

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

.stat-card {
    border-radius: 14px;
    padding: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 34px rgba(22, 43, 67, 0.22);
    position: relative;
    overflow: hidden;
    animation: riseIn 420ms ease both;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.22) 35%, transparent 52%);
    transform: translateX(-140%);
    animation: shimmer 3.4s linear infinite;
    pointer-events: none;
}

.stat-card:nth-child(1) {
    animation-delay: 80ms;
}

.stat-card:nth-child(2) {
    animation-delay: 140ms;
}

.stat-card:nth-child(3) {
    animation-delay: 200ms;
}

.stat-card:nth-child(4) {
    animation-delay: 260ms;
}

.stat-card:nth-child(5) {
    animation-delay: 320ms;
}

.stat-card:nth-child(6) {
    animation-delay: 380ms;
}

.stat-card:nth-child(7) {
    animation-delay: 440ms;
}

.stat-card-clients {
    background: linear-gradient(130deg, #1e78e0 0%, #25a2ef 100%);
}

.stat-card-subscriptions {
    background: linear-gradient(130deg, #0c8c80 0%, #11a79a 100%);
}

.stat-card-active {
    background: linear-gradient(130deg, #1f9f58 0%, #26b85a 100%);
}

.stat-card-expiring {
    background: linear-gradient(130deg, #d07021 0%, #e29b20 100%);
}

.stat-card-paid {
    background: linear-gradient(130deg, #188a55 0%, #1faa67 100%);
}

.stat-card-not-paid {
    background: linear-gradient(130deg, #c95622 0%, #dd6f2b 100%);
}

.stat-card-remaining {
    background: linear-gradient(130deg, #2a5ecf 0%, #2f87d8 100%);
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.stat-card h2 {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
}

.stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    color: #fff;
}

.stat-card p {
    margin: 8px 0 0;
    font-size: 1.9rem;
    line-height: 1.08;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(7, 25, 46, 0.2);
}

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

.card-table {
    position: relative;
    overflow: hidden;
}

.card-table::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #1d75db 0%, #0ca48f 100%);
}

.card-span-full {
    grid-column: 1 / -1;
}

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

.payment-filter-select {
    width: 170px;
    flex: 0 0 170px;
}

.search-wrap {
    position: relative;
    flex: 1;
}

.search-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5a7895;
    pointer-events: none;
}

input,
select {
    width: 100%;
    border: 1px solid rgba(92, 120, 148, 0.34);
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    font-size: 0.94rem;
    color: #173554;
}

.search-wrap input {
    padding-left: 34px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2494e3;
    box-shadow: 0 0 0 3px rgba(36, 148, 227, 0.16);
}

input[readonly] {
    background: #f7fbff;
}

button {
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.small-btn {
    width: auto;
    min-width: 184px;
    white-space: nowrap;
}

.btn.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-700);
    --bs-btn-hover-border-color: var(--primary-700);
    --bs-btn-active-bg: var(--primary-700);
    --bs-btn-active-border-color: var(--primary-700);
}

.btn.btn-danger,
.danger-btn {
    --bs-btn-bg: var(--danger);
    --bs-btn-border-color: var(--danger);
    --bs-btn-hover-bg: #ac2d2d;
    --bs-btn-hover-border-color: #ac2d2d;
}

.alert {
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
}

.alert-error {
    border: 1px solid rgba(197, 63, 63, 0.23);
    background: rgba(255, 231, 231, 0.98);
    color: #9f2424;
}

.alert-success {
    border: 1px solid rgba(16, 157, 102, 0.25);
    background: rgba(219, 248, 231, 0.98);
    color: #0e7049;
}

.table-wrap {
    overflow-x: visible;
}

table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.table-modern {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern > :not(caption) > * > * {
    padding: 0.55rem 0.5rem;
    border-bottom-color: rgba(87, 116, 146, 0.22);
    vertical-align: middle;
    color: #23425f;
    font-size: 0.84rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.table-modern thead th {
    border-top: 0;
    background: linear-gradient(180deg, #eaf2fd 0%, #dfeeff 100%);
    color: #2f5274;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-modern tbody tr {
    transition: transform 0.18s ease, background 0.18s ease;
}

.table-modern tbody tr:hover {
    background: rgba(231, 242, 255, 0.66);
    transform: translateX(2px);
}

.table-modern tbody tr:nth-child(even) td {
    background: rgba(248, 252, 255, 0.75);
}

.count-badge {
    min-width: 56px;
    border-radius: 999px;
    background: linear-gradient(125deg, rgba(23, 123, 214, 0.14), rgba(14, 163, 137, 0.2));
    color: #136087;
    border: 1px solid rgba(31, 132, 190, 0.24);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 4px 9px;
    display: inline-flex;
    justify-content: center;
    white-space: nowrap;
}

.row-chip {
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 8px;
    border: 1px solid rgba(52, 114, 180, 0.24);
    background: rgba(228, 240, 252, 0.78);
    color: #2a547c;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.date-chip {
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    color: #7f4c12;
    background: rgba(255, 238, 217, 0.86);
    border: 1px solid rgba(214, 132, 24, 0.26);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.expired-row td {
    background: rgba(255, 231, 231, 0.73);
    color: #932828;
}

.expired-followup-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.expired-followup-label input {
    width: auto;
}

.muted {
    color: #6a839b;
}

.payment-chip {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.2;
}

.payment-chip small {
    font-size: 0.69rem;
    font-weight: 600;
}

.payment-chip.paid {
    color: #0d6e49;
    background: rgba(15, 155, 99, 0.13);
    border: 1px solid rgba(15, 155, 99, 0.28);
}

.payment-chip.not-paid {
    color: #94421b;
    background: rgba(214, 132, 24, 0.13);
    border: 1px solid rgba(214, 132, 24, 0.33);
}

.payment-switch-btn {
    width: 100%;
    min-width: 0;
    margin-bottom: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.payment-switch-btn.paid {
    background: linear-gradient(120deg, #14995c, #11b96e);
}

.payment-switch-btn.not-paid {
    background: linear-gradient(120deg, #c54725, #de6233);
}

.actions-cell {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.table-btn {
    width: auto;
    min-width: 72px;
    margin: 0;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.74rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: linear-gradient(120deg, #0d8d86, #0d7e9e);
}

.table-btn:hover {
    background: linear-gradient(120deg, #0a7973, #0a6f8b);
}

.table-btn.danger {
    background: linear-gradient(120deg, #c93a3a, #ab3030);
}

.table-btn.danger:hover {
    background: linear-gradient(120deg, #b83131, #952828);
}

.table-btn.small {
    min-width: 72px;
}

.pagination-bar {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-meta {
    color: #406080;
    font-size: 0.86rem;
    font-weight: 500;
}

.pagination-btn {
    width: auto;
    min-width: 92px;
    padding: 7px 12px;
    font-size: 0.84rem;
    border-radius: 9px;
    background: #edf5ff;
    color: #274563;
    border: 1px solid rgba(85, 119, 154, 0.26);
}

.pagination-btn:hover:not(:disabled) {
    background: #e0ecfb;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 19, 33, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030;
    padding: 14px;
}

.app-modal {
    width: min(580px, 100%);
    border-radius: 14px;
    border: 1px solid rgba(122, 149, 177, 0.28);
    background: #fff;
    padding: 16px;
    box-shadow: 0 24px 52px rgba(5, 15, 28, 0.27);
    animation: riseIn 260ms ease;
}

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

.modal-head h2 {
    margin: 0;
    font-size: 1.06rem;
    color: #173654;
    display: inline-flex;
    align-items: center;
}

.close-btn {
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    color: #274969;
    border: 1px solid rgba(127, 155, 183, 0.3);
    background: #f2f8ff;
}

.close-btn:hover {
    background: #e6f0fb;
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #2d4d6c;
    font-weight: 600;
    font-size: 0.9rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.checkbox-row input {
    width: auto;
}

.hidden {
    display: none !important;
}

@media (max-width: 1220px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin: 12px 12px 0;
    }

    .sidebar-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sidebar-link {
        justify-content: center;
    }

    .sidebar-link span {
        display: none;
    }

    .sidebar-foot {
        display: none;
    }

    .main-shell {
        padding: 12px;
    }

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

@media (max-width: 760px) {
    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .sidebar-link span {
        display: inline;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .small-btn {
        width: 100%;
    }

    .payment-filter-select {
        width: 100%;
        flex: 1 1 auto;
    }

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card-span-full {
        grid-column: auto;
    }

    .subscriptions-table thead {
        display: none;
    }

    .subscriptions-table,
    .subscriptions-table tbody,
    .subscriptions-table tr,
    .subscriptions-table td {
        display: block;
        width: 100%;
    }

    .subscriptions-table tbody tr {
        margin-bottom: 10px;
        border: 1px solid rgba(74, 106, 138, 0.2);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.96);
        padding: 8px 10px 4px;
        box-shadow: 0 10px 22px rgba(13, 34, 57, 0.07);
        transform: none !important;
    }

    .subscriptions-table tbody tr td {
        border-bottom: 1px dashed rgba(87, 116, 146, 0.22);
        padding: 7px 0;
        font-size: 0.8rem;
    }

    .subscriptions-table tbody tr td:last-child {
        border-bottom: 0;
        padding-bottom: 2px;
    }

    .subscriptions-table tbody tr td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.67rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #4e7192;
        margin-bottom: 4px;
    }

    .subscriptions-table .actions-cell {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .subscriptions-table .table-btn {
        flex: 1 1 120px;
        min-height: 34px;
    }

    .subscriptions-table .payment-switch-btn {
        margin-bottom: 0;
    }

    .subscriptions-table .row-chip,
    .subscriptions-table .date-chip {
        font-size: 0.72rem;
    }

    .clients-table thead {
        display: none;
    }

    .clients-table,
    .clients-table tbody,
    .clients-table tr,
    .clients-table td {
        display: block;
        width: 100%;
    }

    .clients-table tbody tr {
        margin-bottom: 10px;
        border: 1px solid rgba(74, 106, 138, 0.2);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.96);
        padding: 8px 10px 4px;
        box-shadow: 0 10px 22px rgba(13, 34, 57, 0.07);
        transform: none !important;
    }

    .clients-table tbody tr td {
        border-bottom: 1px dashed rgba(87, 116, 146, 0.22);
        padding: 7px 0;
        font-size: 0.8rem;
    }

    .clients-table tbody tr td:last-child {
        border-bottom: 0;
        padding-bottom: 2px;
    }

    .clients-table tbody tr td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.67rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #4e7192;
        margin-bottom: 4px;
    }

    .clients-table .actions-cell {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .clients-table .table-btn {
        flex: 1 1 120px;
        min-height: 34px;
    }

    .clients-table .row-chip,
    .clients-table .date-chip {
        font-size: 0.72rem;
    }

    .modal-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 10px;
    }

    .app-modal {
        width: 100%;
        margin: 8px 0;
        max-height: calc(100vh - 16px);
        overflow-y: auto;
        padding: 12px;
        border-radius: 12px;
    }

    #subscriptionFormModal .app-modal {
        padding-bottom: 10px;
    }

    #subscriptionForm .form-group {
        margin-bottom: 9px;
    }

    #subscriptionForm label {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }

    #subscriptionForm input,
    #subscriptionForm select {
        font-size: 0.86rem;
        padding: 9px 10px;
    }

    #subscriptionFormMessage {
        margin-bottom: 8px;
    }

    #subscriptionFormSubmitBtn {
        position: sticky;
        bottom: 0;
        z-index: 2;
    }

    #subscriptionFormModal .modal-head {
        position: sticky;
        top: 0;
        z-index: 3;
        background: #fff;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
