:root {
    --ink: #111522;
    --muted: #697083;
    --surface: #ffffff;
    --line: #e8eaf0;
    --blue: #2864ff;
    --violet: #7047eb;
    --lime: #baf45d;
}

body {
    background: #f4f5f8;
    color: var(--ink);
}

.container.py-4 {
    max-width: 1240px;
    padding-top: 2rem !important;
}

.storefront {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-panel {
    min-height: 370px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr);
    gap: 2rem;
    align-items: end;
    padding: clamp(2rem, 5vw, 4.5rem);
    color: white;
    border-radius: 28px;
    background: linear-gradient(135deg, #0b1023 0%, #161b37 54%, #30216a 100%);
    box-shadow: 0 24px 70px rgba(21, 27, 61, .22);
}

.hero-panel::after {
    content: "△  ○  ×  □";
    position: absolute;
    right: -1rem;
    top: 1rem;
    color: rgba(255, 255, 255, .045);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    letter-spacing: -.08em;
    transform: rotate(-8deg);
    white-space: nowrap;
}

.hero-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .45;
}

.hero-glow-one { background: #3d7cff; left: 33%; top: -35%; }
.hero-glow-two { background: #ad4eff; right: 3%; bottom: -45%; }

.hero-content, .hero-stats { position: relative; z-index: 1; }
.eyebrow { display: block; margin-bottom: .8rem; color: #9eb8ff; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dark { color: var(--blue); }
.hero-content h1 { margin: 0; max-width: 650px; font-size: clamp(3rem, 7vw, 5.7rem); line-height: .91; letter-spacing: -.065em; font-weight: 800; }
.hero-content h1 span { color: var(--lime); }
.hero-content p { max-width: 590px; margin: 1.5rem 0 1.8rem; color: #cbd0e1; font-size: 1.08rem; line-height: 1.65; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-store { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.25rem; border-radius: 12px; font-weight: 700; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.btn-store:hover { transform: translateY(-2px); }
.btn-store-primary { color: #0d1422 !important; background: var(--lime); box-shadow: 0 8px 25px rgba(186, 244, 93, .18); }
.btn-store-ghost { color: white !important; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); }

.hero-stats { display: grid; gap: .75rem; }
.stat-card { padding: 1.25rem 1.4rem; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.stat-card-accent { background: rgba(186,244,93,.1); }
.stat-card strong { display: block; font-size: 2rem; line-height: 1; }
.stat-card span { display: block; margin-top: .45rem; color: #cbd0e1; font-size: .83rem; }

.content-section { padding: 4.5rem 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; }
.section-note { color: var(--muted); font-size: .88rem; }

.deals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.deal-card { overflow: hidden; color: inherit !important; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none !important; transition: transform .22s, box-shadow .22s; }
.deal-card:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(25,31,55,.12); }
.deal-cover, .game-cover { position: relative; display: block; overflow: hidden; background: linear-gradient(145deg, #20294c, #724de2); }
.deal-cover { aspect-ratio: 16 / 10; }
.deal-cover img, .game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.deal-card:hover img, .game-card:hover img { transform: scale(1.04); }
.cover-placeholder { height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.8); font-size: 2.5rem; font-weight: 900; }
.discount-badge { position: absolute; left: .75rem; bottom: .75rem; padding: .35rem .55rem; color: #10151e; border-radius: 8px; background: var(--lime); font-size: .78rem; font-weight: 900; }
.deal-info { padding: 1rem; }
.deal-info h3 { min-height: 2.5em; margin: 0 0 .8rem; overflow: hidden; font-size: .98rem; line-height: 1.25; font-weight: 750; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.price-row strong { color: #214ed0; font-size: 1rem; }
.old-price { color: #8a8f9e; font-size: .78rem; text-decoration: line-through; }

.catalog-heading { align-items: center; }
.search-box { display: flex; align-items: center; gap: .5rem; min-width: 270px; margin: 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 5px 16px rgba(23,29,52,.04); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; }
.search-box button { padding: .35rem .65rem; color: white; border: 0; border-radius: 8px; background: var(--blue); font-size: .8rem; font-weight: 700; }
.search-box a { color: var(--muted); font-size: .8rem; font-weight: 700; }

.games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 7px 22px rgba(23,29,52,.055); transition: transform .22s, box-shadow .22s; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(23,29,52,.13); }
.game-cover { aspect-ratio: 1 / 1; }
.type-badge { position: absolute; top: .75rem; left: .75rem; padding: .32rem .5rem; color: white; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: rgba(9,13,28,.74); backdrop-filter: blur(8px); font-size: .67rem; font-weight: 800; }
.game-info { padding: 1rem; }
.game-title { display: -webkit-box; min-height: 2.6em; overflow: hidden; color: var(--ink) !important; font-weight: 750; line-height: 1.3; text-decoration: none !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.game-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0; }
.game-meta strong { font-size: 1.05rem; }
.game-meta span { color: var(--muted); font-size: .76rem; }
.watch-button { width: 100%; padding: .55rem; color: #2b56d9; border: 1px solid #dce4ff; border-radius: 9px; background: #f3f6ff; font-weight: 700; cursor: pointer; }
.watch-button.is-watched { color: #43631a; border-color: #dceebf; background: #f2f9e7; }
.watch-button:disabled { opacity: .55; }

.empty-state { padding: 4rem 1.5rem; text-align: center; border: 1px dashed #cdd1dc; border-radius: 20px; background: white; }
.empty-icon { margin-bottom: 1rem; color: var(--blue); font-size: 2rem; letter-spacing: .25em; }
.empty-state h3 { font-weight: 800; }
.empty-state p { max-width: 520px; margin: 0 auto 1.5rem; color: var(--muted); }
.no-search-results { padding: 2rem; text-align: center; color: var(--muted); }

.store-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.store-pagination a { color: var(--blue); font-weight: 700; text-decoration: none; }
.store-pagination a:last-child { text-align: right; }
.store-pagination .disabled { opacity: .35; pointer-events: none; }
.store-pagination span { color: var(--muted); font-size: .9rem; }

@media (max-width: 991px) {
    .hero-panel { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .deals-grid, .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .container.py-4 { padding-left: 1rem; padding-right: 1rem; }
    .hero-panel { min-height: auto; padding: 2rem 1.4rem; border-radius: 20px; }
    .hero-content h1 { font-size: 3.1rem; }
    .hero-stats, .deals-grid, .games-grid { grid-template-columns: 1fr; }
    .section-heading, .catalog-heading { align-items: flex-start; flex-direction: column; }
    .catalog-tools, .search-box { width: 100%; min-width: 0; }
    .store-pagination { grid-template-columns: 1fr 1fr; }
    .store-pagination span { grid-column: 1 / -1; grid-row: 1; margin-bottom: .75rem; text-align: center; }
}
