:root {
    --primary: #045c83;
    --primary-dark: #0f3d57;
    --primary-light: #e0f2fe;
    --sidebar-width: 200px;
    --header-height: 80px;
    --white: #ffffff;
    --bg: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border: #E2E8F0;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --card-hover-shadow: 0 4px 12px rgba(0,0,0,0.12);
    --transition: all 0.22s ease;
    --primary-blue: #045c83;
    --primary-teal: #14B8A6;
    --primary-orange: #0ea5a8;
    --text-secondary: #475569;
    --light-bg: #F8FAFC;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
}

/* ── Fix toast close button ─────────────────────────── */
#toaster .alert .close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0.5;
    color: inherit;
    line-height: 1;
}

#toaster .alert .close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.08) !important;
}

#toaster .alert .close .sr-only {
    display: none;
}

/* ════════════════════════════
    HEADER
════════════════════════════ */
#admin-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1100;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-hamburger {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-hamburger:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo img {
    height: 32px;
}

.header-logo .logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon-header {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.btn-icon-header:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-dropdown-wrap {
    position: relative;
}

.profile-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.profile-dropdown-toggle:hover,
.profile-dropdown-toggle.open {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.profile-dropdown-toggle .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.profile-dropdown-toggle .chevron {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.profile-dropdown-toggle.open .chevron {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
    padding: 8px;
    z-index: 9999;
}

.profile-dropdown-menu.show { display: block; }

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.profile-dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.profile-dropdown-menu .dd-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* ════════════════════════════
    SIDEBAR
════════════════════════════ */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    backdrop-filter: blur(2px);
}

#sidebar-overlay.show { display: block; }

#admin-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--text-main);
    overflow-y: auto;
    z-index: 1000;
    padding: 20px 12px;
    transition: transform 0.3s ease;
}

#admin-sidebar::-webkit-scrollbar { width: 4px; }
#admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

#admin-sidebar.sidebar-collapsed {
    transform: translateX(-100%);
}

#main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s ease;
}

body.sidebar-hidden #main-content {
    margin-left: 0 !important;
}

/* Sidebar sections */
.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    padding: 0 10px 8px;
    margin-top: 20px;
    display: block;
}

.sidebar-section-label:first-child { margin-top: 0; }

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 2px;
}

.sidebar-nav li a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav li.active a {
    background: var(--primary);
    color: white;
}

.sidebar-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* ════════════════════════════
    DASHBOARD
════════════════════════════ */
.page-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Dashboard cards */
.dashboard-card {
    background: var(--white);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.dashboard-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-4px);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}

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

.card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-active { background: #D1FAE5; color: #065F46; }
.badge-unpaid { background: #FEF3C7; color: #92400E; }

.card-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.bg-blue { background: #3B82F6; color: white; }
.bg-teal { background: #14B8A6; color: white; }
.bg-orange { background: #F59E0B; color: white; }
.bg-red { background: #E53E3E; color: white; }

/* Plan cards */
.plan-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.plan-card.current {
    border-color: #3B82F6;
    background: linear-gradient(135deg, #EBF4FF 0%, #DBEAFE 100%);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.plan-features li {
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Table styles */
.table-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.table-card .table {
    margin-bottom: 0;
}

.table-card thead th {
    background: var(--bg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border: none;
    padding: 16px;
}

.table-card tbody td {
    padding: 16px;
    vertical-align: middle;
    border-top: 1px solid var(--border);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-paid { background: #D1FAE5; color: #065F46; }
.badge-unpaid { background: #FEE2E2; color: #991B1B; }
.badge-insured { background: #DBEAFE; color: #1E40AF; }
.badge-none { background: #F3F4F6; color: #4B5563; }

/* Payment methods */
.payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    background: var(--white);
}

.payment-method-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-icon {
    font-size: 1.5rem;
}

/* Toggle switch */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #CBD5E1;
    transition: 0.3s;
    border-radius: 24px;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background: #14B8A6;
}

input:checked + .switch-slider::before {
    transform: translateX(24px);
}

/* ════════════════════════════
    RESPONSIVE
════════════════════════════ */
@media (max-width: 991px) {
    #admin-sidebar {
        transform: translateX(-100%);
    }

    #admin-sidebar.sidebar-open {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    #main-content { padding: 16px; }
    .page-title { font-size: 1.25rem; }
    .profile-dropdown-toggle span { display: none; }
}

.header-logo-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 30px;
}

.welcome-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    padding-left: 2px;
    font-weight: 400;
}

/* Responsive: hide welcome text on small screens */
@media (max-width: 768px) {
    .welcome-text {
        display: none;
    }
}

/* Responsive dashboard cards for mobile */
@media (max-width: 576px) {
    .dashboard-card {
        padding: 16px;
    }
    
    .card-label {
        font-size: 0.7rem;
    }
    
    .card-value {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .card-badge {
        padding: 3px 8px;
        font-size: 0.65rem;
    }
}
/* Mobile table improvements */
@media (max-width: 768px) {
    /* Smaller heading */
    .row .col-12 h5 {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Smaller table text */
    .table-card .table {
        font-size: 0.75rem;
    }
    
    .table-card thead th {
        font-size: 0.65rem;
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .table-card tbody td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    /* Smaller status badge */
    .table-card .status-badge {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    
    /* Smaller button */
    .table-card .btn-sm {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    /* Even smaller for very small screens */
    .table-card .table {
        font-size: 0.7rem;
    }
    
    .table-card thead th {
        font-size: 0.7rem;
        padding: 8px 6px;
    }
    
    .table-card tbody td {
        padding: 8px 6px;
    }
    
    .table-card .status-badge {
        padding: 3px 6px;
        font-size: 0.6rem;
    }
    
    .table-card .btn-sm {
        padding: 3px 6px;
        font-size: 0.65rem;
    }
}


.panel {
  background: transparent;
}

.panel-heading {
  margin-bottom: 24px;
}

.page-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.table-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.table-card .table {
  margin-bottom: 0;
}

.table-card thead {
  background: var(--light-bg);
}

.table-card thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: none;
  padding: 16px;
  white-space: nowrap;
}

.table-card tbody td {
  padding: 16px;
  vertical-align: middle;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.table-card tbody tr {
  transition: var(--transition);
}

.table-card tbody tr:hover {
  background: var(--light-bg);
}

.table-card tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  text-transform: capitalize;
}

.badge-paid {
  background: #D1FAE5;
  color: #065F46;
}

.badge-unpaid {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-insured {
  background: #DBEAFE;
  color: #1E40AF;
}

.badge-none {
  background: #F3F4F6;
  color: #4B5563;
}

.badge-pending {
  background: #FEF3C7;
  color: #92400E;
}

.badge-active {
  background: #D1FAE5;
  color: #065F46;
}
.custom-card {
    background: linear-gradient(135deg, #0f3d57, #045c83, #0ea5a8) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2) !important;
}

th{
    background: #045c83 !important;
    color:#fff !important;
}

.border-padding {
    padding: 0px 5px !important;
    border: 1px solid #ddd !important;
    border-radius:10px !important;
    background: #a31d20 !important
}

.blue-bg{
    background:#045c83 !important;
    color:#fff !important;
}
/* Login page */
.client-login-page {
    background:
        radial-gradient(circle at top left, rgba(4, 92, 131, 0.14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14, 165, 168, 0.12), transparent 28%),
        linear-gradient(135deg, #f8fbfe 0%, #f8fafc 52%, #eefbf9 100%);
}

.client-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
    align-items: stretch;
}

.client-login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.client-login-panel--brand {
    overflow: hidden;
}

.client-login-panel--brand::before,
.client-login-panel--brand::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(4, 92, 131, 0.14), rgba(4, 92, 131, 0.02));
    z-index: 0;
}

.client-login-panel--brand::before {
    width: 260px;
    height: 260px;
    top: 70px;
    left: -90px;
}

.client-login-panel--brand::after {
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -110px;
}

.client-login-brand-content,
.client-login-card {
    position: relative;
    z-index: 1;
}

.client-login-brand-content {
    max-width: 540px;
}

.client-login-kicker,
.client-login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(4, 92, 131, 0.1);
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.client-login-logo {
    width: min(220px, 60%);
    display: block;
    margin: 22px 0 28px;
}

.client-login-brand-content h1 {
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 3vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f3d57;
}

.client-login-brand-content > p {
    margin: 0;
    max-width: 480px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: rgba(15, 23, 42, 0.78);
}

.client-login-feature-list {
    display: grid;
    gap: 16px;
    margin-top: 34px;
}

.client-login-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(4, 92, 131, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 48px rgba(15, 61, 87, 0.08);
}

.client-login-feature i {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.client-login-feature strong,
.client-login-feature span {
    display: block;
}

.client-login-feature strong {
    color: var(--text-main);
    font-size: 1rem;
}

.client-login-feature span {
    margin-top: 4px;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.94rem;
}

.client-login-panel--form {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
}

.client-login-card {
    width: 100%;
    max-width: 480px;
    padding: 38px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.client-login-card-header h2 {
    margin: 16px 0 10px;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.client-login-card-header p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.client-login-form {
    margin-top: 28px;
}

.client-login-field + .client-login-field {
    margin-top: 18px;
}

.client-login-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.94rem;
    font-weight: 700;
}

.client-login-input-wrap {
    position: relative;
}

.client-login-input-wrap i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1rem;
    pointer-events: none;
}

.client-login-input {
    min-height: 56px;
    padding-left: 48px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 1);
    background: #fff;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.client-login-input:focus {
    border-color: rgba(4, 92, 131, 0.6);
    box-shadow: 0 0 0 4px rgba(4, 92, 131, 0.12);
}

.client-login-message {
    min-height: 24px;
    margin: 16px 0 6px;
}

.client-login-progress {
    display: flex;
    justify-content: center;
    padding: 6px 0 12px;
}

.client-login-progress img {
    width: 56px;
    max-width: 100%;
}

.client-login-btn {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.client-login-btn + .client-login-btn {
    margin-top: 12px;
}

.client-login-btn:hover,
.client-login-btn:focus {
    transform: translateY(-1px);
}

.client-login-btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 16px 34px rgba(4, 92, 131, 0.26);
}

.client-login-btn--primary:hover,
.client-login-btn--primary:focus {
    color: var(--white);
    box-shadow: 0 20px 38px rgba(4, 92, 131, 0.3);
}

.client-login-btn--secondary {
    background: rgba(4, 92, 131, 0.08);
    color: var(--primary-dark);
    border-color: rgba(4, 92, 131, 0.16);
}

.client-login-btn--secondary:hover,
.client-login-btn--secondary:focus {
    color: var(--primary-dark);
    background: rgba(4, 92, 131, 0.14);
}

.client-login-countdown {
    margin: 14px 0 4px;
    text-align: center;
    color: var(--primary-dark);
    font-size: 0.94rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .client-login-shell {
        grid-template-columns: 1fr;
    }

    .client-login-panel {
        padding: 28px 20px;
    }

    .client-login-panel--brand {
        padding-bottom: 10px;
    }

    .client-login-card {
        max-width: 620px;
    }
}

@media (max-width: 767.98px) {
    .client-login-page {
        background:
            radial-gradient(circle at top, rgba(4, 92, 131, 0.12), transparent 28%),
            linear-gradient(180deg, #f8fbfe 0%, #ffffff 32%, #f8fafc 100%);
    }

    .client-login-panel {
        padding: 18px 14px;
    }

    .client-login-panel--brand::before,
    .client-login-panel--brand::after {
        display: none;
    }

    .client-login-brand-content > p {
        line-height: 1.65;
        font-size: 0.96rem;
    }

    .client-login-feature-list {
        gap: 12px;
        margin-top: 24px;
    }

    .client-login-feature {
        padding: 15px 16px;
        border-radius: 18px;
    }

    .client-login-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .client-login-card-header h2 {
        font-size: 1.65rem;
    }

    .client-login-input {
        min-height: 52px;
    }

    .client-login-btn {
        min-height: 50px;
    }
}

/* Mobile-app dashboard */
.dashboard-mobile-page {
    display: grid;
    gap: 24px;
    padding-bottom: 24px;
}

.dashboard-mobile-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #0f3d57 0%, #045c83 52%, #0ea5a8 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(4, 92, 131, 0.22);
}

.dashboard-mobile-hero::after {
    content: "";
    position: absolute;
    inset: auto -30px -55px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-mobile-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-mobile-hero__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.dashboard-mobile-hero__content h1 {
    margin: 14px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    color: #fff;
}

.dashboard-mobile-hero__content p {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.dashboard-mobile-profile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    min-width: 220px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.dashboard-mobile-profile__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.1rem;
}

.dashboard-mobile-profile__label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
}

.dashboard-mobile-profile strong {
    color: #fff;
    font-size: 0.96rem;
}

.dashboard-mobile-summary {
    display: grid;
    gap: 18px;
}

.dashboard-mobile-summary__card,
.dashboard-mobile-stat,
.dashboard-mobile-list__card,
.dashboard-mobile-table {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.dashboard-mobile-summary__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 24px;
}

.dashboard-mobile-summary__card--subscription {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 52%, #ecfeff 100%);
}

.dashboard-mobile-summary__icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #045c83, #0ea5a8);
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dashboard-mobile-summary__meta {
    flex: 1;
}

.dashboard-mobile-summary__meta span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 3px;
}

.dashboard-mobile-summary__meta strong {
    display: block;
    color: var(--text-main);
    font-size: 1.15rem;
}

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

.dashboard-mobile-stat {
    padding: 22px;
    border-radius: 24px;
    color: #fff;
}

.dashboard-mobile-stat--orange {
    background: linear-gradient(135deg, #045c83, #0ea5a8);
}

.dashboard-mobile-stat--red {
    background: linear-gradient(135deg, #0f3d57, #045c83);
}

.dashboard-mobile-stat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.84);
}

.dashboard-mobile-stat strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
    margin-bottom: 10px;
    color: #fff;
}

.dashboard-mobile-stat small {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.84);
}

.dashboard-mobile-section {
    display: grid;
    gap: 16px;
}

.dashboard-mobile-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-mobile-section__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #045c83;
}

.dashboard-mobile-section__header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text-main);
}

.dashboard-mobile-section__count {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 92, 131, 0.1);
    color: #045c83;
    font-weight: 700;
}

.dashboard-mobile-list {
    display: grid;
    gap: 14px;
}

.dashboard-mobile-list__card {
    padding: 18px;
    border-radius: 22px;
}

.dashboard-mobile-list__card--task {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}

.dashboard-mobile-list__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-mobile-list__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-mobile-list__top strong {
    color: var(--text-main);
    font-size: 1rem;
}

.dashboard-mobile-list__amount {
    margin-top: 18px;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-mobile-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.dashboard-mobile-list__meta--split {
    justify-content: space-between;
}

.dashboard-mobile-list__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-mobile-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-mobile-pill--success {
    background: #dcfce7;
    color: #166534;
}

.dashboard-mobile-pill--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.dashboard-mobile-pill--info {
    background: #dbeafe;
    color: #1d4ed8;
}

.dashboard-mobile-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
}

.dashboard-mobile-btn--primary {
    background: linear-gradient(135deg, #045c83, #0ea5a8);
    color: #fff;
    box-shadow: 0 12px 28px rgba(4, 92, 131, 0.22);
}

.dashboard-mobile-btn--primary:hover,
.dashboard-mobile-btn--primary:focus {
    color: #fff;
    transform: translateY(-1px);
}

.dashboard-mobile-btn--ghost {
    background: rgba(4, 92, 131, 0.08);
    color: #045c83;
    border-color: rgba(4, 92, 131, 0.14);
}

.dashboard-mobile-btn--small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8rem;
}

.dashboard-mobile-icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: rgba(4, 92, 131, 0.08);
    color: #045c83;
}

.dashboard-mobile-task-copy {
    margin: 14px 0 0;
    color: var(--text-main);
    line-height: 1.7;
}

.dashboard-mobile-table {
    border-radius: 24px;
    overflow: hidden;
}

.dashboard-mobile-table.table-card thead th {
    background: #e0f2fe;
    color: #045c83;
}

.dashboard-mobile-table.table-card tbody td {
    font-size: 0.88rem;
}

.proforma-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 1.5rem));
}

.proforma-modal .modal-dialog.modal-dialog-centered {
    align-items: flex-start;
    padding-top: 3rem;
}

.proforma-modal__content {
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.proforma-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #0f3d57 0%, #045c83 52%, #0ea5a8 100%) !important;
}

.proforma-modal__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.proforma-modal__title {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.1;
    color: #fff;
}

.proforma-modal__subtitle {
    margin: 8px 0 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.proforma-modal__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 28px 0;
}

.proforma-modal__summary-item {
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.proforma-modal__summary-item span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.proforma-modal__summary-item strong {
    color: var(--text-main);
    font-size: 1.05rem;
}

.proforma-modal__body {
    padding: 18px 28px 28px;
    max-height: min(72vh, 780px);
}

.proforma-modal-table {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
}

#proformaModal .proforma-modal-table {
    border: 1px solid #d7dde5;
}

.proforma-modal-table thead th {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: #d9adad !important;
    color: #991b1b !important;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.proforma-modal-table tbody td {
    padding: 16px;
    vertical-align: top;
    border-top: 1px solid rgba(241, 245, 249, 1) !important;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    color: var(--text-main);
}

.proforma-modal-table thead th:last-child,
.proforma-modal-table tbody td:last-child {
    border-right: none;
}

.proforma-modal-table--nested {
    border-radius: 16px;
    margin-top: 14px;
    background: #fff;
}

.proforma-modal-table--nested thead th {
    padding: 10px 12px;
    font-size: 0.72rem;
}

.proforma-modal-table--nested tbody td {
    padding: 10px 12px;
    font-size: 0.82rem;
}

.proforma-modal__description-cell {
    min-width: 320px;
}

.proforma-modal__description {
    white-space: pre-line;
    line-height: 1.7;
    color: var(--text-main);
}

.proforma-modal__installments {
    margin-top: 12px;
}

.proforma-modal__installments-head,
.proforma-modal-card__installments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #991b1b;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.proforma-modal-card {
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.proforma-modal-card + .proforma-modal-card {
    margin-top: 14px;
}

.proforma-modal-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.proforma-modal-card__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.proforma-modal-card__top strong {
    color: var(--text-main);
    font-size: 1rem;
}

.proforma-modal-card__description {
    margin: 14px 0 0;
    color: var(--text-main);
    line-height: 1.7;
    white-space: pre-line;
}

.proforma-modal-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.proforma-modal-card__stat {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.proforma-modal-card__stat span {
    display: block;
    margin-bottom: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.proforma-modal-card__stat strong {
    color: var(--text-main);
    font-size: 0.96rem;
}

.proforma-modal-card__installments {
    margin-top: 16px;
}

.proforma-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 28px 28px;
}

.proforma-modal__close-btn {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(185, 28, 28, 0.18);
    border-radius: 14px;
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
    font-weight: 700;
}

.proforma-modal__close-btn:hover,
.proforma-modal__close-btn:focus {
    background: rgba(185, 28, 28, 0.12);
    color: #991b1b;
}

@media (max-width: 991.98px) {
    .dashboard-mobile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-mobile-profile {
        min-width: 0;
        width: 100%;
    }

    .proforma-modal .modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .proforma-modal .modal-dialog.modal-dialog-centered {
        padding-top: 1.5rem;
    }

    .proforma-modal__header,
    .proforma-modal__summary,
    .proforma-modal__body,
    .proforma-modal__footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .proforma-modal__summary {
        grid-template-columns: 1fr;
    }

    .proforma-modal__body {
        max-height: none;
    }

    .proforma-modal-card__stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .dashboard-mobile-page {
        gap: 18px;
    }

    .dashboard-mobile-hero {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .dashboard-mobile-summary__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dashboard-mobile-stat,
    .dashboard-mobile-summary__card,
    .dashboard-mobile-list__card {
        border-radius: 20px;
    }

    .dashboard-mobile-stat,
    .dashboard-mobile-summary__card {
        padding: 18px 16px;
    }

    .dashboard-mobile-list__card {
        padding: 16px;
    }

    .dashboard-mobile-list__actions {
        flex-direction: column;
    }

    .dashboard-mobile-btn {
        width: 100%;
    }

    .proforma-modal__content {
        border-radius: 24px;
    }

    .proforma-modal__header {
        align-items: flex-start;
    }

    .proforma-modal__subtitle {
        font-size: 0.92rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-mobile-summary__grid {
        grid-template-columns: 1fr;
    }

    .dashboard-mobile-section__header h2 {
        font-size: 1.2rem;
    }

    .dashboard-mobile-list__meta--split {
        flex-direction: column;
        gap: 8px;
    }

    .proforma-modal__header {
        flex-direction: column;
    }

    .proforma-modal__footer {
        justify-content: stretch;
    }

    .proforma-modal__close-btn {
        width: 100%;
    }
}

/* Profile page */
.profile-page {
    display: grid;
    gap: 24px;
    padding-bottom: 24px;
}

.profile-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f3d57 0%, #045c83 52%, #0ea5a8 100%);
    box-shadow: 0 24px 60px rgba(4, 92, 131, 0.22);
}

.profile-hero__content {
    max-width: 680px;
}

.profile-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-hero__content h1 {
    margin: 14px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    color: #fff;
}

.profile-hero__content p {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.profile-hero__meta {
    min-width: 220px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.profile-hero__meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.profile-hero__meta strong {
    color: #fff;
    font-size: 1.02rem;
}

.profile-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
}

.profile-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.profile-card--identity {
    padding: 28px 24px;
}

.profile-card--form {
    padding: 28px;
}

.profile-avatar-upload {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.profile-avatar-upload__frame {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.profile-avatar-upload__image,
.profile-avatar-upload__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-upload__image {
    display: block;
}

.profile-avatar-upload__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
    color: #045c83;
    font-size: 3rem;
}

.profile-avatar-upload__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(4, 92, 131, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-avatar-upload__frame:hover .profile-avatar-upload__overlay {
    opacity: 1;
}

.profile-avatar-upload__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(4, 92, 131, 0.35);
    background: rgba(4, 92, 131, 0.06);
    color: #045c83;
    font-size: 0.84rem;
    font-weight: 700;
}

.profile-avatar-upload__hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-card__notice {
    border-radius: 16px;
    font-size: 0.82rem;
}

.profile-identity {
    margin-top: 10px;
    text-align: center;
}

.profile-identity h2 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    color: var(--text-main);
}

.profile-identity p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    word-break: break-word;
}

.profile-badges {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.profile-badge,
.profile-expiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-badge--success {
    background: #dcfce7;
    color: #166534;
}

.profile-badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.profile-expiry {
    background: #e0f2fe;
    color: #075985;
}

.profile-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-card__head h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: var(--text-main);
}

.profile-card__head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.profile-form__full {
    grid-column: 1 / -1;
}

.profile-form .form-group {
    margin-bottom: 0;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-form .form-control {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #fff;
    box-shadow: none;
}

.profile-form .form-control:focus {
    border-color: #045c83;
    box-shadow: 0 0 0 4px rgba(4, 92, 131, 0.1);
}

.profile-form__submit {
    min-height: 46px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #045c83, #0f766e);
    border: none;
    box-shadow: 0 14px 28px rgba(4, 92, 131, 0.2);
}

.profile-form__submit:hover,
.profile-form__submit:focus {
    background: linear-gradient(135deg, #034a69, #0b5e58);
}

@media (max-width: 991.98px) {
    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-hero__meta {
        min-width: 0;
        width: 100%;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .profile-page {
        gap: 18px;
    }

    .profile-hero {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .profile-card--identity,
    .profile-card--form {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .profile-form__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-avatar-upload__frame {
        width: 112px;
        height: 112px;
    }
}

@media (max-width: 575.98px) {
    .profile-card__head {
        flex-direction: column;
    }

    .profile-form__submit {
        width: 100%;
    }
}

/* Plans page */
.plans-page {
    display: grid;
    gap: 28px;
    padding-bottom: 24px;
}

.plans-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 32px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f3d57 0%, #045c83 52%, #0ea5a8 100%);
    box-shadow: 0 24px 60px rgba(4, 92, 131, 0.22);
}

.plans-hero__content {
    max-width: 680px;
}

.plans-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plans-hero__content h1 {
    margin: 14px 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    line-height: 1.08;
    color: #fff;
}

.plans-hero__content p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.plans-hero__meta {
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.plans-hero__meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.plans-hero__meta strong {
    color: #fff;
    font-size: 1.02rem;
}

.plans-empty {
    padding: 52px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.plans-empty__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(4, 92, 131, 0.12), rgba(20, 184, 166, 0.12));
    color: #045c83;
    font-size: 1.7rem;
}

.plans-empty h2 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 1.35rem;
}

.plans-empty p {
    margin: 0;
    color: var(--text-muted);
}

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

.plan-card--modern {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    min-height: 100%;
    text-align: left;
}

.plan-card--current {
    border-color: rgba(4, 92, 131, 0.28);
    box-shadow: 0 24px 58px rgba(4, 92, 131, 0.16);
}

.plan-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(4, 92, 131, 0.1);
    color: #045c83;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.plan-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-top: 6px;
}

.plan-card__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.plan-name {
    margin: 0;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 800;
}

.plan-card__type {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(4, 92, 131, 0.08);
    color: #045c83;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.plan-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fafc, #ecfeff);
}

.plan-card__price strong {
    color: #045c83;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1;
}

.plan-card__price--current strong {
    color: #045c83;
}

.plan-card__description {
    flex: 1;
    color: var(--text-main);
    line-height: 1.75;
}

.plan-card__description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-card__description li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.plan-card__description li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: #0f766e;
}

.plan-card__actions {
    margin-top: auto;
}

.plan-card__btn {
    min-height: 46px;
    border-radius: 14px;
    font-weight: 700;
    width: 100%;
}

.plan-card__btn--renew {
    background: linear-gradient(135deg, #0f3d57, #045c83);
    border: 1px solid rgba(4, 92, 131, 0.28);
    color: #fff;
    box-shadow: 0 12px 24px rgba(4, 92, 131, 0.2);
}

.plan-card__btn--renew:hover,
.plan-card__btn--renew:focus {
    background: linear-gradient(135deg, #0b3146, #034a69);
    color: #fff;
    box-shadow: 0 14px 28px rgba(4, 92, 131, 0.24);
    transform: translateY(-1px);
}

@media (max-width: 767.98px) {
    .plans-hero {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plan-card--modern {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .plan-card__top {
        flex-direction: column;
    }

    .plan-card__badge {
        position: static;
        align-self: flex-start;
        margin-bottom: -2px;
    }
}

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

@media (max-width: 991.98px) {
    .plans-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .plans-hero__meta {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .plans-page {
        gap: 18px;
    }

    .plans-hero {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plan-card--modern {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .plan-card__top {
        flex-direction: column;
    }

    .plan-card__badge {
        position: static;
        align-self: flex-start;
        margin-bottom: -2px;
    }
}

/* Invoices page */
.invoices-page {
    display: grid;
    gap: 24px;
    padding-bottom: 24px;
}

.invoices-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 32px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f3d57 0%, #045c83 52%, #0ea5a8 100%);
    box-shadow: 0 24px 60px rgba(4, 92, 131, 0.22);
}

.invoices-hero__content {
    max-width: 680px;
}

.invoices-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invoices-hero__content h1 {
    margin: 14px 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    line-height: 1.08;
    color: #fff;
}

.invoices-hero__content p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.invoices-hero__meta {
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.invoices-hero__meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.invoices-hero__meta strong,
.invoices-hero__meta span {
    display: block;
    color: #fff;
}

.invoices-hero__meta strong {
    font-size: 1.02rem;
}

.invoices-hero__meta span {
    margin-top: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}

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

.invoices-summary__card {
    padding: 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.invoices-summary__card span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.invoices-summary__card strong {
    color: var(--text-main);
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.invoices-summary__card--paid strong {
    color: #166534;
}

.invoices-summary__card--unpaid strong {
    color: #b91c1c;
}

.invoices-section {
    display: grid;
    gap: 16px;
}

.invoices-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.invoices-section__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #045c83;
}

.invoices-section__header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text-main);
}

.invoices-section__count {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 92, 131, 0.1);
    color: #045c83;
    font-weight: 700;
}

.invoices-table-card {
    border-radius: 24px;
    overflow: hidden;
}

.invoices-table thead th {
    background: #e0f2fe;
    color: #045c83;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.invoices-table tbody td {
    vertical-align: middle;
}

.invoice-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.invoice-pill--success {
    background: #dcfce7;
    color: #166534;
}

.invoice-pill--warning {
    background: #fffbeb;
    color: #b45309;
}

.invoice-pill--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.invoice-action-btn,
.invoice-pay-btn {
    min-height: 38px;
    min-width: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    transition: var(--transition);
}

.invoice-action-btn {
    background: rgba(4, 92, 131, 0.08);
    color: #045c83;
}

.invoice-action-btn--view {
    background: rgba(4, 92, 131, 0.08);
    color: #045c83;
}

.invoice-pay-btn {
    background: linear-gradient(135deg, #045c83, #0f766e);
    color: #fff;
    box-shadow: 0 12px 24px rgba(4, 92, 131, 0.2);
}

.invoice-action-btn:hover,
.invoice-action-btn:focus,
.invoice-pay-btn:hover,
.invoice-pay-btn:focus {
    transform: translateY(-1px);
}

.feedback-modal__content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.feedback-modal__header {
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(135deg, #0f3d57 0%, #045c83 100%) !important;
}

.feedback-modal__body {
    padding: 22px 24px 10px;
}

.feedback-modal__row {
    display: grid;
    gap: 10px;
}

.feedback-modal__row label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.feedback-modal__row textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px 16px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 16px;
    outline: none;
    resize: vertical;
    background: #fff;
}

.feedback-modal__row textarea:focus {
    border-color: #045c83;
    box-shadow: 0 0 0 4px rgba(4, 92, 131, 0.1);
}

.feedback-modal__footer {
    padding: 0 24px 24px;
}

@media (max-width: 991.98px) {
    .invoices-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoices-hero__meta {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .invoices-page {
        gap: 18px;
    }

    .invoices-hero {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .invoices-summary {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .invoices-summary__card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .invoices-section__header h2 {
        font-size: 1.2rem;
    }

    .invoice-action-btn,
    .invoice-pay-btn {
        width: 100%;
    }
}

/* Tasks page */
.tasks-page {
    display: grid;
    gap: 24px;
    padding-bottom: 24px;
}

.tasks-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 32px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f3d57 0%, #045c83 52%, #14b8a6 100%);
    box-shadow: 0 24px 60px rgba(4, 92, 131, 0.22);
}

.tasks-hero__content {
    max-width: 680px;
}

.tasks-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tasks-hero__content h1 {
    margin: 14px 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    line-height: 1.08;
    color: #fff;
}

.tasks-hero__content p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.tasks-hero__meta {
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.tasks-hero__meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.tasks-hero__meta strong {
    color: #fff;
    font-size: 1.02rem;
}

.tasks-empty {
    padding: 52px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.tasks-empty__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(4, 92, 131, 0.12), rgba(20, 184, 166, 0.12));
    color: #045c83;
    font-size: 1.7rem;
}

.tasks-empty h2 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 1.35rem;
}

.tasks-empty p {
    margin: 0;
    color: var(--text-muted);
}

.tasks-content {
    display: grid;
    gap: 16px;
}

.tasks-filter-card {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.tasks-filter-card__head {
    margin-bottom: 16px;
}

.tasks-filter-card__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #045c83;
}

.tasks-filter-card__head h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

.tasks-filter-form {
    display: grid;
    gap: 16px;
}

.tasks-filter-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tasks-filter-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tasks-filter-form__field {
    display: grid;
    gap: 8px;
}

.tasks-filter-date {
    position: relative;
}

.tasks-filter-date__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #045c83;
    font-size: 0.92rem;
    pointer-events: none;
}

.tasks-filter-form__hint {
    margin-top: -2px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.tasks-filter-select {
    position: relative;
}

.tasks-filter-select__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #045c83;
    font-size: 0.9rem;
    pointer-events: none;
}

.tasks-filter-form .form-control {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    box-shadow: none;
}

.tasks-filter-form__date {
    padding-left: 54px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    cursor: pointer;
}

.tasks-filter-form__select {
    padding-left: 54px;
    padding-right: 42px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.tasks-filter-card .select2-container {
    width: 100% !important;
}

.tasks-filter-card .select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    display: flex;
    align-items: center;
    padding-left: 42px;
    padding-right: 36px;
    box-shadow: none;
}

.tasks-filter-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    padding-right: 0;
    color: var(--text-main);
    font-size: 0.94rem;
    line-height: 46px;
}

.tasks-filter-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 8px;
}

.tasks-filter-card .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent;
}

.tasks-select2-dropdown {
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.tasks-select2-dropdown .select2-results__option {
    padding: 10px 14px;
    font-size: 0.95rem;
}

.tasks-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #045c83;
    color: #fff;
}

.tasks-select2-dropdown .select2-results__option[aria-selected="true"] {
    background: #e0f2fe;
    color: #045c83;
}

.tasks-filter-form .form-control:focus {
    border-color: #045c83;
    box-shadow: 0 0 0 4px rgba(4, 92, 131, 0.1);
}

.tasks-filter-form__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tasks-filter-form__submit,
.tasks-filter-form__clear {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 700;
}

.tasks-filter-form__submit {
    background: linear-gradient(135deg, #0f3d57, #045c83);
    border: none;
    box-shadow: 0 12px 24px rgba(4, 92, 131, 0.2);
}

.tasks-filter-form__clear {
    border-color: rgba(4, 92, 131, 0.18);
    color: #045c83;
}

.tasks-mobile {
    display: grid;
    gap: 14px;
}

.tasks-date-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #045c83;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tasks-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.tasks-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.tasks-card__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.tasks-card__top strong {
    color: var(--text-main);
    font-size: 1rem;
}

.tasks-card__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
}

.tasks-card__copy {
    margin: 14px 0 0;
    color: var(--text-main);
    line-height: 1.7;
}

.tasks-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.tasks-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tasks-table-card {
    border-radius: 24px;
    overflow: hidden;
}

.tasks-table thead th {
    background: #e0f2fe;
    color: #045c83;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
}

.tasks-table tbody td {
    text-align: center;
    vertical-align: middle;
}

.tasks-table__date-row {
    padding: 12px 16px !important;
    background: #e0f2fe !important;
    color: #045c83 !important;
    font-weight: 800;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
    .tasks-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .tasks-hero__meta {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .tasks-page {
        gap: 18px;
    }

    .tasks-hero {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .tasks-empty {
        padding: 42px 18px;
        border-radius: 24px;
    }

    .tasks-card {
        padding: 16px;
        border-radius: 20px;
    }

    .tasks-filter-card {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .tasks-filter-form__grid {
        grid-template-columns: 1fr;
    }

    .tasks-filter-form__hint {
        font-size: 0.78rem;
    }

    .tasks-filter-card .select2-container--default .select2-selection--single {
        height: 44px;
        padding-left: 40px;
        padding-right: 34px;
        border-radius: 12px;
    }

    .tasks-filter-card .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 42px;
        font-size: 0.9rem;
    }

    .tasks-filter-card .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 42px;
    }

    .tasks-select2-dropdown {
        border-radius: 12px;
    }

    .tasks-select2-dropdown .select2-results__option {
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .tasks-filter-form__actions {
        flex-direction: column;
    }

    .tasks-filter-form__submit,
    .tasks-filter-form__clear {
        width: 100%;
    }
}

/* Support page */
.support-page {
    display: grid;
    gap: 24px;
    padding-bottom: 24px;
}

.support-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 32px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f3d57 0%, #045c83 52%, #0ea5a8 100%);
    box-shadow: 0 24px 60px rgba(4, 92, 131, 0.22);
}

.support-hero__content {
    max-width: 680px;
}

.support-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.support-hero__content h1 {
    margin: 14px 0 12px;
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    line-height: 1.08;
    color: #fff;
}

.support-hero__content p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.support-hero__meta {
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.support-hero__meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.support-hero__meta strong {
    color: #fff;
    font-size: 1.02rem;
}

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

.support-contact-card {
    display: grid;
    gap: 16px;
    justify-items: center;
    padding: 24px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-contact-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #045c83, #14b8a6);
}

.support-contact-card:nth-child(2)::before {
    background: linear-gradient(180deg, #045c83, #0ea5a8);
}

.support-contact-card:nth-child(3)::before {
    background: linear-gradient(180deg, #0f3d57, #045c83);
}

.support-contact-card__avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.85), transparent 38%),
        linear-gradient(135deg, #dbeafe, #ecfeff);
    color: #045c83;
    font-size: 2.8rem;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border: 4px solid rgba(255, 255, 255, 0.95);
}

.support-contact-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.support-contact-card__body {
    width: 100%;
}

.support-contact-card__label {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(4, 92, 131, 0.08);
    color: #045c83;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.support-contact-card__body h2 {
    margin: 0 0 6px;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 800;
}

.support-contact-card__body p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    word-break: break-word;
}

.support-form-card {
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.support-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #045c83, #14b8a6, #0ea5a8);
}

.support-form-card__head {
    margin-bottom: 20px;
}

.support-form-card__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #045c83;
}

.support-form-card__head h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    color: var(--text-main);
}

.support-form-card__head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.support-form__full {
    grid-column: 1 / -1;
}

.support-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.support-form .form-control {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #fff;
    box-shadow: none;
}

.support-form .form-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.support-form__select-wrap {
    position: relative;
}

.support-form__select-wrap .select2-container {
    width: 100% !important;
}

.support-form__select-wrap .select2-container--default .select2-selection--multiple {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    padding: 5px 8px 4px;
    box-shadow: none;
}

.support-form__select-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 4px 4px 0 0;
    padding: 5px 10px;
    border: none;
    border-radius: 999px;
    background: #e0f2fe;
    color: #045c83;
    font-weight: 700;
}

.support-form__select-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #045c83;
    margin-right: 6px;
}

.support-form__select-wrap .select2-container--default .select2-selection--multiple .select2-search__field {
    margin-top: 0;
    min-height: 32px;
    color: var(--text-main);
}

.support-select2-dropdown {
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    width: auto !important;
    min-width: 100% !important;
    max-width: calc(100vw - 32px);
}

.support-select2-dropdown .select2-results__option {
    padding: 10px 14px;
    font-size: 0.95rem;
}

.support-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #045c83;
    color: #fff;
}

.support-select2-dropdown .select2-results__option[aria-selected="true"] {
    background: #e0f2fe;
    color: #045c83;
}

.support-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.support-form__submit {
    min-height: 46px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f3d57, #045c83);
    border: none;
    box-shadow: 0 14px 28px rgba(4, 92, 131, 0.2);
}

.support-form__submit:hover,
.support-form__submit:focus {
    background: linear-gradient(135deg, #0b3146, #034a69);
}

.powered-by-footer {
    padding: 18px 24px 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.powered-by-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    font-size: 0.82rem;
}

.powered-by-footer__label {
    color: var(--text-muted);
    font-weight: 600;
}

.powered-by-footer__brand {
    color: #045c83;
    font-weight: 800;
    letter-spacing: 0.02em;
}

@media (max-width: 991.98px) {
    .support-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-hero__meta {
        min-width: 0;
        width: 100%;
    }

    .support-contacts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .support-page {
        gap: 18px;
    }

    .support-hero {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .support-contact-card,
    .support-form-card {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .support-contact-card::before {
        width: 4px;
    }

    .support-form__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 575.98px) {
    .support-form__submit {
        width: 100%;
    }

    .support-form__select-wrap .select2-container--default .select2-selection--multiple {
        min-height: 44px;
        border-radius: 12px;
    }

    .support-form__select-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice {
        font-size: 0.82rem;
    }

    .support-select2-dropdown {
        max-width: calc(100vw - 24px);
    }

    .powered-by-footer {
        padding: 14px 16px 22px;
    }

    .powered-by-footer__badge {
        padding: 8px 14px;
        gap: 6px;
    }
}
