/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}
/* inter-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}
/* inter-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}
/* inter-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}
/* inter-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/inter-v20-latin-800.woff2') format('woff2');
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-secondary: #6b7280;
    --accent-color: #f7931a;
    --accent-orange: #ff6b00;
    --accent-hover: #e65100;
    --border-color: #e5e7eb;
    --trends-bg: #fafafa;
    --container-width: 1200px;
    --gradient-orange: linear-gradient(135deg, #ff6b00 0%, #ff8f3d 100%);
    --sidebar-width: 320px;
    --overlay-bg: rgba(0,0,0,.4);
    --ticker-bg: #0f0f0f;
    --ticker-text: #ffffff;
    --positive-color: #10b981;
    --negative-color: #ef4444;
    --ticker-accent: #ff6b00;

    /* Footer tokens */
    --footer-bg-top: #1a1a2e;
    --footer-bg-bottom: #16213e;
    --footer-padding-x: clamp(16px, 4vw, 40px);
    --footer-padding-y: clamp(40px, 6vw, 80px);
    --footer-gap: clamp(28px, 4vw, 56px);
    --footer-font-base: clamp(12px, 1.4vw, 14px);
    --footer-radius-sm: 8px;
    --footer-radius-md: 12px;

    /* Category accents */
    --cat-main: #ff6b00;
    --cat-regulation: #3b82f6;
    --cat-defi: #8b5cf6;
    --cat-nft: #ec4899;
    --cat-mining: #f59e0b;
    --cat-incident: #ef4444;
    --cat-markets: #10b981;
    --cat-ai: #06b6d4;
    --cat-gamefi: #f97316;
    --cat-adoption: #14b8a6;
    --cat-technology: #6366f1;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
}

/* *:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
} */

a {
    text-decoration:none;
    color:inherit
}

@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pulse-dot{0%,100%{opacity:.6}50%{opacity:1}}
@keyframes blink{0%,100%{opacity:.3}50%{opacity:1}}

.ticker-change{font-weight:600;padding:2px 6px;border-radius:4px;display:flex;align-items:center;gap:3px}
.ticker-change.positive{background:rgba(16,185,129,.12);color:#10b981}
.ticker-change.negative{background:rgba(239,68,68,.12);color:#ef4444}

/* ============================================
    TICKER BAR
============================================ */

.ticker-bar {
    background: var(--ticker-bg);
    color: var(--ticker-text);
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.ticker-wrapper{display:flex;align-items:center;height:25px;position:relative}

.ticker-label {
    position: absolute;
    left: 0;top: 0;bottom: 0;
    background: linear-gradient(90deg,#0f0f14 0%,#0f0f14 70%,transparent 100%);
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .5px;
    z-index: 1001;
    height: 25px;
    min-width: 80px;
}

.ticker-label-icon{width:6px;height:6px;background:var(--ticker-accent);border-radius:50%;animation:pulse-dot 2s ease-in-out infinite}
.ticker-label-text{color:rgba(255,255,255,.5);text-transform:uppercase}

.ticker-content {
    display: flex;
    padding-left: 90px;
    animation: scroll 80s linear infinite;
    will-change: transform;
}

.ticker-content:hover{animation-play-state:paused}

@keyframes scroll{
    0%{transform:translateX(0)}
    100%{transform:translateX(-50%)}
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease;
    flex-shrink: 0;
    position: relative;
}

.ticker-item::after{content:'';position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px;height:16px;background:rgba(255,255,255,.06)}
.ticker-item:hover{background:rgba(255,255,255,.03)}

.ticker-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ticker-icon img{width:16px;height:16px;object-fit:contain}
.ticker-symbol{font-weight:600;font-size:12px;color:rgba(255,255,255,.9);letter-spacing:.3px}
.ticker-price{font-weight:500;font-size:12px;color:rgba(255,255,255,.7);font-family:'Inter',monospace}
.ticker-change{font-size:11px}
.ticker-change svg{width:10px;height:10px}

.ticker-loading{display:flex;align-items:center;justify-content:center;height:25px;font-size:11px;color:rgba(255,255,255,.5);gap:10px;font-weight:500}
.ticker-loading-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.2);border-top-color:var(--ticker-accent);border-radius:50%;animation:spin .8s linear infinite}
.ticker-error{display:flex;align-items:center;justify-content:center;height:25px;font-size:11px;color:var(--negative-color);gap:8px;font-weight:500}

.ticker-update-time {
    position: absolute;
    right: 16px;top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255,255,255,.3);
    z-index: 3;
    background: linear-gradient(270deg,#0f0f14 0%,#0f0f14 70%,transparent 100%);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    letter-spacing: .3px;
}

.ticker-update-time::before{content:'';width:4px;height:4px;background:rgba(255,255,255,.3);border-radius:50%;animation:blink 2s ease-in-out infinite}

/* ============================================
    SEARCH OVERLAY
============================================ */

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay.active{opacity:1;visibility:visible}

.search-overlay-content {
    width: 90%;
    max-width: 700px;
    transform: translateY(-30px);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.search-overlay.active .search-overlay-content{transform:translateY(0)}

.search-overlay-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding:0 8px}

.search-overlay-title{font-size:14px;font-weight:600;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:1px;display:flex;align-items:center;gap:8px}
.search-overlay-title svg{width:18px;height:18px;color:var(--accent-orange)}

.search-overlay-close{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.1);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s;color:rgba(255,255,255,.6)}
.search-overlay-close:hover{background:rgba(255,107,0,.2);color:var(--accent-orange);transform:rotate(90deg)}
.search-overlay-close svg{width:20px;height:20px}

.search-overlay-form{position:relative;margin-bottom:32px}
.search-overlay-input-wrapper{position:relative}

.search-overlay-input {
    width: 100%;
    padding: 24px 72px 24px 64px;
    background: rgba(255,255,255,.95);
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 20px;
    font-family: 'Inter',sans-serif;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    transition: all .3s;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.search-overlay-input:focus{background:#fff;border-color:var(--accent-orange);box-shadow:0 12px 48px rgba(255,107,0,.25)}
.search-overlay-input::placeholder{color:var(--text-muted);font-weight:400}
.search-overlay-input-icon{position:absolute;left:24px;top:50%;transform:translateY(-50%);width:24px;height:24px;color:var(--accent-orange)}

.search-overlay-submit{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:52px;height:52px;background:var(--gradient-orange);border:none;border-radius:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s;color:#fff}
.search-overlay-submit:hover{transform:translateY(-50%) scale(1.05);box-shadow:0 4px 20px rgba(255,107,0,.4)}
.search-overlay-submit:active{transform:translateY(-50%) scale(.98)}
.search-overlay-submit svg{width:20px;height:20px}

.search-overlay-suggestions{background:rgba(255,255,255,.95);border-radius:16px;padding:20px;box-shadow:0 8px 32px rgba(0,0,0,.15)}
.search-suggestions-title{font-size:12px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:16px;display:flex;align-items:center;gap:6px}
.search-suggestions-title svg{width:14px;height:14px;color:var(--accent-orange)}
.search-suggestions-list{display:flex;flex-wrap:wrap;gap:10px}

.search-suggestion-tag{padding:10px 18px;background:#fff;border:1.5px solid var(--border-color);border-radius:12px;font-size:14px;font-weight:500;color:var(--text-main);cursor:pointer;transition:all .3s;display:flex;align-items:center;gap:6px}
.search-suggestion-tag:hover{background:linear-gradient(135deg,rgba(255,107,0,.1) 0%,rgba(255,143,61,.1) 100%);border-color:var(--accent-orange);color:var(--accent-orange);transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,107,0,.15)}
.search-suggestion-tag svg{width:14px;height:14px}

.search-overlay-hint{text-align:center;margin-top:24px;padding:0 8px}
.search-overlay-hint-text{font-size:13px;color:rgba(255,255,255,.5);display:flex;align-items:center;justify-content:center;gap:8px}
.search-overlay-hint-key{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:6px;font-size:11px;font-weight:600;font-family:'Inter',monospace}

/* ============================================
    SIDEBAR
============================================ */

.header-sidebar-overlay{position:fixed;inset:0;background:var(--overlay-bg);backdrop-filter:blur(4px);z-index:1001;opacity:0;visibility:hidden;transition:all .3s cubic-bezier(.4,0,.2,1)}
.header-sidebar-overlay.active{opacity:1;visibility:visible}

.header-sidebar {
    position: fixed;
    top: 0;left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--primary-bg);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(0,0,0,.08);
}

.header-sidebar.active{transform:translateX(0)}

.header-sidebar-header{padding:20px 24px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between}
.header-sidebar-logo{display:flex;align-items:center;gap:12px;text-decoration:none}
.header-sidebar-logo-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center}
.header-sidebar-logo-icon svg{width:20px;height:20px}
.header-sidebar-brand{font-size:20px;font-weight:800;color:var(--text-main);letter-spacing:-.5px}
.header-sidebar-brand span{background:var(--gradient-orange);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

.header-sidebar-close{width:36px;height:36px;border-radius:8px;background:var(--secondary-bg);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}
.header-sidebar-close:hover{background:#e5e7eb;transform:rotate(90deg)}
.header-sidebar-close svg{width:20px;height:20px;stroke:var(--text-main)}

.header-sidebar-search{padding:20px 24px;border-bottom:1px solid var(--border-color)}
.header-search-form{position:relative}

.header-search-input{width:100%;padding:12px 16px 12px 44px;border:1px solid var(--border-color);border-radius:12px;font-size:14px;font-family:'Inter',sans-serif;background:var(--secondary-bg);transition:all .2s;outline:none}
.header-search-input:focus{background:#fff;border-color:var(--accent-orange);box-shadow:0 0 0 3px rgba(255,107,0,.1)}
.header-search-input::placeholder{color:var(--text-muted)}
.header-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--text-muted);pointer-events:none}

.header-sidebar-content{flex:1;overflow-y:auto;padding:8px 0}
.header-sidebar-content::-webkit-scrollbar{width:6px}
.header-sidebar-content::-webkit-scrollbar-track{background:transparent}
.header-sidebar-content::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}
.header-sidebar-content::-webkit-scrollbar-thumb:hover{background:#9ca3af}

.header-menu-section{padding:8px 16px}

.header-menu-item{display:flex;align-items:center;padding:12px 16px;margin:2px 0;border-radius:10px;color:var(--text-main);text-decoration:none;font-size:15px;font-weight:500;transition:all .2s;cursor:pointer;position:relative}
.header-menu-item:hover{background:var(--secondary-bg);color:var(--accent-orange)}
.header-menu-item.active{background:linear-gradient(135deg,rgba(255,107,0,.1) 0%,rgba(255,143,61,.1) 100%);color:var(--accent-orange);font-weight:600}
.header-menu-item.active::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:60%;background:var(--gradient-orange);border-radius:0 4px 4px 0}
.header-menu-item-icon{width:20px;height:20px;margin-right:12px}

.header-menu-collapsible{margin:2px 0}

.header-menu-trigger{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:10px;color:var(--text-main);font-size:15px;font-weight:500;cursor:pointer;transition:all .2s;background:none;border:none;width:100%;text-align:left}
.header-menu-trigger:hover{background:var(--secondary-bg)}
.header-menu-trigger-left{display:flex;align-items:center}
.header-menu-trigger-icon{width:20px;height:20px;margin-right:12px}
.header-menu-trigger-arrow{width:18px;height:18px;transition:transform .3s}
.header-menu-collapsible.expanded .header-menu-trigger-arrow{transform:rotate(180deg)}

.header-menu-submenu{max-height:0;overflow:hidden;transition:max-height .3s ease;padding-left:32px}
.header-menu-collapsible.expanded .header-menu-submenu{max-height:500px}
.header-menu-submenu .header-menu-item{font-size:14px;padding:10px 16px}

.language-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all .2s;
    position: relative;
}

.language-item:hover {
    background: var(--secondary-bg);
    transform: translateX(4px);
}

.language-item.active {
    background: linear-gradient(135deg, rgba(255,107,0,.08) 0%, rgba(255,143,61,.08) 100%);
    color: var(--accent-orange);
}

.language-item.active::after {
    content: '✓';
    position: absolute;
    right: 16px;
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 16px;
}

.language-name {
    font-size: 14px;
    font-weight: 500;
}

.language-flag-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.language-item.active .language-flag-circle {
    background: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255,107,0,.2);
}

.important-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 10px 16px;
    position: relative;
}

.important-item:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #dc2626;
}

.important-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #dc2626;
    border-radius: 0 2px 2px 0;
    transition: height .2s;
}

.important-item:hover::before {
    height: 60%;
}

.important-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.important-item:hover .important-icon {
    opacity: 1;
    stroke: #dc2626;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 11px 16px;
    position: relative;
    border-radius: 8px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.about-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: all .25s;
}

.about-item:hover {
    background: linear-gradient(90deg, rgba(255,107,0,.08) 0%, rgba(255,107,0,.02) 100%);
    padding-left: 20px;
    color: var(--accent-orange);
}

.about-item:hover .about-item-icon {
    color: var(--accent-orange);
    transform: scale(1.1) translateX(2px);
}

.about-item::after {
    content: '→';
    position: absolute;
    right: 16px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all .25s;
    color: var(--accent-orange);
    font-weight: 600;
}

.about-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Базовые стили для категорий */
.header-menu-submenu .header-menu-item[href*="/news/"] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 10px 16px;
    position: relative;
    transition: all .2s;
}

/* Левая цветная полоска */
.header-menu-submenu .header-menu-item[href*="/news/"]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    border-radius: 0 2px 2px 0;
    transition: height .2s;
}

/* Цветные стили для каждой категории */
.header-menu-item[href*="/markets/"] {
    --category-color: var(--cat-markets);
}

.header-menu-item[href*="/defi/"] {
    --category-color: var(--cat-defi);
}

.header-menu-item[href*="/mining/"] {
    --category-color: var(--cat-mining);
}

.header-menu-item[href*="/ai/"] {
    --category-color: var(--cat-ai);
}

.header-menu-item[href*="/nft/"] {
    --category-color: var(--cat-nft);
}

.header-menu-item[href*="/gamefi/"] {
    --category-color: var(--cat-gamefi);
}

.header-menu-item[href*="/adoption/"] {
    --category-color: var(--cat-adoption);
}

.header-menu-item[href*="/technology/"] {
    --category-color: var(--cat-technology);
}

.header-menu-item[href*="/incidents/"] {
    --category-color: var(--cat-incident);
}

.header-menu-item[href*="/regulation/"] {
    --category-color: var(--cat-regulation);
}

/* Эффекты при наведении */
.header-menu-submenu .header-menu-item[href*="/news/"]:hover {
    background: color-mix(in srgb, var(--category-color) 5%, transparent);
    color: var(--category-color);
    padding-left: 20px;
}

.header-menu-submenu .header-menu-item[href*="/news/"]:hover::before {
    height: 60%;
    background: var(--category-color);
}

/* Цветная точка перед названием категории */
.header-menu-submenu .header-menu-item[href*="/news/"]::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--category-color);
    opacity: 0.4;
    transition: all .2s;
    order: -1;
}

.header-menu-submenu .header-menu-item[href*="/news/"]:hover::after {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--category-color);
}

.header-menu-divider{height:1px;background:var(--border-color);margin:12px 24px}

.header-sidebar-footer{padding:20px 24px;border-top:1px solid var(--border-color)}
.header-sidebar-footer-auth{display:flex;align-items:center;padding:12px 16px;background:var(--secondary-bg);border-radius:12px;text-decoration:none;color:var(--text-main);font-size:14px;font-weight:600;transition:all .2s;margin-bottom:16px}
.header-sidebar-footer-auth:hover{background:linear-gradient(135deg,rgba(255,107,0,.1) 0%,rgba(255,143,61,.1) 100%);color:var(--accent-orange)}
.header-sidebar-footer-auth svg{width:20px;height:20px;margin-right:10px}

.header-sidebar-footer-social{display:flex;gap:12px;margin-bottom:16px}
.header-sidebar-footer-social-link{flex:1;display:flex;align-items:center;justify-content:center;padding:10px;background:var(--secondary-bg);border-radius:10px;color:var(--text-muted);transition:all .2s}
.header-sidebar-footer-social-link:hover{background:var(--accent-orange);color:#fff;transform:translateY(-2px)}
.header-sidebar-footer-social-link svg{width:20px;height:20px}
.header-sidebar-footer-copyright{font-size:12px;color:var(--text-muted);text-align:center}

/* ============================================
    HEADER
============================================ */

.site-header{background-color:var(--primary-bg);box-shadow:0 1px 3px rgba(0,0,0,.05),0 1px 2px rgba(0,0,0,.03);position:sticky;top:25px;z-index:997}
.header-container{max-width:var(--container-width);margin:0 auto;padding:0 20px}

.header-top{display:flex;justify-content:space-between;align-items:center;height:75px;border-bottom:1px solid var(--border-color);position:relative}
.header-left{display:flex;align-items:center;gap:15px;width:280px}

.menu-btn,
.search-btn {
    background: var(--secondary-bg);
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-btn::before,
.search-btn::before{content:'';position:absolute;inset:0;background:var(--gradient-orange);opacity:0;transition:opacity .3s}
.menu-btn:hover,.search-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,107,0,.15)}
.menu-btn:hover::before,.search-btn:hover::before{opacity:1}
.menu-btn svg{width:22px;height:22px;stroke:var(--text-main);position:relative;z-index:1;transition:stroke .3s}
.search-btn{color:var(--text-main)}
.search-btn svg{position:relative;z-index:1;transition:stroke .3s}
.menu-btn:hover svg,.search-btn:hover svg{stroke:#fff}
.menu-btn:active{transform:translateY(0)}

.header-center{display:flex;justify-content:center;align-items:center;flex-grow:1;position:absolute;left:50%;transform:translateX(-50%)}

.logo-link{display:flex;align-items:center;text-decoration:none;gap:12px;padding:8px 16px;border-radius:14px;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative}
.logo-link::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,107,0,.05) 0%,rgba(255,143,61,.05) 100%);border-radius:14px;opacity:0;transition:opacity .3s}
.logo-link:hover::before{opacity:1}
.logo-link:hover{transform:translateY(-2px)}

.logo-img {
    height:44px;
    width:44px;
}

.brand-name{font-size:24px;font-weight:800;color:var(--text-main);letter-spacing:-.8px;text-transform:uppercase;position:relative;z-index:1}
.brand-name span{background:var(--gradient-orange);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

.header-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;}

.social-links{display:flex;align-items:center;gap:6px;padding:6px;background:var(--secondary-bg);border-radius:12px}

.social-link{color:var(--text-secondary);transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;align-items:center;padding:8px;border-radius:8px;position:relative}
.social-link::before{content:'';position:absolute;inset:0;background:var(--gradient-orange);border-radius:8px;opacity:0;transition:opacity .3s}
.social-link:hover::before{opacity:.1}
.social-link svg{position:relative;z-index:1}
.social-link:hover{color:var(--accent-orange);transform:translateY(-2px)}

.divider{height:24px;width:1px;background:linear-gradient(to bottom,transparent,var(--border-color),transparent);margin:0 8px}

.lang-switch{font-size:13px;font-weight:700;color:var(--text-main);cursor:pointer;padding:8px 14px;border-radius:10px;transition:all .3s cubic-bezier(.4,0,.2,1);background:var(--secondary-bg);border:2px solid transparent;letter-spacing:.5px}
.lang-switch:hover{background:#fff;border-color:var(--accent-orange);color:var(--accent-orange);transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,107,0,.15)}

.header-nav{height:55px;display:flex;align-items:center;justify-content:center}
.header-nav-list{list-style:none;display:flex;gap:30px;height:100%;overflow-x:auto;scrollbar-width:none}
.header-nav-list::-webkit-scrollbar{display:none}
.header-nav-item{height:100%;display:flex;align-items:center}

.header-nav-link{text-decoration:none;color:var(--text-main);font-weight:500;font-size:15px;position:relative;padding:0 2px;transition:color .2s;white-space:nowrap}
.header-nav-link:hover{color:var(--accent-orange)}
.header-nav-link::after{content:'';position:absolute;bottom:-15px;left:0;width:0%;height:3px;background-color:var(--accent-orange);transition:width .3s ease;border-radius:2px 2px 0 0}
.header-nav-link:hover::after,.header-nav-item.active .header-nav-link::after{width:100%}
.header-nav-item.active .header-nav-link{color:var(--accent-orange)}

.trends-section{background-color:var(--trends-bg);border-bottom:1px solid var(--border-color);}
.trends-container{max-width:1440px;margin:0 auto;padding:12px 40px;display:flex;align-items:center;gap:20px;justify-content:center}
.trends-label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--text-main);white-space:nowrap}
.fire-icon{color:var(--accent-color)}
.trends-tags{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none}
.trends-tags::-webkit-scrollbar{display:none}

.trend-tag{font-size:13px;color:var(--text-muted);background:var(--primary-bg);border:1px solid var(--border-color);padding:6px 14px;border-radius:20px;white-space:nowrap;transition:all .2s ease;cursor:pointer}
.trend-tag:hover{border-color:var(--accent-color);color:var(--accent-color);box-shadow:0 2px 4px rgba(247,147,26,.1)}

/* ── Admin Header Button ── */
.admin-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: linear-gradient(135deg, #ff6b00, #ff9140);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        filter 0.25s ease;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
    position: relative;
    overflow: hidden;
}

/* shimmer sweep on hover */
.admin-add-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.28),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.admin-add-btn:hover::before {
    left: 130%;
}

.admin-add-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.45);
    filter: brightness(1.06);
    color: #fff;
}

.admin-add-btn:active {
    transform: translateY(0) scale(0.98);
}

.admin-add-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── Admin Sidebar Button ── */
.sidebar-admin-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 14px;
    text-decoration: none;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-admin-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff6b00, #ff9140);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-admin-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.7);
    box-shadow: 0 10px 32px rgba(255, 107, 0, 0.3);
}

.sidebar-admin-btn:hover::before {
    opacity: 1;
}

.sidebar-admin-btn:active {
    transform: translateY(0);
}

.sidebar-admin-btn__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 107, 0, 0.2);
    border: 1px solid rgba(255, 107, 0, 0.4);
    flex-shrink: 0;
    transition:
        background 0.3s,
        border-color 0.3s,
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-admin-btn:hover .sidebar-admin-btn__icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: rotate(-10deg) scale(1.1);
}

.sidebar-admin-btn__icon svg {
    width: 16px;
    height: 16px;
    color: #ff9140;
    transition: color 0.3s;
}

.sidebar-admin-btn:hover .sidebar-admin-btn__icon svg {
    color: #fff;
}

.sidebar-admin-btn__text {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-admin-btn__label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.sidebar-admin-btn__sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.sidebar-admin-btn:hover .sidebar-admin-btn__sub {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-admin-btn__arrow {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}

.sidebar-admin-btn:hover .sidebar-admin-btn__arrow {
    transform: translateX(4px);
    color: #fff;
}

.header-sidebar-footer-logout:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #ef4444;
}

/* ============================================
    FOOTER — BASE (Desktop ≥1025px)
============================================ */

.site-footer {
    background: linear-gradient(180deg, var(--footer-bg-top) 0%, var(--footer-bg-bottom) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative glow in top-left corner */
.site-footer::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255,107,0,.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Layout ---- */

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--footer-padding-y) var(--footer-padding-x) clamp(24px,4vw,48px);
    position: relative;
    z-index: 1;
}

/* 4-column grid: brand 1.6fr + three nav columns 1fr each */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: var(--footer-gap);
    margin-bottom: clamp(32px, 4vw, 56px);
    align-items: start;
}

/* ---- Brand column ---- */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: fit-content;
}

.footer-logo-img {
    height: 44px;
    width: 44px;
    border-radius: 10px;
}

.footer-brand-name {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.8px;
    text-transform: uppercase;
    line-height: 1;
}

.footer-brand-name span {
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: var(--footer-font-base);
    line-height: 1.7;
    color: rgba(255,255,255,.65);
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.75);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    flex-shrink: 0;
}

.footer-social-link:hover {
    background: var(--gradient-orange);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255,107,0,.35);
}

.footer-social-link svg { width:20px; height:20px; }

/* ---- Nav columns ---- */

.footer-column h4 {
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 700;
    color: rgba(255,255,255,.4);
    margin-bottom: clamp(14px, 2vw, 22px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-link {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: var(--footer-font-base);
    line-height: 1;
    transition: color .25s, padding-left .25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 7px 0 7px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px; /* touch-friendly */
}

.footer-link svg {
    width: 13px;
    height: 13px;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity .25s;
    flex-shrink: 0;
}

.footer-link:hover {
    color: var(--accent-orange);
    padding-left: 18px;
}

.footer-link:hover svg { opacity: 1; }

/* ---- Popular tags ---- */

.tags-wrapper {
    margin-bottom: clamp(24px, 3vw, 40px);
    padding-top: clamp(24px, 3vw, 40px);
    border-top: 1px solid rgba(255,255,255,.07);
}

.tags-title {
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 700;
    color: rgba(255,255,255,.35);
    margin-bottom: clamp(12px, 1.5vw, 18px);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.footer-tag {
    font-size: clamp(11px, 1.1vw, 13px);
    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.06);
    padding: 7px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all .25s;
    border: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
}

.footer-tag:hover {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,0,.3);
}

/* ---- Footer bottom bar ---- */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: clamp(20px, 2.5vw, 32px) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: clamp(12px, 1.2vw, 14px);
    color: rgba(255,255,255,.45);
    line-height: 1.5;
}

.footer-copyright strong {
    color: rgba(255,255,255,.8);
    font-weight: 600;
}

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

.footer-legal-link {
    font-size: clamp(12px, 1.2vw, 14px);
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color .2s;
}

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

/* ---- Crypto ticker inside footer (if used) ---- */

.crypto-ticker {
    background: rgba(255,255,255,.04);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    overflow: hidden;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.ticker-container { max-width:1200px; margin:0 auto; padding:0 20px; }
.ticker-items { display:flex; gap:32px; overflow-x:auto; scrollbar-width:none; }
.ticker-items::-webkit-scrollbar { display:none; }
.crypto-ticker .ticker-item { gap:12px; }
.ticker-coin { font-weight:600; color:#fff; font-size:14px; }
.ticker-price { color:rgba(255,255,255,.8); font-size:14px; }
.crypto-ticker .ticker-change { font-size:13px; padding:4px 8px; border-radius:6px; }

/* ============================================
    BACK-TO-TOP BUTTON
============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: var(--gradient-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,107,0,.4);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255,107,0,.5);
    animation: ring-pulse 2s ease-out infinite;
    opacity: 0;
}

.back-to-top::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: rgba(255,255,255,.25);
    transform: skewX(-20deg);
    transition: left .5s ease;
}

.back-to-top:hover::after { left:130%; }
.back-to-top.visible { opacity:1; visibility:visible; }
.back-to-top:hover { transform:translateY(-5px) scale(1.1); box-shadow:0 12px 32px rgba(255,107,0,.55); }
.back-to-top:active { transform:translateY(-2px) scale(.96); }
.back-to-top svg { width:22px; height:22px; position:relative; z-index:1; transition:transform .3s ease; }
.back-to-top:hover svg { transform:translateY(-2px); }

@keyframes ring-pulse {
    0%   { transform:scale(1); opacity:.6; }
    100% { transform:scale(1.5); opacity:0; }
}

/* ============================================
    FEEDBACK MODAL
============================================ */

.modal-overlay{position:fixed;inset:0;background:rgba(8,10,20,.85);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;visibility:hidden;transition:opacity .35s cubic-bezier(.4,0,.2,1),visibility .35s cubic-bezier(.4,0,.2,1)}
.modal-overlay.active{opacity:1;visibility:visible}

.modal-box{position:relative;width:100%;max-width:520px;background:linear-gradient(160deg,#1e2340 0%,#131728 100%);border:1px solid rgba(255,107,0,.2);border-radius:24px;padding:48px;box-shadow:0 32px 80px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.04) inset,0 1px 0 rgba(255,255,255,.08) inset;transform:translateY(30px) scale(.96);transition:transform .4s cubic-bezier(.34,1.56,.64,1);overflow:hidden}
.modal-overlay.active .modal-box{transform:translateY(0) scale(1)}

.modal-box::before{content:'';position:absolute;top:-80px;right:-80px;width:260px;height:260px;background:radial-gradient(circle,rgba(255,107,0,.18) 0%,transparent 70%);pointer-events:none}
.modal-box::after{content:'';position:absolute;bottom:-60px;left:-60px;width:200px;height:200px;background:radial-gradient(circle,rgba(99,102,241,.12) 0%,transparent 70%);pointer-events:none}

.modal-close{position:absolute;top:20px;right:20px;width:36px;height:36px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:10px;color:rgba(255,255,255,.5);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;z-index:2}
.modal-close:hover{background:rgba(255,107,0,.15);border-color:rgba(255,107,0,.4);color:var(--accent-orange);transform:rotate(90deg)}
.modal-close svg{width:16px;height:16px}

.modal-header{margin-bottom:32px;position:relative;z-index:1}

.modal-icon{width:52px;height:52px;background:linear-gradient(135deg,rgba(255,107,0,.15) 0%,rgba(255,143,61,.1) 100%);border:1px solid rgba(255,107,0,.25);border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:20px}
.modal-icon svg{width:24px;height:24px;color:var(--accent-orange)}

.modal-title{font-size:26px;font-weight:800;color:#fff;letter-spacing:-.5px;line-height:1.2;margin-bottom:8px}
.modal-title span{background:var(--gradient-orange);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.modal-subtitle{font-size:14px;color:rgba(255,255,255,.5);line-height:1.5}

.modal-form{display:flex;flex-direction:column;gap:16px;position:relative;z-index:1}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-group{display:flex;flex-direction:column;gap:8px}
.form-label{font-size:12px;font-weight:600;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:.8px}

.form-input,
.form-textarea{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:14px 16px;color:#fff;font-size:15px;font-family:inherit;transition:all .25s;outline:none;width:100%}
.form-input::placeholder,.form-textarea::placeholder{color:rgba(255,255,255,.25)}
.form-input:focus,.form-textarea:focus{border-color:rgba(255,107,0,.5);background:rgba(255,107,0,.06);box-shadow:0 0 0 3px rgba(255,107,0,.12)}
.form-input.error,.form-textarea.error{border-color:rgba(239,68,68,.6);box-shadow:0 0 0 3px rgba(239,68,68,.1)}
.form-textarea{resize:none;height:120px;line-height:1.5}
.form-error{font-size:12px;color:#f87171;display:none}
.form-error.visible{display:block}

.modal-submit{background:var(--gradient-orange);color:#fff;border:none;border-radius:12px;padding:16px 24px;font-size:15px;font-weight:700;font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:4px;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 16px rgba(255,107,0,.3);letter-spacing:.3px}
.modal-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 24px rgba(255,107,0,.45)}
.modal-submit:active:not(:disabled){transform:translateY(0)}
.modal-submit:disabled{opacity:.6;cursor:not-allowed}
.modal-submit svg{width:18px;height:18px}

.btn-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:none}
.modal-submit.loading .btn-spinner{display:block}
.modal-submit.loading .btn-text,.modal-submit.loading .btn-icon{display:none}

.modal-success{display:none;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:20px 0 10px;position:relative;z-index:1}
.modal-success.visible{display:flex}

.success-icon{width:72px;height:72px;background:linear-gradient(135deg,rgba(16,185,129,.15),rgba(16,185,129,.08));border:1px solid rgba(16,185,129,.3);border-radius:50%;display:flex;align-items:center;justify-content:center;animation:successPop .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes successPop{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}

.success-icon svg{width:32px;height:32px;color:#10b981}
.success-title{font-size:22px;font-weight:800;color:#fff}
.success-text{font-size:14px;color:rgba(255,255,255,.55);line-height:1.6}

.form-alert{padding:12px 16px;border-radius:10px;font-size:13px;font-weight:500;display:none;align-items:center;gap:10px}
.form-alert.visible{display:flex}
.form-alert.error{background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.25);color:#f87171}
.form-alert svg{width:16px;height:16px;flex-shrink:0}

.form-group-consent {
    margin: 4px 0 12px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.consent-custom-checkbox {
    flex-shrink: 0;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.consent-label:hover .consent-custom-checkbox {
    border-color: rgba(255, 107, 0, 0.5);
    background: rgba(255, 107, 0, 0.05);
}

.consent-label input:checked ~ .consent-custom-checkbox {
    background: var(--gradient-orange);
    border-color: transparent;
}

.consent-custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-label input:checked ~ .consent-custom-checkbox:after {
    display: block;
}

.consent-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.consent-text a {
    color: var(--accent-orange);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 107, 0, 0.4);
    transition: all 0.2s;
}

.consent-text a:hover {
    border-bottom-style: solid;
    color: #ff8f3d;
}

#consentError {
    margin-top: 6px;
    margin-left: 32px;
}

/* ============================================
    RESPONSIVE — Tablet landscape (≤1280px)
============================================ */

@media (max-width: 1280px) {
    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 36px;
    }
    .footer-description { max-width: 280px; }
}

/* ============================================
    RESPONSIVE — Tablet (≤1024px)
============================================ */

@media (max-width: 1024px) {
    /* Header */
    .header-nav { display: none; }
    .header-top { border-bottom: none; }
    .logo-img { height:38px; width:38px; }

    /* Footer — 2 columns: brand spans full width on top, then 3 nav cols */
    .site-footer { margin-top: 60px; }

    .footer-main {
        padding-top: clamp(40px, 5vw, 60px);
        padding-bottom: clamp(24px, 3vw, 40px);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 40px;
        margin-bottom: 36px;
    }

    /* Brand spans all 3 columns, centred */
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .footer-logo { justify-content: center; }

    .footer-description {
        text-align: center;
        max-width: 520px;
        font-size: 14px;
    }

    .footer-social { justify-content: center; }

    /* Nav columns: centered headings + links */
    .footer-column h4 { text-align: center; }
    .footer-links { align-items: center; }
    .footer-link { justify-content: center; }
    /* Keep arrow animation but suppress the absolute SVG on tablet */
    .footer-link:hover { padding-left: 0; }
    .footer-link svg { display: none; }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .crypto-ticker { margin-bottom: 36px; }
}

/* ============================================
    RESPONSIVE — Large phone / small tablet (≤768px)
============================================ */

@media (max-width: 768px) {
    .logo-img { height:34px; width:34px; }

    .social-links, .divider { display: none; }

    .site-footer { margin-top: 50px; }
    .footer-main { padding: 40px 20px 24px; }

    /* 2-column nav grid after the brand block */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 24px;
        margin-bottom: 28px;
    }

    .footer-brand {
        gap: 14px;
        padding-bottom: 24px;
    }

    .footer-brand-name { font-size: 22px; }
    .footer-logo-img { height: 40px; width: 40px; }
    .footer-description { font-size: 13px; }

    .footer-column h4 {
        font-size: 12px;
        margin-bottom: 14px;
        letter-spacing: 1.2px;
    }

    /* Touch-friendly links */
    .footer-link { min-height: 40px; font-size: 13px; }

    /* Tags */
    .tags-wrapper { margin-bottom: 24px; padding-top: 24px; }
    .footer-tags { gap: 7px; }
    .footer-tag { font-size: 11px; padding: 6px 12px; border-radius: 16px; }

    /* Bottom bar stays horizontal as long as possible */
    .footer-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 20px;
    }

    .footer-copyright { font-size: 13px; }
    .footer-legal { gap: 16px; }
    .footer-legal-link { font-size: 13px; }

    /* Back-to-top */
    .back-to-top { bottom:20px; right:20px; width:46px; height:46px; }
    .back-to-top svg { width:20px; height:20px; }

    /* Modal */
    .modal-box { padding:32px 24px; border-radius:20px; }
    .modal-title { font-size:22px; }
    .form-row { grid-template-columns:1fr; }
}

/* ============================================
    RESPONSIVE — Mobile (≤640px)
============================================ */

@media (max-width: 640px) {
    .trends-section, .header-nav { display: none; }
    .header-top { border-bottom: none; height: 60px; }
    .header-container { padding: 0 16px; }
    .header-left, .header-right { width: auto; }
    .header-center { position: static; transform: none; }
    .brand-name { font-size: 20px; }
    .lang-switch { padding: 8px 12px; font-size: 12px; }
    .menu-btn, .search-btn { padding: 8px; }
    .menu-btn svg, .search-btn svg { width: 20px; height: 20px; }

    /* Ticker */
    .ticker-label { min-width: 70px; font-size: 10px; padding: 0 12px; }
    .ticker-content { padding-left: 80px; }
    .ticker-update-time { display: none; }
    .ticker-item { gap: 8px; padding: 0 16px; }
    .ticker-symbol, .ticker-price { font-size: 11px; }
    .ticker-change { font-size: 10px; padding: 2px 5px; }

    /* Search overlay */
    .search-overlay { padding-top: 10vh; }
    .search-overlay-content { width: 95%; }
    .search-overlay-input { font-size: 16px; padding: 20px 60px 20px 52px; }
    .search-overlay-input-icon { left: 18px; width: 20px; height: 20px; }
    .search-overlay-submit { width: 48px; height: 48px; right: 6px; }
    .search-overlay-submit svg { width: 18px; height: 18px; }
    .search-overlay-title { font-size: 12px; }
    .search-overlay-close { width: 36px; height: 36px; }
    .search-suggestions-list { gap: 8px; }
    .search-suggestion-tag { padding: 8px 14px; font-size: 13px; }
    .search-overlay-hint { display: none; }

    /* Sidebar */
    .header-sidebar { width: 85%; max-width: 320px; }
    .site-header { top: 25px; }

    /* Footer — brand full-width, nav in 2×2 grid */
    .site-footer { margin-top: 40px; }
    .footer-main { padding: 32px 16px 20px; }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
        margin-bottom: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        border-bottom: 1px solid rgba(255,255,255,.07);
        padding-bottom: 24px;
        gap: 14px;
    }

    .footer-column h4 {
        font-size: 10px;
        margin-bottom: 12px;
        text-align: left;
        letter-spacing: 1.4px;
    }

    .footer-links { align-items: flex-start; gap: 0; }

    .footer-link {
        justify-content: flex-start;
        font-size: 13px;
        min-height: 36px;
        padding: 5px 0;
    }

    .tags-wrapper {
        margin: 4px 0 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,.06);
    }

    .footer-tags { gap: 6px; }
    .footer-tag { font-size: 11px; padding: 5px 11px; }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 20px;
        gap: 14px;
    }

    .footer-copyright { font-size: 12px; line-height: 1.6; }

    .footer-legal {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .footer-legal-link { font-size: 12px; }

    /* Back-to-top */
    .back-to-top { bottom: 16px; right: 16px; width: 42px; height: 42px; border-radius: 10px; }
    .back-to-top svg { width: 18px; height: 18px; }
}

/* ============================================
    RESPONSIVE — Small mobile (≤480px)
============================================ */

@media (max-width: 480px) {
    .header-top { height: 56px; }
    .header-container { padding: 0 12px; }
    .brand-name { font-size: 18px; }
    .logo-img { height: 30px; width: 30px; }
    .logo-link { gap: 8px; padding: 6px 12px; }
    .header-right { gap: 6px; }
    .lang-switch { padding: 7px 10px; font-size: 11px; }
    .menu-btn, .search-btn { padding: 7px; }
    .menu-btn svg, .search-btn svg { width: 18px; height: 18px; }

    .footer-main { padding: 28px 14px 18px; }
    .footer-brand-name { font-size: 20px; }
    .footer-logo-img { height: 36px; width: 36px; }
    .footer-description { font-size: 12px; line-height: 1.6; }
    .footer-social-link { width: 36px; height: 36px; border-radius: 8px; }
    .footer-social-link svg { width: 18px; height: 18px; }

    .footer-column h4 { font-size: 10.5px; }
    .footer-link { font-size: 13px; }

    .footer-tag { font-size: 10.5px; padding: 5px 10px; }
    .tags-title { font-size: 10px; }

    .footer-copyright { font-size: 11px; }
    .footer-legal-link { font-size: 11px; }

    .back-to-top { width: 40px; height: 40px; bottom: 14px; right: 14px; }
    .back-to-top svg { width: 16px; height: 16px; }

    .modal-box { padding: 28px 20px; }

    .search-overlay-header { margin-bottom: 20px; }
    .search-overlay-form { margin-bottom: 24px; }
    .search-overlay-input { font-size: 15px; padding: 18px 56px 18px 48px; border-radius: 16px; }
    .search-overlay-input-icon { left: 16px; width: 18px; height: 18px; }
    .search-overlay-submit { width: 44px; height: 44px; }
    .search-overlay-suggestions { padding: 16px; }
    .search-suggestion-tag { padding: 7px 12px; font-size: 12px; }

    .ticker-label { min-width: 60px; font-size: 9px; padding: 0 10px; }
    .ticker-content { padding-left: 70px; }
    .ticker-item { gap: 6px; padding: 0 14px; }
    .ticker-icon { width: 18px; height: 18px; }
    .ticker-icon img { width: 14px; height: 14px; }
    .ticker-symbol, .ticker-price { font-size: 10px; }
    .ticker-change { font-size: 9px; padding: 2px 4px; }
    .ticker-change svg { width: 8px; height: 8px; }

    .header-sidebar { width: 90%; }
    .header-sidebar-header { padding: 16px 20px; }
    .header-sidebar-brand { font-size: 18px; }
    .header-sidebar-search, .header-sidebar-footer { padding: 16px 20px; }
    .site-header { top: 25px; }
}

/* ============================================
    RESPONSIVE — Very small (≤360px)
============================================ */

@media (max-width: 360px) {
    .footer-main { padding: 24px 12px 16px; }
    .footer-brand-name { font-size: 18px; }
    .footer-description { font-size: 11px; }
    .footer-column h4 { font-size: 10px; }
    .footer-link { font-size: 12px; min-height: 40px; }
    .footer-tag { font-size: 9.5px; padding: 4px 8px; }
    .footer-social-link { width: 32px; height: 32px; }
    .footer-social-link svg { width: 16px; height: 16px; }
    .footer-copyright { font-size: 10.5px; }
    .footer-legal-link { font-size: 10.5px; }
    .tags-wrapper { padding-top: 16px; }
}

/* ============================================
    RESPONSIVE — Landscape phones
============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .header-top { height: 50px; }
    .logo-img { height: 28px; width: 28px; }
    .brand-name { font-size: 17px; }
    .search-overlay, .search-overlay-content { padding-top: 5vh; }
    .footer-main { padding: 28px 20px 18px; }
    .footer-grid { gap: 22px; margin-bottom: 22px; }
    .back-to-top { bottom: 12px; right: 12px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

/* ============================================
    PRINT
============================================ */

@media print {
    .back-to-top { display: none; }
    .footer-social-link:hover,
    .footer-link:hover,
    .footer-tag:hover { transform: none; box-shadow: none; }
}


/* ============================================
   CRYPTO MODAL
============================================ */

/* dm-mono-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/dm-mono-v16-latin-regular.woff2') format('woff2');
}
/* dm-mono-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/dm-mono-v16-latin-500.woff2') format('woff2');
}
/* syne-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/syne-v24-latin-700.woff2') format('woff2');
}
/* syne-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/syne-v24-latin-800.woff2') format('woff2');
}

.cm-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    visibility: hidden;
    transition:
        background .35s ease,
        backdrop-filter .35s ease;
}

.cm-overlay.cm-open {
    background: rgba(4, 4, 10, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    visibility: visible;
}

.cm-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(160deg, #15151f 0%, #0e0e18 60%, #12101a 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px 28px 20px;
    box-shadow:
        0 0 0 1px rgba(255, 107, 0, 0.08) inset,
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 120px rgba(255, 107, 0, 0.04);
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition:
        transform .45s cubic-bezier(.34, 1.56, .64, 1),
        opacity .35s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,0,.3) transparent;
}

.cm-modal::-webkit-scrollbar { width: 4px; }
.cm-modal::-webkit-scrollbar-track { background: transparent; }
.cm-modal::-webkit-scrollbar-thumb { background: rgba(255,107,0,.35); border-radius: 2px; }

.cm-overlay.cm-open .cm-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cm-bg-glow {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.14) 0%, transparent 70%);
    pointer-events: none;
    transition: background .5s ease;
}

.cm-noise {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    opacity: .025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
}

.cm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.cm-coin-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cm-coin-logo-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.cm-coin-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    padding: 4px;
}

.cm-coin-logo-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, rgba(255,107,0,.6), rgba(255,143,61,.2), transparent) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: cm-ring-spin 6s linear infinite;
}

@keyframes cm-ring-spin {
    to { transform: rotate(360deg); }
}

.cm-coin-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cm-coin-name {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1;
}

.cm-coin-symbol {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cm-header-right {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cm-price-block {
    text-align: right;
}

.cm-price {
    font-family: 'DM Mono', monospace;
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.cm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all .3s;
}

.cm-badge.pos {
    background: rgba(16,185,129,.15);
    color: #10b981;
    border: 1px solid rgba(16,185,129,.2);
}

.cm-badge.neg {
    background: rgba(239,68,68,.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,.2);
}

.cm-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    flex-shrink: 0;
}

.cm-close:hover {
    background: rgba(255,107,0,.15);
    border-color: rgba(255,107,0,.35);
    color: #ff6b00;
    transform: rotate(90deg);
}

.cm-close svg { width: 18px; height: 18px; }

.cm-tf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cm-tf-group {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 3px;
}

.cm-tf-btn {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.45);
    background: none;
    border: none;
    padding: 5px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .5px;
}

.cm-tf-btn:hover { color: rgba(255,255,255,.75); }

.cm-tf-btn.cm-tf-active {
    background: linear-gradient(135deg, #ff6b00, #ff8f3d);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,107,0,.35);
}

.cm-chart-type-group {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 3px;
}

.cm-ct-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border-radius: 7px;
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .2s;
}

.cm-ct-btn:hover { color: rgba(255,255,255,.75); }

.cm-ct-btn.cm-ct-active {
    background: linear-gradient(135deg, #ff6b00, #ff8f3d);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,107,0,.35);
}

.cm-chart-wrap {
    position: relative;
    height: 240px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.35);
    font-size: 13px;
    font-weight: 500;
}

.cm-spinner {
    width: 32px;
    height: 32px;
    border: 2.5px solid rgba(255,107,0,.15);
    border-top-color: #ff6b00;
    border-radius: 50%;
    animation: cm-spin .75s linear infinite;
}

@keyframes cm-spin { to { transform: rotate(360deg); } }

.cm-chart-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(239,68,68,.7);
    font-size: 13px;
}

#cm-chart {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.cm-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.cm-stat {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color .2s;
}

.cm-stat:hover {
    border-color: rgba(255,107,0,.2);
}

.cm-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .7px;
}

.cm-stat-val {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    letter-spacing: -.3px;
}

.cm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.cm-footer-src {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,.3);
    font-weight: 500;
}

.cm-footer-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,107,0,.7);
    text-decoration: none;
    transition: color .2s;
}

.cm-footer-link:hover { color: #ff6b00; }

@media (max-width: 600px) {
    .cm-overlay { padding: 12px; }

    .cm-modal {
        border-radius: 18px;
        padding: 20px 16px 16px;
    }

    .cm-price { font-size: 20px; }
    .cm-coin-name { font-size: 18px; }
    .cm-coin-logo-wrap,
    .cm-coin-logo { width: 42px; height: 42px; }

    .cm-stats-grid { grid-template-columns: repeat(2, 1fr); }

    .cm-chart-wrap { height: 190px; }

    .cm-tf-btn { padding: 5px 8px; font-size: 10px; }

    .cm-header { flex-wrap: wrap; }
    .cm-header-right { margin-left: auto; }
}

@media (max-width: 380px) {
    .cm-stats-grid { grid-template-columns: 1fr 1fr; }
    .cm-tf-group { flex-wrap: wrap; gap: 3px; }
}