/**
 * Growth App - Component Scoped CSS
 * Native CSS Nesting + Namespaced Components
 */

/* =============================================
   PERFORMANCE: Global Containment & GPU Hints
   ============================================= */
.stat-card,
.chart-card,
.list-card,
.notifications-card,
.user-info-card {
    contain: layout paint;
}

.map-section,
.lists-row,
.charts-row {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

:root {
    --primary: #7844e4;
    --text: #33353e;
    --muted: #7a7f99;
    --border: rgba(234, 234, 237, 0.5);
}

body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f0f1f9;
    color: var(--text);
}

/* =============================================
   TOPBAR COMPONENT
   ============================================= */
.topbar {
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #9462fb, #7624bf);
}

/* =============================================
   HEADER COMPONENT
   ============================================= */
.header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 40px;
}

.header .header-logo {
    flex-shrink: 0;
}

.header .header-logo img {
    height: 44px;
    display: block;
}

.header .header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 10px 12px;
    border-radius: 16px;
    color: #465681;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    will-change: transform;
}

.header .nav-item:hover {
    background: rgba(245, 247, 253, 0.5);
    color: #465681;
    transform: translateY(-2px);
}

.header .nav-item.active {
    background: #f5f7fd;
    border: 1px solid #dfe0e1;
    font-weight: 500;
}

.header .nav-item i {
    font-size: 18px;
}

.header .nav-item .chevron {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 4px;
}

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

.header .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(120, 68, 228, 0.5);
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.015) 100%);
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    will-change: transform;
}

.header .action-btn:hover {
    background: rgba(120, 68, 228, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

.header .action-btn i {
    font-size: 18px;
}

.header .action-btn.icon-only span {
    display: none;
}

.header .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

/* =============================================
   NAV DROPDOWN COMPONENT
   ============================================= */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .has-dropdown {
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-dropdown .chevron {
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .chevron,
.nav-dropdown.open .chevron {
    transform: rotate(180deg);
}

.nav-dropdown:hover .dropdown-mega,
.nav-dropdown.open .dropdown-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-mega {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 770px;
    max-height: 742px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-mega .dropdown-inner {
    display: flex;
}

.dropdown-mega .dropdown-left {
    padding: 30px;
    padding-bottom: 0;
}

.dropdown-mega .dropdown-right {
    width: 305px;
    height: 616px;
    margin: 30px;
    margin-left: 0;
    padding: 25px;
    padding-top: 30px;
    background: #f5f7fd;
    border-radius: 20px;
    flex-shrink: 0;
}

.dropdown-mega .dropdown-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(76, 84, 115, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Tool List */
.dropdown-mega .tool-list {
    display: flex;
    flex-direction: column;
    max-height: 604px;
    overflow-y: auto;
}

.dropdown-mega .tool-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-mega .tool-item:hover {
    background: rgba(245, 247, 253, 0.5);
}

.dropdown-mega .tool-item.active {
    background: #f5f7fd;
}

.dropdown-mega .tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f7fd;
    border: 1.2px solid #dfe0e1;
    border-radius: 11px;
    flex-shrink: 0;
    box-shadow: inset 0 14px 14px 1px rgba(255, 255, 255, 0.24),
                inset 0 1px 0 1px rgba(255, 255, 255, 0.32);
}

.dropdown-mega .tool-icon i {
    font-size: 16px;
    color: #465681;
}

.dropdown-mega .tool-icon.ai-icon span,
.dropdown-mega .tool-icon.hash-icon span {
    font-size: 18px;
    font-weight: 600;
    color: #465681;
    letter-spacing: -0.25px;
}

.dropdown-mega .tool-content {
    display: flex;
    flex-direction: column;
    width: 286px;
    flex-shrink: 0;
}

.dropdown-mega .tool-title {
    font-size: 16px;
    font-weight: 600;
    color: #4c5473;
    line-height: 22px;
}

.dropdown-mega .tool-desc {
    font-size: 14px;
    font-weight: 400;
    color: #4c5473;
    line-height: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Promo Cards */
.dropdown-mega .promo-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dropdown-mega .promo-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.dropdown-mega .promo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(120, 68, 228, 0.1);
    border-radius: 10px;
}

.dropdown-mega .promo-icon i {
    font-size: 14px;
    color: var(--primary);
}

.dropdown-mega .promo-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dropdown-mega .promo-title {
    font-size: 14px;
    font-weight: 600;
    color: #4c5473;
    line-height: 18px;
}

.dropdown-mega .promo-desc {
    font-size: 12px;
    font-weight: 500;
    color: #7a7f99;
    line-height: 20px;
}

/* Dropdown Footer */
.dropdown-mega .dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 0;
    border-top: 1px dashed #e4e6ec;
    margin: 0 30px 30px;
}

.dropdown-mega .upgrade-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-mega .upgrade-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary);
    border: 0.68px solid rgba(120, 68, 228, 0.5);
    border-radius: 25px;
}

.dropdown-mega .upgrade-icon i {
    font-size: 12px;
    color: #fff;
}

.dropdown-mega .upgrade-text {
    font-size: 14px;
    font-weight: 600;
    color: #4c5473;
    line-height: 22px;
}

.dropdown-mega .upgrade-text strong {
    font-weight: 500;
}

.dropdown-mega .upgrade-btn {
    height: 40px;
    padding: 0 14px;
    background: #f5f7fd;
    border: 1.2px solid #dfe0e1;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #4c5473;
    box-shadow: inset 0 14px 14px 1px rgba(255, 255, 255, 0.24),
                inset 0 1px 0 1px rgba(255, 255, 255, 0.32);
    transition: transform 0.2s ease, background 0.2s ease;
}

.dropdown-mega .upgrade-btn:hover {
    background: #ebeef8;
    color: #4c5473;
    transform: translateY(-2px);
}

/* =============================================
   DASHBOARD COMPONENT
   ============================================= */
.dash-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =============================================
   PROFILE ROW COMPONENT
   ============================================= */
.profile-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 0.5rem;
}

/* =============================================
   USER INFO CARD COMPONENT
   ============================================= */
.user-info-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: #fff;
    border-radius: 22px;
}

.user-info-card .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info-card .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
    flex-shrink: 0;
}

.user-info-card .user-details .name {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    display: block;
}

.user-info-card .user-details .username {
    font-size: 15px;
    color: var(--muted);
    display: block;
}

.user-info-card .dropdown-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 10px;
    background: #f6f7fb;
    border: none;
    color: var(--muted);
    cursor: pointer;
}

.user-info-card .user-stats .label {
    font-size: 15px;
    color: var(--muted);
    display: block;
}

.user-info-card .user-stats .value {
    margin: 0;
}

.user-info-card .user-stats .value .number {
    font-size: 18px;
    font-weight: 500;
}

.user-info-card .user-stats .value .change {
    font-style: normal;
    font-size: 14px;
    color: var(--primary);
}

/* =============================================
   STAT CARDS COMPONENT
   ============================================= */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    height: 100%;
}

/* =============================================
   STAT CARD COMPONENT
   ============================================= */
.stat-card {
    --stat-color: #22c55e;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 22px;
    border: none;
    height: 100%;
    transition: transform 0.2s;
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card .circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.stat-card .circle .progress-ring {
    grid-area: 1 / 1;
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}

.stat-card .circle .ring-bg {
    fill: none;
    stroke-width: 3;
    stroke: color-mix(in srgb, var(--stat-color) 10%, transparent);
    stroke-linecap: round;
}

.stat-card .circle .ring-progress {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke: var(--stat-color);
}

.stat-card .circle .inner-circle {
    grid-area: 1 / 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--stat-color) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .circle .number {
    font-size: 14px;
    font-weight: 500;
    color: var(--stat-color);
}

.stat-card .stat-text .label {
    font-size: 14px;
    color: var(--muted);
    display: block;
}

.stat-card .stat-text .value {
    font-size: 16px;
    font-weight: 500;
    color: var(--stat-color);
    display: block;
}

/* =============================================
   CHARTS ROW COMPONENT
   ============================================= */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

/* =============================================
   CHART CARD COMPONENT
   ============================================= */
.chart-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}

.chart-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    min-height: 80px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.chart-card .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(120, 68, 228, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.chart-card .icon-wrap .icon {
    color: var(--primary);
    font-size: 14px;
}

.chart-card .title {
    font-size: 18px;
    font-weight: 600;
    color: #33353e;
    line-height: 20px;
}

.chart-card .help-icon {
    color: #b0b5c3;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.chart-card .tabs {
    margin-left: auto;
    background: #f6f6f9;
    border-radius: 10px;
    display: flex;
    height: 40px;
}

.chart-card .tabs .tab-btn {
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
    color: #465681;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    transition: transform 0.15s, background 0.15s;
}

.chart-card .tabs .tab-btn:hover:not(.active) {
    transform: translateY(-1px);
}

.chart-card .tabs .tab-btn.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-card .chart-body {
    padding: 20px;
}

.chart-card .stat-label {
    font-size: 15px;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.chart-card .stat-value {
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 20px;
}

.chart-card .chart-wrap {
    height: 200px;
}

.chart-card .chart-canvas {
    width: 100%;
    height: 100%;
}

.chart-card .months {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
    color: var(--muted);
}

/* =============================================
   CHART TOOLTIP
   ============================================= */
.chart-tooltip {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.15s ease;
    isolation: isolate;
    will-change: opacity, transform;
}

.chart-tooltip .tooltip-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.chart-tooltip .tooltip-row {
    font-size: 14px;
    color: #33353e;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.chart-tooltip .tooltip-row .label {
    font-weight: 500;
    color: #7a7f99;
}

.chart-tooltip .tooltip-row .value {
    font-weight: 600;
}

.chart-tooltip .tooltip-date {
    font-size: 12px;
    font-style: italic;
    color: #7a7f99;
    margin-top: 8px;
}

/* =============================================
   NOTIFICATIONS CARD COMPONENT
   ============================================= */
.notifications-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
}

.notifications-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    min-height: 80px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.notifications-card .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(120, 68, 228, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.notifications-card .icon-wrap .icon {
    color: var(--primary);
    font-size: 14px;
}

.notifications-card .title {
    font-size: 18px;
    font-weight: 600;
    color: #33353e;
    line-height: 20px;
}

.notifications-card .help-icon {
    color: #b0b5c3;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.notifications-card .notif-list {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
}

.notifications-card .notif-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(245, 247, 253, 0.5);
    border: 1px dashed rgba(70, 86, 129, 0.2);
    border-radius: 16px;
    transition: transform 0.2s, background 0.2s;
    will-change: transform;
}

.notifications-card .notif-item:hover {
    transform: translateX(4px);
    background: rgba(245, 247, 253, 0.8);
}

.notifications-card .notif-item .icon {
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
}

.notifications-card .notif-item .text {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.notifications-card .notif-item .text .highlight {
    color: var(--primary);
}

.notifications-card .notif-item .time {
    font-size: 12px;
    color: var(--muted);
    display: block;
}

/* =============================================
   RESPONSIVE - TABLET (1200px)
   ============================================= */
@media (max-width: 1200px) {
    .header .header-inner {
        padding: 15px 30px;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   RESPONSIVE - SMALL TABLET (992px)
   ============================================= */
@media (max-width: 992px) {
    .header .header-nav {
        gap: 15px;
    }

    .header .nav-item span,
    .header .nav-item .chevron {
        display: none;
    }

    .header .action-btn span {
        display: none;
    }

    .dropdown-mega {
        width: 580px;
        left: 0;
        transform: translateX(-20%) translateY(10px);
    }

    .nav-dropdown:hover .dropdown-mega,
    .nav-dropdown.open .dropdown-mega {
        transform: translateX(-20%) translateY(0);
    }

    .dropdown-inner {
        flex-direction: column;
    }

    .dropdown-left {
        width: 100%;
    }

    .dropdown-right {
        width: auto;
        margin: 0 30px 30px;
    }

    .promo-cards {
        flex-direction: row;
    }

    .promo-card {
        flex: 1;
    }

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

    .chart-card .tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .chart-card .tabs .tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* =============================================
   MAP SECTION
   ============================================= */
.map-section {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.map-section .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    min-height: 80px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.map-section .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(120, 68, 228, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.map-section .icon-wrap .icon {
    color: var(--primary);
    font-size: 14px;
}

.map-section .title {
    font-size: 18px;
    font-weight: 600;
    color: #33353e;
    line-height: 20px;
}

.map-section .help-icon {
    color: #b0b5c3;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.map-section .map-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    padding: 24px;
}

.map-section .stats-panel {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(245, 247, 253, 0.5);
    border: 1px dashed rgba(70, 86, 129, 0.2);
    border-radius: 24px;
}

.map-section .stat-label {
    font-size: 15px;
    color: #7a7f99;
    margin-bottom: 8px;
}

.map-section .stat-value {
    font-size: 34px;
    font-weight: 600;
    color: #33353e;
    line-height: 1;
    margin-bottom: 24px;
}

.map-section .country-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-section .country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.map-section .country-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.map-section .country-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-section .flag {
    width: 26px;
    height: 26px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-section .country-name {
    font-size: 16px;
    font-weight: 600;
    color: #33353e;
}

.map-section .badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    height: 28px;
    background: rgba(0, 211, 67, 0.1);
    border: 1px dashed rgba(0, 211, 67, 0.5);
    border-radius: 37px;
}

.map-section .badge .num {
    font-size: 14px;
    font-weight: 600;
    color: #00d343;
}

.map-section .badge .fa-arrow-up {
    font-size: 10px;
    color: #00d343;
}

.map-section .map-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    min-height: 300px;
}

.map-section .map-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* =============================================
   LISTS ROW
   ============================================= */
.lists-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* =============================================
   LIST CARD COMPONENT
   ============================================= */
.list-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
}

.list-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    padding-right: 14px;
    min-height: 72px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.list-card .icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(120, 68, 228, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.list-card .icon-wrap .icon {
    color: var(--primary);
    font-size: 14px;
}

.list-card .title {
    font-size: 18px;
    font-weight: 600;
    color: #33353e;
    line-height: 20px;
}

.list-card .help-icon {
    color: #b0b5c3;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.list-card .btn-add {
    margin-left: auto;
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s;
    will-change: transform;
}

.list-card .btn-add:hover {
    background: #6835c7;
    transform: translateY(-2px);
}

.list-card .list-body {
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-card .list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(245, 247, 253, 0.5);
    border: 1px dashed rgba(70, 86, 129, 0.2);
    border-radius: 16px;
    transition: transform 0.2s, background 0.2s;
    will-change: transform;
}

.list-card .list-item:hover {
    transform: translateY(-2px);
    background: rgba(245, 247, 253, 0.8);
}

.list-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.list-card .user-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.list-card .username {
    font-size: 16px;
    font-weight: 600;
    color: #33353e;
    line-height: 20px;
}

.list-card .name {
    font-size: 14px;
    font-weight: 500;
    color: #7a7f99;
    line-height: 20px;
}

.list-card .btn-remove {
    padding: 10px;
    background: rgba(238, 0, 0, 0.1);
    color: #e00;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s;
    will-change: transform;
}

.list-card .btn-remove:hover {
    background: rgba(238, 0, 0, 0.2);
    transform: scale(1.05);
}

/* =============================================
   RESPONSIVE - MOBILE (768px)
   ============================================= */
@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .header .header-inner {
        padding: 20px 16px;
        min-height: 80px;
    }

    .header .header-logo img {
        height: 39px;
        width: auto;
    }

    .header .header-nav {
        display: none;
    }

    .header .action-btn:not(.icon-only) {
        display: none;
    }

    .header .action-btn.icon-only {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid rgba(120, 68, 228, 0.5);
        background: #fff;
    }

    .header .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid rgba(120, 68, 228, 0.5);
        background: #fff;
        color: var(--primary);
    }

    .dash-main {
        padding: 16px;
        gap: 16px;
    }

    .user-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .stat-cards {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .stat-cards::-webkit-scrollbar {
        height: 4px;
    }

    .stat-cards::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
    }

    .stat-card {
        min-width: 200px;
        flex-shrink: 0;
    }

    .chart-card .card-header {
        flex-wrap: wrap;
    }

    .chart-card .tabs {
        width: 100%;
        margin-top: 10px;
        margin-left: 0;
        justify-content: space-between;
    }

    .chart-card .tabs .tab-btn {
        flex: 1;
        text-align: center;
    }

    .map-section .map-content {
        grid-template-columns: 1fr;
    }

    .map-section .stat-value {
        font-size: 28px;
    }

    .map-section .map-image {
        min-height: 200px;
    }

    .lists-row {
        grid-template-columns: 1fr;
    }

    .list-card .card-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .list-card .btn-add {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .list-card .list-body {
        max-height: 280px;
    }
}

/* =============================================
   FOOTER COMPONENT
   ============================================= */
.footer {
    max-width: 1400px;
    margin: 0 auto 30px;
    padding: 0 40px;
}

.footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 40px;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 80px;
}

.footer .footer-logo {
    flex-shrink: 0;
}

.footer .footer-logo img {
    height: 35px;
    display: block;
}

.footer .footer-copy {
    font-size: 13px;
    font-weight: 500;
    color: #252631;
    white-space: nowrap;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 0 16px;
        margin-bottom: 16px;
    }

    .footer .footer-inner {
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
        border-radius: 40px;
        text-align: center;
    }
}

/* =============================================
   LOGIN PAGE COMPONENT
   ============================================= */
#login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f1f9 0%, #e8e9f3 100%);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

#login-page .decor-circle {
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--color);
    pointer-events: none;
}

#login-page .login-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

#login-page .btn-back {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid rgba(120, 68, 228, 0.3);
    border-radius: 14px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

#login-page .btn-back:hover {
    background: var(--primary);
    color: #fff;
}

#login-page article {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08);
}

#login-page .form-side {
    flex: 1;
    padding: 60px 50px;
}

#login-page .form-side h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

#login-page .form-side p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

#login-page .divider {
    margin-bottom: 24px;
}

#login-page .divider span {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

#login-page .divider em {
    font-style: normal;
    color: var(--muted);
    font-size: 14px;
}

#login-page #loginForm label {
    padding: 16px 20px;
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: border-color 0.2s;
}

#login-page #loginForm label:focus-within {
    border-color: var(--primary);
}

#login-page #loginForm label i {
    font-size: 20px;
    color: var(--muted);
    width: 24px;
}

#login-page #loginForm label b {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

#login-page #loginForm label input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

#login-page #loginForm label input::placeholder {
    color: var(--muted);
}

#login-page #loginForm small {
    color: #22c55e;
    font-size: 13px;
}

#login-page #loginForm small i {
    font-size: 14px;
}

#login-page #loginForm button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

#login-page #loginForm button[type="submit"]:hover {
    background: #6835c7;
    transform: translateY(-2px);
}

#login-page .image-side {
    flex: 1;
    position: relative;
    min-height: 500px;
}

#login-page .image-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#login-page .image-side aside {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

#login-page .image-side h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

#login-page .testimonial strong {
    display: block;
    font-weight: 600;
    color: var(--text);
}

#login-page .testimonial span {
    color: var(--muted);
    font-size: 14px;
}

#login-page .image-side nav {
    margin-top: 20px;
}

#login-page .pagination em {
    font-style: normal;
    font-weight: 700;
    color: var(--primary);
}

#login-page .pagination span {
    color: var(--muted);
    margin: 0 4px;
}

#login-page .arrows button {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

#login-page .arrows button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

@media (max-width: 992px) {
    #login-page {
        padding: 20px;
    }

    #login-page article {
        flex-direction: column;
    }

    #login-page .form-side {
        padding: 40px 30px;
    }

    #login-page .image-side {
        min-height: 300px;
    }
}

/* =============================================
   PRICING SECTION
   ============================================= */
#pricing {
    padding: 60px 0;
}

#pricing .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#pricing .pricing-title {
    text-align: center;
    margin-bottom: 40px;
}

#pricing .pricing-title h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

#pricing .pricing-title h1 span {
    color: var(--primary);
}

#pricing .pricing-title p {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

#pricing .billing-toggle {
    display: inline-flex;
    background: #f5f7fd;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 40px;
}

#pricing .billing-toggle button {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

#pricing .billing-toggle button.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#pricing .pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

#pricing .pricing-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

#pricing .pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

#pricing .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

#pricing .card-header h3 {
    font-size: 20px;
    font-weight: 400;
    color: var(--card-color);
}

#pricing .card-header h3 strong {
    font-weight: 700;
}

#pricing .card-pricing {
    margin-bottom: 20px;
}

#pricing .card-pricing .price {
    font-size: 42px;
    font-weight: 700;
    color: var(--card-color);
    display: block;
}

#pricing .card-pricing .price small {
    font-size: 24px;
}

#pricing .card-pricing .badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(120, 68, 228, 0.1);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin-left: 10px;
}

#pricing .card-pricing .old-price {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}

#pricing .card-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

#pricing .card-btn {
    width: 100%;
    padding: 14px;
    background: var(--card-gradient);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    margin-bottom: 24px;
}

#pricing .card-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    opacity: 0.9;
}

#pricing .card-btn:disabled {
    background: #e5e7eb;
    color: var(--muted);
    cursor: not-allowed;
}

#pricing .card-features h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

#pricing .card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#pricing .card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid #f0f1f3;
}

#pricing .card-features li:last-child {
    border-bottom: none;
}

#pricing .card-features li i {
    color: var(--card-color);
    font-size: 12px;
}

#pricing .view-all {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 992px) {
    #pricing .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* =============================================
   ADD USER MODAL COMPONENT
   ============================================= */
#addUserModal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    max-width: 630px;
    margin: 0.5rem auto;
}

#addUserModal .add-user-card {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 30px;
    overflow: hidden;
}

#addUserModal .modal-header {
    position: relative;
    display: block;
    padding: 40px 40px 0;
    border: none;
    text-align: center;
}

#addUserModal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #7844e4;
    margin: 0;
}

#addUserModal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: #f6f7fb url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666f94'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/12px auto no-repeat;
    border: none;
    border-radius: 8px;
    opacity: 1;
}

#addUserModal .btn-close:hover {
    background-color: #eaeaed;
    opacity: 1;
}

#addUserModal .modal-body {
    padding: 16px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#addUserModal .add-user-description {
    font-size: 16px;
    font-weight: 500;
    color: #7a7f99;
    line-height: 24px;
    margin: 0;
    text-align: center;
}

#addUserModal .input-group-custom {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 66px;
    padding: 15px 20px;
    background: #f9fafb;
    border: 2px solid rgba(234, 234, 237, 0.5);
    border-radius: 15px;
}

#addUserModal .input-group-custom .input-icon {
    font-size: 22px;
    color: #666f94;
}

#addUserModal .input-group-custom .input-divider {
    width: 1px;
    height: 20px;
    background: rgba(102, 111, 148, 0.1);
}

#addUserModal .input-group-custom .input-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #33353e;
    outline: none;
}

#addUserModal .input-group-custom .input-field::placeholder {
    color: #666f94;
    opacity: 0.8;
}

#addUserModal .add-user-submit {
    width: 100%;
    height: 50px;
    background: #7844e4;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

#addUserModal .add-user-submit:hover {
    background: #6835c7;
}

@media (max-width: 768px) {
    #addUserModal .modal-dialog {
        min-height: calc(100% - 2rem);
        margin: 1rem;
    }

    #addUserModal .add-user-card {
        border-radius: 24px;
    }

    #addUserModal .modal-header {
        padding: 24px 24px 0;
    }

    #addUserModal .modal-title {
        font-size: 20px;
    }

    #addUserModal .add-user-description {
        font-size: 16px;
    }

    #addUserModal .modal-body {
        padding: 16px 24px 24px;
    }

    #addUserModal .add-user-submit {
        height: 48px;
    }

    #addUserModal .input-group-custom {
        height: 56px;
        padding: 12px 16px;
    }
}