/* ===== Page-specific styles (exchange, calendar, elevators) ===== */

/* Page Header (shared across all subpages) */
.page-header {
    padding: 40px 0;
    background: linear-gradient(135deg, #030f08, #0a2518);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.page-header p {
    opacity: 0.6;
}

/* Page Content (shared across all subpages) */
.page-content {
    padding: 40px 0 80px;
}

/* ===== Exchange page ===== */
.rate-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 20px;
}
.rate-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5a8a6d;
}
.rate-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #d4a017;
}
.rate-source {
    font-size: 0.78rem;
    color: #5a8a6d;
    margin-left: auto;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0fdf4;
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-subtitle {
    font-size: 0.85rem;
    color: #5a8a6d;
    margin-bottom: 20px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.price-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.price-card:hover {
    border-color: rgba(245,158,11,0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.price-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.price-icon {
    font-size: 1.5rem;
}
.price-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f0fdf4;
}
.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #d4a017;
    margin-bottom: 4px;
}
.price-unit {
    font-size: 0.78rem;
    color: #5a8a6d;
}
.price-sparkline {
    margin: 8px -4px 0;
    height: 40px;
}
.price-source-tag {
    font-size: 0.7rem;
    color: #5a8a6d;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Chart Modal */
.chart-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 200;
    justify-content: center;
    align-items: center;
}
.chart-modal-overlay.active {
    display: flex;
}
.chart-modal-content {
    background: rgba(15,25,20,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    width: 90%;
    max-width: 700px;
    padding: 28px;
    position: relative;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.chart-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #5a8a6d;
    font-size: 1.5rem;
    cursor: pointer;
}
.chart-modal-close:hover {
    color: #f0fdf4;
}
.chart-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0fdf4;
    margin-bottom: 4px;
}
.chart-modal-subtitle {
    font-size: 0.85rem;
    color: #5a8a6d;
    margin-bottom: 16px;
}
.chart-tf-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.chart-tf-btn {
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: transparent;
    color: #d1d5db;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.chart-tf-btn.active {
    background: #d4a017;
    color: #1a1a1a;
    border-color: #d4a017;
}
.chart-tf-btn:hover:not(.active) {
    border-color: #d4a017;
    color: #d4a017;
}
#chartContainer {
    width: 100%;
    min-height: 320px;
}

/* ===== Calendar page ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.month-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(5px);
}
.month-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0fdf4;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 0.82rem;
}
.month-grid .day-header {
    color: #5a8a6d;
    font-weight: 600;
    padding: 4px 0;
    font-size: 0.72rem;
}
.month-grid .day {
    padding: 6px 2px;
    border-radius: 6px;
    color: #d1d5db;
    position: relative;
}
.month-grid .day.holiday {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
    font-weight: 600;
}
.month-grid .day.agro {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
}
.month-grid .day.today {
    background: rgba(212,160,23,0.2);
    color: #d4a017;
    font-weight: 700;
    border: 1px solid rgba(212,160,23,0.4);
}
.month-grid .day.empty {
    visibility: hidden;
}

.today-bar {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.today-bar .date {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4a017;
}
.today-bar .countdown {
    font-size: 0.9rem;
    color: #5a8a6d;
}

.region-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.region-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: transparent;
    color: #d1d5db;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.region-btn.active {
    background: #d4a017;
    color: #1a1a1a;
    border-color: #d4a017;
}
.region-btn:hover:not(.active) {
    border-color: #d4a017;
    color: #d4a017;
}

/* ===== Elevators page ===== */
.cat-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.cat-tab {
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.cat-tab.active {
    background: #d4a017;
    color: #1a1a1a;
    border-color: #d4a017;
}
.cat-tab:hover:not(.active) {
    border-color: #d4a017;
    color: #d4a017;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.factory-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px;
    transition: all 0.3s;
    cursor: pointer;
    backdrop-filter: blur(5px);
}
.factory-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transform: translateY(-3px);
    border-color: rgba(212,160,23,0.25);
}
.fc-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.fc-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #f0fdf4;
    margin-bottom: 3px;
}
.fc-city {
    font-size: 0.82rem;
    color: #5a8a6d;
}
.fc-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.fc-ru {
    background: rgba(22,163,74,0.15);
    color: #4ade80;
}
.fc-intl {
    background: rgba(212,160,23,0.15);
    color: #d4a017;
}
.fc-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.fc-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.fc-num {
    font-size: 0.82rem;
    font-weight: 600;
    color: #d1d5db;
}
.fc-spec {
    font-size: 0.78rem;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.fc-products {
    font-size: 0.83rem;
    color: #d1d5db;
    line-height: 1.5;
}
.fc-site {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.fc-site a {
    font-size: 0.82rem;
    color: #22c55e;
    text-decoration: none;
}
.fc-site a:hover {
    color: #d4a017;
}

/* Product list (expandable) */
.prod-list {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.prod-list.open {
    display: block;
}
.prod-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.prod-item:last-child {
    border-bottom: none;
}
.prod-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    margin-top: 6px;
}
.prod-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f0fdf4;
}
.prod-desc {
    font-size: 0.78rem;
    color: #5a8a6d;
    margin-top: 2px;
    line-height: 1.4;
}
.prod-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 14px;
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 8px;
    background: rgba(34,197,94,0.08);
    color: #22c55e;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.prod-toggle:hover {
    background: rgba(34,197,94,0.15);
    border-color: #22c55e;
}
.prod-toggle.open {
    background: rgba(34,197,94,0.15);
}

.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #5a8a6d;
    font-size: 1rem;
}

/* Factory Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: rgba(15,42,24,0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 92%;
    position: relative;
    animation: modalIn 0.3s ease;
}
.modal-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0fdf4;
    margin-bottom: 4px;
}
.modal-city {
    font-size: 0.85rem;
    color: #5a8a6d;
    margin-bottom: 16px;
}
.modal-desc {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
}
.modal-products-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.modal-products {
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(22,163,74,0.06);
    border-radius: 10px;
    border: 1px solid rgba(22,163,74,0.1);
}
.modal-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.modal-cta a {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}
.modal-cta .cta-phone {
    background: rgba(22,163,74,0.15);
    color: #4ade80;
    border: 1px solid rgba(22,163,74,0.3);
}
.modal-cta .cta-phone:hover {
    background: rgba(22,163,74,0.25);
}
.modal-cta .cta-wa {
    background: rgba(37,211,102,0.15);
    color: #25D366;
    border: 1px solid rgba(37,211,102,0.3);
}
.modal-cta .cta-wa:hover {
    background: rgba(37,211,102,0.25);
}
.modal-cta .cta-tg {
    background: rgba(0,136,204,0.15);
    color: #0088cc;
    border: 1px solid rgba(0,136,204,0.3);
}
.modal-cta .cta-tg:hover {
    background: rgba(0,136,204,0.25);
}

/* ===== Calendar page (extended) ===== */
.today-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    background: rgba(212,160,23,0.06);
    border: 1px solid rgba(212,160,23,0.2);
    border-radius: 16px;
    padding: 20px 28px;
}
.today-top {
    display: flex;
    align-items: center;
    gap: 16px;
}
.today-date {
    font-size: 1rem;
    font-weight: 700;
    color: #d4a017;
    white-space: nowrap;
}
.today-weekday {
    font-size: 0.85rem;
    color: #d1d5db;
}
.today-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d4a017;
    font-weight: 700;
    margin-bottom: 4px;
}

.alerts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.alert-card {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid;
}
.alert-card.urgent { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); }
.alert-card.warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.alert-card.info { background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.2); }
.alert-card:hover { transform: translateY(-2px); }
.alert-icon { font-size: 1.1rem; flex-shrink: 0; }
.alert-body { flex: 1; min-width: 0; }
.alert-name { font-size: 0.78rem; font-weight: 600; color: #f0fdf4; line-height: 1.3; }
.alert-date { font-size: 0.68rem; color: #5a8a6d; margin-top: 1px; }
.alert-countdown { font-size: 0.85rem; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.alert-card.urgent .alert-countdown { color: #ef4444; }
.alert-card.warning .alert-countdown { color: #d4a017; }
.alert-card.info .alert-countdown { color: #22c55e; }

.cal-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0fdf4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.month-card.current {
    border-color: #d4a017;
    box-shadow: 0 0 20px rgba(212,160,23,0.15);
}
.month-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f0fdf4;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.month-card.current .month-card-title { color: #d4a017; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.cal-day-header {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    padding: 4px 0;
    text-transform: uppercase;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #d1d5db;
    transition: all 0.2s;
    position: relative;
    cursor: default;
}
.cal-day.empty { visibility: hidden; }
.cal-day.today { background: linear-gradient(135deg, #16a34a, #22c55e); color: white; font-weight: 700; box-shadow: 0 0 12px rgba(22,163,74,0.3); }
.cal-day.holiday { background: rgba(212,160,23,0.15); color: #d4a017; font-weight: 600; }
.cal-day.holiday::after { content: ''; position: absolute; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: #d4a017; }
.cal-day.agro { background: rgba(22,163,74,0.1); color: #22c55e; }
.cal-day.agro::after { content: ''; position: absolute; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: #22c55e; }
.cal-day.past { opacity: 0.35; }

.cal-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a2e1f;
    color: #f0fdf4;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-weight: 400;
}
.cal-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #1a2e1f; }
.cal-day:hover .cal-tooltip { display: block; }
.cal-tooltip-name { font-weight: 700; color: #d4a017; margin-bottom: 2px; }

.holiday-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}
.holiday-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.3s;
}
.holiday-item:hover { border-color: #d4a017; }
.holiday-date { font-size: 0.78rem; color: #d4a017; font-weight: 600; margin-bottom: 4px; }
.holiday-name { font-size: 0.9rem; font-weight: 600; color: #f0fdf4; }
.holiday-days { font-size: 0.78rem; color: #5a8a6d; margin-top: 4px; }

.cal-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cal-controls select {
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    color: #f0fdf4;
    cursor: pointer;
    font-family: inherit;
    min-width: 200px;
}
.cal-controls select:focus { border-color: #d4a017; box-shadow: 0 0 0 3px rgba(212,160,23,0.15); }

.agro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.agro-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}
.agro-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); border-color: rgba(212,160,23,0.2); transform: translateY(-2px); }
.agro-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.agro-icon { font-size: 1.5rem; }
.agro-name { font-weight: 700; font-size: 1.05rem; color: #f0fdf4; }
.agro-event { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; position: relative; }
.agro-event:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 28px; bottom: -6px; width: 2px; background: rgba(255,255,255,0.08); }
.agro-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: white; margin-top: 2px; }
.agro-dot.sow { background: #16a34a; }
.agro-dot.grow { background: #d4a017; }
.agro-dot.harvest { background: #ef4444; }
.agro-info { flex: 1; }
.agro-type { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.agro-type.sow { color: #22c55e; }
.agro-type.grow { color: #d4a017; }
.agro-type.harvest { color: #ef4444; }
.agro-period { font-size: 0.85rem; color: #f0fdf4; font-weight: 600; margin-top: 2px; }
.agro-note { font-size: 0.78rem; color: #5a8a6d; margin-top: 2px; line-height: 1.4; }


/* === News Detail Page === */
.news-detail { max-width: 800px; margin: 0 auto; }
.news-detail-loading { text-align: center; padding: 60px 20px; color: #5a8a6d; }
.news-detail-error { text-align: center; padding: 60px 20px; color: #ef4444; }

.news-article { }
.news-article__date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 12px;
}
.news-article__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #fafafa;
    margin-bottom: 24px;
    line-height: 1.2;
}
.news-article__img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 32px;
}
.news-article__body {
    font-size: 1rem;
    line-height: 1.8;
    color: #d4d4d8;
}
.news-article__body p {
    margin-bottom: 20px;
}
.news-back {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #27272a;
}

/* === Blog Grid (news list) === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.news-grid .news-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.15s ease;
}
.news-grid .news-card:hover {
    border-color: #3f3f46;
    transform: translateY(-2px);
}
.news-grid .news-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}
.news-grid .news-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #27272a;
}
.news-grid .news-card__body { padding: 20px; }
.news-grid .news-card__date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 8px;
}
.news-grid .news-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fafafa;
    line-height: 1.4;
}
.news-grid .news-card__desc {
    font-size: 0.8125rem;
    color: #a1a1aa;
    margin-top: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Factory Modal (old) === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-box {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 32px;
    max-width: 480px;
    width: 92%;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a1a1aa;
}
.modal-close:hover { color: #fafafa; }
.modal-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; color: #fafafa; }
.modal-city { font-size: 0.875rem; color: #a1a1aa; margin-bottom: 16px; }
.modal-desc { font-size: 0.9375rem; color: #d4d4d8; line-height: 1.6; margin-bottom: 24px; }
.modal-products-label { font-size: 0.75rem; font-weight: 600; color: #a1a1aa; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.modal-products { font-size: 0.875rem; color: #d4d4d8; line-height: 1.6; margin-bottom: 24px; }
.modal-cta { font-size: 0.875rem; font-weight: 600; color: #d97706; margin-bottom: 8px; }
.modal-phone-link {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #d97706;
    text-decoration: none;
    margin-bottom: 24px;
}
.modal-phone-link:hover { color: #b45309; }
.modal-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-socials a {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}
.modal-socials a:hover { transform: translateY(-2px); }
.ms-wa { background: #25D366; }
.ms-wa:hover { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.ms-tg { background: #0088cc; }
.ms-tg:hover { box-shadow: 0 6px 20px rgba(0,136,204,0.4); }

/* === Chart Modal (exchange) === */
.chart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.chart-modal-overlay.active { opacity: 1; pointer-events: all; }
.chart-modal-content {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 32px;
    max-width: 700px;
    width: 92%;
    position: relative;
}
.chart-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a1a1aa;
}
.chart-modal-close:hover { color: #fafafa; }
.chart-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fafafa;
    margin-bottom: 4px;
}
.chart-modal-subtitle {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin-bottom: 16px;
}
.chart-tf-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.chart-tf-btn {
    padding: 6px 14px;
    border: 1px solid #27272a;
    border-radius: 6px;
    background: transparent;
    color: #a1a1aa;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Space Grotesk', sans-serif;
}
.chart-tf-btn.active { background: #d97706; color: #fff; border-color: #d97706; }
.chart-tf-btn:hover:not(.active) { border-color: #3f3f46; color: #fafafa; }

/* === No content === */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #a1a1aa;
    font-size: 0.9375rem;
}


/* === News List Page === */
.news-list { max-width: 800px; margin: 0 auto; }
.news-loading { text-align: center; padding: 60px 20px; color: #5a8a6d; }

.news-item {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.news-item:hover { border-color: #3f3f46; }
.news-item__header { margin-bottom: 16px; }
.news-item__meta { margin-bottom: 8px; }
.news-item__date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #22c55e;
}
.news-item__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fafafa;
    line-height: 1.3;
}
.news-item__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}
.news-item__desc-short {
    font-size: 0.9375rem;
    color: #d4d4d8;
    line-height: 1.6;
}
.news-item__desc-full {
    display: none;
    font-size: 0.9375rem;
    color: #d4d4d8;
    line-height: 1.8;
    margin-top: 12px;
}
.news-item.expanded .news-item__desc-short { display: none; }
.news-item.expanded .news-item__desc-full { display: block; }
.news-item__toggle {
    margin-top: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #d97706;
}
