/* ?? Global Reset & Base ?? */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f6fa;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2d2d2d;
}

h1:focus {
    outline: none;
}

a {
    color: #af41ad;
    text-decoration: none;
}

a:hover {
    color: #8e3490;
}

/* ??????????????????????????????????
   App Layout
   ?????????????????????????????????? */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ??????????????????????????????????
   Sidebar – collapsed by default,
   expands on hover
   ?????????????????????????????????? */
:root {
    --sidebar-collapsed: 68px;
    --sidebar-expanded: 240px;
}

.sidebar {
    width: var(--sidebar-collapsed);
    min-width: var(--sidebar-collapsed);
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
    box-shadow: 2px 0 12px rgba(0,0,0,0.06);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover {
    width: var(--sidebar-expanded);
    min-width: var(--sidebar-expanded);
}

/* ?? Brand ?? */
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    min-height: 68px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    transition: opacity 0.2s ease;
}

.brand-full-img {
    height: 34px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease 0.05s, max-width 0.25s ease;
}

/* When sidebar expands: hide icon, show full logo */
.sidebar:hover .brand-icon-img {
    display: none;
}

.sidebar:hover .brand-full-img {
    opacity: 1;
    max-width: 180px;
}

.brand-icon {
    font-size: 1.5rem;
    color: #af41ad;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.brand-label {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2d2d2d;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease 0.05s, width 0.25s ease;
}

.sidebar:hover .brand-label {
    opacity: 1;
    width: auto;
}

.brand-dot {
    color: #af41ad;
}

.brand-suffix {
    font-weight: 400;
    color: #999;
    font-size: 0.85em;
}

/* ?? Nav List ?? */
.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav .nav-item {
    margin: 2px 8px;
}

.sidebar-nav .nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.sidebar-nav .nav-item a i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    color: #999;
    transition: color 0.15s;
}

.sidebar-nav .nav-item a .nav-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease 0.05s, width 0.25s ease;
}

.sidebar:hover .sidebar-nav .nav-item a .nav-label {
    opacity: 1;
    width: auto;
}

/* Hover */
.sidebar-nav .nav-item a:hover {
    background: #f8f0f8;
    color: #af41ad;
}

.sidebar-nav .nav-item a:hover i {
    color: #af41ad;
}

/* Active */
.sidebar-nav .nav-item a.active {
    background: linear-gradient(135deg, #af41ad 0%, #c966c7 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(175, 65, 173, 0.3);
}

.sidebar-nav .nav-item a.active i {
    color: #fff;
}

.sidebar-nav .nav-item a.active .nav-label {
    color: #fff;
}

/* ?? Main Content ?? */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-collapsed);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content {
    flex: 1;
    background: #f5f6fa;
    padding: 24px 40px 32px;
}

/* ?? Topbar ?? */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 32px;
    margin: 20px 40px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(175, 65, 173, 0.08);
    flex-shrink: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-company {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d2d2d;
}

.topbar-company i {
    color: #af41ad;
    font-size: 1.1rem;
}

.topbar-company-name {
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #af41ad 0%, #c966c7 100%);
    color: #fff;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.topbar-user i {
    font-size: 0.85rem;
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.topbar-btn i {
    font-size: 0.78rem;
}

.topbar-btn-switch:hover {
    border-color: #af41ad;
    color: #af41ad;
    background: #faf5fb;
}

.topbar-btn-logout {
    border-color: #f0b8b8;
    color: #e74c3c;
    background: #fef5f5;
}

.topbar-btn-logout:hover {
    background: #fdeaea;
    border-color: #e74c3c;
}

/* ?? Forms ?? */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ?? Blazor Error ?? */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDEgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA9NC42NzgyIDI5MSA9Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg 2NjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgaDkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ?? Page Header ?? */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #2d2d2d;
}

/* ?? Buttons ?? */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: #af41ad;
    color: #fff;
}

.btn-primary:hover {
    background: #963a94;
    color: #fff;
}

.btn-secondary {
    background: #e9e9ef;
    color: #555;
}

.btn-secondary:hover {
    background: #d8d8e0;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
}

.btn-outline:hover {
    border-color: #af41ad;
    color: #af41ad;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* ?? Search Bar ?? */
.search-bar {
    position: relative;
    max-width: 420px;
    margin-bottom: 20px;
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.9rem;
}

.search-bar input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #fff;
    color: #333;
    transition: border-color 0.15s;
}

.search-bar input:focus {
    outline: none;
    border-color: #af41ad;
    box-shadow: 0 0 0 3px rgba(175, 65, 173, 0.1);
}

.search-bar input::placeholder {
    color: #bbb;
}

/* ?? Table ?? */
.data-table-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #fafafa;
    border-bottom: 2px solid #f0f0f0;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.data-table th:hover {
    color: #af41ad;
}

.data-table th.sorted {
    color: #af41ad;
}

.data-table th .sort-icon {
    margin-left: 4px;
    font-size: 0.7rem;
    opacity: 0.5;
}

.data-table th.sorted .sort-icon {
    opacity: 1;
}

.data-table td {
    padding: 13px 16px;
    font-size: 0.875rem;
    color: #444;
    border-bottom: 1px solid #f2f2f2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.data-table tbody tr {
    transition: background 0.1s;
}

.data-table tbody tr:hover {
    background: #faf5fb;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .col-actions {
    text-align: right;
    white-space: nowrap;
}

.data-table .col-actions .btn {
    padding: 5px 10px;
    font-size: 0.78rem;
}

.data-table .col-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* ?? Pagination ?? */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.82rem;
    color: #888;
}

.pagination-info {
    font-size: 0.82rem;
    color: #999;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pagination-controls button,
.pagination-controls .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #666;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s;
}

.pagination-controls button:hover:not(:disabled),
.pagination-controls .page-num:hover {
    background: #f0e6f0;
    color: #af41ad;
}

.pagination-controls button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-controls .page-num.active {
    background: #af41ad;
    color: #fff;
    font-weight: 600;
}

/* ?? Card / Form Panel ?? */
.form-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 28px 32px;
    max-width: 800px;
}

.form-panel h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #333;
    transition: border-color 0.15s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #af41ad;
    box-shadow: 0 0 0 3px rgba(175, 65, 173, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* ?? Loading / Empty State ?? */
.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #aaa;
}

.loading-state i, .empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.95rem;
}

/* ?? Alert / Toast ?? */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #e8f8ef;
    color: #1a7d42;
    border: 1px solid #b8e6cc;
}

.alert-error {
    background: #fdeaea;
    color: #c0392b;
    border: 1px solid #f0b8b8;
}

/* ?? Collapsible Form Sections ?? */
.form-panel.collapsible {
    padding: 0;
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.collapsible-header:hover {
    background: #faf5fb;
}

.collapsible-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
}

.collapsible-header .section-icon {
    color: #af41ad;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.collapsible-header .toggle-icon {
    color: #aaa;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.collapsible-header:hover .toggle-icon {
    color: #af41ad;
}

.collapsible-body {
    padding: 0 32px 24px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ?? Delete confirmation modal ?? */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    min-width: 380px;
    max-width: 440px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.modal-dialog h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.modal-dialog p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ?? Status Tabs ?? */
.status-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.status-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #888;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: button;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}

.status-tab:hover {
    color: #af41ad;
}

.status-tab.active {
    color: #af41ad;
    border-bottom-color: #af41ad;
    font-weight: 600;
}

/* ?? Status Badges ?? */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.status-draft {
    background: #f0f0f5;
    color: #888;
}

.status-sent {
    background: #fff3e0;
    color: #e67e22;
}

.status-accepted {
    background: #e8f8ef;
    color: #27ae60;
}

.status-expired {
    background: #fdeaea;
    color: #e74c3c;
}

.status-cancelled {
    background: #f5f5f5;
    color: #999;
    text-decoration: line-through;
}

.status-paid {
    background: #e8f8ef;
    color: #27ae60;
}

.status-overdue {
    background: #fdeaea;
    color: #e74c3c;
}

.status-ordered {
    background: #e8f0fe;
    color: #3b82f6;
}

.status-received {
    background: #e8f8ef;
    color: #27ae60;
}

/* ?? Line Items Table ?? */
.line-items-table {
    overflow-x: auto;
}

.line-items-table .data-table td {
    padding: 6px 8px;
    vertical-align: middle;
}

.line-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.84rem;
    color: #333;
    font-family: inherit;
    transition: border-color 0.15s;
}

.line-input:focus {
    outline: none;
    border-color: #af41ad;
    box-shadow: 0 0 0 2px rgba(175, 65, 173, 0.08);
}

.line-input.text-right {
    text-align: right;
}

.btn-icon-delete {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.btn-icon-delete:hover {
    color: #e74c3c;
    background: #fdeaea;
}

/* ?? Quote Totals ?? */
.quote-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 20px 16px 0;
    gap: 6px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    width: 260px;
    padding: 6px 0;
    font-size: 0.875rem;
    color: #666;
}

.total-row span:last-child {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.total-grand {
    border-top: 2px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 4px;
    font-size: 1rem;
    color: #2d2d2d;
}

.total-grand span:last-child {
    font-weight: 700;
    color: #af41ad;
}

/* ?? Checkbox Label ?? */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    text-transform: none;
    letter-spacing: 0;
    padding: 9px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #af41ad;
    cursor: pointer;
}

/* ??????????????????????????????????
   Dashboard
   ?????????????????????????????????? */

.dash-updated {
    font-size: 0.8rem;
    color: #999;
}

.dash-section {
    margin-bottom: 24px;
}

.dash-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #af41ad;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ?? Finance Overview KPIs ?? */
.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.dash-kpi {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
}

.dash-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d2d;
    font-variant-numeric: tabular-nums;
}

.dash-kpi-change {
    font-size: 0.78rem;
    font-weight: 600;
}

.change-positive { color: #10b981; }
.change-negative { color: #ef4444; }

.dash-kpi-accent {
    background: linear-gradient(135deg, #af41ad 0%, #c966c7 100%);
}

.dash-kpi-accent .dash-kpi-label {
    color: rgba(255,255,255,0.8);
}

.dash-kpi-accent .dash-kpi-value {
    color: #fff;
}

.dash-kpi-big-pct {
    font-size: 1.8rem !important;
}

.dash-kpi-accent .change-positive,
.dash-kpi-accent .change-negative {
    color: #fff;
}

.dash-kpi-sub {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
}

/* ?? Main Grid (Chart + Right Col) ?? */
.dash-grid-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dash-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ?? Panel (shared card) ?? */
.dash-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 22px 24px;
}

.dash-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 16px 0;
}

.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dash-panel-header h3 {
    margin: 0;
}

/* ?? Cash Flow Chart ?? */
.dash-panel-chart {
    min-height: 280px;
}

.dash-chart-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: #888;
}

.dash-chart-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-cashflow-chart {
    display: flex;
    gap: 10px;
    height: 200px;
}

.dash-chart-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 22px;
    min-width: 48px;
    text-align: right;
}

.dash-chart-y span {
    font-size: 0.7rem;
    color: #bbb;
    font-variant-numeric: tabular-nums;
}

.dash-chart-bars-area {
    display: flex;
    flex: 1;
    align-items: flex-end;
    gap: 6px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 22px;
}

.dash-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.dash-chart-bar-pair {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.dash-bar {
    width: 14px;
    max-width: 20px;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: height 0.4s ease;
}

.dash-bar-rev {
    background: linear-gradient(180deg, #10b981 0%, #6ee7b7 100%);
}

.dash-bar-exp {
    background: linear-gradient(180deg, #f59e0b 0%, #fcd34d 100%);
}

.dash-chart-label {
    font-size: 0.68rem;
    color: #bbb;
    position: absolute;
    bottom: -20px;
    white-space: nowrap;
}

/* ?? Receivables Aging ?? */
.dash-aging-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.dash-aging-cell {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #eee;
}

.dash-aging-danger {
    background: #fef2f2;
    border-color: #fecaca;
}

.dash-aging-range {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dash-aging-danger .dash-aging-range {
    color: #ef4444;
}

.dash-aging-amount {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #2d2d2d;
    font-variant-numeric: tabular-nums;
}

.dash-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #af41ad;
    text-decoration: none;
}

.dash-link:hover {
    text-decoration: underline;
}

/* ?? Breakdown Lists ?? */
.dash-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-breakdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-breakdown-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.dash-breakdown-label {
    flex: 1;
    font-size: 0.85rem;
    color: #555;
}

.dash-breakdown-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d2d2d;
    font-variant-numeric: tabular-nums;
}

.dash-empty-text {
    font-size: 0.85rem;
    color: #bbb;
    font-style: italic;
}

/* ?? Bottom Grid ?? */
.dash-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

/* ?? Smart Alerts ?? */
.dash-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-alert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #444;
}

.dash-alert-item i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ?? Dashboard Responsive ?? */
@media (max-width: 1200px) {
    .dash-kpi-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .dash-grid-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .dash-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-grid-bottom {
        grid-template-columns: 1fr;
    }
    .dash-aging-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dash-kpi-row {
        grid-template-columns: 1fr;
    }
}

/* ??????????????????????????????????
   Reports Hub
   ?????????????????????????????????? */

.rpt-section {
    margin-bottom: 28px;
}

.rpt-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #af41ad;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpt-section-title i {
    font-size: 0.85rem;
}

.rpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.rpt-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.rpt-card:hover {
    border-color: #af41ad;
    box-shadow: 0 4px 16px rgba(175, 65, 173, 0.12);
    transform: translateY(-2px);
}

.rpt-card:hover .rpt-arrow {
    color: #af41ad;
    opacity: 1;
}

.rpt-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rpt-icon-blue {
    background: #e8f0fe;
    color: #3b82f6;
}

.rpt-icon-purple {
    background: #ede7f6;
    color: #7c4dff;
}

.rpt-icon-green {
    background: #e8f8ef;
    color: #10b981;
}

.rpt-icon-orange {
    background: #fff3e0;
    color: #f59e0b;
}

.rpt-icon-red {
    background: #fdeaea;
    color: #ef4444;
}

.rpt-info {
    flex: 1;
    min-width: 0;
}

.rpt-info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 4px 0;
}

.rpt-info p {
    font-size: 0.78rem;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

.rpt-arrow {
    color: #ccc;
    font-size: 0.75rem;
    opacity: 0.5;
    transition: all 0.15s;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .rpt-grid {
        grid-template-columns: 1fr;
    }
}

/* ??????????????????????????????????
   Report Pages (shared)
   ?????????????????????????????????? */

.rpt-filters {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.rpt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rpt-filter-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
}

.rpt-filter-group input,
.rpt-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #333;
    font-family: inherit;
    transition: border-color 0.15s;
    min-width: 150px;
}

.rpt-filter-group input:focus,
.rpt-filter-group select:focus {
    outline: none;
    border-color: #af41ad;
    box-shadow: 0 0 0 3px rgba(175, 65, 173, 0.1);
}

/* ?? Report Summary KPIs ?? */
.rpt-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.rpt-summary-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    text-align: center;
}

.rpt-summary-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
    margin-bottom: 4px;
}

.rpt-summary-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d2d2d;
    font-variant-numeric: tabular-nums;
}

.rpt-val-primary { color: #af41ad; }
.rpt-val-green { color: #10b981; }
.rpt-val-red { color: #ef4444; }

/* ?? Report Table Footer ?? */
.data-table tfoot td {
    padding: 13px 16px;
    font-size: 0.875rem;
    border-top: 2px solid #e0e0e0;
}

/* ?? Print Styles ?? */
@media print {
    .sidebar, .topbar, .page-header a, .rpt-filters .btn,
    .rpt-filters button, .rpt-arrow {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .main-content {
        padding: 0 !important;
    }

    .rpt-filters {
        box-shadow: none;
        padding: 8px 0;
        border-bottom: 1px solid #ddd;
    }

    .data-table-wrapper {
        box-shadow: none;
    }

    .data-table th, .data-table td {
        font-size: 0.75rem;
        padding: 8px 10px;
    }

    .rpt-category-breakdown {
        box-shadow: none;
    }
}

/* ?? Category Breakdown Panel ?? */
.rpt-category-breakdown {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 22px 24px;
    margin-bottom: 20px;
}

.rpt-category-breakdown h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 16px 0;
}

.rpt-cat-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rpt-cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rpt-cat-name {
    min-width: 120px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #555;
}

.rpt-cat-bar-track {
    flex: 1;
    height: 10px;
    background: #f0f0f5;
    border-radius: 5px;
    overflow: hidden;
}

.rpt-cat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 100%);
    border-radius: 5px;
    min-width: 2px;
    transition: width 0.4s ease;
}

.rpt-cat-amount {
    min-width: 90px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d2d2d;
    font-variant-numeric: tabular-nums;
}

.rpt-cat-pct {
    min-width: 45px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 600;
    color: #999;
}

/* ?? Category Badge ?? */
.rpt-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f0f0f5;
    color: #666;
}

/* ?? Type Badges (Sales by Item) ?? */
.rpt-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f0f0f5;
    color: #666;
}

.rpt-type-service {
    background: #ede7f6;
    color: #7c4dff;
}

.rpt-type-product {
    background: #e8f0fe;
    color: #3b82f6;
}

/* ?? Purple bar variant ?? */
.rpt-cat-bar-fill.rpt-bar-purple {
    background: linear-gradient(90deg, #7c4dff 0%, #b388ff 100%);
}

/* ?? Green bar variant ?? */
.rpt-cat-bar-fill.rpt-bar-green {
    background: linear-gradient(90deg, #10b981 0%, #6ee7b7 100%);
}

/* ?? Orange bar variant ?? */
.rpt-cat-bar-fill.rpt-bar-orange {
    background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 100%);
}

/* ?? Blue bar variant ?? */
.rpt-cat-bar-fill.rpt-bar-blue {
    background: linear-gradient(90deg, #3b82f6 0%, #93c5fd 100%);
}

/* ?? Red bar variant ?? */
.rpt-cat-bar-fill.rpt-bar-red {
    background: linear-gradient(90deg, #ef4444 0%, #fca5a5 100%);
}

/* ?? AR Aging Bucket Badges ?? */
.rpt-bucket-current {
    background: #e8f8ef;
    color: #10b981;
}

.rpt-bucket-30 {
    background: #fef9e7;
    color: #f59e0b;
}

.rpt-bucket-60 {
    background: #fff3e0;
    color: #e67e22;
}

.rpt-bucket-90 {
    background: #fdeaea;
    color: #ef4444;
}

.rpt-bucket-90plus {
    background: #f5e6f5;
    color: #c0392b;
    font-weight: 700;
}

/* ??????????????????????????????????
   Settings
   ?????????????????????????????????? */

.settings-section {
    margin-bottom: 32px;
}

.settings-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 16px;
}

.settings-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.settings-card:hover {
    border-color: #af41ad;
    box-shadow: 0 4px 16px rgba(175, 65, 173, 0.1);
    transform: translateY(-1px);
}

.settings-card:hover .settings-card-arrow {
    color: #af41ad;
    opacity: 1;
}

.settings-card-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0 0 4px 0;
}

.settings-card-content p {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}

/* ?? State Info Badge ?? */
.state-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 16px;
    background: #f0edf6;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #555;
    border-left: 3px solid #af41ad;
}

.state-info-badge i {
    color: #af41ad;
}

/* ?? State Tax Reference Panel ?? */
.state-tax-reference {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #fffbeb;
    border-radius: 8px;
    font-size: 0.84rem;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.state-tax-reference i {
    color: #f59e0b;
    flex-shrink: 0;
}

/* ?? Field Hint ?? */
.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

/* ?? Readonly form input ?? */
.form-input-readonly {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e8e8ee;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #666;
    background: #f9f9fb;
    cursor: not-allowed;
    box-sizing: border-box;
}

/* ?? Native select matching form style ?? */
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
    appearance: auto;
}

.form-select:focus {
    outline: none;
    border-color: #af41ad;
    box-shadow: 0 0 0 3px rgba(175, 65, 173, 0.1);
}

.settings-card-arrow {
    color: #ccc;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: 16px;
}

/* ??????????????????????????????????
   Login Page
   ?????????????????????????????????? */

.login-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    margin: 0;
}

.login-brand-panel {
    background: linear-gradient(135deg, #7C1FA0 0%, #AE1EA3 50%, #C84AC1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-brand-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.login-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.brand-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 440px;
}

.login-page .brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #fff;
}

.login-page .brand-logo i {
    font-size: 32px;
}

.login-page .brand-suffix {
    opacity: 0.7;
    font-weight: 400;
    color: #fff;
    font-size: inherit;
}

.brand-content h1 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: #fff;
}

.brand-description {
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 36px;
}

.brand-features {
    list-style: none;
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.brand-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.12);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    backdrop-filter: blur(4px);
    color: #fff;
}

.brand-features li i {
    font-size: 16px;
    opacity: 0.9;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #F7E8F7;
}

.login-page .login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 22px;
    padding: 44px 38px;
    box-shadow: 0 8px 30px rgba(43, 10, 51, 0.08);
    border: 1px solid #e5e7eb;
    text-align: left;
}

.login-page .login-card h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: #2B0A33;
}

.login-page .login-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 28px;
}

.login-page .alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-page .field {
    margin-bottom: 18px;
}

.login-page .field label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2B0A33;
}

.login-page .field label i {
    color: #AE1EA3;
    font-size: 13px;
}

.login-page .field .input {
    width: 100%;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    color: #2B0A33;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.login-page .field .input:focus {
    border-color: #AE1EA3;
    box-shadow: 0 0 0 3px rgba(174, 30, 163, 0.12);
}

.login-page .field .input::placeholder {
    color: #9ca3af;
}

.btn-login {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #AE1EA3, #C84AC1);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.2s;
    margin-top: 6px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(174, 30, 163, 0.35);
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.signup-link a {
    color: #AE1EA3;
    font-weight: 600;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

.login-back-landing {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.login-back-landing a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.login-back-landing a:hover {
    color: #AE1EA3;
    background: #faf5fb;
}

.login-back-landing a i {
    font-size: 12px;
}

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
    }
    .login-brand-panel {
        display: none;
    }
    .login-form-panel {
        min-height: 100vh;
    }
}

@media (max-width: 500px) {
    .login-page .login-card {
        padding: 28px 22px;
    }
}
