.buychips-v2 {
    --shop-cyan: #5bdcf5;
    --shop-gold: #ffd66b;
    --shop-green: #68e2b4;
    height: 100%;
    min-height: 0;
    padding: clamp(18px, 2.4vw, 32px) clamp(18px, 3vw, 42px) clamp(20px, 3vw, 40px) !important;
    overflow: hidden !important;
    color: #edfaff;
    background:
        radial-gradient(circle at 12% 8%, rgba(52, 200, 236, .15), transparent 30%),
        radial-gradient(circle at 88% 16%, rgba(255, 199, 77, .1), transparent 25%),
        linear-gradient(145deg, rgba(5, 24, 33, .9), rgba(3, 16, 23, .96)) !important;
}

.buychips-v2 .chips-shop {
    width: min(1320px, 100%);
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 0 !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(16px, 2vw, 26px);
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.buychips-v2 .chips-shop-head {
    min-height: 92px;
    padding: clamp(14px, 1.7vw, 20px) !important;
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 50%, rgba(81, 217, 246, .19), transparent 28%),
        linear-gradient(125deg, rgba(17, 63, 79, .96), rgba(7, 31, 42, .98)) !important;
    border: 1px solid rgba(121, 215, 237, .16) !important;
    border-radius: 26px !important;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .25), inset 0 1px rgba(255,255,255,.05) !important;
}

.buychips-v2 .chips-shop-head::after { display: none !important; }
.buychips-v2 .chips-shop-heading { display: flex !important; align-items: center; gap: 18px; }
.buychips-v2 .chips-shop-mark {
    width: 56px !important; height: 56px !important; flex: 0 0 56px;
    display: grid; place-items: center; border-radius: 17px !important;
    color: #473000 !important; font-size: 24px;
    background: linear-gradient(145deg, #ffe99a, #f6bd39) !important;
    box-shadow: 0 16px 34px rgba(235, 177, 41, .25) !important;
}
.buychips-v2 .chips-shop-heading h2 { margin: 0 0 4px !important; font-size: clamp(24px, 2.3vw, 34px) !important; font-weight: 900; letter-spacing: -.035em; }
.buychips-v2 .chips-shop-heading p { max-width: 620px; margin: 0 !important; color: rgba(220, 241, 247, .68) !important; font-size: clamp(13px, 1.2vw, 16px); }
.buychips-v2 .chips-shop-hint {
    padding: 11px 15px !important; display: inline-flex; align-items: center; gap: 9px;
    color: #dff8fd !important; white-space: nowrap; border: 1px solid rgba(103, 213, 238, .17) !important;
    border-radius: 14px !important; background: rgba(76, 190, 216, .08) !important;
}
.buychips-v2 .chips-shop-hint i { color: var(--shop-cyan) !important; }

.buychips-v2 .chips-offer-store {
    min-height: 78px; margin: 0 !important; padding: 14px 20px !important;
    border-radius: 20px !important; border: 1px solid rgba(255, 213, 107, .22) !important;
    background: linear-gradient(110deg, rgba(109, 71, 4, .65), rgba(29, 52, 53, .9)) !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.2) !important;
}

.buychips-v2 .chips-package-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(14px, 1.6vw, 22px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-content: start !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    overflow: visible !important;
}

.buychips-v2 .chips-package {
    position: relative; min-width: 0; min-height: 0; padding: 18px !important;
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 14px;
    color: #eefbff !important; text-align: left; overflow: hidden;
    background: radial-gradient(circle at 12% 5%, rgba(79, 213, 242, .12), transparent 32%), linear-gradient(155deg, rgba(17, 54, 68, .98), rgba(6, 27, 37, .995)) !important;
    border: 1px solid rgba(126, 211, 231, .13) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24), inset 0 1px rgba(255,255,255,.04) !important;
    transform: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, translate .18s ease !important;
}
.buychips-v2 .chips-package:nth-child(1) { --package-cover: url('/images/shop/tier-1000-icon.webp?v=20260826.3'); }
.buychips-v2 .chips-package:nth-child(2) { --package-cover: url('/images/shop/tier-2000-icon.webp?v=20260826.3'); }
.buychips-v2 .chips-package:nth-child(3) { --package-cover: url('/images/shop/tier-3000-icon.webp?v=20260826.3'); }
.buychips-v2 .chips-package:nth-child(4) { --package-cover: url('/images/shop/tier-5000-icon.webp?v=20260826.3'); }
.buychips-v2 .chips-package:nth-child(5) { --package-cover: url('/images/shop/tier-8000-icon.webp?v=20260826.3'); }
.buychips-v2 .chips-package:nth-child(6) { --package-cover: url('/images/shop/tier-16000-icon.webp?v=20260826.3'); }
.buychips-v2 .chips-package::before,
.buychips-v2 .chips-package::after { display: none !important; }
.buychips-v2 .chips-package:hover,
.buychips-v2 .chips-package:focus-visible { translate: 0 -4px; border-color: rgba(101, 220, 246, .38) !important; box-shadow: 0 25px 55px rgba(0,0,0,.32) !important; }
.buychips-v2 .chips-package-featured {
    background: radial-gradient(circle at 92% 8%, rgba(255, 139, 42, .2), transparent 38%), linear-gradient(155deg, rgba(72, 48, 25, .98), rgba(19, 35, 39, .995)) !important;
    border-color: rgba(255, 145, 52, .52) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24), 0 0 24px rgba(232, 105, 21, .1), inset 0 1px rgba(255,255,255,.04) !important;
}
.buychips-v2 .chips-package-popular { top: 14px !important; right: 14px !important; left: auto !important; padding: 6px 9px !important; border-radius: 9px !important; color: #fff7e6 !important; background: linear-gradient(135deg,#ff9f2f,#e96d13) !important; box-shadow: 0 7px 16px rgba(229, 103, 15, .28) !important; }
.buychips-v2 .chips-package-top { position: relative; width: 100%; height: 100%; display: flex !important; grid-column: 1; grid-row: 1; justify-content: center; align-items: center; justify-self: center; }
.buychips-v2 .chips-package-icon {
    display: block !important;
    width: 76px !important; height: 76px !important;
    border-radius: 18px !important;
    background-image: var(--package-cover) !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    border: 0;
    box-shadow: none;
}
.buychips-v2 .chips-package-icon > i { display: none !important; }
.buychips-v2 .chips-package-vip { position: absolute; left: 50%; bottom: 0; translate: -50% 0; z-index: 2; max-width: 98px; padding: 5px 8px !important; color: #ffe28b !important; background: rgba(19, 39, 45, .94) !important; border: 1px solid rgba(255, 210, 97, .34); border-radius: 10px; font-size: 11px !important; font-weight: 800; white-space: nowrap; }
.buychips-v2 .chips-package-content { grid-column: 2; grid-row: 1; align-self: center; padding-top: 0; display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.buychips-v2 .chips-package-old-amount { width: 100%; color: rgba(218,236,241,.46) !important; font-size: 14px !important; }
.buychips-v2 .chips-package-amount { color: #fff !important; font-size: clamp(31px, 3vw, 44px) !important; line-height: 1; font-weight: 950; letter-spacing: -.04em; }
.buychips-v2 .chips-package-label { color: rgba(219,240,246,.61) !important; font-size: 14px !important; }
.buychips-v2 .chips-package-bottom { grid-column: 1 / -1; grid-row: 2; display: grid !important; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 14px; }
.buychips-v2 .chips-package-price { padding: 0 !important; color: var(--shop-green) !important; font-size: clamp(19px, 1.7vw, 25px) !important; text-align: center; white-space: nowrap; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.buychips-v2 .chips-package-action { min-height: 44px; display: flex !important; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; color: #3f2a00 !important; font-size: 14px !important; font-weight: 900; background: linear-gradient(135deg,#ffe590,#f6bc36) !important; box-shadow: 0 9px 20px rgba(230, 169, 34, .16) !important; }
.buychips-v2 .chips-package-action i { width: auto !important; height: auto !important; padding: 0 !important; color: #4a3000 !important; font-size: 14px !important; line-height: 1 !important; opacity: 1 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.buychips-v2 .chips-package-featured .chips-package-action { color: #fff8ed !important; background: linear-gradient(135deg,#ff9f2f,#e96d13) !important; box-shadow: 0 9px 20px rgba(229, 103, 15, .24) !important; }
.buychips-v2 .chips-package-featured .chips-package-action i { color: #fff8ed !important; }

.buychips-v2 .chips-shop-payment {
    position: static !important;
    inset: auto !important;
    margin: 0 !important; padding: 15px 18px !important; min-height: 68px;
    border: 1px solid rgba(123, 207, 226, .11) !important; border-radius: 18px !important;
    background: rgba(12, 41, 52, .72) !important; box-shadow: none !important;
}

body:has(.buychips-v2) .footer { display: none !important; }
html:has(.buychips-v2),
body:has(.buychips-v2) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
}

body:has(.buychips-v2) .main {
    overflow: hidden !important;
}

body:has(.buychips-v2) #content {
    min-height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 900px) and (orientation: portrait) {
    .buychips-v2 { height: 100%; min-height: 0; padding: 8px 10px !important; overflow: hidden !important; }
    .buychips-v2 .chips-shop { gap: 12px; }
    .buychips-v2 .chips-shop-head { display: none !important; }
    .buychips-v2 .chips-shop-mark { width: 52px !important; height: 52px !important; flex-basis: 52px; border-radius: 16px !important; font-size: 22px; }
    .buychips-v2 .chips-shop-heading { gap: 12px; }
    .buychips-v2 .chips-shop-heading h2 { font-size: 25px !important; }
    .buychips-v2 .chips-shop-heading p { font-size: 12px; }
    .buychips-v2 .chips-shop-hint { display: none !important; }
    .buychips-v2 .chips-offer-store { min-height: 66px; padding: 10px 13px !important; }
    .buychips-v2 .chips-shop { grid-template-rows: minmax(0, 1fr) auto; gap: 7px; }
    .buychips-v2 .chips-package-grid { height: 100% !important; padding-block: 3px !important; box-sizing: border-box; grid-template-columns: 1fr !important; grid-template-rows: repeat(6, minmax(0, 1fr)) !important; gap: 11px !important; overflow: hidden !important; }
    .buychips-v2 .chips-package { min-height: 0; height: 100%; padding: 7px 12px !important; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 34px; align-items: center; gap: 3px 10px; border-radius: 15px !important; }
    .buychips-v2 .chips-package-icon { width: 43px !important; height: 43px !important; border-radius: 13px !important; font-size: 19px !important; }
    .buychips-v2 .chips-package-top { position: relative; grid-column: 1; grid-row: 1; align-self: center; }
    .buychips-v2 .chips-package-icon { width: clamp(48px, 6.3dvh, 54px) !important; height: clamp(48px, 6.3dvh, 54px) !important; margin-top: 4px !important; border-radius: 0 !important; }
    .buychips-v2 .chips-package-vip { position: absolute; left: 50%; bottom: 0; top: auto; right: auto; max-width: 78px; padding: 4px 6px !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; translate: -50% 0; font-size: 10px !important; }
    .buychips-v2 .chips-package-content { grid-column: 2; grid-row: 1; align-self: center; padding: 0; gap: 5px; }
    .buychips-v2 .chips-package-amount { font-size: clamp(25px, 7vw, 31px) !important; }
    .buychips-v2 .chips-package-label { font-size: 11px !important; }
    .buychips-v2 .chips-package-bottom { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 0 !important; border: 0 !important; }
    .buychips-v2 .chips-package-bottom::before,
    .buychips-v2 .chips-package-bottom::after { display: none !important; }
    .buychips-v2 .chips-package-price { width: 100%; font-size: clamp(19px, 5.4vw, 22px) !important; text-align: center !important; }
    .buychips-v2 .chips-package-action { width: 100%; min-height: 32px; font-size: 12px !important; }
    .buychips-v2 .chips-package-action i { display: block !important; margin: 0 !important; color: #4a3000 !important; font-size: 11px !important; opacity: 1 !important; }
    .buychips-v2 .chips-package-popular { top: 7px !important; right: 8px !important; padding: 4px 7px !important; font-size: 8px !important; }
    .buychips-v2 .chips-package-vip { font-size: 9px !important; }
    .buychips-v2 .chips-shop-payment { min-height: 48px; padding: 7px 10px !important; }
    .buychips-v2 .chips-shop-payment-copy span { display: none; }
}

@media (orientation: landscape) and (max-width: 1024px) and (max-height: 600px) {
    .buychips-v2 { height: 100%; min-height: 0; padding: 7px 8px !important; overflow: hidden !important; }
    .buychips-v2 .chips-shop { height: 100%; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; }
    .buychips-v2 .chips-shop-head { display: none !important; }
    .buychips-v2 .chips-offer-store { min-height: 48px; max-height: 48px; padding: 6px 12px !important; border-radius: 14px !important; }
    .buychips-v2 .chips-package-grid { height: 100% !important; min-height: 0; padding-block: 3px !important; box-sizing: border-box; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-rows: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
    .buychips-v2 .chips-package { min-height: 0; height: 100%; padding: 5px 7px !important; grid-template-columns: clamp(84px, 23dvh, 92px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 34px; align-items: center; gap: 4px 7px; border-radius: 14px !important; }
    .buychips-v2 .chips-package-top { position: relative; display: flex !important; grid-column: 1; grid-row: 1; }
    .buychips-v2 .chips-package-icon { width: clamp(50px, 14dvh, 60px) !important; height: clamp(50px, 14dvh, 60px) !important; border-radius: 12px !important; }
    .buychips-v2 .chips-package-old-amount { display: none !important; }
    .buychips-v2 .chips-package-label { display: inline !important; color: rgba(219,240,246,.62) !important; font-size: 9px !important; }
    .buychips-v2 .chips-package-vip { display: block !important; width: auto; min-height: 0; max-width: 60px; bottom: -1px; padding: 3px 4px !important; font-size: 8px !important; }
    .buychips-v2 .chips-package-action { display: flex !important; width: 100%; min-height: 34px; padding: 0 9px !important; font-size: 11px !important; }
    .buychips-v2 .chips-package-action i { display: block !important; margin: 0 !important; font-size: 11px !important; }
    .buychips-v2 .chips-package-content { grid-column: 2; grid-row: 1; align-self: center; padding-top: 0; }
    .buychips-v2 .chips-package-amount { flex: 0 0 auto !important; width: auto !important; max-width: none !important; padding-right: 2px; font-size: clamp(22px, 4.5dvh, 31px) !important; overflow: visible !important; text-overflow: clip !important; }
    .buychips-v2 .chips-package-bottom { display: grid !important; grid-column: 1 / -1; grid-row: 2; grid-template-columns: clamp(84px, 23dvh, 92px) minmax(0, 1fr); gap: 7px; padding: 0 !important; border: 0 !important; }
    .buychips-v2 .chips-package-price { width: 100%; max-width: none !important; font-size: clamp(15px, 3.6dvh, 19px) !important; text-align: center !important; white-space: nowrap; overflow: visible !important; text-overflow: clip !important; }
    .buychips-v2 .chips-package-popular { top: 4px !important; right: 5px !important; padding: 3px 5px !important; font-size: 8px !important; }
    .buychips-v2 .chips-shop-payment { min-height: 42px; max-height: 42px; padding: 6px 10px !important; border-radius: 13px !important; }
    .buychips-v2 .chips-shop-payment-copy span { display: none; }
}
