:root {
    --dashboard-sidebar-width: 260px;
    --dashboard-header-height: 88px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f5f7fb;
    margin: 0;
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-sidebar {
    flex: 1;
    background: linear-gradient(180deg, #1b2145 0%, #212b62 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.auth-sidebar h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-form form {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(18, 38, 63, 0.15);
    padding: 2.5rem;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar {
    width: var(--dashboard-sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #1e2a4a 100%);
    color: #cbd5f5;
    height: 100vh;
    padding: 1.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 110;
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.sidebar.sidebar-light {
    background: #ffffff;
    color: #1f2937;
    border-right: 1px solid #e5e7eb;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
    padding: 1.75rem 1.25rem 1.5rem;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar.sidebar-light .logo {
    color: #065f46;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.sidebar.sidebar-light .logo-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.05));
    align-items: center;
    justify-content: center;
    color: #16a34a;
}

.sidebar.sidebar-light .logo-mark svg {
    width: 28px;
    height: 28px;
}

.sidebar.sidebar-light .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #0f172a;
}

.sidebar.sidebar-light .logo-text strong {
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.sidebar.sidebar-light .logo-text small {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.3rem;
    margin-right: -0.3rem;
    display: flex;
    flex-direction: column;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar.sidebar-light .sidebar-menu {
    gap: 0.5rem;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sidebar.sidebar-light nav a {
    gap: 0.85rem;
    padding: 0.50rem 0.75rem;
    border-radius: 14px;
    color: #1f2937;
    font-weight: 500;
    background: transparent;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sidebar.sidebar-light nav a .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
    flex-shrink: 0;
}

.sidebar.sidebar-light nav a .nav-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar.sidebar-light nav a .nav-label {
    flex: 1;
}

.sidebar.sidebar-light nav a:hover {
    background: #fef3c7;
    color: #047857;
    box-shadow: inset 3px 0 0 #22c55e;
}

.sidebar.sidebar-light nav a:hover .nav-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #047857;
}

.sidebar.sidebar-light nav a.active {
    background: #fef3c7;
    color: #047857;
    box-shadow: inset 4px 0 0 #22c55e;
    font-weight: 600;
}

.sidebar.sidebar-light nav a.active .nav-icon {
    background: rgba(34, 197, 94, 0.18);
    color: #047857;
}

.sidebar.sidebar-light .sidebar-divider {
    margin: 1.5rem 0 1rem;
    height: 1px;
    background: #e5e7eb;
}

.sidebar.sidebar-light .sidebar-logout {
    color: #dc2626;
    font-weight: 600;
}

.sidebar.sidebar-light .sidebar-logout .nav-icon {
    background: rgba(248, 113, 113, 0.12);
    color: #b91c1c;
}

.sidebar.sidebar-light .sidebar-logout:hover .nav-icon {
    background: rgba(248, 113, 113, 0.18);
    color: #991b1b;
}

.sidebar nav .sidebar-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1.25rem;
    margin: 0.25rem 0 0.65rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar nav .sidebar-submenu a {
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
    color: rgba(203, 213, 225, 0.9);
}

.sidebar nav .sidebar-submenu a:hover,
.sidebar nav .sidebar-submenu a.active {
    background: rgba(59, 130, 246, 0.16);
    color: #fff;
}

.sidebar.sidebar-light nav .sidebar-submenu {
    border-left: 2px solid rgba(16, 185, 129, 0.22);
    margin: 0.4rem 0 0.9rem 3.2rem;
    padding-left: 1rem;
    gap: 0.35rem;
}

.sidebar.sidebar-light nav .sidebar-submenu a {
    color: #4b5563;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.sidebar.sidebar-light nav .sidebar-submenu a:hover {
    background: #ecfdf5;
    color: #047857;
}

.sidebar.sidebar-light nav .sidebar-submenu a.active {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
    font-weight: 600;
}

.sidebar:not(.sidebar-light) nav a.active,
.sidebar:not(.sidebar-light) nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.main-content {
    flex: 1;
    padding: 0;
    margin-left: var(--dashboard-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-top: var(--dashboard-header-height);
    background: #f5f7fb;
    max-width: 100%;
    min-width: 0;
}

.layout {
    width: 100%;
    overflow-x: hidden;
}

.content-inner {
    flex: 1;
    padding: 2rem 2.5rem 2.5rem;
    min-height: calc(100vh - var(--dashboard-header-height));
    overflow-x: hidden;
    min-width: 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
}

.card.badge {
    background: #ecfdf5;
}

.card.balance {
    background: #eff6ff;
}

.card.profit {
    background: #fefce8;
}

.card.invest {
    background: #fff7ed;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 24px;
    height: 100%;
}

.stat-card-link:focus-visible {
    outline: none;
}

.stat-card-link:focus-visible .stat-card {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.28);
}

.stat-card {
    --stat-accent: #6366f1;
    --stat-accent-rgb: 99, 102, 241;
    --stat-accent-soft: rgba(var(--stat-accent-rgb), 0.12);
    background: #fff;
    border-radius: 24px;
    padding: 1.75rem;
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.stat-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(90deg, rgba(var(--stat-accent-rgb), 0) 0%, var(--stat-accent) 45%, rgba(var(--stat-accent-rgb), 0) 100%);
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.14);
}

.stat-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(var(--stat-accent-rgb), 0.16), rgba(var(--stat-accent-rgb), 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stat-accent);
}

.stat-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card-chart {
    background: rgba(var(--stat-accent-rgb), 0.06);
    border-radius: 16px;
    padding: 0.4rem 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stat-accent);
}

.stat-card-chart svg {
    width: 70px;
    height: 34px;
}

.stat-card-chart-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

.stat-card-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.stat-card-value {
    margin: 0.5rem 0 0;
    font-size: 2.05rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.stat-card-footer {
    margin-top: auto;
    padding-top: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stat-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-card-badge.success {
    background: rgba(34, 197, 94, 0.16);
    color: #16a34a;
}

.stat-card-badge.warning {
    background: rgba(251, 191, 36, 0.16);
    color: #d97706;
}

.stat-card-badge.neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.stat-card-subtext {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.stat-card.accent-violet {
    --stat-accent: #6366f1;
    --stat-accent-rgb: 99, 102, 241;
}

.stat-card.accent-sky {
    --stat-accent: #0ea5e9;
    --stat-accent-rgb: 14, 165, 233;
}

.stat-card.accent-emerald {
    --stat-accent: #10b981;
    --stat-accent-rgb: 16, 185, 129;
}

.stat-card.accent-amber {
    --stat-accent: #f97316;
    --stat-accent-rgb: 249, 115, 22;
}

.stat-card.accent-indigo {
    --stat-accent: #4f46e5;
    --stat-accent-rgb: 79, 70, 229;
}

.stat-card.accent-rose {
    --stat-accent: #f43f5e;
    --stat-accent-rgb: 244, 63, 94;
}

.stat-card.accent-cyan {
    --stat-accent: #06b6d4;
    --stat-accent-rgb: 6, 182, 212;
}

.transaction-card {
    background: #fff;
    border-radius: 28px;
    padding: 2rem 2.25rem 2.25rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.transaction-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0) 0%, #2563eb 45%, rgba(37, 99, 235, 0) 100%);
    opacity: 0.85;
}

.transaction-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.transaction-card-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.transaction-card-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: 999px;
}

.transaction-tab {
    border: none;
    background: transparent;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.transaction-tab:hover {
    color: #1f2937;
}

.transaction-tab.is-active {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.16);
}

.transaction-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.transaction-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.85rem;
    color: #0f172a;
}

.transaction-summary__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.transaction-summary__value {
    font-size: 1.85rem;
    font-weight: 600;
}

.transaction-summary__meta {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.transaction-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
}

.transaction-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.transaction-chart {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    min-height: 200px;
}

.transaction-chart__y-axis {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    width: 3.2rem;
    height: 200px;
}

.transaction-chart__canvas {
    position: relative;
    flex: 1;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.01));
    overflow: hidden;
}

.transaction-chart__canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px) repeat-y,
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px) repeat-x;
    background-size: 100% calc(100% / 4), calc(100% / 6) 100%;
    opacity: 0.7;
}

.transaction-chart__canvas svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.transaction-chart__points {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.transaction-chart__point {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    pointer-events: auto;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.transaction-chart__point::after {
    content: '';
    position: absolute;
    inset: -10px;
}

.transaction-chart__point:hover,
.transaction-chart__point:focus-visible {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 16px 26px rgba(37, 99, 235, 0.32);
}

.transaction-chart__tooltip {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translate(-50%, 10px);
    background: #0f172a;
    color: #fff;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.transaction-chart__tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0f172a;
}

.transaction-chart__point:hover .transaction-chart__tooltip,
.transaction-chart__point:focus-visible .transaction-chart__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -4px);
}

.transaction-chart__tooltip-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}

.transaction-chart__tooltip-value {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.transaction-chart__line {
    fill: none;
    stroke: #2563eb;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.transaction-chart__x-axis {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0 0 0 3.2rem;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(40px, 1fr);
    gap: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
}

.transaction-chart__x-axis li {
    text-align: center;
}

.transaction-chart__empty {
    margin: 0;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
}

.product-sales-card {
    background: #fff;
    border-radius: 28px;
    padding: 2rem 2.25rem 2.25rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 2.75fr) minmax(200px, 0.75fr);
    gap: 2.4rem;
    align-items: stretch;
}

.product-sales-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0) 0%, #4f46e5 45%, rgba(99, 102, 241, 0) 100%);
    opacity: 0.85;
}

.product-sales-content {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.product-sales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-sales-heading {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.product-sales-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-sales-title h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.product-sales-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.product-sales-info svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
    fill: none;
    stroke-width: 1.6;
}

.product-sales-range {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    color: #1f2937;
    padding: 0.45rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: default;
}

.product-sales-visual {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.product-sales-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.product-sales-scroll .product-sales-chart-area,
.product-sales-scroll .product-sales-axis {
    min-width: 640px;
}

.product-sales-legend {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-sales-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
}

.product-sales-legend .legend-item.revenue {
    color: #2563eb;
}

.product-sales-legend .legend-item.orders {
    color: #cbd5f5;
}

.product-sales-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(148, 163, 184, 0.18);
}

.product-sales-legend .legend-item.revenue .legend-dot {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.15);
}

.product-sales-legend .legend-item.orders .legend-dot {
    box-shadow: 0 0 0 5px rgba(203, 213, 245, 0.35);
}

.product-sales-chart-area {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.55), rgba(226, 232, 240, 0.1));
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
    min-height: 200px;
}

.product-sales-chart-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(148, 163, 184, 0.15) 1px, transparent 1px) repeat-y,
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px) repeat-x;
    background-size: 100% calc(100% / 4), calc(100% / 10) 100%;
    opacity: 0.6;
}

.product-sales-chart-area svg {
    position: relative;
    width: 100%;
    height: 220px;
}

.product-sales-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-sales-line.revenue {
    stroke: #2563eb;
}

.product-sales-line.orders {
    stroke: #cbd5f5;
}

.product-sales-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.product-sales-axis {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(60px, 1fr);
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.product-sales-axis li {
    text-align: center;
}

.monthly-investment-card {
    background: #fff;
    border-radius: 28px;
    padding: 2rem 2.25rem 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
    margin-top: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 2.75fr) minmax(200px, 0.75fr);
    gap: 2.4rem;
    position: relative;
    overflow: hidden;
}

.monthly-investment-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0) 0%, rgba(79, 70, 229, 0.8) 45%, rgba(37, 99, 235, 0) 100%);
    opacity: 0.85;
}

.monthly-investment-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.monthly-investment-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.monthly-investment-header p {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.monthly-investment-chart {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.monthly-investment-plot {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0rem;
    align-items: stretch;
}

.monthly-investment-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    padding: 0.4rem 0;
    min-width: 68px;
}

.monthly-investment-bars-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.95rem;
}

.monthly-investment-bars-surface {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.65), rgba(226, 232, 240, 0.1));
    min-height: 240px;
    overflow: visible;
}

.monthly-investment-bars-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px) repeat-y,
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px) repeat-x;
    background-size: 100% calc(100% / 5), calc(100% / 10) 100%;
    opacity: 0.6;
    pointer-events: none;
}

.monthly-investment-bars {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(var(--days), minmax(18px, 1fr));
    align-items: flex-end;
    gap: 0.4rem;
    height: 100%;
}

.monthly-investment-day {
    display: grid;
    grid-template-columns: repeat(2, minmax(6px, 1fr));
    gap: 0.25rem;
    align-items: end;
    height: 100%;
    position: relative;
}

.monthly-investment-day .bar {
    display: block;
    width: 100%;
    border-radius: 7px 7px 0 0;
    background: rgba(148, 163, 184, 0.45);
    transition: background 0.2s ease;
}

.monthly-investment-day .bar.project {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.92), rgba(249, 115, 22, 0.55));
}

.monthly-investment-day .bar.plan {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(37, 99, 235, 0.58));
}

.monthly-investment-day:hover .bar {
    opacity: 0.8;
}

.monthly-investment-day:focus-visible {
    outline: none;
}

.monthly-investment-day:focus-visible .bar.plan,
.monthly-investment-day:focus-visible .bar.project {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.monthly-investment-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 16px);
    transform: translateX(-50%) translateY(8px);
    background: #0f1f3b;
    color: #f8fafc;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.monthly-investment-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #0f1f3b;
    border-radius: 2px;
    rotate: 45deg;
}

.tooltip-heading {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e2e8f0;
}

.tooltip-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.tooltip-row.plan .tooltip-dot {
    background: #2563eb;
}

.tooltip-row.project .tooltip-dot {
    background: #f97316;
}

.tooltip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.tooltip-value {
    color: #fff;
}

.monthly-investment-day:hover .monthly-investment-tooltip,
.monthly-investment-day:focus-visible .monthly-investment-tooltip,
.monthly-investment-day:focus-within .monthly-investment-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.monthly-investment-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
    z-index: 1;
}

.monthly-investment-x-axis {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.1rem;
    display: grid;
    grid-template-columns: repeat(var(--days), minmax(18px, 1fr));
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #94a3b8;
    min-height: 58px;
}

.monthly-investment-x-axis li {
    text-align: left;
    transform: rotate(-55deg);
    transform-origin: left top;
    white-space: nowrap;
}

.monthly-investment-legend {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.monthly-investment-legend .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.monthly-investment-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.monthly-investment-legend .legend-project .legend-dot {
    background: #f97316;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.18);
}

.monthly-investment-legend .legend-plan .legend-dot {
    background: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.16);
}

.monthly-investment-summary {
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    padding-left: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.35), rgba(226, 232, 240, 0.25));
    border-radius: 0 20px 20px 0;
    box-shadow: inset 12px 0 24px rgba(15, 23, 42, 0.04);
}

.monthly-summary-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.monthly-summary-title {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.monthly-summary-value {
    font-size: 2rem;
    font-weight: 600;
    color: #0f172a;
}

.monthly-summary-divider {
    height: 1px;
    width: 100%;
    background: rgba(148, 163, 184, 0.25);
}

.product-sales-summary {
    border-left: 1px solid rgba(148, 163, 184, 0.22);
    padding-left: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.35), rgba(226, 232, 240, 0.25));
    border-radius: 0 20px 20px 0;
    box-shadow: inset 12px 0 24px rgba(15, 23, 42, 0.04);
}

.summary-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-title {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.summary-value {
    font-size: 2rem;
    font-weight: 600;
    color: #0f172a;
}

.summary-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.summary-change.positive {
    color: #16a34a;
}

.summary-change.negative {
    color: #dc2626;
}

.summary-separator {
    width: 100%;
    height: 1px;
    background: rgba(148, 163, 184, 0.28);
}

@media (max-width: 1024px) {
    .product-sales-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-sales-summary {
        border-left: none;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        padding-left: 0;
        padding-top: 1.75rem;
        flex-direction: row;
        align-items: stretch;
        gap: 1.75rem;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .summary-separator {
        width: 1px;
        height: 48px;
    }

    .monthly-investment-card {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.75rem 2rem;
    }

    .monthly-investment-summary {
        border-left: none;
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        padding-left: 0;
        padding-top: 1.75rem;
        flex-direction: row;
        align-items: stretch;
        gap: 1.75rem;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .monthly-summary-divider {
        height: 48px;
        width: 1px;
    }

    .monthly-summary-block {
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .product-sales-card {
        padding: 1.75rem 1.75rem 2rem;
    }

    .product-sales-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-top: 1.25rem;
    }

    .summary-separator {
        width: 100%;
        height: 1px;
    }

    .monthly-investment-plot {
        grid-template-columns: 1fr;
    }

    .monthly-investment-y-axis {
        flex-direction: row;
        justify-content: space-between;
        min-width: 0;
    }

    .monthly-investment-bars-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 0.5rem;
    }

    .monthly-investment-bars {
        min-width: 620px;
    }

    .monthly-investment-x-axis {
        min-height: 48px;
    }

    .monthly-investment-x-axis li {
        transform: rotate(-40deg);
        font-size: 0.7rem;
    }

    .monthly-investment-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-top: 1.25rem;
    }

    .monthly-summary-divider {
        width: 100%;
        height: 1px;
    }

    .monthly-summary-block {
        align-items: flex-start;
    }
}

    .insight-panels {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .insight-card {
        background: #fff;
        border-radius: 26px;
        border: 1px solid rgba(226, 232, 240, 0.7);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
        padding: 2rem 2.25rem 2.4rem;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .insight-card__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .insight-card__header h3 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: #0f172a;
    }

    .insight-card__link {
        font-size: 0.85rem;
        font-weight: 600;
        color: #4f46e5;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .insight-card__link:hover {
        color: #312e81;
    }

    .insight-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .insight-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        min-width: 520px;
    }

    .insight-table th,
    .insight-table td {
        padding: 0.95rem 0.4rem;
        text-align: left;
        border-bottom: 1px solid rgba(226, 232, 240, 0.85);
        font-size: 0.9rem;
        color: #475569;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .insight-table th {
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 0.75rem;
        color: #94a3b8;
        font-weight: 700;
    }

    

    .project-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-avatar__initial {
        font-size: 1.1rem;
        font-weight: 600;
        color: #4f46e5;
    }

    .project-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 1024px) {
        .insight-panels {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 720px) {
        .insight-card {
            padding: 1.75rem 1.5rem;
        }
    }

@media (max-width: 900px) {
    .transaction-card {
        padding: 1.75rem 1.75rem 2rem;
    }

    .transaction-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .transaction-card-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .transaction-chart {
        flex-direction: column;
        min-height: auto;
    }

    .transaction-chart__y-axis {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        order: 2;
        height: auto;
    }

    .transaction-chart__canvas {
        order: 1;
        height: 200px;
    }

    .transaction-chart__x-axis {
        padding-left: 0;
        margin-top: 1.25rem;
        grid-auto-columns: minmax(50px, 1fr);
    }
}

.chart-placeholder {
    height: 220px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0.02));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    gap: 1.5rem;
}

.alert-banner {
    background: #eef2ff;
    border-left: 4px solid #4f46e5;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    min-width: 300px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.1rem 2.5rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    position: fixed;
    top: 0;
    left: var(--dashboard-sidebar-width);
    right: 0;
    height: var(--dashboard-header-height);
    z-index: 95;
    width: calc(100% - var(--dashboard-sidebar-width));
    max-width: 100vw;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #1f2937;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 1rem;
    min-width: 260px;
    height: 46px;
}

.search-field svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.search-input {
    border: none;
    outline: none;
    margin-left: 0.6rem;
    flex: 1;
    font-size: 0.95rem;
    color: #1f2937;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-toggle {
    display: none;
}

.search-field .search-close {
    display: none;
    margin-left: 0.6rem;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.search-field .search-close svg {
    width: 18px;
    height: 18px;
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notify-button,
.icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notify-button:hover,
.icon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.notify-button svg,
.icon-button svg {
    width: 18px;
    height: 18px;
    color: #1f2937;
}

.notify-badge {
    position: absolute;
    top: -6px;
    right: -2px;
    background: #22c55e;
    color: #fff;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
}

.header-profile {
    position: relative;
}

.profile-trigger {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    position: relative;
}

.profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #fff;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    padding: 1.4rem 1.6rem;
    display: none;
    z-index: 20;
}

.profile-menu.open {
    display: block;
}

.profile-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.08);
}

.profile-menu .profile-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.profile-menu .profile-card .profile-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    box-shadow: none;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.profile-menu .profile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.profile-menu .profile-meta strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.profile-menu .profile-meta span {
    color: #64748b;
    font-size: 0.85rem;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 94;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.sidebar-open .sidebar-backdrop {
    display: block;
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}


@media (max-width: 1180px) {
    .search-field {
        min-width: 220px;
    }
}

@media (max-width: 1024px) {
    .dashboard-header {
        left: 0;
        padding: 1rem 1.5rem;
        width: 100%;
    }

    .main-content {
        margin-left: 0;
    }

    .search-toggle {
        display: inline-flex;
    }

    .search-field {
        display: none;
        position: absolute;
        left: 1.5rem;
        right: 1.5rem;
        top: calc(100% + 0.75rem);
        min-width: 0;
        width: auto;
        box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
        z-index: 1;
    }

    .search-field .search-close {
        display: none;
    }

    body.search-open .dashboard-header {
        z-index: 130;
    }

    body.search-open .dashboard-header .search-field {
        display: flex;
    }

    body.search-open .dashboard-header .search-field .search-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body:not(.sidebar-open) .sidebar {
        transform: translateX(-108%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    }

    body.sidebar-open .main-content {
        pointer-events: none;
    }

    body.sidebar-open .dashboard-header {
        pointer-events: auto;
    }

    .content-inner {
        padding: 1.75rem 1.5rem 2rem;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .banner .btn-allow {
        width: 100%;
        text-align: center;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .transaction-card-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .transaction-card-tabs {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .dashboard-header {
        padding: 0.85rem 1.15rem;
    }

    .search-field {
        left: 1.15rem;
        right: 1.15rem;
    }

    .content-inner {
        padding: 1.5rem 1.15rem 2rem;
    }

    .admin-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .transaction-chart__x-axis {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scroll-snap-type: x proximity;
    }

    .transaction-chart__x-axis li {
        flex: 0 0 auto;
        min-width: 64px;
        scroll-snap-align: start;
    }

    .insight-table {
        min-width: 460px;
    }


@media (max-width: 560px) {
    :root {
        --dashboard-header-height: 72px;
    }

    .dashboard-header {
        padding: 0.7rem 0.9rem;
    }

    .search-field {
        left: 0.9rem;
        right: 0.9rem;
    }

    .content-inner {
        padding: 1.25rem 0.9rem 1.5rem;
    }

    .transaction-card,
    .product-sales-card,
    .monthly-investment-card,
    .metric-card {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .profile-menu {
        width: calc(100vw - 2rem);
        right: 0;
    }
}
    .table-scroll table {
        min-width: 300px;
    }

    .table-scroll th,
    .table-scroll td {
        padding: 0.7rem 0.75rem;
        font-size: 0.82rem;
    }

    
}

.profile-menu .profile-manage {
    margin: 0 0 1.1rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0.05));
    color: #4f46e5;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-menu .profile-manage:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(79, 70, 229, 0.08));
    border-color: rgba(79, 70, 229, 0.3);
    color: #3730a3;
}

.profile-menu .profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.profile-menu .profile-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 0.2rem;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.profile-menu .profile-menu-item:hover {
    color: #4f46e5;
    transform: translateX(4px);
}

.profile-menu .profile-menu-item-danger {
    color: #dc2626;
}

.profile-menu .profile-menu-item-danger:hover {
    color: #b91c1c;
}

.profile-menu .profile-menu-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
}

.profile-menu .profile-menu-icon svg {
    width: 18px;
    height: 18px;
}

.profile-menu .profile-menu-label {
    flex: 1;
    font-weight: 500;
}

.profile-menu .profile-menu-item-danger .profile-menu-icon {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.profile-menu .profile-menu-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(15, 23, 42, 0.25);
    border-bottom: 2px solid rgba(15, 23, 42, 0.25);
    transform: rotate(-45deg);
    margin-left: auto;
    opacity: 0;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.profile-menu .profile-menu-item:hover .profile-menu-caret {
    border-color: rgba(79, 70, 229, 0.7);
    opacity: 1;
}

.profile-menu .profile-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.6rem 0;
}

body.logout-modal-open {
    overflow: hidden;
}

.logout-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.logout-modal.open {
    display: flex;
}

.logout-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.logout-modal-dialog {
    position: relative;
    background: #fff;
    padding: 2.4rem 2.2rem 2rem;
    border-radius: 22px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.18);
    width: min(420px, calc(100% - 3rem));
    text-align: center;
    z-index: 2;
}

.logout-modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.18), rgba(220, 38, 38, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}

.logout-modal-icon svg {
    width: 32px;
    height: 32px;
}

.logout-modal h2 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.logout-modal p {
    margin: 0 0 1.8rem;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.logout-modal-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
}

.logout-modal .modal-btn {
    padding: 0.7rem 1.6rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.logout-modal .modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.logout-modal .modal-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.logout-modal .modal-btn-secondary {
    background: #f8fafc;
    color: #1e293b;
}

.logout-modal .modal-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.content-inner.investment-plan-investor,
.content-inner.investment-plan-admin {
    padding-top: 2.5rem;
}

.profile-settings {
    margin: 0 auto;
    display: flex;
    width:100%;
    flex-direction: column;
    gap: 1.8rem;
}

.profile-settings-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-settings-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.profile-settings-breadcrumb a {
    color: #38b000;
    text-decoration: none;
    font-weight: 500;
}

.profile-settings-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #0f172a;
}

.profile-alert {
    border-radius: 18px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid transparent;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    margin: 1rem 0 0;
}

.profile-alert + .profile-alert {
    margin-top: 0.75rem;
}

.profile-alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.profile-alert-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #046c4e;
}

.profile-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.profile-settings-cover {
    position: relative;
    z-index: 0;
    overflow: visible;
    border-radius: 20px;
    background: linear-gradient(135deg, #c6ecff, #b7e4ff);
    padding: 2.5rem 2rem 3.75rem;
}

.profile-settings-cover::before,
.profile-settings-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.profile-settings-cover::before {
    background: linear-gradient(140deg, #ffa066 0 32%, #4f4fff 32% 68%, #3dd6fb 68% 100%);
    clip-path: polygon(-5% 0, 65% 0, 42% 100%, -5% 100%);
    opacity: 0.92;
    z-index: 0;
}

.profile-settings-cover::after {
    background: linear-gradient(120deg, transparent 15%, #ffa066 15% 35%, #4f4fff 35% 65%, #3dd6fb 65% 85%, transparent 85%);
    clip-path: polygon(30% 0, 105% 0, 105% 100%, 50% 100%);
    opacity: 0.85;
    z-index: 0;
}

.profile-settings-cover-image {
    position: relative;
    z-index: 1;
    background: #bbe6ff;
    border-radius: 20px;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-settings-cover-image::before,
.profile-settings-cover-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.profile-settings-cover-image::before {
    background: linear-gradient(135deg, #ffa066 0%, #ffa066 32%, #514eff 32%, #514eff 70%, #3bd5f8 70%, #3bd5f8 100%);
    clip-path: polygon(0 0, 68% 0, 45% 100%, 0 100%);
    opacity: 0.92;
}

.profile-settings-cover-image::after {
    background: linear-gradient(135deg, transparent 20%, #ffa066 20%, #ffa066 35%, #514eff 35%, #514eff 60%, #3bd5f8 60%, #3bd5f8 80%, transparent 80%);
    clip-path: polygon(42% 0, 100% 0, 100% 100%, 55% 100%);
    opacity: 0.85;
}

.profile-settings-avatar {
    position: absolute;
    bottom: -46px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
    padding: 8px;
    box-sizing: border-box;
    overflow: visible;
    z-index: 2;
}

.profile-avatar-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
}

.profile-settings-avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    z-index: 3;
}

.profile-avatar-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);
}

.profile-avatar-edit:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.profile-avatar-edit:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.profile-avatar-input:focus-visible + .profile-avatar-edit {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.profile-settings-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.profile-settings > .profile-settings-card:first-of-type {
    margin-top: 3.5rem;
}

.profile-settings-card h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
}

.profile-settings-card p.description {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.4rem;
}

.profile-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}

.profile-field input,
.profile-field select,
.profile-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
}

.profile-field textarea {
    resize: vertical;
    min-height: 120px;
}

.profile-save-actions {
    display: flex;
    justify-content: flex-end;
}

.profile-save-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.profile-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.25);
}

.profile-save-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.profile-password-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-notice {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.profile-notification-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.profile-notification-table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.profile-notification-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #1e293b;
}

.profile-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.profile-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #dbeafe;
    transition: background 0.2s ease;
}

.profile-toggle-knob {
    position: absolute;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    left: 4px;
    transition: transform 0.2s ease;
}

.profile-toggle input:checked ~ .profile-toggle-knob {
    transform: translateX(16px);
}

.profile-toggle input:checked ~ .profile-toggle-track {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.profile-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-settings-table-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

@media (max-width: 768px) {
    .profile-settings {
        padding-bottom: 2rem;
    }

    .profile-settings-cover {
        padding: 2rem 1.4rem 3.4rem;
    }

    .profile-settings-avatar {
        width: 100px;
        height: 100px;
        bottom: -40px;
        padding: 6px;
    }

    .profile-avatar-edit {
        width: 32px;
        height: 32px;
        bottom: 2px;
        right: 2px;
    }

    .profile-settings > .profile-settings-card:first-of-type {
        margin-top: 2.6rem;
    }
}

.page-heading {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.page-heading h1 {
    margin: 0;
    font-size: 2.1rem;
    color: #0f172a;
    font-weight: 600;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: #94a3b8;
}

.breadcrumb a {
    color: #38b000;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.breadcrumb-neutral a {
    color: #94a3b8;
    font-weight: 500;
}

.breadcrumb-neutral span:last-child {
    color: #cbd5f5;
}

.plan-card {
    background: #fff;
    border-radius: 22px;
    padding: 1.8rem;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.07);
}

.plan-card + .plan-card {
    margin-top: 2rem;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.plan-table thead th {
    padding: 1rem 1.2rem;
    text-align: left;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 600;
}

.roi-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 0.35rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
}

.profit-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 0.35rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-table tbody td {
    padding: 1.05rem 1.2rem;
    color: #1f2937;
    border-bottom: 1px solid #eef2f6;
}

.plan-table tbody tr:last-child td {
    border-bottom: none;
}

.plan-table-investor tbody tr:nth-child(odd) {
    background: #f9fafc;
}

.plan-table-investor td:nth-child(3),
.plan-table-investor td:nth-child(4) {
    font-weight: 600;
    color: #0f172a;
}

.plan-table-investor.project-table-investor td:nth-child(4) {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    text-transform: capitalize;
}

.project-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.project-duration {
    color: #1f2937;
}

.view-btn {
    background: #4caf50;
}

.view-btn:hover {
    box-shadow: 0 12px 22px rgba(76, 175, 80, 0.26);
}

.project-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.locale-btn {
    width: 44px;

.plan-name {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.plan-name-badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #f97316);
}
    height: 44px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}

.locale-btn:hover {
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.project-table-admin td:nth-child(2),
.project-table-admin td:nth-child(5),
.project-table-admin td:nth-child(6) {
    font-weight: 600;
    color: #2563eb;
}

.project-table-admin td:nth-child(3) {
    color: #475569;
}

.plan-card-investor {
    padding: 1.4rem 1.4rem 1.6rem;
}

.invest-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.4rem;
    border-radius: 12px;
    border: none;
    background: #4baf50;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plan-history-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.plan-history-toolbar.investor-filter {
    justify-content: flex-end;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 94, 42, 0.18);
    background: linear-gradient(135deg, #0a6636 0%, #0b7c3f 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(9, 100, 54, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-button svg {
    width: 18px;
    height: 18px;
}

.filter-button:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 16px 36px rgba(9, 100, 54, 0.28);
}

.filter-button:active {
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 49, 0.35);
}

.filter-button:focus-visible {
    outline: 3px solid rgba(63, 189, 114, 0.45);
    outline-offset: 2px;
}

body.filter-drawer-open {
    overflow: hidden;
}

.filter-drawer {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 60;
    transition: opacity 0.25s ease;
    opacity: 0;
}

.filter-drawer.open {
    pointer-events: auto;
    opacity: 1;
}

.filter-drawer-backdrop {
    flex: 1;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    transition: opacity 0.25s ease;
}

.filter-drawer.open .filter-drawer-backdrop {
    opacity: 1;
}

.filter-drawer-panel {
    width: min(420px, 100%);
    max-width: 90vw;
    background: #fff;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.filter-drawer.open .filter-drawer-panel {
    transform: translateX(0);
}

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.filter-drawer-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: #12243a;
}

.filter-drawer-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(15, 118, 49, 0.16);
    background: rgba(16, 185, 129, 0.08);
    color: #0b7c3f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.filter-drawer-close:hover {
    background: rgba(16, 185, 129, 0.16);
    transform: translateX(1px);
}

.filter-drawer-close svg {
    width: 18px;
    height: 18px;
}

.filter-form {
    display: grid;
    gap: 1.3rem;
}

.filter-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
}

.filter-input {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input::placeholder {
    color: #94a3b8;
}

.filter-input:focus {
    outline: none;
    border-color: rgba(15, 118, 49, 0.4);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.filter-input.flatpickr-input,
.filter-input.flatpickr-alt-input {
    cursor: pointer;
    background-color: #fff;
}

.flatpickr-calendar {
    font-family: 'Poppins', Arial, sans-serif;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.flatpickr-months .flatpickr-month {
    color: #0f172a;
    font-weight: 600;
}

.flatpickr-weekdaycontainer span {
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0b7c3f;
    border-color: #0b7c3f;
    color: #fff;
}

.flatpickr-day.inRange {
    background: rgba(11, 124, 63, 0.12);
    border-color: rgba(11, 124, 63, 0.05);
    color: #0b7c3f;
}

.flatpickr-day:hover {
    background: rgba(11, 124, 63, 0.18);
    border-color: transparent;
}

.flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {
    border-color: rgba(11, 124, 63, 0.4);
    color: #0b7c3f;
}

.filter-submit {
    align-self: flex-start;
    padding: 0.65rem 1.8rem;
    border-radius: 999px;
    border: none;
    background: #0b7c3f;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(11, 124, 63, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(11, 124, 63, 0.3);
}

.filter-submit:active {
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(11, 124, 63, 0.45);
}

.filter-submit:focus-visible {
    outline: 3px solid rgba(63, 189, 114, 0.35);
    outline-offset: 2px;
}

.plan-history-table tbody td {
    vertical-align: middle;
}

.plan-history-table tbody tr:nth-child(even) {
    background: #f9fbff;
}

.plan-history-table tbody tr:nth-child(odd) {
    background: rgba(248, 250, 252, 0.6);
}

.payment-status {
    font-weight: 600;
    font-size: 0.9rem;
}

.payment-countdown {
    color: #0f172a;
}

.payment-late {
    color: #ef4444;
}

.plan-history-table td:nth-child(5) {
    color: #475569;
}

.payment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.16);
    color: #d97706;
    font-weight: 600;
    font-size: 0.8rem;
}

.payment-chip-upcoming {
    background: rgba(45, 212, 191, 0.18);
    color: #0f766e;
}

.payment-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.history-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.history-user-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    text-transform: capitalize;
}

.history-user-initial {
    font-size: 1rem;
    line-height: 1;
}

.history-user-status {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
}

.unit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.85rem;
}

.project-history-toolbar {
    justify-content: flex-start;
}

.project-history-search {
    margin-bottom: 1.4rem;
}

.project-history-search .plan-search,
.project-history-toolbar .plan-search {
    width: min(440px, 100%);
}

.project-history-card {
    margin-top: 1rem;
}

.project-history-table thead th {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: #6b7280;
    text-transform: uppercase;
}

.project-history-table tbody td:first-child {
    font-weight: 600;
    color: #1f2937;
}

.project-history-table tbody td:nth-child(4),
.project-history-table tbody td:nth-child(5) {
    font-weight: 600;
}

.project-history-table tbody td:nth-child(7) {
    color: #475569;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-verified {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.status-rejected {
    background: rgba(244, 63, 94, 0.16);
    color: #be123c;
}

.status-pending {
    background: rgba(249, 115, 22, 0.18);
    color: #c2410c;
}

.verification-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.verification-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.2rem 1.6rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.verification-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.verification-table thead {
    background: #f8fafc;
}

.verification-table th,
.verification-table td {
    padding: 0.95rem 1.2rem;
    font-size: 0.9rem;
    text-align: left;
}

.verification-table thead th {
    color: #475569;
    font-weight: 600;
}

.verification-table tbody tr:nth-child(odd) {
    background: #fdfdfd;
}

.verification-table tbody tr:nth-child(even) {
    background: #f6f7fb;
}

.verification-table tbody tr:first-child td:first-child {
    border-top-left-radius: 16px;
}

.verification-table tbody tr:first-child td:last-child {
    border-top-right-radius: 16px;
}

.verification-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.verification-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

.verification-table-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.verification-table-action:hover {
    background: rgba(15, 118, 49, 0.08);
    transform: translateY(-1px);
}

.verification-action-menu {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.verification-action-menu.open {
    pointer-events: auto;
    opacity: 1;
}

.verification-action-menu-panel {
    position: absolute;
    top: var(--menu-top, 0px);
    left: var(--menu-left, 0px);
    transform: translate(-50%, -10px) scale(0.95);
    transform-origin: top center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
    padding: 0.4rem 0;
    min-width: 160px;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.verification-action-menu.open .verification-action-menu-panel {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
}

.verification-action-menu-list {
    display: flex;
    flex-direction: column;
}

.verification-action-item {
    padding: 0.55rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.verification-action-item:hover,
.verification-action-item:focus {
    background: rgba(15, 118, 49, 0.08);
    outline: none;
}

.verification-action-item + .verification-action-item {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.verification-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.verification-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.verification-modal-dialog {
    position: relative;
    width: min(540px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem 2rem 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}

.verification-modal.open .verification-modal-dialog {
    transform: translateY(0) scale(1);
}

.verification-modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.verification-modal-close:hover {
    background: rgba(15, 23, 42, 0.12);
}

.verification-modal h2 {
    margin: 0 0 1.2rem;
    font-size: 1.45rem;
    color: #0f172a;
}

.verification-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.verification-modal-table {
    width: 100%;
    border-collapse: collapse;
}

.verification-modal-table th,
.verification-modal-table td {
    padding: 0.75rem 0;
    text-align: left;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.verification-modal-table th {
    font-weight: 600;
    color: #0f172a;
    width: 40%;
}

.verification-modal-table td {
    color: #475569;
}

.verification-modal-image {
    width: 140px;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.verification-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.verification-modal-primary {
    padding: 0.6rem 1.6rem;
    border-radius: 12px;
    border: none;
    background: #db2777;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.verification-modal-primary:hover {
    background: #be185d;
    transform: translateY(-1px);
}

.verification-modal-primary:active {
    transform: translateY(0);
}

.verification-modal-backdrop {
    position: absolute;
    inset: 0;
}

.verification-modal-reason {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 14px;
    padding: 1rem 1.2rem;
}

.history-user-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-user-name {
    font-weight: 600;
    color: #0f172a;
    text-transform: capitalize;
}

.history-user-handle {
    font-size: 0.8rem;
    color: #64748b;
}

.admin-plan-history tbody tr:nth-child(even) {
    background: #fbfdff;
}

.admin-plan-history tbody tr:nth-child(odd) {
    background: rgba(248, 250, 252, 0.8);
}

.invest-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(76, 175, 80, 0.2);
}

.invest-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.invest-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.invest-icon svg {
    width: 18px;
    height: 18px;
}

.plan-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.plan-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(320px, 100%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0 1.1rem;
    height: 48px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.plan-search svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.plan-search input {
    border: none;
    outline: none;
    margin-left: 0.75rem;
    font-size: 0.95rem;
    width: 100%;
    color: #1f2937;
}

.plan-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.45rem;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plan-new-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.plan-new-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.plan-new-btn .plus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.plan-card.plan-card-admin {
    padding: 0;
    overflow: visible;
}

.plan-table-admin thead th {
    background: #f8fbff;
    color: #1e293b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.plan-table-admin tbody tr:nth-child(even) {
    background: #fbfdff;
}

.plan-table-admin td:first-child {
    font-weight: 600;
    color: #94a3b8;
    width: 60px;
}

.plan-table-admin td:nth-child(6),
.plan-table-admin td:nth-child(7) {
    color: #2563eb;
    font-weight: 600;

.project-table-admin td:first-child {
    color: #1f2937;
    font-weight: 600;
    width: auto;
}
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.capital-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.capital-yes {
    background: rgba(14, 165, 233, 0.16);
    color: #0ea5e9;
}

.capital-no {
    background: rgba(248, 113, 113, 0.16);
    color: #f87171;
}

.plan-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-edit-btn {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 0.45rem 1.05rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.plan-edit-btn:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.plan-more-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.plan-more-btn span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
}
