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

:root {
  --bg: #070a10;
  --bg-deep: #030509;
  --panel: #111722;
  --panel-high: #182130;
  --line: rgba(255, 255, 255, .1);
  --text: #f6f8fc;
  --muted: #8e9aae;
  --cyan: #20d5ff;
  --blue: #397cff;
  --gold: #ffc743;
  --radius: 20px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }

.tr-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(31, 175, 255, .22), transparent 36%),
    linear-gradient(rgba(7, 10, 16, .82), rgba(7, 10, 16, .97)),
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(255,255,255,.018) 91px 92px),
    var(--bg);
}

.tr-site { min-height: 100vh; overflow: hidden; }
.tr-header { position: relative; width: min(calc(100% - 40px), var(--max)); min-height: 310px; margin: auto; padding: 54px 0 26px; }
.tr-account { position: absolute; z-index: 3; top: 18px; right: 0; display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; }
.tr-account > a, .tr-account > button, .tr-player { padding: 9px 13px; color: var(--text); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); font: inherit; text-decoration: none; cursor: pointer; }
.tr-cart { display: flex; align-items: center; gap: 7px; }
.tr-cart span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #03111a; }

.tr-hero { display: grid; grid-template-columns: 1fr minmax(300px, 440px) 1fr; align-items: center; gap: 42px; }
.tr-logo { display: flex; min-height: 205px; align-items: center; justify-content: center; color: white; text-decoration: none; }
.tr-logo img { display: block; width: 100%; max-height: 205px; object-fit: contain; filter: drop-shadow(0 18px 34px rgba(0,0,0,.55)); }
.tr-logo > span { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(3.4rem, 8vw, 6.5rem); font-weight: 900; line-height: .68; text-align: center; transform: skew(-6deg); text-shadow: 0 5px 0 #10264c, 0 0 35px rgba(32,213,255,.35); }
.tr-logo b { color: var(--cyan); font-weight: 900; }

.tr-server-link { display: flex; min-width: 0; padding: 13px; align-items: center; gap: 14px; color: var(--text); border: 1px solid transparent; border-radius: 14px; background: transparent; text-decoration: none; cursor: pointer; transition: .2s ease; }
.tr-server-link:hover { border-color: var(--line); background: rgba(255,255,255,.035); transform: translateY(-3px); }
.tr-server-link > span:not(.tr-server-icon) { display: flex; min-width: 0; flex-direction: column; }
.tr-server-link small, .tr-server-link em { color: var(--muted); font-size: .63rem; font-style: normal; font-weight: 800; letter-spacing: .12em; }
.tr-server-link strong { overflow: hidden; font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; letter-spacing: .03em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tr-server-icon { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; color: var(--cyan); border: 2px solid var(--cyan); border-radius: 17px; box-shadow: 0 0 30px rgba(32,213,255,.22), inset 0 0 18px rgba(32,213,255,.08); }
.tr-discord { justify-content: flex-end; text-align: right; }
.tr-discord .tr-server-icon { color: #06101a; background: var(--cyan); }

.tr-main { width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 10px 0 90px; }
.tr-heading { margin: 0 auto 42px; text-align: center; }
.tr-heading > span, .tr-eyebrow { color: var(--cyan); font-size: .7rem; font-weight: 900; letter-spacing: .25em; }
.tr-heading h1, .tr-product-info h1, .tr-content-page h1, .tr-panel h1 { margin: 5px 0 8px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; line-height: .95; letter-spacing: .025em; text-transform: uppercase; }
.tr-heading p { margin: 0; color: var(--muted); }

.tr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tr-card { position: relative; overflow: hidden; min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--panel-high), var(--panel)); box-shadow: var(--shadow); transition: .22s ease; }
.tr-card::before { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent); content: ''; opacity: 0; transition: .22s ease; }
.tr-card:hover { border-color: rgba(32,213,255,.55); transform: translateY(-7px); }
.tr-card:hover::before { opacity: 1; }
.tr-card-image { position: relative; z-index: 1; display: grid; height: 168px; padding: 19px 12px 2px; place-items: center; text-decoration: none; }
.tr-card-image img { display: block; width: 100%; height: 100%; max-height: 148px; object-fit: contain; filter: drop-shadow(0 15px 16px rgba(0,0,0,.48)); transition: .22s ease; }
.tr-card:hover .tr-card-image img { transform: scale(1.055); }
.tr-crystal { color: var(--cyan); font-size: 6rem; text-shadow: 0 0 35px var(--cyan); }
.tr-card-body { position: relative; z-index: 2; }
.tr-card-body h2 { margin: 10px 0 14px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.85rem, 2.6vw, 2.25rem); font-weight: 900; line-height: .96; letter-spacing: .015em; text-align: center; text-shadow: 0 3px 0 rgba(0,0,0,.3); text-transform: uppercase; }
.tr-card-body h2 a { text-decoration: none; }
.tr-buy { display: grid; grid-template-columns: auto minmax(118px, .72fr); align-items: center; justify-content: space-between; gap: 12px; }
.tr-price { display: flex; min-width: 74px; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.tr-price strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.55rem; }
.tr-price small { color: var(--muted); font-size: .6rem; font-weight: 800; }
.tr-price del { width: 100%; color: var(--muted); font-size: .68rem; }
.tr-button { display: inline-flex; min-height: 40px; padding: 0 16px; align-items: center; justify-content: center; color: #031018; border: 0; border-radius: 9px; background: linear-gradient(105deg, var(--cyan), #62eaff); box-shadow: 0 8px 20px rgba(32,213,255,.17); font-size: .78rem; font-weight: 900; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: .18s ease; }
.tr-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.tr-button-secondary { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,.06); box-shadow: none; }
.tr-button.is-disabled { color: var(--muted); background: #252b35; box-shadow: none; cursor: not-allowed; }
.tr-badge { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 7px 10px; color: #171000; border-radius: 999px; background: var(--gold); font-size: .62rem; font-weight: 900; }
.tr-bonus { position: absolute; z-index: 4; top: 0; left: 50%; min-width: 165px; padding: 9px 20px 10px; color: #241500; border: 1px solid #fff2a8; border-top: 0; border-radius: 0 0 14px 14px; background: linear-gradient(110deg, #ffb800, #fff08a 48%, #ffb800); box-shadow: 0 8px 0 rgba(138,79,0,.36), 0 13px 30px rgba(255,190,30,.42), 0 0 24px rgba(255,218,86,.22); font-family: 'Barlow Condensed', sans-serif; font-size: 1.02rem; font-weight: 900; letter-spacing: .06em; text-align: center; text-shadow: 0 1px rgba(255,255,255,.5); transform: translateX(-50%); animation: tr-bonus-glow 2.2s ease-in-out infinite; }
.tr-bonus::before, .tr-bonus::after { position: absolute; top: 50%; color: #fff5a8; font-size: .75rem; content: '✦'; transform: translateY(-50%); }
.tr-bonus::before { left: 7px; }
.tr-bonus::after { right: 7px; }
@keyframes tr-bonus-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.13); } }

.tr-footer { display: flex; width: min(calc(100% - 40px), var(--max)); margin: auto; padding: 34px 0 42px; align-items: flex-end; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
.tr-footer > div { display: flex; flex-direction: column; gap: 5px; }
.tr-footer strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; }
.tr-footer span, .tr-footer a { color: var(--muted); font-size: .72rem; }
.tr-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }

.tr-inner-page .tr-header { min-height: 245px; }
.tr-inner-page .tr-logo { min-height: 160px; }
.tr-inner-page .tr-logo img { max-height: 155px; }
.tr-product-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); box-shadow: var(--shadow); }
.tr-product-media { display: grid; min-height: 390px; place-items: center; border-radius: 18px; background: radial-gradient(circle, rgba(32,213,255,.13), transparent 62%); }
.tr-product-media img { max-height: 360px; object-fit: contain; }
.tr-product-info { align-self: center; }
.tr-product-info .tr-buy { margin-top: 28px; }
.tr-description { color: #c4cad5; line-height: 1.7; }
.tr-back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; }
.tr-content-page, .tr-panel { max-width: 820px; padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); }
.tr-prose { color: #c4cad5; line-height: 1.75; }
.tr-form-page, .tr-checkout-page { display: grid; place-items: center; }
.tr-panel { width: 100%; }
.tr-panel label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.tr-panel input, .tr-panel select, .tr-panel textarea { width: 100%; min-height: 50px; margin-bottom: 16px; padding: 12px 14px; color: var(--text); border: 1px solid var(--line); border-radius: 9px; outline: none; background: #090d14; }
.tr-panel input:focus, .tr-panel select:focus, .tr-panel textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(32,213,255,.1); }
.tr-basket-list { margin: 24px 0; border-top: 1px solid var(--line); }
.tr-basket-item { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tr-basket-item a { color: #ff7e8d; font-size: .75rem; }
.tr-total { display: flex; margin: 22px 0; align-items: center; justify-content: space-between; }
.tr-total strong { font-size: 1.5rem; }
.tr-quote-actions { display: flex; margin-top: 24px; gap: 12px; }
.tr-empty { padding: 55px 25px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-align: center; }
.tr-popup { padding: 24px; color: var(--text); background: var(--bg); }

body.tr-modal-open { overflow: hidden; }
.tr-basket-modal { position: fixed; z-index: 10000; inset: 0; display: flex; justify-content: flex-end; visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.tr-basket-modal.is-open { visibility: visible; opacity: 1; }
.tr-basket-backdrop { position: absolute; inset: 0; border: 0; background: rgba(1,4,8,.76); backdrop-filter: blur(7px); cursor: pointer; }
.tr-basket-shell { position: relative; overflow-y: auto; width: min(100%, 560px); height: 100%; padding: 26px; background: #090d14; box-shadow: -25px 0 80px rgba(0,0,0,.55); transform: translateX(100%); transition: transform .22s ease; }
.tr-basket-modal.is-open .tr-basket-shell { transform: translateX(0); }
.tr-basket-shell.is-loading, .tr-is-busy .tr-basket-shell { pointer-events: none; opacity: .66; }
.tr-basket { min-height: 100%; }
.tr-basket-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tr-basket-header h1 { margin: 3px 0 0; font-family: 'Barlow Condensed', sans-serif; font-size: 3.3rem; line-height: .95; text-transform: uppercase; }
.tr-modal-close { display: grid; width: 42px; height: 42px; place-items: center; color: var(--text); border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); font-size: 1.65rem; cursor: pointer; }
.tr-basket-subheader { display: flex; margin: 22px 0 8px; padding-bottom: 13px; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.tr-basket-item { display: grid; grid-template-columns: 78px 1fr auto; grid-template-areas: 'thumb product quantity' 'thumb price quantity'; gap: 7px 14px; padding: 18px 0; align-items: center; border-bottom: 1px solid var(--line); }
.tr-basket-thumb { display: grid; grid-area: thumb; overflow: hidden; width: 78px; height: 78px; padding: 6px; place-items: center; color: var(--cyan); border-radius: 13px; background: var(--panel-high); }
.tr-basket-thumb img { width: 100%; height: 100%; object-fit: contain; }
.tr-basket-product { display: flex; grid-area: product; min-width: 0; flex-direction: column; align-items: flex-start; }
.tr-basket-product strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; text-transform: uppercase; }
.tr-basket-product small { color: var(--muted); font-size: .68rem; }
.tr-remove { padding: 3px 0; color: #ff7788; border: 0; background: none; font-size: .66rem; cursor: pointer; }
.tr-quantity { display: grid; grid-area: quantity; grid-template-columns: 32px 38px 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.tr-quantity button, .tr-quantity input { width: 100%; height: 38px; padding: 0; color: var(--text); border: 0; background: #151c27; text-align: center; }
.tr-quantity button { color: var(--cyan); font-size: 1.1rem; cursor: pointer; }
.tr-quantity input { appearance: textfield; outline: none; background: #0d121b; font-weight: 800; }
.tr-quantity input::-webkit-inner-spin-button { appearance: none; }
.tr-basket-line-price { grid-area: price; font-size: .82rem; }
.tr-basket-footer { display: grid; grid-template-columns: 1fr auto; margin-top: 24px; align-items: center; gap: 16px; }
.tr-continue { justify-self: start; padding: 7px 0; color: var(--muted); border: 0; background: none; font-weight: 700; cursor: pointer; }
.tr-basket-total { display: flex; align-items: flex-end; flex-direction: column; }
.tr-basket-total span { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.tr-basket-total strong { font-size: 1.25rem; }
.tr-basket-footer .tr-button { grid-column: 1 / -1; width: 100%; min-height: 50px; font-size: .86rem; }
.tr-basket-empty { display: flex; min-height: 280px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.tr-basket-empty > span { color: var(--cyan); font-size: 4.4rem; text-shadow: 0 0 30px var(--cyan); }
.tr-basket-empty strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; text-transform: uppercase; }
.tr-basket-empty p { color: var(--muted); }

@media (max-width: 900px) {
  .tr-hero { grid-template-columns: 1fr 1fr; gap: 16px; }
  .tr-logo { grid-column: 1 / -1; grid-row: 1; }
  .tr-server-link { grid-column: 1; grid-row: 2; }
  .tr-discord { grid-column: 2; grid-row: 2; }
  .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .tr-header, .tr-main, .tr-footer { width: min(calc(100% - 24px), var(--max)); }
  .tr-header { padding-top: 75px; }
  .tr-account { left: 0; justify-content: flex-end; }
  .tr-hero { grid-template-columns: 1fr; }
  .tr-logo { min-height: 170px; }
  .tr-server-link, .tr-discord { grid-column: 1; justify-content: center; text-align: left; }
  .tr-server-link { grid-row: 2; }
  .tr-discord { grid-row: 3; }
  .tr-discord > span:first-child { order: 2; }
  .tr-discord .tr-server-icon { order: 1; }
  .tr-grid { grid-template-columns: 1fr; }
  .tr-card-image { height: 215px; }
  .tr-footer { align-items: flex-start; flex-direction: column; }
  .tr-footer nav { justify-content: flex-start; }
  .tr-product-detail, .tr-content-page, .tr-panel { padding: 24px; }
  .tr-product-media { min-height: 270px; }
  .tr-buy { grid-template-columns: 1fr; }
  .tr-basket-shell { padding: 20px 16px; }
  .tr-basket-item { grid-template-columns: 64px 1fr; grid-template-areas: 'thumb product' 'thumb price' 'quantity quantity'; }
  .tr-basket-thumb { width: 64px; height: 64px; }
  .tr-quantity { width: 108px; margin-top: 5px; }
}
