/* Modern Chart Styles (page.html compatible) */
:root {
    --bg: #0e1116;
    --elev-1: #11161d;
    --elev-2: #141b23;
    --text: #e9eef5;
    --muted: #98a6b8;
    --stroke-weak: rgba(120,150,180,.22);
    --stroke-strong: rgba(120,150,180,.34);
    --accent: #f5b84e;
    --up: #17be85;
    --down: #ef5350;
    --radius-lg: 18px;
    --shadow-lg: 0 14px 44px rgba(0,0,0,.45);
    --shadow-md: 0 6px 20px rgba(0,0,0,.35);
    
    /* Chart specific */
    --chart-bg: #0e1116;
    --chart-panel: #11161d;
    --chart-panel-2: #141b23;
    --chart-border: rgba(120,150,180,.34);
    --chart-border-weak: rgba(120,150,180,.22);
    --chart-text: #e9eef5;
    --chart-muted: #98a6b8;
    --chart-gold: #d6b36a;
    --chart-green: #17be85;
    --chart-red: #ef5350;
    --chart-chip: #141b23;
    --chart-shadow: 0 14px 44px rgba(0,0,0,.45);
    --chart-radius: 18px;
    --chart-accent: #f5b84e;
}

/* Base compatibility with page.html */
.harem-chart-section *,
.harem-stats-section *,
.harem-calculator-section *,
.harem-news-section * {
    box-sizing: border-box;
}

.harem-chart-section,
.harem-stats-section,
.harem-calculator-section,
.harem-news-section {
    font: 14px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.harem-chart-section .muted,
.harem-stats-section .muted,
.harem-calculator-section .muted,
.harem-news-section .muted {
    color: var(--muted);
}

.harem-chart-section .small,
.harem-stats-section .small,
.harem-calculator-section .small,
.harem-news-section .small {
    font-size: 12px;
}

.harem-chart-section .up,
.harem-stats-section .up,
.harem-calculator-section .up,
.harem-news-section .up {
    color: var(--up);
}

.harem-chart-section .down,
.harem-stats-section .down,
.harem-calculator-section .down,
.harem-news-section .down {
    color: var(--down);
}

.harem-chart-section .title,
.harem-stats-section .title,
.harem-calculator-section .title,
.harem-news-section .title,
.harem-chart-section .section-title,
.harem-stats-section .section-title,
.harem-calculator-section .section-title,
.harem-news-section .section-title {
    font-size: 18px;
    font-weight: 800;
}

/* Card and Pad (page.html compatible) - Apply to all sections */
.harem-stats-section.card,
.harem-calculator-section.card,
.harem-news-section.card {
    background: var(--elev-1);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-lg);
}

.harem-stats-section.pad,
.harem-calculator-section.pad,
.harem-news-section.pad {
    padding: 16px;
}

/* Divider */
.harem-calculator-section .divider {
    border-top: 1px solid var(--stroke-strong);
    margin: 12px -16px;
}

.harem-modern-chart {
    background: linear-gradient(180deg, var(--chart-panel), var(--chart-panel-2));
    border: 1px solid var(--chart-border);
    border-radius: var(--chart-radius);
    padding: 0;
    margin: 20px 0;
    box-shadow: var(--chart-shadow);
    overflow: hidden;
    color: var(--chart-text);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    width: 100% !important;
    max-width: 100% !important;
}

.chart-header {
    padding: 18px;
    background: none;
    border-bottom: 1px solid var(--chart-border);
}

.chart-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.chart-title {
    margin: 0;
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 800;
    color: var(--chart-text);
    letter-spacing: 0.2px;
}

.chart-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--chart-chip);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--chart-border);
    font-size: 12px;
    font-weight: 600;
    color: var(--chart-green);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--chart-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.chart-stats-top .main-price {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    align-items: start;
}

.buy-price, .sell-price, .change-info, .min-price-info, .max-price-info, .avg-price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px 14px;
    background: var(--chart-chip);
    border-radius: 12px;
    border: 1px solid var(--chart-border);
    transition: all 0.3s ease;
}

.buy-price:hover, .sell-price:hover, .change-info:hover, 
.min-price-info:hover, .max-price-info:hover, .avg-price-info:hover {
    background: #0f141b;
    transform: scale(1.05);
}

.buy-price .label, .sell-price .label, .change-info .label,
.min-price-info .label, .max-price-info .label, .avg-price-info .label {
    font-size: 12px;
    color: var(--chart-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.buy-price .value, .sell-price .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--chart-accent);
}

.change-info .value, .min-price-info .value, .max-price-info .value, .avg-price-info .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--chart-text);
}

.change-info .value.positive {
    color: var(--chart-green);
}

.change-info .value.negative {
    color: var(--chart-red);
}

.period-selector {
    padding: 14px 18px;
    background: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--chart-border);
}

.period-btn {
    padding: 6px 10px;
    border: 1px solid var(--chart-border);
    background: var(--chart-chip);
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--chart-muted);
    transition: all 0.3s ease;
}

.period-btn:hover {
    background: #0f141b;
    color: var(--chart-text);
    transform: scale(1.05);
}

.period-btn.active {
    background: linear-gradient(180deg, var(--chart-accent), #cda55a);
    color: #1b1b1b;
    border-color: #b8934b;
    font-weight: 700;
}

.chart-area {
    position: relative;
    padding: 10px 10px 2px;
    background: transparent;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: var(--chart-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 13px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--chart-border);
    border-top: 2px solid var(--chart-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Canvas full width */
.chart-area canvas {
    width: 100% !important;
    height: auto !important;
}

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

.chart-info-bottom {
    padding: 15px 18px;
    background: none;
    border-top: 1px solid var(--chart-border);
    text-align: center;
}

.info-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.info-label {
    color: var(--chart-muted);
    font-weight: 400;
}

.info-value {
    color: var(--chart-text);
    font-weight: 600;
}

.info-separator {
    color: var(--chart-border);
    margin: 0 4px;
}

/* Price Change Colors */
.price-change.positive {
    color: var(--chart-green);
}

.price-change.negative {
    color: var(--chart-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .chart-stats-top .main-price {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .harem-modern-chart {
        margin: 10px;
        border-radius: 12px;
    }
    
    .chart-header {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .chart-title-section {
        margin-bottom: 15px;
    }
    
    .chart-title {
        font-size: 20px;
    }
    
    .chart-stats-top .main-price {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .buy-price, .sell-price, .change-info, .min-price-info, .max-price-info, .avg-price-info {
        padding: 10px 8px;
    }
    
    .period-selector {
        padding: 12px 15px;
        justify-content: center;
    }
    
    .period-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .chart-area {
        padding: 8px 8px 2px;
    }
    
    .chart-info-bottom {
        padding: 12px 15px;
    }
    
    .info-text {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .chart-stats-top .main-price {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .period-selector {
        gap: 6px;
    }
    
    .period-btn {
        padding: 4px 6px;
        font-size: 10px;
    }
}

/* Legacy Chart Table Styles */
.altin-grafik {
    background: linear-gradient(180deg, var(--chart-panel), var(--chart-panel-2));
    border: 1px solid var(--chart-border);
    border-radius: var(--chart-radius);
    box-shadow: var(--chart-shadow);
    padding: 0;
    margin: 20px 0;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.altin-grafik .borsa-table {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.altin-grafik .borsa-table thead {
    background: var(--chart-chip);
    color: var(--chart-text);
}

.altin-grafik .borsa-table th {
    color: var(--chart-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--chart-border);
}

.altin-grafik .borsa-table tbody tr {
    border-bottom: 1px solid var(--chart-border);
    background: transparent;
}

.altin-grafik .borsa-table tbody tr:hover {
    background: #0f141b;
}

.altin-grafik .borsa-table td {
    color: var(--chart-text);
    border: none;
}

/* Light Theme Overrides for Charts */
.harem-modern-chart.light {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    border-color: #e1e8ed;
    color: #2c3e50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.harem-modern-chart.light .chart-header {
    border-bottom-color: #e1e8ed;
}

.harem-modern-chart.light .chart-title {
    color: #2c3e50;
}

.harem-modern-chart.light .chart-live-indicator {
    background: #f8f9fa;
    border-color: #e1e8ed;
    color: #27ae60;
}

.harem-modern-chart.light .buy-price,
.harem-modern-chart.light .sell-price,
.harem-modern-chart.light .change-info,
.harem-modern-chart.light .min-price-info,
.harem-modern-chart.light .max-price-info,
.harem-modern-chart.light .avg-price-info {
    background: #f8f9fa;
    border-color: #e1e8ed;
}

.harem-modern-chart.light .buy-price:hover,
.harem-modern-chart.light .sell-price:hover,
.harem-modern-chart.light .change-info:hover,
.harem-modern-chart.light .min-price-info:hover,
.harem-modern-chart.light .max-price-info:hover,
.harem-modern-chart.light .avg-price-info:hover {
    background: #ffffff;
}

.harem-modern-chart.light .buy-price .label,
.harem-modern-chart.light .sell-price .label,
.harem-modern-chart.light .change-info .label,
.harem-modern-chart.light .min-price-info .label,
.harem-modern-chart.light .max-price-info .label,
.harem-modern-chart.light .avg-price-info .label {
    color: #7f8c8d;
}

.harem-modern-chart.light .buy-price .value,
.harem-modern-chart.light .sell-price .value {
    color: #b8934b;
}

.harem-modern-chart.light .change-info .value,
.harem-modern-chart.light .min-price-info .value,
.harem-modern-chart.light .max-price-info .value,
.harem-modern-chart.light .avg-price-info .value {
    color: #2c3e50;
}

.harem-modern-chart.light .change-info .value.positive {
    color: #27ae60;
}

.harem-modern-chart.light .change-info .value.negative {
    color: #e74c3c;
}

.harem-modern-chart.light .period-selector {
    border-bottom-color: #e1e8ed;
}

.harem-modern-chart.light .period-btn {
    background: #f8f9fa;
    border-color: #e1e8ed;
    color: #7f8c8d;
}

.harem-modern-chart.light .period-btn:hover {
    background: #ffffff;
    color: #2c3e50;
}

.harem-modern-chart.light .period-btn.active {
    background: linear-gradient(180deg, #b8934b, #a67c38);
    color: #ffffff;
    border-color: #96702f;
}

.harem-modern-chart.light .chart-loading {
    color: #b8934b;
}

.harem-modern-chart.light .loading-spinner {
    border-color: #e1e8ed;
    border-top-color: #b8934b;
}

.harem-modern-chart.light .chart-info-bottom {
    border-top-color: #e1e8ed;
}

.harem-modern-chart.light .info-label {
    color: #7f8c8d;
}

.harem-modern-chart.light .info-value {
    color: #2c3e50;
}

.harem-modern-chart.light .info-separator {
    color: #e1e8ed;
}

/* Light Theme for Legacy Chart Table */
.altin-grafik.light {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
    border-color: #e1e8ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.altin-grafik.light .borsa-table thead {
    background: #f8f9fa;
    color: #2c3e50;
}

.altin-grafik.light .borsa-table th {
    color: #7f8c8d;
    border-bottom-color: #e1e8ed;
}

.altin-grafik.light .borsa-table tbody tr {
    border-bottom-color: #f1f2f6;
}

.altin-grafik.light .borsa-table tbody tr:hover {
    background: #f8f9fa;
}

.altin-grafik.light .borsa-table td {
    color: #2c3e50;
}

/* === page.html Compatible Styles (Exact Match) === */
.harem-chart-section.chart-wrap {
    background: var(--chart-panel);
    border: 1px solid var(--chart-border-weak);
    border-radius: var(--chart-radius);
    padding: 18px;
    margin-top: 24px;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
}

.harem-chart-section .chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.harem-chart-section .title {
    font-size: 18px;
    font-weight: 800;
    color: var(--chart-text);
    margin: 0;
    line-height: 1.4;
}

.harem-chart-section .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.harem-chart-section .chips button {
    background: var(--chart-chip);
    border: 1px solid var(--chart-border-weak);
    color: var(--chart-muted);
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
}

.harem-chart-section .chips button.active {
    color: var(--chart-text);
    border-color: var(--chart-border);
    background: rgba(255,255,255,.05);
}

.harem-chart-section .chips button:hover {
    background: rgba(255,255,255,.03);
    border-color: var(--chart-border);
}

.harem-chart-section .muted {
    color: var(--chart-muted);
    font-size: 14px;
}

.harem-chart-section .chart-foot {
    color: var(--chart-muted);
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

.harem-chart-section .chart-foot .up {
    color: var(--up);
    font-weight: 700;
}

.harem-chart-section .chart-foot .down {
    color: var(--down);
    font-weight: 700;
}

/* Stats Grid - page.html style (Exact Match) */
.harem-stats-section.stats-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: var(--chart-panel);
    border: 1px solid var(--chart-border-weak);
    border-radius: var(--chart-radius);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
}

.harem-stats-section .stat {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid var(--chart-border-weak);
    background: var(--chart-panel);
}

.harem-stats-section .stat:last-child {
    border-right: none;
}

.harem-stats-section .stat-label {
    color: var(--chart-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.harem-stats-section .stat-val {
    font-weight: 800;
    font-size: 16px;
    color: var(--chart-text);
    line-height: 1.3;
}

.harem-stats-section .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--chart-border-weak);
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.02);
}

.harem-stats-section .pill.up {
    color: var(--up);
}

.harem-stats-section .pill.down {
    color: var(--down);
}

/* Light theme overrides for page.html style */
.harem-chart-section.light {
    background: #ffffff;
    border-color: #e1e8ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.harem-chart-section.light .title {
    color: #2c3e50;
}

.harem-chart-section.light .chips button {
    background: var(--chart-chip);
    border-color: #e1e8ed;
    color: #7f8c8d;
}

.harem-chart-section.light .chips button.active {
    color: #2c3e50;
    border-color: var(--chart-border);
    background: #ffffff;
}

.harem-chart-section.light .chips button:hover {
    background: #ffffff;
    border-color: var(--chart-border);
}

.harem-chart-section.light .muted {
    color: #7f8c8d;
}

.harem-chart-section.light .chart-foot {
    color: #7f8c8d;
}

.harem-chart-section.light .chart-foot .up {
    color: #27ae60;
}

.harem-chart-section.light .chart-foot .down {
    color: #e74c3c;
}

.harem-stats-section.light {
    background: #ffffff;
    border-color: #e1e8ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.harem-stats-section.light .stat {
    background: #ffffff;
    border-right-color: #e1e8ed;
}

.harem-stats-section.light .stat-label {
    color: #7f8c8d;
}

.harem-stats-section.light .stat-val {
    color: #2c3e50;
}

.harem-stats-section.light .pill {
    border-color: #e1e8ed;
    background: rgba(0,0,0,.02);
}

.harem-stats-section.light .pill.up {
    color: #27ae60;
}

.harem-stats-section.light .pill.down {
    color: #e74c3c;
}

/* === Metric Grid (page.html style - small stat cards) === */
.harem-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.harem-metric-grid .card {
    background: var(--elev-1);
    border: 1px solid var(--stroke-weak);
    border-radius: var(--radius-lg);
}

.harem-metric-grid .pad {
    padding: 16px;
}

/* Metric styles (exact match from page.html) */
.harem-metric-grid .metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.harem-metric-grid .metric .label {
    color: var(--muted);
    font-size: 12px;
}

.harem-metric-grid .metric .big {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
}


.harem-metric-grid .metric .big.up {
    color: var(--up);
}

.harem-metric-grid .metric .big.down {
    color: var(--down);
}

.harem-metric-grid .metric .bubble {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--stroke-weak);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
    width: fit-content;
}

.harem-metric-grid .metric .bubble.up {
    color: var(--up);
}

.harem-metric-grid .metric .bubble.down {
    color: var(--down);
}

/* Metric Grid Light Theme */
.harem-metric-grid.light {
    --bg: #f8fafb;
    --elev-1: #ffffff;
    --elev-2: #f1f2f6;
    --text: #2c3e50;
    --muted: #7f8c8d;
    --stroke-weak: rgba(120, 150, 180, 0.15);
    --stroke-strong: rgba(120, 150, 180, 0.25);
    --accent: #f5b84e;
    --up: #27ae60;
    --down: #e74c3c;
    --radius-lg: 18px;
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.harem-metric-grid.light .card {
    background: var(--elev-1);
    border-color: var(--stroke-weak);
    box-shadow: var(--shadow-lg);
}


/* === Calculator Section (page.html style) === */
.harem-calculator-section {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* section2: Yükseklik eşitleme için özel container */
.section2 .elementor-widget-shortcode .elementor-shortcode,
.section2 .elementor-widget-shortcode .elementor-shortcode > article {
    height: 100%;
}

.section2 > .e-con-inner {
    display: flex;
    gap: 16px;
}

.section2 > .e-con-inner > .e-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section2 > .e-con-inner > .e-child > .elementor-element {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section2 > .e-con-inner > .e-child .elementor-widget-shortcode {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section2 .harem-calculator-section {
    height: 100%;
}

.section2 .harem-news-section {
    height: 100%;
}

.harem-calculator-section .section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
}

.harem-calculator-section .form-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px;
    margin-bottom: 10px;
}

.harem-calculator-section select,
.harem-calculator-section input {
    background: var(--elev-2);
    color: var(--text);
    border: 1px solid var(--stroke-weak);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
    line-height: 1.5;
}

.harem-calculator-section input:focus,
.harem-calculator-section select:focus {
    outline: none;
    border-color: var(--stroke-strong);
}

.harem-calculator-section input[readonly] {
    background: var(--elev-1);
    cursor: default;
}

.harem-calculator-section .result-big {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 900;
    text-align: right;
    color: var(--text);
}

.harem-calculator-section .muted {
    color: var(--muted);
}

.harem-calculator-section .small {
    font-size: 12px;
}

/* Calculator Light Theme */
.harem-calculator-section.light {
    background: #ffffff;
    border-color: #e1e8ed;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.harem-calculator-section.light .section-title {
    color: #2c3e50;
}

.harem-calculator-section.light .divider {
    border-top-color: #e1e8ed;
}

.harem-calculator-section.light select,
.harem-calculator-section.light input {
    background: #f8f9fa;
    color: #2c3e50;
    border-color: #e1e8ed;
}

.harem-calculator-section.light input[readonly] {
    background: #ffffff;
}

.harem-calculator-section.light .result-big {
    color: #2c3e50;
}

.harem-calculator-section.light .muted {
    color: #7f8c8d;
}

/* === News/Posts Section (page.html style) === */
.harem-news-section .section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 12px;
}

.harem-news-section .news-table {
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    margin-top: 8px;
}

.harem-news-section .news-row {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text);
    background: transparent;
    border-bottom: 1px solid var(--stroke-weak);
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    cursor: pointer;
}

.harem-news-section .news-row:last-child {
    border-bottom: none;
}

.harem-news-section .news-row:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--stroke-strong);
}

.harem-news-section .news-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    font-weight: 500;
}

.harem-news-section .news-meta {
    color: var(--muted);
    font-size: 12px;
    display: inline-flex;
    gap: 6px;
    white-space: nowrap;
}

.harem-news-section .news-meta .src {
    color: #d8b15a;
}

.harem-news-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    font-size: 14px;
}

.harem-news-section .btn.ghost {
    background: var(--elev-2);
    color: var(--text);
    border: 1px solid var(--stroke-weak);
}

.harem-news-section .btn.ghost:hover {
    border-color: var(--stroke-strong);
    background: rgba(255, 255, 255, 0.03);
}

.harem-news-section .btn.full {
    width: 100%;
}

/* News Section Light Theme */
.harem-news-section.light {
    background: #ffffff;
    border-color: #e1e8ed;
}

.harem-news-section.light .section-title {
    color: #2c3e50;
}

.harem-news-section.light .news-row {
    color: #2c3e50;
    border-bottom-color: #f1f2f6;
}

.harem-news-section.light .news-row:hover {
    background: #f8f9fa;
    border-color: #e1e8ed;
}

.harem-news-section.light .news-title {
    color: #2c3e50;
}

.harem-news-section.light .news-meta {
    color: #7f8c8d;
}

.harem-news-section.light .news-meta .src {
    color: #d8b15a;
}

.harem-news-section.light .btn.ghost {
    background: #f8f9fa;
    color: #2c3e50;
    border-color: #e1e8ed;
}

.harem-news-section.light .btn.ghost:hover {
    background: #ffffff;
    border-color: #bdc3c7;
}

/* Responsive */
@media (max-width: 1024px) {
    .harem-metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .harem-stats-section.stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .harem-stats-section .stat:nth-child(2n) {
        border-right: none;
    }
    .harem-stats-section .stat {
        border-bottom: 1px solid var(--chart-border-weak);
    }
    .harem-stats-section .stat:last-child {
        border-bottom: none;
    }
    .harem-stats-section.light .stat {
        border-bottom-color: #e1e8ed;
    }
}

@media (max-width: 640px) {
    .harem-chart-section .chart-head {
        flex-direction: column;
        align-items: stretch;
    }
    .harem-chart-section .chips {
        justify-content: center;
    }
    
    .harem-calculator-section .form-row {
        grid-template-columns: 1fr;
    }
    
    .harem-news-section .news-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
    
    .harem-news-section .news-title {
        white-space: normal;
    }
}