/*
Theme Name: ScrapMonitor USA
Author: Sergiy Kyrylenko
Description: Повний файл стилів для аналітики цін на металобрухт. Включає нову логіку трендів та графіків.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
    --primary: #0f172a;      
    --primary-light: #1e293b;
    --accent: #b45309;       
    --accent-hover: #d97706;
    --bg-body: #f8fafc;
    --text-main: #334155;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --green: #16a34a;
    --red: #dc2626;
    --success: #10b981;      
    --danger: #ef4444;       
    --hover-bg: #f1f5f9;     
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    z-index: 100;
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo-link { text-decoration: none; color: inherit; display: flex; gap: 8px; align-items: center; }

.nav-links { 
    display: flex; 
    gap: 30px; 
    font-weight: 600; 
    font-size: 15px; 
}
.nav-links a:hover { color: var(--accent); }

.btn-header {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 3px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-header:hover { background: var(--accent); color: white; }

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-user-email {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-user-email:hover { color: var(--accent); }
.header-user-logout {
    font-size: 13px;
    color: var(--text-light);
}
.header-user-logout:hover { color: var(--danger); }
.drawer-footer .drawer-logout {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-light);
}
.drawer-footer .drawer-logout:hover { color: var(--danger); }

.market-ticker {
    background: var(--primary-light);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-live-indicator {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    color: #4ade80;
    background: var(--primary-light);
    padding: 0 15px 0 20px;
    box-shadow: 10px 0 15px var(--primary-light);
}

.pulse-dot {
    width: 8px; 
    height: 8px; 
    background: #4ade80; 
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse { 
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); } 
    70% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } 
}

.ticker-viewport {
    flex-grow: 1;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    margin-left: 80px;
}

.ticker-viewport::-webkit-scrollbar { display: none; }
.ticker-viewport:active { cursor: grabbing; }

.ticker-content {
    display: inline-flex;
    gap: 40px;
    padding-left: 20px;
    padding-right: 40px;
}

.ticker-item span { margin-left: 5px; font-weight: bold; }
.tick-up { color: #4ade80; }
.tick-down { color: #f87171; }
.tick-neutral { color: #94a3b8; }

.hot-section {
    margin-bottom: 60px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.section-header h2 { margin: 0; color: var(--primary); font-size: 24px; }
.link-more { color: var(--accent); font-weight: 600; font-size: 14px; }

.hot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.hot-card {
    background: white;
    padding: 20px;
    border-radius: 3px;
    border: 1px solid var(--border);
    text-align: center;
}
.hot-title { font-size: 14px; color: var(--text-light); text-transform: uppercase; }
.hot-price { font-size: 28px; font-weight: 800; color: var(--primary); margin: 10px 0; }
.hot-trend { 
    display: inline-block; 
    padding: 4px 10px; 
    border-radius: 3px; 
    font-size: 12px; 
    font-weight: 700; 
    background: #dcfce7; 
    color: var(--green); 
}

.map-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.map-container {
    display: flex;
    gap: 40px;
    align-items: center;
}
.map-text { flex: 1; }
.map-visual { 
    flex: 1.5; 
    background: #f1f5f9; 
    height: 400px; 
    border-radius: 3px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    border: 2px dashed #cbd5e1;
}
.state-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}
.state-link {
    padding: 8px;
    background: var(--bg-body);
    border-radius: 3px;
    font-size: 14px;
    transition: 0.2s;
}
.state-link:hover { background: var(--primary); color: white; }

.info-section {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.info-block h3 { color: var(--primary); margin-top: 0; }
.info-block p { line-height: 1.6; color: var(--text-light); }
.faq-item { margin-bottom: 15px; }
.faq-q { font-weight: 700; color: var(--primary); margin-bottom: 5px; display: block; }

.b2b-cta {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.b2b-cta h2 { font-size: 32px; margin-bottom: 15px; }
.b2b-cta p { color: #cbd5e1; max-width: 600px; margin: 0 auto 30px auto; font-size: 18px; }
.btn-b2b {
    background: var(--white);
    color: var(--primary);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 3px;
    border: none;
    cursor: pointer;
}
.btn-b2b:hover { background: #f1f5f9; }

footer {
    background: #0b1120;
    color: #64748b;
    padding: 40px 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col-cat .footer-accordion-trigger {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 1em;
    font-weight: 700;
    color: white;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.footer-col-cat .footer-accordion-trigger:hover { color: var(--accent); }
.footer-col-cat .footer-accordion-body { display: block; }
.footer-col-cat .footer-accordion-body ul { margin: 0; padding: 0; list-style: none; }
.footer-col-cat .footer-accordion-body a { color: #94a3b8; }
.footer-col-cat .footer-accordion-body a:hover { color: white; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr !important; }
    .footer-col-cat .footer-accordion-trigger {
        position: relative;
        padding-right: 28px;
    }
    .footer-col-cat .footer-accordion-trigger::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-60%) rotate(45deg);
        transition: transform 0.2s ease;
    }
    .footer-col-cat.is-open .footer-accordion-trigger::after {
        transform: translateY(-40%) rotate(-135deg);
    }
    .footer-col-cat .footer-accordion-body { display: none; }
    .footer-col-cat.is-open .footer-accordion-body { display: block; }
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    margin-top: 0;
}
.footer-bottom-brand {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: white;
    font-size: 15px;
}
.footer-bottom-copy {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

.page-content, .entry-content {
    background: var(--white);
    padding: 40px;
    border-radius: 3px;
    border: 1px solid var(--border);
    margin-top: 40px;
    margin-bottom: 40px;
    line-height: 1.8;
}
h1.page-title, h1.entry-title {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 800;
}
.entry-content ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; }
.entry-content p { margin-bottom: 20px; }
.aligncenter { display: block; margin: 0 auto; }
.alignright { float: right; margin-left: 20px; }
.alignleft { float: left; margin-right: 20px; }

.mobile-only { display: none; }
.desktop-only { display: flex; }

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 26px;
    padding: 0;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: 0.3s ease;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.drawer-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-body); 
}
.drawer-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-close-action {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 0;
    transition: all 0.2s ease;
}
.drawer-close-action .close-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.drawer-close-action:hover, 
.drawer-close-action:active {
    color: var(--primary); 
    transform: translateX(6px); 
}

.drawer-close {
    background: var(--bg-body);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}
.drawer-close:hover, .drawer-close:active {
    background: #fee2e2; 
    color: var(--red);
    border-color: #fca5a5;
    transform: rotate(90deg); 
}

.drawer-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}
.drawer-links a {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.drawer-links a::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
    margin-right: 15px; 
    opacity: 0.5;
    transition: 0.2s;
}

.drawer-links a::after {
    content: '›';
    margin-left: auto; 
    font-size: 24px;
    line-height: 1;
    color: #cbd5e1;
    transition: 0.2s;
}

.drawer-links a:hover, .drawer-links a:active {
    color: var(--accent);
    background: var(--bg-body);
    padding-left: 25px; 
}
.drawer-links a:hover::before, .drawer-links a:active::before {
    opacity: 1;
    transform: scale(1.5); 
}
.drawer-links a:hover::after, .drawer-links a:active::after {
    color: var(--accent);
    transform: translateX(4px); 
}

.drawer-footer {
    padding: 20px;
}
.drawer-login-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px;
    font-size: 16px;
    border-radius: 3px; 
}

body.menu-open {
    overflow: hidden; 
}
body.menu-open .mobile-drawer-overlay {
    opacity: 1;
    visibility: visible;
}
body.menu-open .mobile-drawer {
    transform: translateX(0); 
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .info-section, .map-container { display: block; }
    .map-text { margin-bottom: 30px; }
    .map-visual { height: 300px; margin-bottom: 20px; }
    .desktop-only { display: none !important; }
    .mobile-only { display: flex; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .logo { font-size: 20px; }
    .hot-grid { grid-template-columns: 1fr; }
    .info-section { grid-template-columns: 1fr; padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .drawer-close-action { padding: 10px 0 10px 20px; }
}

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0 80px 0;
    text-align: center;
}
.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}
.hero p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-microcopy {
    margin-top: 16px;
    font-size: 14px;
    color: #e2e8f0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.search-box {
    background: white;
    padding: 8px;
    border-radius: 3px;
    display: inline-flex;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
}
.search-input {
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 16px;
    flex-grow: 1;
    border-radius: 3px;
    min-width: 0;
}
.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-btn:hover { background: var(--accent-hover); }

.dashboard-section {
    margin-top: -40px;
    margin-bottom: 60px;
    position: relative; 
    z-index: 10;
}

.seo-info-section {
    padding: 50px 0 60px 0;
    background: var(--bg-body);
}

.seo-info-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.seo-methodology-card,
.seo-faq-card {
    padding: 30px;
}

.seo-info-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 16px 0;
    text-align: left;
}

.seo-info-body {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 20px 24px;
}

.seo-info-text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.seo-info-text.collapsed {
    max-height: 140px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
}

.seo-info-toggle {
    margin-top: 14px;
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.seo-info-toggle::after {
    content: '▼';
    font-size: 11px;
    transform: translateY(1px);
    transition: transform 0.2s ease;
}

.seo-info-toggle.is-open::after {
    transform: rotate(-180deg) translateY(-1px);
}

.seo-info-inner p {
    margin: 0 0 16px 0;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
}

.seo-info-h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 24px 0 10px 0;
}

.seo-info-list {
    margin: 0 0 16px 0;
    padding-left: 22px;
    color: var(--text-main);
    line-height: 1.7;
    font-size: 15px;
}

.seo-info-list li { margin-bottom: 8px; }

.seo-info-cta {
    margin-top: 24px !important;
    margin-bottom: 32px !important;
}

.seo-faq-title {
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

.seo-faq-accordion {
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-faq-item {
    margin: 0;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

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

.seo-faq-item.is-open {
    background-color: var(--hover-bg);
    box-shadow: inset 3px 0 0 var(--accent);
}

.seo-faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: background-color 0.2s ease;
}

.seo-faq-trigger:hover {
    background-color: var(--hover-bg);
}

.seo-faq-item.is-open .seo-faq-trigger:hover {
    background-color: transparent;
}

.seo-faq-q {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    flex: 1;
}

.seo-faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    color: var(--text-light);
    transition: transform 0.25s ease, color 0.2s ease;
}

.seo-faq-chevron::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -5px 0 0 -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.seo-faq-item.is-open .seo-faq-chevron {
    transform: rotate(-180deg);
    color: var(--accent);
}

.seo-faq-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.seo-faq-item.is-open .seo-faq-body {
    max-height: 400px;
}

.seo-faq-a {
    margin: 0 !important;
    padding: 0 20px 16px 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-light);
}

.seo-faq-a a,
.seo-faq-body a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.seo-faq-a a::after,
.seo-faq-body a::after {
    content: " ↗";
    font-size: 0.85em;
    margin-left: 2px;
    text-decoration: none;
}
.seo-faq-a a:hover,
.seo-faq-body a:hover {
    color: var(--accent-hover);
}
.seo-faq-a a:hover::after,
.seo-faq-body a:hover::after {
    color: var(--accent-hover);
}

.seo-info-inner .seo-info-list a,
.seo-info-inner .calc-info-tips-inner a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.seo-info-inner .seo-info-list a::after,
.seo-info-inner .calc-info-tips-inner a::after {
    content: " ↗";
    font-size: 0.85em;
    margin-left: 2px;
    text-decoration: none;
}
.seo-info-inner .seo-info-list a:hover,
.seo-info-inner .calc-info-tips-inner a:hover {
    color: var(--accent-hover);
}

.spm-main-card {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px;
    border: 1px solid var(--border);
}

.sc-dashboard-wrapper .section-title { 
    font-size: 20px; 
    color: var(--primary); 
    margin-top: 0; 
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 15px; 
    line-height: 1.2; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
}

.sc-dashboard-wrapper .update-info { 
    font-size: 13px; 
    color: var(--text-light); 
    font-weight: normal; 
}

.sc-dashboard-wrapper .grid-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

.metal-card { 
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: 3px; 
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-header { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--primary); 
    padding: 16px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-transform: uppercase; 
}

.tabs { 
    padding: 14px 20px 10px;
    display: flex; 
    gap: 10px; 
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.tabs-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    margin-right: auto;
    white-space: nowrap;
}

.tabs-buttons {
    display: flex;
    gap: 6px;
}

.tab-btn { 
    padding: 6px 12px; 
    border: 1px solid var(--border); 
    background: var(--white); 
    color: var(--text-main); 
    font-weight: 600; 
    cursor: pointer; 
    font-size: 12px; 
    transition: all 0.2s; 
    border-radius: 3px; 
}

.tab-btn.active { 
    background: var(--primary); 
    border-color: var(--primary); 
    color: #fff; 
}

.sc-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 80px 1fr 24px;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.price-list { padding-bottom: 10px; }

.list-row { 
    padding-top: 14px;
    padding-bottom: 14px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
    cursor: pointer;
    color: inherit;
    display: grid; 
}

.list-row:last-child { border-bottom: none; }
.list-row:hover { background-color: var(--hover-bg); }

.name-col { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.metal-name { font-size: 14px; font-weight: 600; color: var(--text-dark); line-height: 1.3; }

.sparkline-col { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.trend-title-inline { font-size: 8px; font-weight: 800; text-transform: uppercase; color: #94a3b8; letter-spacing: 0.08em; margin-bottom: 4px; opacity: 0.8; }
.sparkline-label { font-size: 9px; font-weight: 700; color: #cbd5e1; margin-top: -1px; }

.price-col { text-align: right; padding-right: 4px; }
.price-range { font-size: 15px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.unit { font-size: 11px; color: var(--text-light); font-weight: 500; }

.price-meta {
    font-size: 10px; color: var(--text-light); margin-top: 1px;
    display: flex; align-items: center; justify-content: flex-end; gap: 4px;
}

.row-arrow {
    opacity: 0.5; 
    transform: translateX(0);
    transition: 0.2s ease;
    color: #cbd5e1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.row-arrow svg {
    width: 18px; 
    height: 18px;
    display: block;
}

.list-row:hover .row-arrow {
    opacity: 1; 
    transform: translateX(4px); 
    color: var(--accent);
}
.list-row:hover .row-arrow {
    opacity: 1;
    transform: translateX(4px);
    color: var(--accent);
}

.footer-plate { 
    display: block; text-align: right; padding: 14px 20px;
    text-decoration: none; color: var(--accent); font-weight: 700; 
    font-size: 14px; background: #fff; border-top: 1px solid #f1f5f9;
}

.sc-search-results { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: #fff; border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); overflow: hidden; display: none; text-align: left; max-height: 300px; overflow-y: auto; border: 1px solid #e2e8f0; z-index: 30; }
.sc-search-results.active { display: block; }
.sc-search-item { display: block; padding: 12px 15px; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: #1e293b; }
.sc-search-title { display: block; font-weight: 700; font-size: 15px; color: #b45309; }
.sc-search-desc { display: block; font-size: 12px; color: #64748b; }
.sc-search-suggestion { padding: 0 15px 10px; font-size: 13px; color: #64748b; text-align: center; }
.sc-states-grid { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 15px; justify-content: center; }
.sc-state-link { background: #f8fafc; color: #b45309; padding: 6px 12px; border-radius: 3px; font-size: 12px; font-weight: 600; border: 1px solid #e2e8f0; }

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.info-icon:hover {
    background-color: #e2e8f0;
    color: var(--text-dark);
}

.badge-hot {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .hero { padding: 40px 0 60px 0; }
    .hero h1 { font-size: 32px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .search-box { flex-direction: column; padding: 10px; }
    .search-input { width: 100%; margin-bottom: 10px; text-align: center; }
    .search-btn { width: 100%; }

    .dashboard-section { margin-top: -30px; }
    .spm-main-card { padding: 20px 15px; }
    
    .sc-dashboard-wrapper .grid-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .sc-dashboard-wrapper .section-title { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
    
    .sc-grid-layout {
        grid-template-columns: 1fr auto 24px;
        grid-template-rows: auto auto;
        gap: 4px 10px;
        padding: 12px 15px;
    }
    .name-col { grid-column: 1; grid-row: 1; }
    .trend-title-inline { display: none; }
    .sparkline-col { 
        grid-column: 1; grid-row: 2; 
        flex-direction: row; justify-content: flex-start; 
        gap: 8px; height: 20px; 
    }
    .sparkline-col svg { width: 50px; height: 16px; }
    .sparkline-label { margin-top: 0; }
    .price-col { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    
    .row-arrow { 
        grid-column: 3; 
        grid-row: 1 / span 2; 
        align-self: center; 
        opacity: 0.8; 
    }
    .row-arrow svg { 
        width: 18px; 
        height: 18px; 
    }
    
    .price-range { font-size: 14px; }
    .tabs { justify-content: space-between; }
    .tabs-label { display: none; } 
    
    .info-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}