  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

  :root {
    --bg:       #07060f;
    --surface:  #0d0b1c;
    --surface2: #110e20;
    --border:   #211c38;
    --text:     #f0e8ff;
    --muted:    #9d8ec0;
    --accent:   #8b5cf6;
  }

  html { scrollbar-gutter: stable; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    background: var(--bg);
    background-image:
      radial-gradient(ellipse 80% 40% at 50% -10%, rgba(124,58,237,.12) 0%, transparent 70%),
      radial-gradient(rgba(255,255,255,.016) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px;
    color: var(--text);
    font-family: 'DM Sans', system-ui, sans-serif;
    min-height: 100vh;
  }
  body::before {
    content: '';
    position: fixed; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 55%, #d946ef 100%);
    z-index: 9999;
  }

  /* ── Header ─────────────────────────────────── */
  .site-header {
    position: sticky; top: 2px; z-index: 100;
    background: rgba(7,6,15,.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0 22px;
    height: 56px;
    display: flex; align-items: center; gap: 18px;
  }
  .logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
  .logo-icon { width: 24px; height: 24px; flex-shrink: 0; }
  .logo-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .15em; text-transform: uppercase; font-family: 'Rajdhani', sans-serif; }
  .logo-name span { color: #a78bfa; letter-spacing: 0; font-weight: 400; text-transform: none; }

  .search-wrap {
    flex: 1; max-width: 400px; position: relative;
  }
  .ac-dropdown {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 500;
    background: #12102a; border: 1px solid #2a2550; border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.6); overflow: hidden;
  }
  .ac-dropdown.open { display: block; }
  .ac-item {
    padding: 9px 14px; font-size: 13px; color: #c4b5fd; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .1s;
  }
  .ac-item:hover, .ac-item.active { background: rgba(139,92,246,.15); color: #f0e8ff; }
  .ac-item strong { color: #a78bfa; }

  .header-search {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 14px 7px 34px;
    font-size: 14px; color: var(--text);
    outline: none; transition: border-color .15s, background .15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%239d8ec0' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 11px center;
  }
  .header-search:focus { border-color: #362963; background-color: #100d1e; }
  .header-search::placeholder { color: var(--muted); }

  .stat-line { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
  .stat-line strong { color: #a78bfa; font-weight: 600; }
  .stat-line .sep { opacity: .35; }

  .btn-refresh {
    padding: 6px 12px; border-radius: 7px; cursor: pointer;
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); font-size: 13px; transition: all .15s;
  }
  .btn-refresh:hover { border-color: #362963; color: var(--text); }

  /* ── Layout ──────────────────────────────────── */
  .layout { display: block; }
  .content { margin-left: 240px; padding: 18px 20px 48px; min-height: calc(100vh - 58px); }

  /* ── Sidebar ─────────────────────────────────── */
  .sidebar {
    width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 18px 0 40px;
    position: fixed; top: 58px; left: 0;
    height: calc(100vh - 58px);
    overflow-y: auto;
  }
  .sidebar::-webkit-scrollbar { width: 3px; }
  .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  .sb-section { padding: 0 14px 20px; }
  .sb-section + .sb-section { border-top: 1px solid var(--border); padding-top: 18px; }

  .sb-label {
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 9px; padding: 0 4px;
    font-family: 'Rajdhani', sans-serif;
  }

  .sb-item {
    display: flex; align-items: center;
    padding: 7px 10px; border-radius: 7px;
    font-size: 14px; font-weight: 500; color: var(--muted);
    cursor: pointer; transition: all .12s;
    border: none; background: none; width: 100%; text-align: left;
    gap: 9px;
  }
  .sb-item:hover { background: var(--surface2); color: var(--text); }
  .sb-item.active { background: rgba(139,92,246,.12); color: #c4b5fd; font-weight: 600; }
  .sb-item .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; flex-shrink: 0; opacity: .55;
    transition: opacity .12s;
  }
  .sb-item.active .dot { opacity: 1; }

  .wear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .wear-btn {
    padding: 6px 0; border-radius: 6px; font-size: 12px; font-weight: 700;
    cursor: pointer; border: 1px solid var(--border); background: transparent;
    color: var(--muted); transition: all .12s; text-align: center; letter-spacing: .04em;
  }
  .wear-btn:hover { border-color: #362963; color: var(--text); }
  .wear-btn.active { background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.3); color: #c4b5fd; }

  .toggle-row { display: flex; gap: 5px; }
  .toggle-btn {
    flex: 1; padding: 6px 8px; border-radius: 6px; font-size: 13px; font-weight: 600;
    cursor: pointer; border: 1px solid var(--border); background: transparent;
    color: var(--muted); transition: all .12s; text-align: center;
  }
  .toggle-btn:hover { border-color: #362963; color: var(--text); }
  .toggle-btn.active { background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.3); color: #c4b5fd; }

  select.sb-select {
    width: 100%; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 7px; padding: 7px 10px; font-size: 13px;
    color: var(--text); outline: none; cursor: pointer;
    font-family: inherit; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a4878' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    padding-right: 28px;
  }
  select.sb-select:focus { border-color: #4c3878; }
  select.sb-select option { background: #110e20; color: var(--text); }

  /* price range */
  .price-inputs { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
  .price-input {
    flex: 1; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 6px; padding: 6px 8px; font-size: 13px;
    color: var(--text); outline: none; width: 0; min-width: 0;
    font-family: inherit; transition: border-color .15s;
  }
  .price-input:focus { border-color: #4c3878; }
  .price-input::placeholder { color: var(--muted); }
  .price-input::-webkit-inner-spin-button,
  .price-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  .price-input[type=number] { -moz-appearance: textfield; }
  .price-sep { color: var(--muted); font-size: 12px; flex-shrink: 0; }

  .range-wrap { position: relative; height: 18px; margin-top: 4px; }
  .range-wrap input[type=range] {
    position: absolute; width: 100%; top: 50%; transform: translateY(-50%);
    -webkit-appearance: none; appearance: none;
    background: transparent; pointer-events: none; margin: 0;
  }
  .range-track {
    position: absolute; top: 50%; transform: translateY(-50%);
    left: 0; right: 0; height: 3px;
    background: var(--border); border-radius: 2px; pointer-events: none;
  }
  .range-fill {
    position: absolute; top: 0; height: 100%;
    background: rgba(139,92,246,.45); border-radius: 2px;
  }
  .range-wrap input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent);
    cursor: pointer; pointer-events: all;
    box-shadow: 0 1px 4px rgba(0,0,0,.5);
    transition: transform .1s;
  }
  .range-wrap input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
  .range-wrap input[type=range]::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent);
    cursor: pointer; pointer-events: all;
  }

  /* float range */
  .float-vals { display: flex; justify-content: space-between; margin-bottom: 6px; }
  .float-val-lbl { font-size: 11px; font-family: monospace; color: var(--accent); font-weight: 600; }


  /* ── Content ─────────────────────────────────── */

  .content-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
  }
  .content-info { font-size: 13px; color: var(--muted); }
  .content-info strong { color: var(--text); font-weight: 600; }

  .skin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
  }

  /* ── Card ────────────────────────────────────── */
  @keyframes card-in {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
  }
  .skin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
    position: relative; cursor: default;
    animation: card-in .35s ease both;
    animation-delay: calc(var(--i, 0) * 80ms);
  }
  .skin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,.75), 0 0 0 1px var(--rc, transparent), 0 0 24px rgba(var(--rc-raw, 139,92,246),.08);
    border-color: var(--rc, var(--border));
  }

  .card-img-area {
    height: 185px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 16px 18px 12px;
    border-radius: 9px 9px 0 0;
  }
  .card-img-area img {
    max-height: 150px; max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,.9));
    transition: transform .2s ease;
  }
  .skin-card:hover .card-img-area img { transform: scale(1.06) translateY(-2px); }

  .rarity-line { height: 3px; flex-shrink: 0; opacity: .85; }

  /* wear badge — top right da imagem */
  .wear-over {
    position: absolute; top: 8px; right: 8px;
    font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
    letter-spacing: .04em; pointer-events: none;
  }
  .w-fn { background:#031d24;color:#4dd0e1; }
  .w-mw { background:#021808;color:#4caf50; }
  .w-ft { background:#1a1100;color:#ffc107; }
  .w-ww { background:#1a0900;color:#ff9800; }
  .w-bs { background:#1a0303;color:#f44336; }
  .w-na { background:#10162a;color:#5a4878; }

  .card-body {
    padding: 10px 13px 13px;
    display: flex; flex-direction: column; flex: 1; gap: 7px;
  }

  .card-names { display: flex; flex-direction: column; gap: 2px; }
  .card-weapon { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-family: 'Rajdhani', sans-serif; }
  .card-skin { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.25; word-break: break-word; }
  .st-tag { color: #e8962a; font-size: 10px; font-weight: 700; margin-right: 3px; letter-spacing: .06em; font-family: 'Rajdhani', sans-serif; }

  /* float */
  .float-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
  .float-lbl { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: 'Rajdhani', sans-serif; }
  .float-val { font-size: 13px; font-family: 'Rajdhani', monospace; font-weight: 700; opacity: .9; letter-spacing: .03em; }

  .float-bar {
    height: 3px; border-radius: 2px; position: relative;
    background: linear-gradient(to right,
      #00bcd4 0%,#4caf50 12%,#cddc39 22%,
      #ffc107 34%,#ff9800 43%,#f44336 52%,#b71c1c 100%);
  }
  .float-tick {
    position: absolute; top: 50%; transform: translate(-50%,-50%);
    width: 2px; height: 10px; background: #fff; border-radius: 1px;
    box-shadow: 0 0 5px rgba(255,255,255,.85);
  }

  /* stickers */
  .sticker-row { display: flex; gap: 4px; flex-wrap: wrap; min-height: 50px; align-items: center; }
  .sticker-wrap { position: relative; }
  .sticker-img { width: 42px; height: 42px; object-fit: contain; opacity: .85; display: block; }
  .sticker-wrap:hover .sticker-img { opacity: 1; }
  .sticker-tip {
    display: none;
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: #0b0919; border: 1px solid var(--border);
    border-radius: 7px; padding: 5px 10px; font-size: 11px; white-space: nowrap;
    z-index: 200; pointer-events: none; color: var(--text); text-align: center; line-height: 1.6;
  }
  .sticker-wrap:hover .sticker-tip { display: block; }

  /* price + buy */
  .card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 5px; }
  .price-row {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 10px; border-top: 1px solid var(--border);
  }
  .price-block .price-val { font-size: 20px; font-weight: 700; color: #4ade80; line-height: 1; font-family: 'Rajdhani', sans-serif; letter-spacing: .02em; }
  .price-block { display: flex; flex-direction: column; gap: 2px; }
  .price-label { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: 'Rajdhani', sans-serif; }
  .price-discount {
    display: inline-flex; align-items: center;
    font-size: 13px; font-weight: 700; color: #4ade80;
    background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.2);
    border-radius: 4px; padding: 3px 7px; width: fit-content; white-space: nowrap;
    font-family: 'Rajdhani', sans-serif; letter-spacing: .03em;
  }
  .price-market-ref { font-size: 10px; color: var(--muted); line-height: 1; }

  .btn-buy {
    padding: 7px 14px; border-radius: 6px; cursor: pointer;
    font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.2);
    color: #b09aff; transition: all .15s;
  }
  .btn-buy:hover { background: #8b5cf6; border-color: #8b5cf6; color: #fff; }
  .btn-buy.locked { background: transparent; border-color: var(--border); color: var(--muted); cursor: default; opacity: .6; }

  .btn-inspect {
    width: 30px; height: 30px; border-radius: 6px; cursor: pointer;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s; flex-shrink: 0; text-decoration: none;
  }
  .btn-inspect:hover { border-color: #8b5cf6; color: #c4b5fd; background: rgba(139,92,246,.1); }

  /* lock badge */
  .lock-badge {
    position: absolute; top: 8px; left: 8px;
    background: rgba(5,3,1,.9);
    border: 1px solid rgba(190,148,50,.2);
    border-radius: 5px; padding: 3px 8px 3px 6px;
    font-size: 8px; font-weight: 700; color: #a87e30;
    backdrop-filter: blur(6px); letter-spacing: .07em;
    display: flex; align-items: center; gap: 4px;
  }

  /* countdown */
  .countdown-chip {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(160,100,10,.07);
    border: 1px solid rgba(190,148,50,.18);
    border-radius: 7px;
    padding: 7px 10px; margin: 5px 0;
  }
  .cd-left { display: flex; align-items: center; gap: 6px; }
  .cd-label { font-size: 12px; font-weight: 500; color: #c09840; }
  .cd-date  { display: none; }
  .cd-time  {
    font-size: 13px; font-weight: 700; color: #f0d070; font-family: monospace;
    background: rgba(190,148,50,.15); border-radius: 4px; padding: 2px 6px;
    letter-spacing: .03em;
  }

  .empty { grid-column: 1/-1; text-align: center; padding: 80px 0; color: var(--muted); font-size: 14px; }

  .skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
    background-size: 400% 100%; animation: shimmer 1.4s infinite;
    border-radius: 10px; height: 300px;
  }
  @keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  /* ── Modal ── */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(5,4,12,.85); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center; padding: 16px;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .modal-overlay.open { opacity: 1; pointer-events: all; }
  .modal-panel {
    background: #0d0b1c; border: 1px solid #211c38; border-radius: 16px;
    width: 100%; max-width: 860px; max-height: 90vh; overflow-y: auto;
    position: relative;
    transform: scale(.96) translateY(10px); opacity: 0;
    transition: transform .22s cubic-bezier(.2,.8,.3,1), opacity .2s;
  }
  .modal-overlay.open .modal-panel { transform: none; opacity: 1; }
  .modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 10;
    width: 30px; height: 30px; border-radius: 7px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    color: #7a6898; cursor: pointer; font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s; padding: 0; font-family: inherit;
  }
  .modal-close:hover { background: rgba(255,255,255,.12); color: var(--text); border-color: rgba(255,255,255,.2); }
  .modal-grid { display: grid; grid-template-columns: 340px 1fr; }
  @media (max-width: 680px) { .modal-grid { grid-template-columns: 1fr; } }
  .m-left { padding: 20px; border-right: 1px solid #211c38; }
  .m-right { padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }

  .m-img-area {
    position: relative; border-radius: 12px; overflow: hidden;
    aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
    border: 1px solid #211c38;
  }
  .m-img-area img { width: 85%; height: 85%; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(0,0,0,.6)); }
  .m-lock-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(7,5,15,.88));
    padding: 18px 12px 10px; display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #a87e30;
  }
  .m-float-gauge {
    margin-top: 14px; background: rgba(255,255,255,.02);
    border: 1px solid #211c38; border-radius: 10px; padding: 13px;
  }
  .m-gauge-label { display: flex; justify-content: space-between; margin-bottom: 9px; }
  .m-gauge-label span { font-size: 11px; color: var(--muted); }
  .m-gauge-label strong { font-size: 15px; font-weight: 700; }
  .gauge-bar-wrap { position: relative; height: 7px; border-radius: 4px; overflow: visible; }
  .gauge-bar { height: 100%; border-radius: 4px; overflow: hidden; display: flex; }
  .gauge-seg { height: 100%; }
  .gauge-marker {
    position: absolute; top: 50%; transform: translate(-50%,-50%);
    width: 13px; height: 13px; border-radius: 50%;
    border: 2px solid #fff; pointer-events: none;
  }
  .gauge-zones { display: flex; margin-top: 6px; font-size: 10px; font-weight: 600; }
  .gauge-zones span { text-align: center; opacity: .55; overflow: hidden; white-space: nowrap; }

  .m-weapon { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-family: 'Rajdhani', sans-serif; }
  .m-skin-name { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.15; margin-top: 3px; letter-spacing: -.01em; }
  .m-st-tag {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em;
    padding: 2px 7px; border-radius: 4px;
    background: rgba(207,106,50,.14); color: #e07830; border: 1px solid rgba(207,106,50,.28);
    vertical-align: middle; position: relative; top: -2px; margin-right: 6px;
  }
  .m-wear-text { font-size: 13px; color: var(--muted); }
  .m-rarity-bar { height: 2px; border-radius: 2px; }
  .m-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .m-spec { background: rgba(255,255,255,.025); border: 1px solid #211c38; border-radius: 8px; padding: 10px 12px; }
  .m-spec-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
  .m-spec-val { font-size: 14px; font-weight: 700; }
  .m-hold-notice {
    background: rgba(255,152,0,.06); border: 1px solid rgba(255,152,0,.2);
    border-radius: 8px; padding: 10px 12px; display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #ffb74d;
  }
  .m-section-title { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
  .m-stickers-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .m-sticker-card { background: rgba(255,255,255,.025); border: 1px solid #211c38; border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
  .m-sticker-card img { width: 36px; height: 36px; object-fit: contain; }
  .m-sticker-name { font-size: 11px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-sticker-price { font-size: 11px; color: #56e085; margin-top: 1px; }
  /* price history chart */
  .m-chart-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
  .m-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .m-chart-lbl { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .m-chart-periods { display: flex; gap: 4px; }
  .m-chart-period { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 5px; padding: 2px 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all .12s; }
  .m-chart-period:hover { border-color: rgba(139,92,246,.4); color: #c4b5fd; }
  .m-chart-period.active { background: rgba(139,92,246,.2); border-color: #7c3aed; color: #c4b5fd; }
  .m-chart-canvas-wrap { position: relative; }
  .m-chart-tooltip {
    position: fixed; pointer-events: none; display: none;
    background: #12102a; border: 1px solid #2a2550; border-radius: 7px;
    padding: 5px 10px; font-size: 11px; color: #f0e8ff; white-space: nowrap;
    z-index: 9999;
  }
  .m-chart-src { font-size: 11px; color: #8888a8; margin-top: 5px; text-align: right; }
  .m-chart-empty { text-align: center; padding: 28px 0; font-size: 12px; color: var(--muted); }

  .m-price-block { background: rgba(255,255,255,.025); border: 1px solid #211c38; border-radius: 10px; padding: 13px 15px; }
  .m-price-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
  .m-price-val { font-size: 30px; font-weight: 700; line-height: 1; font-family: 'Rajdhani', sans-serif; letter-spacing: .02em; }
  .m-price-src { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .m-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
  .m-discount-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 700; color: #4ade80;
    background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.2);
    border-radius: 5px; padding: 3px 8px;
  }
  .m-compare { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
  .m-compare-title { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
  .m-compare-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
  .m-compare-src { font-size: 12px; color: var(--muted); }
  .m-compare-val { font-size: 13px; font-weight: 600; color: var(--text); }
  .m-compare-diff { font-size: 11px; font-weight: 700; color: #4ade80; margin-left: 6px; }
  .m-actions { display: flex; gap: 9px; }
  .m-btn-inspect {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px; padding: 0 16px; border-radius: 8px;
    border: 1px solid #211c38; background: rgba(255,255,255,.04);
    color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none;
    transition: all .15s; white-space: nowrap; flex-shrink: 0;
  }
  .m-btn-inspect:hover { border-color: #362963; background: rgba(139,92,246,.08); color: #c4b5fd; }
  .m-btn-buy {
    flex: 1; height: 42px; border-radius: 8px;
    background: #7c3aed; border: 1px solid #7c3aed;
    color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s;
    box-shadow: 0 2px 12px rgba(124,58,237,.4);
  }
  .m-btn-buy:hover { background: #8b5cf6; border-color: #8b5cf6; box-shadow: 0 4px 18px rgba(139,92,246,.55); }
  .m-btn-buy:disabled { background: #081a0c; border-color: rgba(86,224,133,.2); color: #56e085; cursor: default; }
  .m-btn-share {
    width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
  }
  .m-btn-share:hover { border-color: rgba(139,92,246,.5); color: #c4b5fd; background: rgba(139,92,246,.08); }
  .m-btn-share.copied { border-color: rgba(74,222,128,.4); color: #4ade80; background: rgba(74,222,128,.08); }
  .m-btn-locked {
    flex: 1; height: 42px; border-radius: 8px;
    background: transparent; border: 1px solid #211c38;
    color: var(--muted); font-size: 13px; font-weight: 600; cursor: not-allowed;
  }
  .m-btn-presale {
    flex: 1; height: 42px; border-radius: 8px; cursor: pointer;
    background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35);
    color: #fbbf24; font-size: 13px; font-weight: 700; letter-spacing: .04em;
    transition: all .15s; text-transform: uppercase;
  }
  .m-btn-presale:hover { background: rgba(251,191,36,.2); border-color: rgba(251,191,36,.6); }
  .modal-loading { display: flex; align-items: center; justify-content: center; min-height: 320px; color: var(--muted); font-size: 14px; }

  /* ── Lang toggle ── */
  .lang-toggle {
    display: flex; align-items: center;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 3px; gap: 2px; flex-shrink: 0;
  }
  .lt-opt {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 7px; border: none;
    background: transparent; color: var(--muted);
    font-size: 12px; font-weight: 700; letter-spacing: .05em;
    cursor: pointer; transition: all .18s; font-family: inherit;
    white-space: nowrap;
  }
  .lt-flag { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .lt-opt.lt-active {
    background: rgba(124,58,237,.22); color: #c4b5fd;
    box-shadow: 0 1px 6px rgba(0,0,0,.35);
  }
  .lt-opt:not(.lt-active):hover { background: rgba(255,255,255,.05); color: var(--text); }

  /* user widget */
  .user-btn {
    display: flex; align-items: center; gap: 7px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 5px 10px 5px 5px;
    color: var(--text); font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: border-color .15s;
    white-space: nowrap; max-width: 160px;
  }
  .user-btn:hover { border-color: #362963; }
  .user-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    background: var(--border);
  }
  .user-name { overflow: hidden; text-overflow: ellipsis; }
  .user-login-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; border-radius: 8px; padding: 0 14px;
    background: rgba(16,185,129,.18); border: 1px solid rgba(52,211,153,.7);
    font-size: 13px; font-weight: 700; letter-spacing: .03em;
    color: #6ee7b7; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: all .15s; flex-shrink: 0;
  }
  .user-login-btn:hover { background: rgba(16,185,129,.28); border-color: #34d399; color: #a7f3d0; }
  .user-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 9px; padding: 6px; min-width: 140px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5); z-index: 200;
  }
  .user-menu a {
    display: block; padding: 8px 12px; font-size: 13px; color: var(--muted);
    text-decoration: none; border-radius: 6px; transition: background .1s;
  }
  .user-menu a:hover { background: var(--surface2); color: var(--text); }
  #user-widget { position: relative; min-width: 100px; min-height: 34px; }

  /* ── Sell CTA button ── */
  @keyframes sell-shine {
    0%        { transform: translateX(-150%); }
    20%, 100% { transform: translateX(250%); }
  }
  .header-sell-cta {
    display: flex; align-items: center; gap: 6px;
    height: 36px; border-radius: 8px; padding: 0 14px;
    background: transparent;
    border: 1px solid rgba(167,139,250,.5);
    color: #c4b5fd;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    text-decoration: none; flex-shrink: 0; white-space: nowrap;
    position: relative; overflow: hidden;
    box-shadow: 0 0 10px rgba(139,92,246,.15), inset 0 0 10px rgba(139,92,246,.06);
    transition: border-color .2s, color .2s, box-shadow .2s;
  }
  .header-sell-cta::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210,190,255,.28), transparent);
    transform: translateX(-150%);
    animation: sell-shine 3.5s ease-in-out infinite;
  }
  .header-sell-cta:hover {
    border-color: rgba(167,139,250,.9);
    color: #ede9fe;
    box-shadow: 0 0 18px rgba(139,92,246,.35), inset 0 0 14px rgba(139,92,246,.1);
  }

  /* ── Orders button ── */
  .orders-btn {
    display: flex; align-items: center; gap: 6px;
    height: 36px; border-radius: 8px; padding: 0 12px;
    background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3);
    color: #c4b5fd; font-size: 12px; font-weight: 700; letter-spacing: .04em;
    text-decoration: none; flex-shrink: 0;
    transition: all .15s; white-space: nowrap;
  }
  .orders-btn:hover { border-color: rgba(139,92,246,.6); color: #e9d5ff; background: rgba(139,92,246,.2); }

  /* ── Header balance widget ── */
  #header-balance-widget {
    position: relative; display: flex; align-items: center; flex-shrink: 0;
  }
  .header-balance-btn {
    display: flex; align-items: center; gap: 7px;
    height: 36px; border-radius: 8px; padding: 0 12px;
    background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.22);
    cursor: pointer; transition: all .15s; white-space: nowrap;
  }
  .header-balance-btn:hover { background: rgba(74,222,128,.14); border-color: rgba(74,222,128,.4); }
  .header-balance-drop {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 200px; background: #0e0c1f; border-radius: 12px;
    padding: 16px 18px; z-index: 500;
    box-shadow: 0 16px 48px rgba(0,0,0,.8), 0 0 0 1px rgba(139,92,246,.15);
  }
  .header-balance-drop.open { display: block; }

  /* ── Cart button ── */
  .cart-btn {
    position: relative;
    display: flex; align-items: center; gap: 7px;
    height: 36px; border-radius: 8px; padding: 0 13px 0 10px;
    background: #7c3aed; border: none;
    cursor: pointer; transition: opacity .15s, box-shadow .15s; flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(124,58,237,.4);
  }
  .cart-btn:hover { opacity: .88; box-shadow: 0 4px 18px rgba(124,58,237,.6); }
  .cart-btn svg { flex-shrink: 0; }
  .cart-btn-label { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
  .cart-count {
    position: absolute; top: -5px; right: -5px;
    min-width: 17px; height: 17px; border-radius: 9px;
    background: #8b5cf6; color: #fff;
    font-size: 10px; font-weight: 700; line-height: 17px;
    text-align: center; padding: 0 3px;
    border: 2px solid var(--bg); display: none;
  }
  .cart-count.visible { display: block; }

  /* add-to-cart button on cards */
  .btn-cart {
    display: flex; align-items: center; justify-content: center;
    gap: 5px;
    padding: 7px 10px; border-radius: 6px; cursor: pointer;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: #7c3aed; border: 1px solid #7c3aed;
    color: #fff; transition: all .15s; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(124,58,237,.35);
  }
  .btn-cart:hover { background: #8b5cf6; border-color: #8b5cf6; box-shadow: 0 3px 12px rgba(139,92,246,.5); }
  .btn-cart.in-cart { background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.25); color: #4ade80; box-shadow: none; }
  .btn-cart svg { flex-shrink: 0; }
  .btn-presale {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 10px; border-radius: 6px; cursor: pointer;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35);
    color: #fbbf24; transition: all .15s; white-space: nowrap;
  }
  .btn-presale:hover { background: rgba(251,191,36,.22); border-color: rgba(251,191,36,.6); }

  /* ── Cart Drawer ── */
  .cart-overlay {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .cart-overlay.open { opacity: 1; pointer-events: all; }

  .cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 601;
    width: 380px; max-width: 100vw;
    background: var(--surface); border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .26s cubic-bezier(.3,.8,.3,1);
  }
  .cart-overlay.open .cart-drawer { transform: translateX(0); }

  .cart-head {
    padding: 16px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
  }
  .cart-head-title { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
  .cart-head-title img { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: .7; }
  .cart-close {
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-size: 18px; padding: 4px 8px; border-radius: 6px; line-height: 1;
  }
  .cart-close:hover { background: var(--surface2); color: var(--text); }

  .cart-items { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .cart-items::-webkit-scrollbar { width: 3px; }
  .cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

  .cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; text-align: center; padding: 40px 20px; }
  .cart-empty svg { opacity: .25; }

  .cart-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px; position: relative;
  }
  .cart-item-img {
    width: 60px; height: 46px; border-radius: 6px;
    object-fit: contain; flex-shrink: 0; background: #0b0919;
  }
  .cart-item-info { flex: 1; min-width: 0; }
  .cart-item-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cart-item-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .cart-item-price { font-size: 14px; font-weight: 700; color: #4ade80; flex-shrink: 0; }
  .cart-item-remove {
    position: absolute; top: 6px; right: 6px;
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-size: 14px; line-height: 1; padding: 2px 5px; border-radius: 4px;
    opacity: .6;
  }
  .cart-item-remove:hover { background: rgba(248,113,113,.1); color: #f87171; opacity: 1; }

  .cart-foot {
    border-top: 1px solid var(--border); padding: 16px 18px;
    display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
  }
  .cart-total-row { display: flex; justify-content: space-between; align-items: center; }
  .cart-total-lbl { font-size: 13px; color: var(--muted); }
  .cart-total-val { font-size: 22px; font-weight: 700; color: #4ade80; font-family: 'Rajdhani', sans-serif; letter-spacing: .02em; }
  .cart-count-lbl { font-size: 12px; color: var(--muted); }

  .btn-checkout {
    width: 100%; height: 46px; border-radius: 10px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border: none; color: #fff; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: opacity .15s; letter-spacing: .03em;
  }
  .btn-checkout:hover { opacity: .88; }
  .btn-checkout:disabled { opacity: .4; cursor: not-allowed; }
  .btn-clear-cart {
    background: none; border: none; color: var(--muted); cursor: pointer;
    font-size: 12px; text-decoration: underline; padding: 0; align-self: center;
  }
  .btn-clear-cart:hover { color: #f87171; }

  /* Empurra o chatbot pra esquerda quando o carrinho está aberto */
  .cb-trigger {
    transition: transform .2s, box-shadow .2s, right .26s cubic-bezier(.3,.8,.3,1) !important;
  }
  .cart-open .cb-trigger { right: 404px !important; }
  @media (max-width: 500px) { .cart-open .cb-trigger { right: 12px !important; bottom: 84px !important; } }

  /* ── Mobile ──────────────────────────────────────── */
  @media (max-width: 768px) {

    /* Header */
    .site-header { padding: 0 12px; gap: 10px; height: 52px; }
    .search-wrap { flex: 1; max-width: none; }
    .logo-name { display: none; }
    #faq-btn span, #reviews-btn span, #orders-btn span { display: none; }
    #faq-btn, #reviews-btn, #orders-btn { padding: 0 9px; min-width: 34px; justify-content: center; }
    .cart-btn-label { display: none; }
    .stat-line { display: none !important; }
    #user-widget { min-width: unset; }
    .user-name { display: none; }

    /* Sidebar vira drawer */
    .sidebar {
      transform: translateX(-100%);
      transition: transform .25s ease;
      z-index: 150; top: 52px;
      height: calc(100vh - 52px);
      box-shadow: 4px 0 24px rgba(0,0,0,.5);
    }
    .sidebar.open { transform: translateX(0); }
    .content { margin-left: 0; padding: 12px 12px 80px; }

    /* Botão filtro */
    .filter-toggle {
      display: flex; align-items: center; gap: 6px;
      height: 34px; padding: 0 12px; border-radius: 8px;
      background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3);
      color: #c4b5fd; font-size: 12px; font-weight: 700;
      cursor: pointer; margin-bottom: 12px;
    }
    .sidebar-overlay {
      display: none; position: fixed; inset: 0; z-index: 140;
      background: rgba(0,0,0,.5);
    }
    .sidebar-overlay.open { display: block; }

    /* Grid */
    .skin-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .card-img-wrap { height: 110px; }

    /* Modal */
    .modal-panel { width: 100% !important; max-height: 92vh; border-radius: 16px 16px 0 0; }
    .modal-overlay { align-items: flex-end; }
    .modal-grid { grid-template-columns: 1fr !important; }
    .m-img { height: 180px; }

    /* Cart */
    .cart-drawer { width: 100vw; }
  }
