/* Modern Color Scheme */
:root {
    /* Primary Colors - FF6B00 */
    --primary-50: #fff0e6;
    --primary-100: #ffe1cc;
    --primary-200: #ffc399;
    --primary-300: #ffa566;
    --primary-400: #ff8733;
    --primary-500: #ff6b00;
    --primary-600: #cc5500;
    --primary-700: #994000;
    --primary-800: #662b00;
    --primary-900: #331500;

    /* Secondary Colors - FFB000 */
    --success-50: #fff8e6;
    --success-500: #ffb000;
    --success-600: #cc8c00;

    /* Danger Colors */
    --danger-50: #fef2f2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;

    /* Info Colors */
    --info-50: #fff8e6;
    --info-500: #ffb000;
    --info-600: #cc8c00;

    /* Neutral Colors - Based on Body #000000 and Gray #F5F5F5 */
    --neutral-50: #f5f5f5;
    --neutral-100: #e6e6e6;
    --neutral-200: #cccccc;
    --neutral-300: #b3b3b3;
    --neutral-400: #999999;
    --neutral-500: #808080;
    --neutral-600: #666666;
    --neutral-700: #4d4d4d;
    --neutral-800: #333333;
    --neutral-900: #000000;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset and Base Styles */
.pagevico-dashboard {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#wpcontent, #wpfooter{
    margin-left: 142px !important;
}
/* Header Styles */
.pagevico-header {
    background: var(--neutral-50);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--neutral-200);
    padding: 1.5rem 2rem;
    z-index: 100;
}

.pagevico-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.pagevico-branding h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--neutral-800);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagevico-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Navigation Styles */
.pagevico-nav {
    background: var(--neutral-50);
    width: 240px;
    position: fixed;
    top: calc(32px + 90px);
    left: 160px;
    bottom: 0;
    box-shadow: var(--shadow);
    z-index: 99;
}

.pagevico-nav ul {
    margin: 0;
    padding: 1rem 0;
    list-style: none;
}

.pagevico-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--neutral-600);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 8px;
    margin: 0 1rem;
}

.pagevico-nav li.active a {
    background: var(--primary-50);
    color: var(--primary-600);
}

.pagevico-nav li a:hover {
    background: var(--neutral-100);
    color: var(--primary-500);
}

/* Main Content Area */
.pagevico-main {
    padding: 0 1rem;
    width: 100%;
}

/* Common Section Styles */
.pagevico-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    margin-bottom: 2rem;
}

.pagevico-section-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.pagevico-section-header h2 {
    margin: 0;
    color: var(--neutral-800);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagevico-section-header h2 i {
    color: var(--primary-500);
    font-size: 1.25rem;
}

.pagevico-section-content {
    padding: 1.5rem;
}

/* Stats Grid Layout */
.pagevico-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.pagevico-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pagevico-stats-row.main-stats {
    margin-bottom: 0.5rem;
}

.pagevico-stat-card {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0f0f1;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
    border-radius: 10px !important;
    min-height: 56px !important;
    padding: 0.7rem 1rem !important;
    box-shadow: 0 2px 8px rgba(31,38,135,0.06);
}

.pagevico-stat-card::before {
    display: none !important;
}

.pagevico-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pagevico-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-right: 1rem;
    flex-shrink: 0;
    display: none !important;
}

.pagevico-stat-content {
    flex: 1;
    min-width: 0;
}

.pagevico-stat-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.pagevico-stat-content p {
    margin: 0;
    color: #646970;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagevico-stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #646970;
}

.pagevico-stat-trend .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #00a32a;
}

.pagevico-stat-trend .trend-value {
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.pagevico-stat-trend .trend-label {
    color: #646970;
}

/* Card Colors */
.pagevico-stat-card.primary {
    color: #0073aa;
}

.pagevico-stat-card.success {
    color: #00a32a;
}

.pagevico-stat-card.danger {
    color: #dc3232;
}

.pagevico-stat-card.info {
    color: #2271b1;
}

.pagevico-stat-card.warning {
    color: #dba617;
}

.pagevico-stat-card.secondary {
    color: #646970;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .pagevico-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 782px) {
    .pagevico-stats-row {
        grid-template-columns: 1fr;
    }
    
    .pagevico-stat-card {
        padding: 1rem;
    }
    
    .pagevico-stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .pagevico-stat-content h3 {
        font-size: 1.25rem;
    }
}

/* Chart Container */
.pagevico-chart-container {
    height: 400px;
    position: relative;
    width: 100%;
}

/* Table Styles */
.pagevico-table-container {
    overflow-x: auto;
}

.pagevico-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pagevico-table th {
    background: var(--neutral-100);
    padding: 1rem 1.5rem;
    color: var(--neutral-600);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--neutral-200);
}

.pagevico-table td {
    padding: 1rem 1.5rem;
    color: var(--neutral-700);
    border-bottom: 1px solid var(--neutral-200);
}

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

.pagevico-table tr:hover td {
    background: var(--neutral-100);
}

.pagevico-table td a {
    color: var(--neutral-700);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagevico-table td a:hover {
    color: var(--primary-500);
}

.pagevico-table td a i {
    color: var(--neutral-400);
}

.pagevico-views-badge {
    background: var(--primary-50);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Footer */
.pagevico-footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 20px;
    margin-top: 20px;
}

.pagevico-footer-content {
    max-width: 1600px;
    margin: 0 auto;
}

.pagevico-footer .dashicons-heart {
    color: #dc3545;
}

/* Buttons and Form Controls */
.pagevico-btn-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.pagevico-btn-primary:hover {
    background: #135e96;
}

.pagevico-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M5 6l5 5 5-5 2 1-7 7-7-7 2-1z" fill="%23555D66"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .pagevico-nav {
        width: 200px;
    }
    
    .pagevico-main,
    .pagevico-footer {
        margin-left: 200px;
    }
}

@media screen and (max-width: 782px) {
    .pagevico-header {
        left: 0;
        top: 46px;
    }
    
    .pagevico-nav {
        left: 0;
        top: calc(46px + 73px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .pagevico-nav.active {
        transform: translateX(0);
    }
    
    .pagevico-main,
    .pagevico-footer {
        margin-left: 0;
    }
}

/* Realtime counter animation */
#pagevico-realtime-count {
    transition: color 0.3s ease;
}

#pagevico-realtime-count.highlight {
    color: #dc3545;
    transform: scale(1.1);
}

/* Dashicons specific styling */
.pagevico-dashboard .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    vertical-align: middle;
}

/* Header icon */
.pagevico-branding .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

/* Navigation icons */
.pagevico-nav .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    margin-right: 10px;
}

/* Stats card icons */
.pagevico-stat-icon .dashicons {
    width: 32px;
    height: 32px;
    font-size: 32px;
    line-height: 64px;
}

/* Section header icons */
.pagevico-section-header .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
    margin-right: 8px;
}

/* Table icons */
.pagevico-table .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    margin-right: 8px;
}

/* Button icons */
.pagevico-btn-primary .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    margin-right: 5px;
    line-height: 1.4;
}

/* Footer icon */
.pagevico-footer .dashicons-heart {
    color: var(--danger-500);
    width: 16px;
    height: 16px;
    font-size: 16px;
    margin: 0 2px;
}

/* Stats Icons Centering */
.pagevico-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagevico-stat-icon .dashicons {
    transition: all 0.3s ease;
}

/* Hover effects for stat cards */
.pagevico-stat-card:hover .pagevico-stat-icon .dashicons {
    transform: scale(1.1);
}

/* Update animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pagevico-btn-primary:active .dashicons-update {
    animation: spin 1s linear infinite;
}

/* Browser Icons */
.browser-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.browser-icon.browser-chrome {
    background-image: url('../img/browsers/chrome.svg');
}

.browser-icon.browser-firefox {
    background-image: url('../img/browsers/firefox.svg');
}

.browser-icon.browser-safari {
    background-image: url('../img/browsers/safari.svg');
}

.browser-icon.browser-edge {
    background-image: url('../img/browsers/edge.svg');
}

.browser-icon.browser-opera {
    background-image: url('../img/browsers/opera.svg');
}

.browser-icon.browser-ie {
    background-image: url('../img/browsers/ie.svg');
}

.browser-icon.browser-globe {
    background-image: url('../img/browsers/globe.svg');
}
.pagevico-journey-timeline {
    position: relative;
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.pagevico-journey-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #e2e4e7;
    transform: translateX(-50%);
    z-index: 1;
}

.pagevico-journey-step {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 2;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagevico-journey-step.pagevico-journey-left {
    padding-right: 50%;
}

.pagevico-journey-step.pagevico-journey-right {
    padding-left: 50%;
}

.pagevico-journey-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 20px;
}

.pagevico-journey-content:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.pagevico-journey-meta {
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    background: #f0f0f1;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e2e4e7;
}

.pagevico-journey-time,
.pagevico-journey-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d2327;
    font-size: 13px;
}

.pagevico-journey-time .dashicons,
.pagevico-journey-duration .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #2271b1;
}

.pagevico-journey-details {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.pagevico-journey-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagevico-journey-icon .dashicons {
    font-size: 20px;
    color: #1d2327;
}

.pagevico-journey-start .pagevico-journey-icon {
    background: #00a32a;
    border-color: #00a32a;
}

.pagevico-journey-end .pagevico-journey-icon {
    background: #d63638;
    border-color: #d63638;
}

.pagevico-journey-start .pagevico-journey-icon .dashicons,
.pagevico-journey-end .pagevico-journey-icon .dashicons {
    color: #fff;
}

.pagevico-journey-info {
    flex-grow: 1;
}

.page-link {
    color: #1d2327;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-link:hover {
    color: #2271b1;
}

.page-url {
    color: #646970;
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
}

.referrer-label {
    color: #646970;
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.referrer-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.referrer-link:hover {
    color: #135e96;
}

/* Animation delays for each step */
.pagevico-journey-step:nth-child(1) { animation-delay: 0.1s; }
.pagevico-journey-step:nth-child(2) { animation-delay: 0.2s; }
.pagevico-journey-step:nth-child(3) { animation-delay: 0.3s; }
.pagevico-journey-step:nth-child(4) { animation-delay: 0.4s; }
.pagevico-journey-step:nth-child(5) { animation-delay: 0.5s; }

/* Responsive styles for mobile devices */
@media screen and (max-width: 768px) {
    .pagevico-journey-timeline {
        padding: 20px 0;
    }
    
    .pagevico-journey-timeline::before {
        left: 30px;
    }
    
    .pagevico-journey-step.pagevico-journey-left,
    .pagevico-journey-step.pagevico-journey-right {
        padding-left: 60px;
        padding-right: 0;
    }
    
    .pagevico-journey-content {
        margin: 0;
    }
    
    .pagevico-journey-meta {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .pagevico-journey-time,
    .pagevico-journey-duration {
        width: 100%;
    }
}

/* Small phone screens */
@media screen and (max-width: 480px) {
    .pagevico-journey-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagevico-journey-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 5px;
    }
    
    .pagevico-journey-icon .dashicons {
        font-size: 18px;
    }
    
    .page-link {
        flex-wrap: wrap;
    }
    
    .page-url {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-all;
    }
}

/* Pro Badge */
.pagevico-pro-badge {
    background-color: #ff5b5b;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.2;
}

/* World Map Pro Page */
.pagevico-section-content .list-group-item {
    padding: 10px 15px;
    border-color: #f0f0f1;
}

.pagevico-section-content .list-group-item .dashicons {
    font-size: 18px;
    margin-right: 10px;
}

/* Modern Visitor Analytics Section */
.pagevico-visitor-analytics-modern {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pagevico-visitor-cards-row {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pagevico-visitor-card-modern {
  flex: 1 1 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1.25rem 1rem;
  min-width: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pagevico-visitor-card-modern:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px) scale(1.02);
}
.pagevico-visitor-card-modern .icon {
  background: var(--neutral-100);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.pagevico-visitor-card-modern .icon .dashicons {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  color: #2271b1;
}
.pagevico-visitor-card-modern .main-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1d2327;
  margin-bottom: 0.25rem;
  text-align: center;
}
.pagevico-visitor-card-modern .big-number {
  font-size: 2rem;
  font-weight: 800;
  color: #ff6b00;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pagevico-visitor-card-modern .label {
  font-size: 0.95rem;
  color: #646970;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.pagevico-visitor-card-modern .sub-value {
  font-size: 0.9rem;
  color: #2271b1;
  font-weight: 600;
}

.pagevico-visitor-bars-row {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}
.pagevico-visitor-bar-group {
  flex: 1 1 0;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f0f0f1;
  padding: 1.25rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  min-width: 0;
}
.bar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1d2327;
  margin-bottom: 1rem;
}
.bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.bar-item:last-child {
  margin-bottom: 0;
}
.bar-label {
  flex: 1 1 0;
  font-size: 0.95rem;
  color: #646970;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-outer {
  flex: 3 1 0;
  background: #f0f0f1;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
  margin-right: 0.5rem;
}
.bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(.4,2,.6,1);
}
.bar-inner.country {
  background: #2271b1;
}
.bar-inner.device {
  background: #00a32a;
}
.bar-inner.browser {
  background: #d63638;
}
.bar-value {
  min-width: 36px;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d2327;
}

/* Responsive for Visitor Analytics Modern */
@media (max-width: 1100px) {
  .pagevico-visitor-cards-row,
  .pagevico-visitor-bars-row {
    flex-direction: column;
    gap: 1.25rem;
  }
  .pagevico-visitor-card-modern,
  .pagevico-visitor-bar-group {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 700px) {
  .pagevico-visitor-analytics-modern {
    gap: 1.25rem;
  }
  .pagevico-section-content {
    padding: 1rem;
  }
  .pagevico-visitor-card-modern {
    padding: 1rem 0.5rem;
  }
  .pagevico-visitor-bar-group {
    padding: 1rem 0.5rem;
  }
  .bar-title {
    font-size: 0.95rem;
  }
  .bar-label, .bar-value {
    font-size: 0.85rem;
  }
}

/* Content & Traffic Insights Section */
.pagevico-insights-grid {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.pagevico-top-pages-modern,
.pagevico-insights-right {
  flex: 1 1 0;
  min-width: 0;
}

.insight-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f1;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.insight-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.insight-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f0f0f1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d2327;
}

.insight-card-header .dashicons {
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  color: #2271b1;
}

.insight-card-content {
  padding: 1.25rem 1.5rem;
}

/* Traffic Sources List */
.traffic-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.traffic-sources-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.traffic-sources-list li:last-child {
  margin-bottom: 0;
}

.source-label {
  flex: 1 1 0;
  font-size: 0.95rem;
  color: #646970;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-bar-outer {
  flex: 3 1 0;
  background: #f0f0f1;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
  margin-right: 0.5rem;
}

.source-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(.4,2,.6,1);
  display: block;
}

/* Traffic Source Colors */
.traffic-sources-list .source-bar-inner[data-source="Direct"] {
    background-color: #ff6b00 !important;
}

.traffic-sources-list .source-bar-inner[data-source="Search"] {
    background-color: #ffb000 !important;
}

.traffic-sources-list .source-bar-inner[data-source="Social"] {
    background-color: #ef4444 !important;
}

.traffic-sources-list .source-bar-inner[data-source="Referral"] {
    background-color: #ffb000 !important;
}

.traffic-sources-list .source-bar-inner[data-source="Other"] {
    background-color: #808080 !important;
}

.source-value {
  min-width: 36px;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d2327;
}

/* Responsive for Content & Traffic Insights */
@media (max-width: 1100px) {
  .pagevico-insights-grid {
    flex-direction: column;
    gap: 1.25rem;
  }
  .pagevico-top-pages-modern,
  .pagevico-insights-right {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .insight-card-header {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  .insight-card-content {
    padding: 1rem 1.25rem;
  }
  .source-label, .source-value {
    font-size: 0.85rem;
  }
}

/* User Engagement Section */
.pagevico-engagement-grid {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.engagement-overview,
.user-behavior {
    flex: 1 1 0;
    min-width: 0;
}

.engagement-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--neutral-50);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.metric-item:hover {
    background: var(--neutral-100);
    transform: translateY(-1px);
}

.metric-label {
    font-size: 0.95rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.behavior-metrics {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.behavior-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.behavior-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.behavior-label {
    font-size: 0.95rem;
    color: var(--neutral-600);
    font-weight: 500;
}

.behavior-value {
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.behavior-bar {
    height: 8px;
    background: var(--neutral-100);
    border-radius: 4px;
    overflow: hidden;
}

.behavior-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(.4,2,.6,1);
}

.bar-inner.country,
.bar-inner.device,
.bar-inner.browser {
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
}

.bar-value {
    min-width: 36px;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Responsive for User Engagement */
@media (max-width: 1100px) {
    .pagevico-engagement-grid {
        flex-direction: column;
        gap: 1.25rem;
    }
    .engagement-overview,
    .user-behavior {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .metric-item {
        padding: 0.5rem;
    }
    .metric-label,
    .behavior-label {
        font-size: 0.85rem;
    }
    .metric-value,
    .behavior-value {
        font-size: 0.95rem;
    }
}

/* User Flow Styles */
.user-flow-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--neutral-50);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.flow-item:hover {
    background: var(--neutral-100);
    transform: translateX(2px);
}

.flow-page {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.flow-page .dashicons {
    color: var(--primary-500);
    flex-shrink: 0;
}

.page-name {
    font-size: 0.9rem;
    color: var(--neutral-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flow-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem;
    flex-shrink: 0;
}

.flow-arrow .dashicons {
    color: var(--neutral-400);
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.flow-count {
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Responsive adjustments for User Flow */
@media (max-width: 700px) {
    .flow-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .flow-arrow {
        padding: 0.25rem 0;
        width: 100%;
        justify-content: center;
    }
    
    .page-name {
        font-size: 0.85rem;
    }
}



.pagevico-stat-card.glassmorph:hover {
    box-shadow: 0 12px 36px 0 rgba(31,38,135,0.16);
    transform: translateY(-2px) scale(1.02);
}

.stat-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 !important;
    min-height: 40px !important;
}

.stat-icon-bg {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    box-shadow: 0 2px 8px rgba(80,112,255,0.08);
    display: none !important;
}

.stat-icon-bg .dashicons {
    font-size: 1.7rem;
    color: #3b82f6;
}

.stat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.2rem;
    letter-spacing: -0.2px;
}

.stat-label {
    font-size: 0.85rem !important;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.stat-trend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 1.2rem;
}

.trend-value {
    font-size: 0.75rem !important;
    font-weight: 600;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.trend-value.up:before {
    content: '▲';
    color: #22c55e;
    font-size: 0.9em;
    margin-right: 2px;
}

.trend-value.down {
    color: #ef4444;
}
.trend-value.down:before {
    content: '▼';
    color: #ef4444;
    font-size: 0.9em;
    margin-right: 2px;
}

.trend-label {
    font-size: 0.75rem !important;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.1rem;
    letter-spacing: 0.2px;
}

/* For widgets with long text (like referrer/page title), reduce font and allow wrapping */
.page-name, .source-label, .stat-label, .stat-value {
    font-size: 0.85rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Apply the same gradient and text color as .big-number to all stat numbers */
.stat-value, .main-value, .big-number {
    font-size: 1.45rem !important;
    font-weight: 700;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Keep labels as they are (no color change) */
.stat-label, .label {
    color: #64748b !important;
    font-size: 0.95rem !important;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* --- Optimized and deduplicated CSS for stat widgets --- */
.pagevico-stat-card, .glassmorph {
    background: rgba(255,255,255,0.65);
    border-radius: 5px !important;
    box-shadow: 0 2px 8px rgba(31,38,135,0.06);
    padding: 0.7rem 1rem !important;
    min-height: 56px !important;
    margin-bottom: 0 !important;
    border: 1px solid rgba(200,210,255,0.12);
    display: flex;
    align-items: center;
}

.stat-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 !important;
    min-height: 40px !important;
}

.stat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value, .main-value, .big-number {
    font-size: 1.45rem !important;
    font-weight: 700;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, #ff6b00 0%, #ffb000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.stat-label, .label {
    color: #64748b !important;
    font-size: 0.95rem !important;
    font-weight: 500;
    letter-spacing: 0.1px;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.stat-trend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 1.2rem;
}

.trend-value {
    font-size: 0.75rem !important;
    font-weight: 600;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.trend-label {
    font-size: 0.75rem !important;
    color: #64748b !important;
    font-weight: 500;
    margin-top: 0.1rem;
    letter-spacing: 0.2px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .pagevico-stat-card, .glassmorph {
        padding: 0.5rem 0.5rem !important;
    }
    .stat-value, .main-value, .big-number {
        font-size: 1.1rem !important;
    }
    .stat-label, .label {
        font-size: 0.85rem !important;
    }
}

/* Freemius Account Page Customization */
.pagevico-dashboard-account {
    background-color: var(--neutral-50);
    padding: 2rem;
}

.pagevico-dashboard-account .fs-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    margin-bottom: 2rem;
    padding: 1.5rem;
}

/* Navigation Tabs */
.pagevico-dashboard-account .nav-tab-wrapper {
    border-bottom: 1px solid var(--neutral-200);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}

.pagevico-dashboard-account .nav-tab {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-bottom: none;
    color: var(--neutral-600);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    margin-left: 0.5rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.pagevico-dashboard-account .nav-tab:hover {
    background: var(--neutral-100);
    color: var(--primary-500);
}

.pagevico-dashboard-account .nav-tab-active {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
    color: var(--primary-500);
    margin-bottom: -1px;
}

/* Postbox Styles */
.pagevico-dashboard-account .postbox {
    background: #ffffff;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.pagevico-dashboard-account .postbox h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-800);
    padding: 1.25rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pagevico-dashboard-account .postbox h3 .dashicons {
    color: var(--primary-500);
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Header Actions */
.pagevico-dashboard-account .fs-header-actions {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.pagevico-dashboard-account .fs-header-actions ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagevico-dashboard-account .fs-header-actions li {
    display: flex;
    align-items: center;
}

.pagevico-dashboard-account .fs-button-inline {
    color: var(--danger-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagevico-dashboard-account .fs-button-inline:hover {
    color: var(--danger-600);
}

.pagevico-dashboard-account .fs-button-inline .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* Account Details Table */
.pagevico-dashboard-account .fs-key-value-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pagevico-dashboard-account .fs-key-value-table tr {
    border-bottom: 1px solid var(--neutral-200);
}

.pagevico-dashboard-account .fs-key-value-table tr:last-child {
    border-bottom: none;
}

.pagevico-dashboard-account .fs-key-value-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

.pagevico-dashboard-account .fs-key-value-table td:first-child {
    width: 120px;
    color: var(--neutral-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.pagevico-dashboard-account .fs-key-value-table code {
    background: var(--neutral-50);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--neutral-800);
    font-family: monospace;
}

/* Tags and Labels */
.pagevico-dashboard-account .fs-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.75rem;
}

.pagevico-dashboard-account .fs-tag.fs-warn {
    background: var(--danger-50);
    color: var(--danger-600);
}

/* Buttons */
.pagevico-dashboard-account .button {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagevico-dashboard-account .button:hover {
    background: var(--neutral-200);
    color: var(--neutral-800);
}

.pagevico-dashboard-account .button-primary {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #ffffff;
}

.pagevico-dashboard-account .button-primary:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

.pagevico-dashboard-account .button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Modal Styles */
.pagevico-dashboard-account .fs-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.pagevico-dashboard-account .fs-modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    margin: 1.5rem;
}

.pagevico-dashboard-account .fs-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.pagevico-dashboard-account .fs-modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-800);
}

.pagevico-dashboard-account .fs-modal-body {
    padding: 1.5rem;
}

.pagevico-dashboard-account .fs-modal-body p {
    margin: 0 0 1rem 0;
    color: var(--neutral-700);
    font-size: 0.875rem;
    line-height: 1.5;
}

.pagevico-dashboard-account .fs-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .pagevico-dashboard-account {
        padding: 1rem;
    }

    .pagevico-dashboard-account .fs-key-value-table td {
        padding: 0.75rem 1rem;
    }

    .pagevico-dashboard-account .button-group {
        flex-direction: column;
    }

    .pagevico-dashboard-account .button {
        width: 100%;
    }

    .pagevico-dashboard-account .fs-modal-dialog {
        margin: 1rem;
    }
}