:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #1c1c1f;
    --bg-hover: #252528;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --bitcoin-orange: #f7931a;
    --bitcoin-orange-dim: rgba(247, 147, 26, 0.15);
    --bitcoin-orange-glow: rgba(247, 147, 26, 0.4);
    --success: #22c55e;
    --success-dim: rgba(34, 197, 94, 0.15);
    --america-blue: #3b82f6;
    --america-blue-dim: rgba(59, 130, 246, 0.15);
    --america-red: #ED1C24;
    --america-red-dim: rgba(237, 28, 36, 0.15);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient background effects */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.ambient-orb.orange {
    width: 600px;
    height: 600px;
    background: var(--bitcoin-orange);
    top: -200px;
    right: -100px;
    opacity: 0.08;
}

.ambient-orb.blue {
    width: 400px;
    height: 400px;
    background: var(--america-blue);
    bottom: -100px;
    left: -100px;
    opacity: 0.05;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1002;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #e8850e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 16px var(--bitcoin-orange-dim);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.logo-text span {
    color: var(--bitcoin-orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--bitcoin-orange);
}

.btn-primary {
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #e8850e 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--bitcoin-orange-dim);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1001;
    padding-top: 80px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu .nav-link {
    font-size: 20px;
    font-weight: 600;
}

/* Common Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 32px 24px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--bitcoin-orange);
}

/* -------------------------------------------------------------------------- */
/* HOME PAGE (Index) */
/* -------------------------------------------------------------------------- */
.layout-home main {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100vh;
    padding-top: 64px;
}

.sidebar {
    width: 420px;
    min-width: 420px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 3px var(--bitcoin-orange-dim);
}

.location-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-hover);
    border: none;
    border-radius: 8px;
    padding: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-btn:hover {
    background: var(--bitcoin-orange-dim);
    color: var(--bitcoin-orange);
}

.filter-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--bitcoin-orange-dim);
    border-color: var(--bitcoin-orange);
    color: var(--bitcoin-orange);
}

.filter-pill.america-first {
    background: var(--america-blue-dim);
    border-color: var(--america-blue);
    color: var(--america-blue);
}

.filter-pill svg {
    width: 14px;
    height: 14px;
}

.results-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.results-count strong {
    color: var(--text-primary);
    font-weight: 600;
}

.sort-dropdown {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
}

.atm-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.atm-list::-webkit-scrollbar {
    width: 6px;
}

.atm-list::-webkit-scrollbar-track {
    background: transparent;
}

.atm-list::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.atm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.atm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--bitcoin-orange);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.atm-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

/* Only apply translation on desktop hover */
@media (min-width: 901px) {
    .atm-card:hover {
        transform: translateX(4px);
    }
}

.atm-card:hover::before {
    opacity: 1;
}

.atm-card.america-btm {
    border-color: var(--america-blue);
    background: linear-gradient(135deg, var(--america-blue-dim) 0%, var(--bg-card) 100%);
}

.atm-card.america-btm::before {
    background: var(--america-blue);
    opacity: 1;
}

.atm-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.atm-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.atm-operator {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.atm-distance {
    font-size: 13px;
    font-weight: 500;
    color: var(--bitcoin-orange);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

.atm-address {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.atm-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.atm-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 6px;
}

.atm-tag svg {
    width: 12px;
    height: 12px;
}

.atm-tag.open {
    background: var(--success-dim);
    color: var(--success);
}

.atm-tag.promo {
    background: var(--america-blue-dim);
    color: var(--america-blue);
    font-weight: 600;
}

.america-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--america-blue);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-container {
    flex: 1;
    position: relative;
    /* Ensure z-index is managed correctly */
    z-index: 10;
}

#map {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
}

.stats-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 17, 19, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    padding: 12px 24px;
    display: flex;
    gap: 32px;
    z-index: 1000;
}

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

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.stat-value.orange {
    color: var(--bitcoin-orange);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Map Customization */
.leaflet-container {
    background: var(--bg-tertiary);
    font-family: 'Outfit', sans-serif;
}

.custom-marker {
    background: var(--bitcoin-orange);
    border: 3px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.2);
}

.custom-marker.america {
    background: var(--america-blue);
    width: 36px;
    height: 36px;
    border-width: 4px;
}

.custom-marker svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-medium);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.leaflet-popup-tip {
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-top: none;
    border-left: none;
}

.leaflet-popup-close-button {
    color: var(--text-muted) !important;
    font-size: 20px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 4px !important;
}

.popup-content {
    padding: 20px;
}

.popup-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.popup-icon {
    width: 44px;
    height: 44px;
    background: var(--bitcoin-orange-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popup-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--bitcoin-orange);
}

.popup-icon.america {
    background: var(--america-blue-dim);
}

.popup-icon.america svg {
    fill: var(--america-blue);
}

.popup-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.popup-operator {
    font-size: 13px;
    color: var(--text-muted);
}

.popup-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.popup-row svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.popup-row-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.popup-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.popup-btn-primary {
    background: var(--bitcoin-orange);
    color: white;
    border: none;
}

.popup-btn-primary:hover {
    background: #e8850e;
}

.popup-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.popup-btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.popup-btn svg {
    width: 14px;
    height: 14px;
}

.leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

.custom-cluster-icon {
    background: transparent !important;
}

.cluster-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
}

.cluster-icon span {
    font-size: 12px;
}

.cluster-small {
    width: 36px;
    height: 36px;
    background: var(--bitcoin-orange);
}

.cluster-medium {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--bitcoin-orange), #e8850e);
}

.cluster-medium span {
    font-size: 13px;
}

.cluster-large {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e8850e, #d47810);
}

.cluster-large span {
    font-size: 14px;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: transparent !important;
}

/* -------------------------------------------------------------------------- */
/* CONTENT PAGES (News, Operators) */
/* -------------------------------------------------------------------------- */
.layout-content main {
    position: relative;
    z-index: 1;
    padding-top: 64px;
    min-height: 100vh;
}

.page-header {
    padding: 48px 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Filter Bar for Content Pages */
.filter-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.refresh-btn {
    margin-left: auto;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.refresh-btn:hover {
    border-color: var(--bitcoin-orange);
    color: var(--bitcoin-orange);
}

.refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* News Grid */
.news-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
}

.news-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.5;
}

.news-source-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.news-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-time svg {
    width: 14px;
    height: 14px;
}

.news-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-title {
    color: var(--bitcoin-orange);
}

.news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.news-source {
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--bg-tertiary);
}

.source-name {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more {
    font-size: 13px;
    color: var(--bitcoin-orange);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.news-card:hover .read-more {
    gap: 8px;
}

.read-more svg {
    width: 14px;
    height: 14px;
}

.featured-article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.featured-article:hover {
    border-color: var(--bitcoin-orange);
    box-shadow: 0 20px 40px rgba(247, 147, 26, 0.1);
}

.featured-article .news-image {
    height: 100%;
    min-height: 320px;
}

.featured-article .news-content {
    padding: 32px;
    justify-content: center;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bitcoin-orange-dim);
    color: var(--bitcoin-orange);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.featured-badge svg {
    width: 12px;
    height: 12px;
}

.featured-article .news-title {
    font-size: 24px;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.featured-article .news-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

/* Operators Page */
.operators-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 24px;
    height: 24px;
}

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

.featured-section {
    margin-bottom: 48px;
}

.featured-section .section-title {
    color: var(--bitcoin-orange);
}

.featured-section .section-title svg {
    fill: var(--bitcoin-orange);
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.operator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.operator-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.operator-card.featured {
    border-color: var(--bitcoin-orange);
    background: linear-gradient(135deg, var(--bitcoin-orange-dim) 0%, var(--bg-card) 100%);
}

.operator-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--bitcoin-orange);
}

.operator-card.featured:hover {
    border-color: var(--bitcoin-orange);
    box-shadow: 0 20px 40px var(--bitcoin-orange-dim);
}

.operator-card.standard {
    border-color: var(--border-subtle);
}

.operator-card.standard:hover {
    border-color: var(--text-muted);
}

.card-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background: var(--bitcoin-orange);
    color: white;
}

.badge-promo {
    background: var(--success);
    color: white;
}

.badge-top {
    background: var(--america-blue);
    color: white;
}

.operator-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.operator-logo {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.operator-card.featured .operator-logo {
    background: white;
    color: var(--bitcoin-orange);
}

.operator-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.operator-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.operator-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stat {
    flex: 1;
    text-align: center;
}

.operator-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-tag {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.feature-tag svg {
    width: 12px;
    height: 12px;
}

.feature-tag.highlight {
    background: var(--success-dim);
    border-color: var(--success);
    color: var(--success);
}

.feature-tag.promo {
    background: var(--america-red-dim);
    border-color: var(--america-red);
    color: var(--america-red);
    font-weight: 600;
}

.operator-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--bitcoin-orange);
    color: var(--text-primary);
}

.btn-secondary svg {
    width: 14px;
    height: 14px;
}

.btn-featured {
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #e8850e 100%);
    border: none;
    color: white;
}

.btn-featured:hover {
    box-shadow: 0 8px 24px var(--bitcoin-orange-dim);
}

.standard-section {
    margin-bottom: 48px;
}

.become-featured-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    padding: 48px;
    margin-top: 48px;
}

.cta-header {
    text-align: center;
    margin-bottom: 40px;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #e8850e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
}

.pricing-card.recommended {
    border-color: var(--bitcoin-orange);
    position: relative;
}

.pricing-card.recommended::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bitcoin-orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pricing-icon {
    width: 64px;
    height: 64px;
    background: var(--bitcoin-orange-dim);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pricing-icon svg {
    width: 32px;
    height: 32px;
    color: var(--bitcoin-orange);
}

.pricing-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.pricing-price strong {
    color: var(--bitcoin-orange);
    font-family: 'JetBrains Mono', monospace;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

.cta-contact {
    text-align: center;
}

.cta-contact p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.cta-btn {
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #e8850e 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--bitcoin-orange-dim);
}

/* Loading/Error/Empty States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content,
.loading-state,
.error-state,
.empty-state {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-medium);
    border-top-color: var(--bitcoin-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

.loading-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.error-icon,
.empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-icon svg,
.empty-icon svg {
    width: 36px;
    height: 36px;
    color: var(--text-muted);
}

.empty-title,
.error-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-desc,
.error-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* MEDIA QUERIES */
/* -------------------------------------------------------------------------- */
@media (max-width: 900px) {

    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        display: flex;
    }

    /* Index Page Layout */
    .layout-home main {
        flex-direction: column-reverse;
        position: relative;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 55vh;
        border-right: none;
        border-top: 1px solid var(--border-subtle);
        position: relative;
        z-index: 500;
        background: var(--bg-secondary);
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        transition: max-height 0.3s ease;
    }

    .sidebar.collapsed {
        max-height: 140px;
    }

    .sidebar.expanded {
        max-height: 85vh;
    }

    .sidebar::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--border-medium);
        border-radius: 2px;
        z-index: 10;
    }

    .map-container {
        height: 50vh;
        min-height: 50vh;
    }

    .stats-bar {
        display: none;
    }

    .search-section {
        padding: 24px 16px 12px;
    }

    .search-input {
        padding: 14px 48px 14px 44px;
        font-size: 16px;
        /* Prevents iOS zoom */
    }

    .filter-section {
        padding: 8px 16px 12px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-section::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .results-header {
        padding: 12px 16px;
    }

    .atm-list {
        padding: 8px 16px 100px;
    }

    .atm-card {
        padding: 18px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .atm-card:active {
        transform: scale(0.98);
        background: var(--bg-hover);
    }

    .atm-card:hover {
        transform: none;
    }

    .atm-name {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .atm-operator {
        font-size: 13px;
    }

    .atm-distance {
        font-size: 14px;
        padding: 4px 10px;
        background: var(--bitcoin-orange-dim);
        border-radius: 8px;
    }

    .atm-address {
        font-size: 14px;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .atm-meta {
        gap: 8px;
    }

    .atm-tag {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 8px;
    }

    .america-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Content Pages Layout */
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article .news-image {
        min-height: 240px;
    }

    .featured-article .news-content {
        padding: 24px;
    }

    .featured-article .news-title {
        font-size: 20px;
    }

    header {
        padding: 0;
    }

    .header-content {
        height: 56px;
        padding: 0 16px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {

    .news-grid,
    .operators-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 24px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .refresh-btn {
        margin-left: 0;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .filter-pill {
        padding: 8px 12px;
        font-size: 12px;
    }

    .filter-pill svg {
        width: 12px;
        height: 12px;
    }

    .atm-card {
        padding: 16px;
    }

    .atm-name {
        font-size: 16px;
    }
}

/* -------------------------------------------------------------------------- */
/* REGULATIONS HUB */
/* -------------------------------------------------------------------------- */
.regulations-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* Federal Alert Banner */
.federal-alert {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, var(--america-blue-dim) 0%, var(--bg-card) 100%);
    border: 1px solid var(--america-blue);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.federal-alert .alert-icon {
    width: 48px;
    height: 48px;
    background: var(--america-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.federal-alert .alert-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.federal-alert .alert-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.federal-alert .alert-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Regulation Stats Bar */
.reg-stats-bar {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.reg-stat {
    text-align: center;
    padding: 0 32px;
    border-right: 1px solid var(--border-subtle);
}

.reg-stat:last-child {
    border-right: none;
}

.reg-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--bitcoin-orange);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}

.reg-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Summary Table Section */
.summary-section {
    margin-bottom: 48px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.reg-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.reg-table th,
.reg-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.reg-table th {
    background: var(--bg-tertiary);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reg-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.reg-table td a {
    color: var(--bitcoin-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.reg-table td a:hover {
    color: #e8850e;
    text-decoration: underline;
}

.reg-table tbody tr:hover {
    background: var(--bg-hover);
}

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

.reg-table .mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.active {
    background: var(--success-dim);
    color: var(--success);
}

.status-badge.pending {
    background: var(--bitcoin-orange-dim);
    color: var(--bitcoin-orange);
}

/* States Grid */
.states-section {
    margin-bottom: 48px;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.state-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.state-card:hover {
    transform: translateY(-4px);
    border-color: var(--bitcoin-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.state-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.state-abbr {
    width: 48px;
    height: 48px;
    background: var(--bitcoin-orange-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--bitcoin-orange);
    font-family: 'JetBrains Mono', monospace;
}

.state-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.state-limits {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.limit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.limit-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.limit-row:first-child {
    padding-top: 0;
}

.limit-label {
    font-size: 13px;
    color: var(--text-muted);
}

.limit-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.state-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-tag {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-tag.fee {
    background: var(--bitcoin-orange-dim);
    border-color: var(--bitcoin-orange);
    color: var(--bitcoin-orange);
}

.meta-tag.status {
    background: var(--america-blue-dim);
    border-color: var(--america-blue);
    color: var(--america-blue);
}

/* Info Section */
.info-section {
    margin-bottom: 48px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--bitcoin-orange-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bitcoin-orange);
}

.info-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.info-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Disclaimer Box */
.disclaimer-box {
    display: flex;
    gap: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.disclaimer-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-box strong {
    color: var(--text-secondary);
}

/* -------------------------------------------------------------------------- */
/* STATE REGULATION PAGE */
/* -------------------------------------------------------------------------- */
.state-page-header {
    padding: 48px 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--bitcoin-orange);
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
}

.state-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.state-title-row .state-abbr {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.state-title-row h1 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.state-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 800px;
}

/* State Content Layout */
.state-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.state-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.state-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Quick Facts Card */
.quick-facts-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 88px;
}

.quick-facts-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.quick-facts-card h3 svg {
    width: 20px;
    height: 20px;
    color: var(--bitcoin-orange);
}

.fact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.fact-row:last-child {
    border-bottom: none;
}

.fact-label {
    font-size: 13px;
    color: var(--text-muted);
}

.fact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.fact-value.highlight {
    color: var(--bitcoin-orange);
}

/* Regulation Sections */
.reg-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
}

.reg-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.reg-section h2 svg {
    width: 24px;
    height: 24px;
    color: var(--bitcoin-orange);
}

.reg-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.reg-section p:last-child {
    margin-bottom: 0;
}

.reg-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reg-section ul li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-subtle);
}

.reg-section ul li:last-child {
    border-bottom: none;
}

.reg-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--bitcoin-orange);
    border-radius: 50%;
}

/* Highlight Box */
.highlight-box {
    background: var(--bitcoin-orange-dim);
    border: 1px solid var(--bitcoin-orange);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.highlight-box.blue {
    background: var(--america-blue-dim);
    border-color: var(--america-blue);
}

.highlight-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--bitcoin-orange);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-box.blue h4 {
    color: var(--america-blue);
}

.highlight-box h4 svg {
    width: 16px;
    height: 16px;
}

.highlight-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Warning Box */
.warning-box {
    background: var(--america-red-dim);
    border: 1px solid var(--america-red);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.warning-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--america-red);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box h4 svg {
    width: 16px;
    height: 16px;
}

.warning-box p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Limits Table */
.limits-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.limits-table th,
.limits-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.limits-table th {
    background: var(--bg-tertiary);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.limits-table th:first-child {
    border-radius: 8px 0 0 0;
}

.limits-table th:last-child {
    border-radius: 0 8px 0 0;
}

.limits-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.limits-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.limits-table tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

.limits-table .mono {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* Bill Reference */
.bill-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bill-ref:hover {
    border-color: var(--bitcoin-orange);
    color: var(--bitcoin-orange);
}

.bill-ref svg {
    width: 14px;
    height: 14px;
}

/* State Navigation */
.state-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.state-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    flex: 1;
    max-width: 250px;
}

.state-nav-btn:hover {
    border-color: var(--bitcoin-orange);
    color: var(--text-primary);
}

.state-nav-btn.next {
    flex-direction: row-reverse;
    margin-left: auto;
    text-align: right;
}

.state-nav-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.state-nav-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.state-nav-name {
    font-size: 15px;
    font-weight: 600;
    color: inherit;
}

/* Regulations Mobile */
@media (max-width: 900px) {
    .state-content {
        grid-template-columns: 1fr;
    }

    .state-sidebar {
        order: -1;
    }

    .quick-facts-card {
        position: static;
    }

    .federal-alert {
        flex-direction: column;
        text-align: center;
    }

    .federal-alert .alert-icon {
        margin: 0 auto;
    }

    .reg-stats-bar {
        flex-direction: column;
        gap: 20px;
    }

    .reg-stat {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px 0;
    }

    .reg-stat:last-child {
        border-bottom: none;
    }

    .state-title-row {
        flex-direction: column;
        text-align: center;
    }

    .state-title-row h1 {
        font-size: 28px;
    }

    .state-subtitle {
        text-align: center;
    }

    .state-nav {
        flex-direction: column;
    }

    .state-nav-btn {
        max-width: none;
    }

    .state-nav-btn.next {
        flex-direction: row;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .states-grid {
        grid-template-columns: 1fr;
    }

    .reg-table th,
    .reg-table td {
        padding: 12px 14px;
        font-size: 12px;
    }

    .reg-section {
        padding: 20px;
    }

    .reg-section h2 {
        font-size: 18px;
    }
}

/* -------------------------------------------------------------------------- */
/* CONTEXT NOTICE */
/* -------------------------------------------------------------------------- */
.context-notice {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--bitcoin-orange);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.context-icon {
    width: 40px;
    height: 40px;
    background: var(--bitcoin-orange-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.context-icon svg {
    width: 20px;
    height: 20px;
    color: var(--bitcoin-orange);
}

.context-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.context-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.context-content p:last-child {
    margin-bottom: 0;
}

.context-content strong {
    color: var(--text-primary);
}

.context-cta {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px !important;
}

@media (max-width: 600px) {
    .context-notice {
        flex-direction: column;
        text-align: center;
    }

    .context-icon {
        margin: 0 auto;
    }
}

/* -------------------------------------------------------------------------- */
/* SEARCH COMPONENT */
/* -------------------------------------------------------------------------- */
.search-container {
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 3px var(--bitcoin-orange-dim);
}

.search-clear {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.search-clear svg {
    width: 16px;
    height: 16px;
}

.search-results-count {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    min-height: 20px;
}

/* -------------------------------------------------------------------------- */
/* LAST UPDATED */
/* -------------------------------------------------------------------------- */
.last-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.last-updated time {
    color: var(--text-secondary);
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* FAQ SECTION */
/* -------------------------------------------------------------------------- */
.faq-section {
    margin-bottom: 48px;
}

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--border-medium);
}

.faq-item[open] {
    border-color: var(--bitcoin-orange);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: var(--bg-hover);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-question svg {
    transform: rotate(180deg);
    color: var(--bitcoin-orange);
}

.faq-answer {
    padding: 0 20px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-answer strong {
    color: var(--bitcoin-orange);
}

/* Enhanced Table Link Hover States */
.reg-table td a {
    position: relative;
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 4px;
}

.reg-table td a:hover {
    background: var(--bitcoin-orange-dim);
    text-decoration: none;
}

.reg-table td a:focus {
    outline: 2px solid var(--bitcoin-orange);
    outline-offset: 2px;
}

/* Improved hover for status badges with tooltips */
.status-badge {
    cursor: help;
    position: relative;
}

.status-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 6px;
}

/* FAQ Mobile */
@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .search-input {
        padding: 12px 44px;
        font-size: 14px;
    }

    .faq-question {
        padding: 16px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 16px 16px;
    }
}