.shop-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ============================================================================
   DASHBOARD CHARTS - PROFESSIONAL PIE CHARTS
   ============================================================================ */

/* Recent Orders Mini Donut Chart */
.recent-orders-summary {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.mini-donut-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.mini-donut-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-segment {
    fill: none;
    stroke-width: 18;
    transition: all 0.6s ease;
}

.mini-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mini-donut-total {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.mini-donut-label {
    font-size: 11px;
    color: #666;
}

.recent-orders-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.mini-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.mini-stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mini-stat-dot.status-pending { background: #ffc107; }
.mini-stat-dot.status-payment_initiated { background: #17a2b8; }
.mini-stat-dot.status-payment_confirmed { background: #0dcaf0; }
.mini-stat-dot.status-processing { background: #007bff; }
.mini-stat-dot.status-completed { background: #28a745; }
.mini-stat-dot.status-failed { background: #dc3545; }
.mini-stat-dot.status-cancelled { background: #6c757d; }

.mini-stat-label {
    flex: 1;
    color: #666;
    font-weight: 500;
}

.mini-stat-value {
    font-weight: 700;
    color: #333;
}

.recent-orders-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Order Status Distribution Pie Chart */
.status-pie-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 20px auto;
}

.status-pie-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.status-pie-segment {
    fill: none;
    stroke-width: 20;
    transition: all 0.6s ease;
    cursor: pointer;
}

.status-pie-segment:hover {
    stroke-width: 22;
    filter: brightness(1.1);
}

.status-pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.status-pie-total {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
}

.status-pie-label {
    font-size: 12px;
    color: #666;
}

.status-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.status-legend-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.status-legend-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.legend-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.legend-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legend-count {
    font-size: 12px;
    color: #666;
}

.legend-percent {
    font-size: 14px;
    font-weight: 700;
    color: #1a73e8;
}

/* Payment Methods Dashboard Chart */
.dashboard-pie-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.dashboard-pie-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pie-segment-dashboard {
    fill: none;
    stroke-width: 20;
    transition: all 0.6s ease;
}

.pie-segment-dashboard.pie-mpesa-dash {
    stroke: #1a73e8;
}

.pie-segment-dashboard.pie-wallet-dash {
    stroke: #34a853;
}

.dashboard-pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.dashboard-pie-total {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.dashboard-pie-label {
    font-size: 11px;
    color: #666;
}

.dashboard-payment-legend {
    margin-top: 20px;
}

.dashboard-legend-item {
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 10px;
}

.dashboard-legend-item:last-child {
    margin-bottom: 0;
}

.dashboard-legend-item .legend-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dashboard-legend-item .legend-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legend-count {
    font-size: 13px;
    color: #666;
}

/* ============================================================================
   TOKEN MANAGEMENT
   ============================================================================ */

.token-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.token-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.token-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.token-status-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.token-status-card h4 {
    margin-top: 0;
    color: #1a73e8;
    font-size: 16px;
    margin-bottom: 10px;
}

.token-status-card p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.token-section .form-group {
    margin-bottom: 15px;
}

.token-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.token-section input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.success-message {
    color: #28a745;
    background: #d4edda;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* ============================================================================/* ============================================================================
   MABIZNAHUB ADMIN PANEL - COMPLETE STYLES
   ============================================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* ============================================================================
   LOADING & LOGIN SCREENS
   ============================================================================ */

.loading-screen, .login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-screen {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #1a73e8;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
}

#loginBtn {
    width: 100%;
    padding: 14px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#loginBtn:hover {
    background: #1557b0;
}

#loginBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* ============================================================================
   HEADER
   ============================================================================ */

#mainHeader {
    background: #1a73e8;
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

#mainHeader h1 {
    font-size: 1.5em;
    margin: 0;
    flex: 1;
    text-align: center;
}

.hamburger-menu {
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

#sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 10000;
    padding-top: 60px;
}

#sidebar.open {
    left: 0;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar ul li {
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

#sidebar ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 18px 25px;
    transition: all 0.2s;
    font-size: 15px;
}

#sidebar ul li a:hover {
    background: #f8f9fa;
    color: #1a73e8;
    padding-left: 30px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8em;
    cursor: pointer;
    color: #1a73e8;
    background: none;
    border: none;
    padding: 5px 10px;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 0.7;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

#mainContent {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-section h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    font-size: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* ============================================================================
   STATS GRID (Dashboard)
   ============================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 12px;
}

.stat-info h3 {
    font-size: 28px;
    color: #1a73e8;
    margin: 0;
}

.stat-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* ============================================================================
   DASHBOARD CHARTS
   ============================================================================ */

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.data-list {
    max-height: 400px;
    overflow-y: auto;
}

.order-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-info strong {
    color: #1a73e8;
    font-size: 14px;
}

.shop-code {
    font-size: 13px;
    color: #666;
}

.order-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.amount {
    font-weight: 600;
    color: #333;
}

.status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-payment_initiated {
    background: #cce5ff;
    color: #004085;
}

.status-payment_confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-processing {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #e2e3e5;
    color: #383d41;
}

.status-suspended {
    background: #f8d7da;
    color: #721c24;
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-bar-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.status-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.status-bar-fill.status-pending { background: #ffc107; }
.status-bar-fill.status-payment_initiated { background: #17a2b8; }
.status-bar-fill.status-processing { background: #007bff; }
.status-bar-fill.status-completed { background: #28a745; }
.status-bar-fill.status-failed { background: #dc3545; }

/* ============================================================================
   FILTERS
   ============================================================================ */

.filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filters input:focus,
.filters select:focus {
    outline: none;
    border-color: #1a73e8;
}

/* ============================================================================
   DATA TABLES
   ============================================================================ */

.data-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f8f9fa;
}

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

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-primary, .btn-secondary, .btn-action {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-action {
    background: #e0e0e0;
    color: #333;
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 5px;
}

.btn-action:hover {
    background: #d0d0d0;
}

.btn-ok {
    background: #1a73e8;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #e3f2fd;
    color: #1976d2;
}

/* ============================================================================
   TABS
   ============================================================================ */

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.tab.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.tab:hover {
    border-color: #1a73e8;
}

/* ============================================================================
   TRANSACTION SUMMARY
   ============================================================================ */

.transaction-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.summary-item {
    text-align: center;
}

.summary-item span {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.summary-item strong {
    font-size: 20px;
    color: #1a73e8;
}

/* ============================================================================
   ANALYTICS
   ============================================================================ */

.analytics-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.analytics-filters select {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analytics-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.analytics-metric {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.analytics-metric:last-child {
    border-bottom: none;
}

.analytics-metric span {
    color: #666;
    font-size: 14px;
}

.analytics-metric strong {
    color: #1a73e8;
    font-size: 16px;
}

/* ============================================================================
   ANALYTICS CHARTS
   ============================================================================ */

/* Revenue Bar Chart */
.revenue-bar-chart {
    margin-top: 20px;
}

.bar-chart-item {
    margin-bottom: 15px;
}

.bar-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.bar-wrapper {
    background: #f0f0f0;
    border-radius: 8px;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    transition: width 0.6s ease;
    position: relative;
}

.bar-fill.bar-total {
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
}

.bar-fill.bar-mpesa {
    background: linear-gradient(90deg, #0d47a1 0%, #1976d2 100%);
}

.bar-fill.bar-wallet {
    background: linear-gradient(90deg, #1b5e20 0%, #388e3c 100%);
}

.bar-value {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Pie Chart */
.pie-chart-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.pie-chart {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pie-segment {
    fill: none;
    stroke-width: 20;
    transition: all 0.6s ease;
}

.pie-segment.pie-mpesa {
    stroke: #1a73e8;
}

.pie-segment.pie-wallet {
    stroke: #34a853;
}

.pie-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pie-total {
    font-size: 18px;
    font-weight: 700;
    color: #1a73e8;
}

.pie-label {
    font-size: 12px;
    color: #666;
}

.payment-legend {
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.legend-item:last-child {
    border-bottom: none;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-label {
    flex: 1;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.legend-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Progress Ring (Success Rate) */
.progress-ring-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 20px auto;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 12;
}

.progress-ring-fill {
    fill: none;
    stroke: #28a745;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percent {
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
}

.progress-label {
    font-size: 14px;
    color: #666;
}

/* Top Shops List */
.top-shops-list {
    margin-top: 15px;
}

.top-shop-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.top-shop-item:last-child {
    border-bottom: none;
}

.shop-rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.shop-info {
    flex: 1;
}

.shop-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.shop-code {
    font-size: 12px;
    color: #999;
}

.shop-stats {
    text-align: right;
}

.stat-value {
    font-weight: 600;
    color: #1a73e8;
    font-size: 14px;
}

.stat-label {
    font-size: 11px;
    color: #999;
}

.shop-bar-wrapper {
    grid-column: 1 / -1;
    background: #f0f0f0;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.shop-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ============================================================================
   SETTINGS
   ============================================================================ */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.settings-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.settings-card form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.settings-card label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.settings-card input,
.settings-card select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.settings-card input:focus,
.settings-card select:focus {
    outline: none;
    border-color: #1a73e8;
}

/* ============================================================================
   MODALS
   ============================================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: #1a73e8;
    font-size: 22px;
    margin: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.success-icon {
    background: #28a745;
    color: white;
}

.error-icon {
    background: #dc3545;
    color: white;
}

.result-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.result-message {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ============================================================================
   PWA INSTALL BUTTON
   ============================================================================ */

.pwa-install-button,
#install-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    font-size: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    transition: transform 0.2s !important;
}

.pwa-install-button:hover,
#install-btn:hover {
    transform: scale(1.1) !important;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters input,
    .filters select {
        min-width: 100%;
    }
    
    .data-table {
        overflow-x: auto;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #mainHeader h1 {
        font-size: 1.2em;
    }
}

/* ============================================================================
   CUSTOM SCROLLBAR
   ============================================================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1a73e8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1557b0;
}
