:root {
    --ember: #ff6b1a;
    --ember-light: #ffb13b;
    --ink: #0c0b0a;
    --ink-soft: #151311;
    --panel: #1c1916;
    --line: rgba(255, 255, 255, 0.1);
    --paper: #f6f1e8;
    --muted: #aaa198;
    --bs-font-sans-serif: 'Manrope', sans-serif;
    --bs-primary: #ff6b1a;
    --bs-primary-rgb: 255, 107, 26;
    --bs-body-bg: #0c0b0a;
    --bs-body-color: #f6f1e8;
    --bs-border-color: rgba(255, 255, 255, 0.1);
}

html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); overflow-x: hidden; }
body::selection { background: var(--ember); color: #130b06; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, .navbar-brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; letter-spacing: -0.02em; }

.btn { border-radius: 0; border-width: 1px; font-weight: 700; letter-spacing: .02em; padding: .78rem 1.2rem; }
.btn-primary { background: var(--ember); border-color: var(--ember); color: #160b05; box-shadow: 0 12px 35px rgba(255, 107, 26, .2); }
.btn-primary:hover, .btn-primary:focus { background: var(--ember-light); border-color: var(--ember-light); color: #160b05; transform: translateY(-2px); }
.btn-ghost, .btn-secondary { background: rgba(12, 11, 10, .45); border: 1px solid rgba(255, 255, 255, .25); color: var(--paper); }
.btn-ghost:hover, .btn-secondary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.site-navbar { position: relative; z-index: 20; padding: 1.15rem 0; border-bottom: 1px solid rgba(255, 255, 255, .09); background: rgba(10, 9, 8, .42); backdrop-filter: blur(16px); }
.navbar-brand { display: flex; align-items: center; gap: .7rem; font-size: 1.45rem; letter-spacing: .03em; color: #fff; }
.navbar-brand img { width: 38px; height: 38px; object-fit: cover; border: 1px solid rgba(255, 177, 59, .45); }
.navbar-brand strong { color: var(--ember-light); }
.site-navbar .nav-link { position: relative; margin: 0 .25rem; color: rgba(255, 255, 255, .72); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-navbar .nav-link::after { content: ''; position: absolute; right: .5rem; bottom: .2rem; left: .5rem; height: 2px; background: var(--ember); transform: scaleX(0); transition: transform .2s ease; }
.site-navbar .dropdown-toggle::after { position: static; display: inline-block; width: 0; height: 0; margin-left: .35em; border: .25em solid transparent; border-top-color: currentColor; vertical-align: -.15em; transform: none; background: none; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: #fff; }
.site-navbar .nav-link:hover::after, .site-navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-account { align-items: center; gap: .35rem; }
.navbar-account .btn { padding: .55rem .9rem; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 0; background: #171411; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.dropdown-item { color: var(--paper); }
.dropdown-item:hover, .dropdown-item.active { background: rgba(255, 107, 26, .15); color: var(--ember-light); }

.hero { position: relative; min-height: 860px; background-image: linear-gradient(90deg, rgba(8, 7, 7, .98) 0%, rgba(8, 7, 7, .77) 44%, rgba(8, 7, 7, .2) 78%), linear-gradient(0deg, var(--ink) 0%, transparent 28%), var(--hero-image); background-position: center; background-size: cover; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, black, transparent 70%); }
.hero::after { content: ''; position: absolute; width: 450px; height: 450px; left: 35%; top: 24%; z-index: -1; border-radius: 50%; background: rgba(255, 85, 0, .13); filter: blur(100px); }
.hero-grid { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .55fr); gap: 8vw; align-items: center; padding-top: 4rem; padding-bottom: 6rem; }
.hero-copy { max-width: 780px; }
.eyebrow, .section-kicker { color: var(--ember-light); font-size: .76rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.eyebrow span { display: block; width: 42px; height: 2px; background: var(--ember); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(4rem, 7.8vw, 7.8rem); line-height: .83; text-transform: uppercase; text-wrap: balance; }
.hero-lead { max-width: 620px; margin: 2rem 0; color: #c6beb5; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions .btn { min-width: 190px; }
.hero-actions .copy-address { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .4rem; text-align: left; }
.edition-label { display: block; font-size: .58rem; line-height: 1; letter-spacing: .2em; opacity: .72; }
.address-line { display: flex; align-items: center; gap: .55rem; line-height: 1.15; }
.address-line i { flex: 0 0 auto; font-size: .9em; }
.copy-hint { margin-top: .8rem; color: #857d76; font-size: .76rem; }

.server-card { position: relative; padding: 1.4rem; border: 1px solid rgba(255, 177, 59, .28); background: linear-gradient(145deg, rgba(36, 29, 24, .92), rgba(13, 11, 10, .82)); box-shadow: 0 35px 100px rgba(0, 0, 0, .5); backdrop-filter: blur(14px); }
.server-card::before, .rank-card::before { content: ''; position: absolute; width: 42px; height: 42px; top: -1px; right: -1px; border-top: 2px solid var(--ember); border-right: 2px solid var(--ember); }
.server-card-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.live-label { display: flex; align-items: center; gap: .45rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #8a3730; box-shadow: 0 0 0 4px rgba(138, 55, 48, .14); }
.status-dot.is-online { background: #63d17a; box-shadow: 0 0 0 4px rgba(99, 209, 122, .13), 0 0 16px rgba(99, 209, 122, .6); }
.server-mark { display: grid; place-items: center; min-height: 235px; margin: 1.2rem 0; background: radial-gradient(circle, rgba(255, 107, 26, .18), transparent 64%); }
.server-mark img { width: 180px; height: 180px; object-fit: cover; transform: rotate(2deg); filter: drop-shadow(0 20px 28px rgba(0,0,0,.55)); }
.server-mark i { color: var(--ember); font-size: 7rem; }
.server-count { display: flex; align-items: end; gap: .7rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.server-count strong { color: var(--ember-light); font-family: 'Barlow Condensed', sans-serif; font-size: 3.3rem; line-height: .8; }
.server-count span { color: var(--muted); font-size: .78rem; }
.server-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; color: #c2bbb3; font-size: .72rem; }
.server-meta i { color: var(--ember); }
.hero-scroll { position: absolute; bottom: 2.5rem; left: 50%; display: flex; align-items: center; gap: .7rem; color: #817970; font-size: .62rem; font-weight: 700; letter-spacing: .2em; transform: translateX(-50%); }
.hero-scroll span { width: 45px; height: 1px; background: #817970; }

.home-main { position: relative; background: var(--ink); }
.feature-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: -1rem; border: 1px solid var(--line); background: #12100e; }
.feature-strip > div { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 2rem; border-right: 1px solid var(--line); }
.feature-strip > div:last-child { border-right: 0; }
.feature-strip i { color: var(--ember); font-size: 1.8rem; }
.feature-strip span { display: flex; flex-direction: column; color: var(--muted); font-size: .78rem; }
.feature-strip strong { color: var(--paper); font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.home-section { padding-top: 8rem; padding-bottom: 8rem; }
.store-callout { display: grid; grid-template-columns: 1.1fr .7fr; gap: 9vw; align-items: center; }
.store-copy h2, .section-heading h2 { margin: .8rem 0 1.4rem; font-size: clamp(3.4rem, 6vw, 6rem); line-height: .9; text-transform: uppercase; }
.store-copy h2 em { color: var(--ember); font-style: normal; }
.store-copy > p { max-width: 600px; color: var(--muted); line-height: 1.8; }
.store-notes { display: flex; gap: 1.5rem; margin: 1.8rem 0; color: #d7d0c8; font-size: .8rem; }
.store-notes i { color: var(--ember-light); margin-right: .35rem; }
.rank-card { position: relative; min-height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem; overflow: hidden; border: 1px solid rgba(255, 177, 59, .24); background: linear-gradient(160deg, #251810, #120f0c 70%); text-align: center; }
.rank-flare { position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 91, 10, .2); filter: blur(70px); }
.rank-icon { position: relative; display: grid; width: 120px; height: 120px; place-items: center; margin-bottom: 1.5rem; border: 1px solid rgba(255, 177, 59, .34); background: rgba(255, 107, 26, .1); transform: rotate(45deg); }
.rank-icon i { color: var(--ember-light); font-size: 3.5rem; transform: rotate(-45deg); }
.rank-label { color: var(--ember-light); font-size: .68rem; font-weight: 800; letter-spacing: .2em; }
.rank-card h3 { margin: .4rem 0; font-size: 4.8rem; line-height: 1; }
.rank-card p { max-width: 270px; color: var(--muted); }
.rank-price { color: var(--muted); font-size: .7rem; letter-spacing: .14em; }
.rank-price strong { color: var(--paper); font-size: 1.2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; }
.section-heading a { margin-bottom: 1.5rem; color: var(--ember-light); font-weight: 700; }
.news-card { display: block; min-height: 330px; padding: 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.news-card img { width: 100%; height: 180px; margin-bottom: 1.2rem; object-fit: cover; }
.news-card span { color: var(--ember-light); font-size: .72rem; }
.news-card h3 { margin-top: .5rem; font-size: 1.7rem; }

.inner-header { position: relative; min-height: 270px; background-image: linear-gradient(90deg, rgba(8,7,7,.96), rgba(8,7,7,.52)), var(--hero-image); background-position: center 45%; background-size: cover; }
.inner-header::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, var(--ink)); }
.inner-header-content { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; padding-top: 5rem; }
.inner-server { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .76rem; }
.page-main { min-height: 55vh; padding: 2.5rem 0 5rem; }
.content > h1 { margin-bottom: 2rem; font-size: clamp(2.8rem, 5vw, 4.8rem); text-transform: uppercase; }

.card, .modal-content, .list-group-item { border-color: var(--line); border-radius: 0; background: var(--panel); color: var(--paper); }
.card { box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.card-header { border-bottom-color: var(--line); background: #231e19; color: var(--ember-light); font-weight: 700; }
.shop-welcome { padding: clamp(1rem, 3vw, 2.5rem); }
.shop-welcome h2 { max-width: 620px; margin: .6rem 0 1rem; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .92; text-transform: uppercase; }
.shop-welcome > p { max-width: 700px; color: var(--muted); line-height: 1.75; }
.shop-welcome-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.list-group-item { padding: .9rem 1rem; }
.list-group-item:hover { background: #27211c; color: var(--ember-light); }
.list-group-item.active { border-color: var(--ember); background: var(--ember); color: #160b05; font-weight: 800; }
#shop .card { overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
#shop .card:hover { border-color: rgba(255, 107, 26, .55); transform: translateY(-5px); }
#shop .card-img-top { aspect-ratio: 4 / 3; border-radius: 0; object-fit: cover; }
#shop .card-title { font-size: 1.8rem; text-transform: uppercase; }
#shop .card-subtitle { color: var(--ember-light); }
.progress { border-radius: 0; background: #0f0d0b; }
.progress-bar { background: linear-gradient(90deg, var(--ember), var(--ember-light)); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--paper); --bs-table-border-color: var(--line); }
.table-dark { --bs-table-bg: #211c18; }
.form-control, .form-select { border-color: var(--line); border-radius: 0; background: #12100e; color: var(--paper); }
.form-control:focus, .form-select:focus { border-color: var(--ember); background: #12100e; color: var(--paper); box-shadow: 0 0 0 .2rem rgba(255, 107, 26, .15); }
.modal-backdrop.show { opacity: .8; }
.alert { border-radius: 0; }

.site-footer { padding: 4.5rem 0 1.8rem; border-top: 1px solid var(--line); background: #090807; }
.footer-main { display: flex; justify-content: space-between; gap: 3rem; padding-bottom: 3rem; }
.footer-brand { display: flex; gap: 1.2rem; align-items: center; max-width: 520px; }
.footer-brand img { width: 72px; height: 72px; object-fit: cover; }
.footer-brand strong { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; }
.footer-brand p { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; color: #c8c0b8; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.footer-actions a:hover { color: var(--ember-light); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); color: #716a64; font-size: .7rem; }

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); background: rgba(12, 11, 10, .96); }
    .site-navbar .nav-link { padding: .75rem .5rem; }
    .navbar-account { align-items: stretch; }
    .hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; padding-top: 6rem; }
    .server-card { max-width: 520px; }
    .hero-scroll { display: none; }
    .store-callout { grid-template-columns: 1fr; }
    .rank-card { max-width: 560px; }
}

@media (max-width: 767.98px) {
    .hero { background-image: linear-gradient(rgba(8,7,7,.88), rgba(8,7,7,.9)), var(--hero-image); background-position: 58% center; }
    .hero-grid { padding-top: 4rem; padding-bottom: 5rem; }
    .hero h1 { font-size: clamp(3.7rem, 18vw, 5.8rem); }
    .hero-actions, .hero-actions .btn { width: 100%; }
    .server-card { padding: 1rem; }
    .server-mark { min-height: 180px; }
    .server-mark img { width: 140px; height: 140px; }
    .feature-strip { grid-template-columns: 1fr; }
    .feature-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .feature-strip > div:last-child { border-bottom: 0; }
    .home-section { padding-top: 5rem; padding-bottom: 5rem; }
    .store-notes, .section-heading, .footer-main, .footer-bottom { flex-direction: column; align-items: flex-start; }
    .rank-card { min-height: 410px; padding: 2rem 1rem; }
    .rank-card h3 { font-size: 4rem; }
    .inner-header-content { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .content > h1 { font-size: 3.2rem; }
    .cart-items { min-width: 720px; }
    .card-body:has(.cart-items) { overflow-x: auto; }
    .footer-actions { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
