/* -------------------------------------------------------------
 * VOLTNET PREMIUM DASHBOARD DESIGN SYSTEM (Vanilla CSS)
 * Dark Mode, Glassmorphism & Glowing Accents
 * ------------------------------------------------------------- */

/* Color and Layout Variables */
:root {
    --bg-base: #060813;
    --bg-main-grad: linear-gradient(135deg, #070913 0%, #030408 100%);
    --bg-panel: rgba(22, 28, 45, 0.45);
    --bg-panel-hover: rgba(26, 33, 53, 0.6);
    --border-glass: rgba(255, 255, 255, 0.055);
    --border-glass-light: rgba(255, 255, 255, 0.1);
    
    /* Brand Accents */
    --accent-primary: #8a2be2; /* Electric Purple */
    --accent-secondary: #00f2fe; /* Cyber Cyan */
    --accent-grad: linear-gradient(90deg, #8a2be2 0%, #00f2fe 100%);
    
    /* Semantic Colors */
    --color-ac: #00f2fe;
    --color-dc: #d500f9;
    --color-success: #00e676;
    --color-danger: #ff1744;
    --color-warning: #ff9100;
    --color-active: #2979ff;
    
    /* Glow Effects */
    --glow-primary: 0 0 20px rgba(138, 43, 226, 0.3);
    --glow-secondary: 0 0 20px rgba(0, 242, 254, 0.3);
    --glow-green: 0 0 20px rgba(0, 230, 118, 0.25);
    
    /* Text Palette */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Fonts & Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background: var(--bg-base);
    background-image: var(--bg-main-grad);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layout Scaffold */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Layout & Styling */
.sidebar {
    width: 260px;
    background: rgba(10, 12, 24, 0.85);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    position: fixed;
    height: 100vh;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 18px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--accent-grad);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}

.logo-icon {
    width: 22px;
    height: 22px;
    color: #fff;
}

.brand-text h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Brand Title Wrap & Cyber Neon PRO Badge */
.brand-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-pro-badge {
    background: linear-gradient(135deg, #8a2be2 0%, #00f2fe 100%);
    color: #040914;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4), 0 0 4px rgba(138, 43, 226, 0.3);
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    user-select: none;
    flex-shrink: 0;
    transform: translateY(-1px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-pro-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.6), 0 0 8px rgba(138, 43, 226, 0.5);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-brand .brand-pro-badge {
    font-size: 0.58rem;
    padding: 1px 5px;
}

/* Sidebar Navigation Items */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

/* Custom scrollbar for sidebar menu */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-menu li a i {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.sidebar-menu li:hover a {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-menu li:hover a i {
    transform: translateX(2px);
}

.sidebar-menu li.active a {
    color: #fff;
    background: var(--accent-grad);
    box-shadow: var(--glow-primary);
}

.sidebar-menu li.active a i {
    color: #fff;
}

/* Sidebar Footer & Status Badge */
.sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    margin-top: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-badge.online .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
    display: inline-block;
}

.app-version {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding-left: 4px;
}

/* Main Content & Section Transitions */
.main-content {
    margin-left: 260px;
    flex-grow: 1;
    padding: 40px;
    min-height: 100vh;
}

.content-section {
    display: none;
    position: relative;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.content-section.active {
    display: block;
}

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

/* Main Page Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

#page-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.date-badge i {
    width: 16px;
    height: 16px;
    color: var(--accent-secondary);
}

.date-badge select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    padding-right: 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.date-badge select option {
    background: #0f172a;
    color: #fff;
}

/* Mobile Header and Sidebar Drawer Styles */
.mobile-header {
    display: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 4, 9, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Premium Panel Style (Glassmorphism) */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(15px);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-title-group i {
    color: var(--accent-secondary);
    width: 20px;
    height: 20px;
}

.panel-title-group h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

/* KPI Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper i {
    width: 24px;
    height: 24px;
}

.ac-color {
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-ac);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.dc-color {
    background: rgba(213, 0, 249, 0.1);
    color: var(--color-dc);
    border: 1px solid rgba(213, 0, 249, 0.2);
}

.cheapest-color {
    background: rgba(0, 230, 118, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.active-color {
    background: rgba(41, 121, 255, 0.1);
    color: var(--color-active);
    border: 1px solid rgba(41, 121, 255, 0.2);
}

.stat-details h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-value .currency {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Glowing Highlight Cards */
.highlight-card.green-glow {
    position: relative;
    overflow: hidden;
}

.highlight-card.green-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
}

/* Charts Grid */
.dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.col-span-2 {
    grid-column: span 2;
}

.chart-wrapper {
    height: 320px;
    position: relative;
}

/* Distribution / Summary Panel styling */
.distribution-panel {
    display: flex;
    flex-direction: column;
}

.distribution-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.dist-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dist-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.dist-val-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: 10px;
}

.dist-brand-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.dist-price-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.dist-price-tag.label-ac {
    background: rgba(0, 242, 254, 0.15);
    color: var(--color-ac);
}

.dist-price-tag.label-dc {
    background: rgba(213, 0, 249, 0.15);
    color: var(--color-dc);
}

.dist-price-tag.danger-tag {
    background: rgba(255, 23, 68, 0.15);
    color: var(--color-danger);
}

.market-note-box {
    margin-top: auto;
    background: rgba(255, 145, 0, 0.06);
    border: 1px solid rgba(255, 145, 0, 0.15);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.market-note-box p {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.bulb-icon {
    width: 16px;
    height: 16px;
    color: var(--color-warning);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Quick Brands View */
.quick-view-section {
    margin-top: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-primary);
    width: 18px;
    height: 18px;
}

.brands-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.mini-brand-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-brand-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.mini-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mini-card-head h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.mini-card-head i {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.mini-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.mini-price-row .label {
    color: var(--text-secondary);
}

.mini-price-row .val {
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Detailed Tariffs Table View */
.table-panel-header {
    flex-wrap: wrap;
    gap: 16px;
}

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

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-box input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass-light);
    border-radius: 8px;
    color: #fff;
    padding: 10px 14px 10px 38px;
    font-size: 0.85rem;
    width: 220px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.filter-dropdown select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass-light);
    border-radius: 8px;
    color: #fff;
    padding: 10px 14px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-dropdown select:focus {
    border-color: var(--accent-primary);
}

.table-responsive {
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.premium-table th {
    padding: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.premium-table tbody tr {
    transition: background 0.2s ease;
}

.premium-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.premium-table .brand-col {
    font-weight: 700;
    font-size: 0.95rem;
}

.premium-table .price-val {
    font-family: var(--font-heading);
    font-weight: 700;
}

.premium-table .ac-cell {
    color: var(--color-ac);
}

.premium-table .dc-cell {
    color: var(--color-dc);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.ac-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-ac);
}

.badge.dc-badge {
    background: rgba(213, 0, 249, 0.1);
    color: var(--color-dc);
}

.info-badge {
    background: rgba(138, 43, 226, 0.15);
    color: #cb8eff;
}

.url-link {
    color: var(--accent-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.url-link:hover {
    color: #fff;
    text-decoration: underline;
}

.url-link i {
    width: 12px;
    height: 12px;
}

.action-btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.action-btn-circle:hover {
    background: var(--accent-grad);
    box-shadow: var(--glow-primary);
    border-color: transparent;
    transform: scale(1.1);
}

.action-btn-circle i {
    width: 14px;
    height: 14px;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select,
.form-group input[type="number"] {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass-light);
    border-radius: 10px;
    color: #fff;
    padding: 12px 16px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
    border-color: var(--accent-secondary);
}

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

/* Radio Group Tile style */
.radio-group-tile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tile-option {
    position: relative;
    cursor: pointer;
}

.tile-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tile-content {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass-light);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tile-option:hover .tile-content {
    background: rgba(255, 255, 255, 0.04);
}

.tile-option input[type="radio"]:checked + .tile-content {
    border-color: var(--accent-primary);
    background: rgba(138, 43, 226, 0.08);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.15);
}

.premium-button {
    background: var(--accent-grad);
    border: none;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-primary);
}

.premium-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
}

.premium-button i {
    width: 18px;
    height: 18px;
}

/* Results Display Cards */
.results-panel {
    display: flex;
    flex-direction: column;
}

.calc-results-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
    opacity: 0.7;
}

.empty-state p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.result-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-brand-header h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
}

.cost-giant-display {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px 0;
    position: relative;
    overflow: hidden;
}

.cost-giant-display::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-grad);
}

.cost-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cost-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: 6px;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 10px;
}

.breakdown-item span:first-child {
    color: var(--text-secondary);
}

.breakdown-val {
    font-weight: 700;
}

.info-alert-box {
    background: rgba(0, 242, 254, 0.04);
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-alert-box p {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.info-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* References Tab Styling */
.references-page-content {
    line-height: 1.6;
}

.references-page-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-primary);
    padding-left: 10px;
}

.references-page-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 20px;
    max-width: 90%;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.methodology-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
}

.m-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.m-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid var(--accent-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.links-list-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ref-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.ref-link-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.ref-brand-name {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Modal Overlay & Card Details Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 4, 9, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 100%;
    max-width: 500px;
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title-icon {
    color: var(--accent-secondary);
    width: 20px;
    height: 20px;
}

.modal-title h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #fff;
}

.close-modal-btn i {
    width: 20px;
    height: 20px;
}

/* Modal Internal Layout */
.modal-price-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.m-price-card {
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.m-price-card.ac {
    background: rgba(0, 242, 254, 0.03);
    border-color: rgba(0, 242, 254, 0.1);
}

.m-price-card.dc {
    background: rgba(213, 0, 249, 0.03);
    border-color: rgba(213, 0, 249, 0.1);
}

.m-price-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.m-price-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.m-price-card.ac .m-price-value {
    color: var(--color-ac);
}

.m-price-card.dc .m-price-value {
    color: var(--color-dc);
}

.modal-info-section h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.modal-info-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.modal-info-table td:first-child {
    color: var(--text-secondary);
    width: 150px;
}

.modal-description-box {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 14px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Animations & Micro-effects */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.96); }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.animate-bounce {
    animation: bounce 2s infinite ease-in-out;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .col-span-2 {
        grid-column: span 1;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        background: rgba(10, 12, 24, 0.85);
        border-bottom: 1px solid var(--border-glass);
        position: sticky;
        top: 0;
        z-index: 90;
        backdrop-filter: blur(20px);
        width: 100%;
    }
    .menu-toggle-btn {
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
    }
    .menu-toggle-btn i {
        width: 24px;
        height: 24px;
    }
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .mobile-brand h2 {
        font-family: var(--font-heading);
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: 0.5px;
    }
    .logo-icon-small {
        width: 18px;
        height: 18px;
        color: var(--accent-secondary);
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 100;
    }
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 20px 16px !important;
        padding-top: 24px !important;
    }
    
    .main-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 10px;
    }
    .header-left {
        text-align: left;
    }
    .header-right {
        display: flex;
        justify-content: flex-start;
    }
    .date-badge {
        width: 100%;
        justify-content: space-between;
    }
    .date-badge select {
        width: 100%;
    }
    
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .developer-signature {
        display: none;
    }
}

@media (max-width: 576px) {
    .table-panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .table-search-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .search-box input {
        width: 100%;
    }
    .filter-dropdown select {
        width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .radio-group-tile {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .modal-container {
        max-width: 92%;
        margin: 0 auto;
    }
    .modal-price-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Developer Signature & Footer Styling */
.developer-signature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    margin-bottom: 8px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.developer-signature i {
    width: 14px;
    height: 14px;
    color: var(--accent-secondary);
}

.app-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-author {
    font-weight: 600;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar styles for Market Share list in Ciro & Tuketim section */
/* Scrollbar styles for Market Share list in Ciro & Tuketim section */
#market-share-list::-webkit-scrollbar {
    width: 5px;
}
#market-share-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 4px;
}
#market-share-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: all 0.3s ease;
}
#market-share-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.3);
}

/* -------------------------------------------------------------
   VOLTNET ADDITIONAL STYLES (LOADING, ERROR, HISTORY & MOBILE)
   ------------------------------------------------------------- */

/* 1. Loading & Error States */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    gap: 12px;
    text-align: center;
    padding: 32px 24px;
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 16px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.loading-error-container h3 {
    color: #ef4444;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.loading-error-container p {
    color: var(--text-secondary);
    max-width: 450px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.error-icon {
    width: 44px;
    height: 44px;
    color: #ef4444;
}

.error-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.fallback-warning-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    color: #f59e0b;
    margin: 0 0 20px 0;
    font-size: 0.82rem;
    font-weight: 500;
    width: 100%;
}

.data-freshness-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 8px;
}

.data-freshness-badge.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.data-freshness-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.data-freshness-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.freshness-badge-container {
    position: relative;
    display: inline-block;
}

.freshness-popover {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 340px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 999;
    color: #f8fafc;
    transition: visibility 0.25s, opacity 0.25s, transform 0.25s ease-in-out;
}

.freshness-badge-container:hover .freshness-popover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.popover-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.popover-header h4 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.refresh-cycle-info {
    font-size: 0.7rem;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.popover-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popover-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.popover-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.popover-item .item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popover-item .item-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
}

.popover-item .item-details {
    display: flex;
    flex-direction: column;
    padding-left: 18px;
    font-size: 0.72rem;
    color: #94a3b8;
    gap: 2px;
}

.popover-item .item-details .last-date {
    font-weight: 500;
    color: #cbd5e1;
}

/* Durum NoktalarÄ± */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.status-dot.yellow {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.status-dot.red {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.popover-item.dynamic .zap-icon {
    color: #f59e0b;
    width: 12px;
    height: 12px;
}

/* 2. Switch Toggle Styling */
.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.switch-label input {
    display: none;
}

.switch-slider {
    width: 44px;
    height: 22px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    position: relative;
    transition: background-color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider::before {
    content: "";
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.switch-label input:checked + .switch-slider {
    background: var(--accent-primary);
}

.switch-label input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* Checkbox Grid styling */
.compare-brands-selector {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    padding: 16px;
    border-radius: 12px;
    margin-top: 10px;
}

.brands-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.checkbox-item input {
    accent-color: var(--accent-primary);
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.checkbox-item.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.005);
}

.checkbox-item.disabled input {
    cursor: not-allowed;
}

/* 3. Trend Badges & Layout styling */
.history-grid-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.chart-container-large {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: 16px;
    min-height: 380px;
}

.change-badges-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: 16px;
    height: 100%;
    justify-content: flex-start;
}

.change-badge-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: 12px;
    text-align: center;
}

.change-badge-card.brand-header {
    background: rgba(138, 43, 226, 0.05);
    border-color: rgba(138, 43, 226, 0.15);
}

.change-badge-card.brand-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.change-badge-title {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.change-badge-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.change-badge-value.up {
    color: #ef4444; /* hike (zam) is red */
}

.change-badge-value.down {
    color: #10b981; /* discount (indirim) is green */
}

.change-badge-value.neutral {
    color: var(--text-secondary);
}

/* 4. Table Scrollability & Mobile Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 16px 16px;
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -290px;
        z-index: 1010;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 88px 16px 24px 16px; /* offset for mobile-header */
    }
    
    .mobile-header {
        display: flex;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .col-span-2 {
        grid-column: span 1;
    }
    
    .history-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .change-badges-panel {
        height: auto;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .premium-table {
        min-width: 700px; /* Force scroll */
    }
    
    .main-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .header-right {
        width: 100%;
    }
    
    .date-badge {
        width: 100%;
    }
    
    .month-select {
        width: 100%;
    }
    
    .history-controls .control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .history-controls .control-row .form-group {
        width: 100%;
    }
    
    .history-controls .control-row select {
        width: 100%;
    }
    
    .history-controls .checkbox-toggle-wrapper {
        margin-top: 4px;
        margin-bottom: 8px;
    }
}


/* ============================================
   SaaS Blurlu Kilit Katlani (Blur Overlay)
   ============================================ */

/* Wrapper: overlay + icerik icin ortak kapsayici */
.saas-lock-wrapper {
    position: relative;
}

/* Blurlu arka plan icerik */
.saas-locked-blur {
    filter: blur(12px) !important;
    pointer-events: none !important;
    user-select: none !important;
    opacity: 0.15 !important;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

/* Overlay paneli */
.saas-overlay-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 380px;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    background: rgba(8, 12, 28, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 16px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

/* Icerik kutusu */
.saas-overlay-box {
    width: 100%;
    max-width: 420px;
    padding: 28px 30px;
    text-align: center;
    border-radius: 16px;
    background: rgba(13, 20, 40, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 242, 254, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 100px;
    z-index: 51;
}

.content-section.saas-section {
    position: relative;
}

/* Admin Lead Management Table Styles */
/* Sub-Tabs Bar & Button Styles */
.sub-tabs-container {
    margin-bottom: 22px;
}

.sub-tabs-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
}

.sub-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sub-tab-btn i {
    width: 16px;
    height: 16px;
}

.sub-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sub-tab-btn.active {
    color: #fff;
    background: var(--accent-grad);
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}

/* Independent Sidebar Small Link */
.sidebar-small-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.sidebar-small-link i {
    width: 13px;
    height: 13px;
}

.sidebar-small-link:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}

/* VoltNet Custom Interactive Map Styling */
#voltnet-map {
    border-radius: 0 0 16px 16px;
    outline: none;
}

/* Dark Theme Leaflet Customization */
.leaflet-container {
    background: #090d16 !important;
    font-family: var(--font-body) !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(16px) !important;
    border-radius: 14px !important;
    color: var(--text-main) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    padding: 4px !important;
}

.leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.map-popup-card {
    padding: 10px 12px;
    min-width: 220px;
}

.map-popup-brand {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.map-popup-location {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-popup-sockets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.map-socket-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
}

.map-socket-badge.dc {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.06);
}

.map-socket-badge.ac {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
}

.map-socket-badge .count {
    font-weight: 800;
    font-size: 1rem;
    display: block;
}

.map-socket-badge.dc .count { color: var(--accent-primary); }
.map-socket-badge.ac .count { color: #10b981; }

.map-socket-badge .label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-popup-tariff {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    justify-content: space-between;
}

/* Custom Marker Clusters */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large {
    background-color: rgba(0, 242, 254, 0.25) !important;
}

.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
    background: linear-gradient(135deg, #00f2fe, #4facfe) !important;
    color: #040914 !important;
    font-weight: 800 !important;
    font-family: var(--font-heading) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6) !important;
}

.badge-new-glow {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(0, 242, 254, 0.4); }
    100% { box-shadow: 0 0 12px rgba(0, 242, 254, 0.8); }
}

/* v4.43.0 Ultra-Premium Glassmorphic Cyber Hexagons & Custom Charging Pin Markers */
.province-summary-marker, .district-grid-marker, .custom-station-pin-wrap {
    background: transparent !important;
    border: none !important;
}

.cyber-glass-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(11, 15, 25, 0.45);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 242, 254, 0.75);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 0 16px rgba(0, 242, 254, 0.3);
    color: #ffffff;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    user-select: none;
}

.cyber-glass-hexagon:hover {
    transform: scale(1.22) translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 242, 254, 0.85);
    border-color: #00f2fe;
    background: rgba(11, 15, 25, 0.7);
    z-index: 99999 !important;
}

.cyber-glass-hexagon.giant {
    width: 74px;
    height: 74px;
    font-size: 14px;
    border-color: rgba(168, 85, 247, 0.85);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.5), inset 0 0 20px rgba(168, 85, 247, 0.3);
    animation: pulseGlassPetek 2.5s infinite alternate;
}

.cyber-glass-hexagon.large {
    width: 58px;
    height: 58px;
    font-size: 12px;
}

.cyber-glass-hexagon.medium {
    width: 44px;
    height: 44px;
    font-size: 11px;
    border-color: rgba(16, 185, 129, 0.8);
}

@keyframes pulseGlassPetek {
    0% { box-shadow: 0 6px 24px rgba(0, 242, 254, 0.5), inset 0 0 14px rgba(0, 242, 254, 0.25); }
    100% { box-shadow: 0 12px 40px rgba(168, 85, 247, 0.9), inset 0 0 28px rgba(0, 242, 254, 0.5); }
}

/* Custom EV Charging Pin Markers for Close-Up Street View (Zoom 13+) */
.station-pin-marker {
    width: 32px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    user-select: none;
}

.station-pin-marker:hover {
    transform: rotate(-45deg) scale(1.25) translateY(-4px);
    z-index: 99999 !important;
}

.station-pin-marker.dc {
    background: linear-gradient(135deg, #00f2fe, #3b82f6);
    border: 2px solid #ffffff;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.9);
}

.station-pin-marker.ac {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 2px solid #ffffff;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.85);
}

.station-pin-icon-inner {
    transform: rotate(45deg);
    font-size: 13px;
    font-weight: 900;
    color: #040914;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plugshare-cluster-pin {
    border-radius: 50%;
    color: #040914;
    font-weight: 800;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.8), 0 4px 14px rgba(0, 0, 0, 0.6);
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
    user-select: none;
}

.plugshare-cluster-pin:hover {
    transform: scale(1.18);
    box-shadow: 0 0 26px rgba(0, 242, 254, 1), 0 6px 18px rgba(0, 0, 0, 0.8);
    z-index: 9999 !important;
}

.plugshare-cluster-pin.small {
    width: 38px;
    height: 38px;
    font-size: 11px;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
}

.plugshare-cluster-pin.medium {
    width: 46px;
    height: 46px;
    font-size: 12px;
    background: linear-gradient(135deg, #00f2fe, #3b82f6);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.85);
}

.plugshare-cluster-pin.large {
    width: 56px;
    height: 56px;
    font-size: 13px;
    background: linear-gradient(135deg, #a855f7, #00f2fe);
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.9);
    animation: pulseNeon 2.5s infinite alternate;
}

@keyframes pulseNeon {
    0% { box-shadow: 0 0 16px rgba(0, 242, 254, 0.7); }
    100% { box-shadow: 0 0 28px rgba(168, 85, 247, 1), 0 0 40px rgba(0, 242, 254, 0.8); }
}

.plugshare-pin-icon {
    font-size: 10px;
}

/* Map Top Cities Mini-Drawer / Quick Fly Bar */
.map-quick-cities-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 12px;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}

.map-city-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.map-city-chip:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: #00f2fe;
    color: #00f2fe;
    transform: translateY(-2px);
}

.map-city-chip strong {
    color: #ffffff;
}

/* =============================================================
   VOLTNET MAP SENIOR UI/UX ENHANCEMENTS (v4.46.0)
   ============================================================= */

/* 1. Map Wrapper & Glass Glow Effect */
.voltnet-map-wrapper {
    position: relative;
    width: 100%;
    height: 640px;
    border-radius: 18px;
    overflow: hidden;
    background: #060913;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 242, 254, 0.03);
}

.voltnet-map-wrapper #voltnet-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 2. Floating Glass Toolbar */
.floating-glass-toolbar {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(10, 15, 28, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
}

.floating-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px 12px;
    flex-grow: 1;
    min-width: 180px;
    max-width: 280px;
    transition: all 0.2s ease;
}

.floating-search-box:focus-within {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.floating-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.82rem;
    font-family: inherit;
    width: 100%;
}

.floating-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.floating-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.floating-filter-item:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.floating-filter-item select.month-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 4px;
    outline: none;
    cursor: pointer;
}

.floating-reset-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.25));
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floating-reset-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

/* 3. Floating Live Stats Badge */
.floating-stats-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 998;
    background: rgba(10, 15, 28, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.15);
    user-select: none;
}

.floating-stats-badge .dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* 4. Power-Coded Marker Pins */
.voltnet-pin-wrapper {
    position: relative;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.voltnet-pin-wrapper:hover {
    transform: scale(1.3) translateY(-4px);
    z-index: 9999 !important;
}

.voltnet-pin {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    border: 2px solid #ffffff;
    transition: all 0.2s ease;
}

.voltnet-pin-inner {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Power Class Variations */
/* A. Ultra-Fast DC (150kW+) */
.voltnet-pin.dc-ultra {
    background: linear-gradient(135deg, #d500f9, #7c3aed);
    border-color: #f0abfc;
    box-shadow: 0 0 18px rgba(213, 0, 249, 0.8), 0 4px 12px rgba(0, 0, 0, 0.7);
    animation: ultraGlow 2.5s infinite alternate;
}

@keyframes ultraGlow {
    0% { box-shadow: 0 0 12px rgba(213, 0, 249, 0.6); }
    100% { box-shadow: 0 0 22px rgba(213, 0, 249, 1), 0 0 30px rgba(124, 58, 237, 0.8); }
}

/* B. Fast DC (50kW+) */
.voltnet-pin.dc-fast {
    background: linear-gradient(135deg, #00f2fe, #0284c7);
    border-color: #7dd3fc;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.75), 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* C. AC Normal */
.voltnet-pin.ac {
    background: linear-gradient(135deg, #10b981, #047857);
    border-color: #6ee7b7;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

/* D. Private / Restricted */
.voltnet-pin.private {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #fde047;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* KW Badge on top right of Pin */
.voltnet-pin-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #0f172a;
    color: #00f2fe;
    border: 1px solid #00f2fe;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.8);
    white-space: nowrap;
}

/* 5. Side Drawer Panel */
.voltnet-side-drawer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 360px;
    max-width: 90%;
    z-index: 1001;
    background: rgba(10, 15, 28, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.voltnet-side-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.drawer-header-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-header-title .brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}

.drawer-header-title .station-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 14px;
}

.drawer-section-card .card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-socket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.drawer-socket-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.drawer-socket-item.dc {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.05);
}

.drawer-socket-item.ac {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.drawer-socket-item .count {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

.drawer-socket-item.dc .count { color: #00f2fe; }
.drawer-socket-item.ac .count { color: #10b981; }

.drawer-socket-item .type-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.drawer-actions {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    background: rgba(10, 15, 28, 0.95);
}

.drawer-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-btn-primary {
    background: linear-gradient(135deg, #00f2fe, #00c6ff);
    color: #040914;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.drawer-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.drawer-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.drawer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .floating-glass-toolbar {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 10px;
        gap: 6px;
    }
    .floating-search-box {
        max-width: 100%;
        min-width: 100%;
    }
    .voltnet-map-wrapper {
        height: 520px;
    }
    .voltnet-side-drawer {
        width: 100%;
        max-width: 100%;
    }
}



