/* ============================================================
   UC Purchase BGMI - Complete Stylesheet
   Pixel-perfect Swag.gg Clone | PHP 8.5 CloudPanel
   ============================================================ */

/* === CSS RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overscroll-behavior-x: none; -moz-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; font-size: 16px; overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; padding: 0; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
ol, ul { list-style: none; }

/* === UTILITY CLASSES === */
.hidden { display: none !important; }

/* === DESIGN TOKENS === */
:root {
    --color-accent-primary: #c2f800;
    --color-surface-l0: #141314;
    --color-surface-l1: #1c1d1f;
    --color-surface-l2: #3a3a3c;
    --color-text-primary: #f6f6f7;
    --color-text-secondary: #f6f6f7b8;
    --color-text-tertiary: #f6f6f74d;
    --color-text-white-primary: #fff;
    --color-text-white-secondary: #ffffff80;
    --color-text-black-primary: #201e1f;
    --color-text-positive: #a8d700;
    --color-text-caution: #fecd2a;
    --color-text-negative: #bb102c;
    --color-icon-primary: #f4f0ea;
    --color-border-neutral: #ffffff1a;
    --color-stroke-negative: #fc5973;
    --color-components-button-primary: #c2f800;
    --color-components-textfield-surface: #1c1d1f;
    --color-components-textfield-surface-selected: #141314;
    --color-components-textfield-border: #fff3;
    --color-components-textfield-border-hover: #ffffff80;
    --color-components-textfield-border-selected: #fff;
    --color-floater-component-default: #201e1fe6;
    --color-floater-component-hover: #2c2a2ce6;
    --color-brand-whatsapp: #25d366;
    --color-components-tags-surface-l1: #c2f800;
    --color-components-tags-surface-l2: #aecc00;
    --color-surface-negative: #fc5973;
    --layout-content-max-width: min(72rem, 80%);
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color-scheme: dark;
}

/* === GLOBAL === */
body {
    font-family: var(--font-family-sans);
    background-color: var(--color-surface-l0);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === APP LAYOUT === */
.app-layout {
    background: var(--color-surface-l0);
    flex-direction: column;
    flex: 1;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 100dvh;
    display: flex;
    position: relative;
    overflow: visible;
}

/* === HEADER === */
.header {
    z-index: 99;
    width: 100%;
    height: 4rem;
    -webkit-backdrop-filter: blur(0.125rem);
    backdrop-filter: blur(0.125rem);
    align-items: center;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header-container {
    width: 100%;
    max-width: var(--layout-content-max-width);
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
}

.header-logo-link {
    margin-left: 0.5rem;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    display: flex;
}
.header-logo-link:active { transform: scale(0.9); }

.header-logo {
    width: 5rem;
    object-fit: contain;
    cursor: pointer;
    height: auto;
}

.header-search {
    max-width: 39rem;
    flex: 1;
    min-width: 0;
}

.search-input-container {
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    height: 3.5rem;
    padding: 0.25rem 1.25rem;
    background: var(--color-components-textfield-surface);
    border: 0.5px solid var(--color-components-textfield-border);
    border-radius: 4.5rem;
    cursor: text;
    transition: all 0.2s;
    display: flex;
}
.search-input-container:hover { border-color: var(--color-components-textfield-border-hover); }
.search-input-container:focus-within {
    background: var(--color-components-textfield-surface-selected);
    border-color: var(--color-components-textfield-border-selected);
}

.search-icon-wrapper {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-text-secondary);
    pointer-events: none;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    display: flex;
}
.search-icon-wrapper img { width: 100%; height: 100%; }

.search-input-wrapper { flex: 1; min-width: 0; }
.search-input-wrapper input { width: 100%; }

.search-input {
    min-width: 0;
    color: var(--color-text-primary);
    font-family: var(--font-family-sans);
    font-size: 1rem;
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    font-weight: 500;
    line-height: 1;
    width: 100%;
}
.search-input::placeholder { color: var(--color-text-tertiary); }
.search-input[type=search] { appearance: none; }
.search-input[type=search]::-webkit-search-decoration,
.search-input[type=search]::-webkit-search-cancel-button,
.search-input[type=search]::-webkit-search-results-button,
.search-input[type=search]::-webkit-search-results-decoration { appearance: none; display: none; }

.header-actions {
    gap: 0.75rem;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    display: flex;
}

/* === BUTTONS === */
.btn {
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    border: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    position: relative;
    font-family: inherit;
}
.btn:active { transform: scale(0.95); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-get-started {
    background: var(--color-floater-component-default);
    color: var(--color-icon-primary);
    -webkit-backdrop-filter: blur(0.625rem);
    backdrop-filter: blur(0.625rem);
    border-radius: 4.5rem;
    height: 2.5rem;
    padding: 0.375rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 0.029rem 0.081rem #00000012, 0 0.073rem 0.205rem #0000001a, 0 0.149rem 0.418rem #0000001f, 0 0.307rem 0.86rem #00000026, 0 0.842rem 2.357rem #00000038;
}
.btn-get-started:hover { background: var(--color-floater-component-hover); }
.btn-get-started svg { width: 1.2rem; height: auto; filter: invert(1); }

/* === PAY BUTTON — ABSOLUTE PINNACLE === */
.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, #e4ff00 0%, #c2f800 50%, #9acc00 100%);
    color: #000000 !important;
    font-weight: 800;
    font-size: 1.05rem;
    height: 3.2rem;
    border-radius: 4.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 1.5rem rgba(194, 248, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.6);
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.btn-pay::before {
    content: "";
    pointer-events: none;
    border-radius: inherit;
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0.125rem 0.125rem rgba(255,255,255,0.4), inset 0 -0.125rem 0.125rem 0.063rem rgba(0,0,0,0.2);
    z-index: 3;
}
.btn-pay-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/* Pay Button SVG Self-Drawing Checkmark */
.btn-check-anim-pay { margin-right: 8px; flex-shrink: 0; }
.btn-check-circle-pay {
    stroke-dasharray: 65; stroke-dashoffset: 65;
    animation: drawBtnCirclePay 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.btn-check-tick-pay {
    stroke-dasharray: 22; stroke-dashoffset: 22;
    animation: drawBtnTickPay 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes drawBtnCirclePay {
    0% { stroke-dashoffset: 65; opacity: 0; }
    15% { opacity: 1; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes drawBtnTickPay {
    0% { stroke-dashoffset: 22; opacity: 0; }
    30% { stroke-dashoffset: 22; opacity: 0; }
    40% { opacity: 1; }
    60% { stroke-dashoffset: 0; opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}
/* CSS Gradient Shine Animation — EXACT USER SPEC (Full Browser Support) */
.btn-pay::after {
    content: ''; top: 0; left: 0; transform: translateX(100%);
    width: 100%; height: 100%; position: absolute; z-index: 1;
    animation: slide 1.5s infinite; pointer-events: none;
    background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(128,186,232,0) 99%, rgba(125,185,232,0) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,0.8)), color-stop(99%,rgba(128,186,232,0)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* IE10+ */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#007db9e8',GradientType=1 ); /* IE6-9 */
}
.btn-pay:hover:not(:disabled) { transform: scale(1.02); box-shadow: 0 0 2rem rgba(194, 248, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.6); }
.btn-pay:active { transform: scale(0.97); }

/* === MAIN CONTENT === */
.main-content {
    z-index: 2;
    width: 100%;
    margin-top: 3.5rem;
    flex: 1;
    position: relative;
}

/* === HERO BACKGROUND === */
.hero-bg-image {
    object-fit: cover;
    object-position: bottom right;
    background-repeat: no-repeat;
    width: 50%;
    height: auto;
    position: fixed;
    bottom: 0;
    right: 0;
    display: none;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail-page {
    background: transparent;
    position: relative;
    width: 100%;
    padding-bottom: 10rem;
    overflow-x: hidden;
}

.content-wrapper {
    gap: 1.5rem;
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: var(--layout-content-max-width);
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.hero-product-details {
    width: 100%;
}



/* === GIFT CARD IMAGE SECTION === */
.gift-card-image-section { width: 100%; position: relative; }
.gift-card-image-wrapper { width: 100%; position: relative; overflow: hidden; }

.product-logo-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    border-radius: 1.5rem 1.5rem 0 0;
    z-index: 2;
    pointer-events: none;
}

.product-logo {
    width: auto;
    height: 3rem;
    max-width: 9rem;
    object-fit: contain;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: 0;
}

.hero-card-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-card-wrapper {
    object-fit: cover;
    object-position: top center;
    background-repeat: no-repeat;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    border-radius: 1.5rem 1.5rem 0 0;
}

/* Dynamic Amount Overlay */
.dynamic-amount-overlay {
    position: absolute;
    top: 48%; /* Perfectly centered vertically within the card's visual frame */
    right: 15%; /* Spaced elegantly away from the right border */
    transform: translateY(-50%);
    font-size: clamp(1.2rem, 4vw, 2.5rem); /* Scales smoothly with the banner size */
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.9);
    pointer-events: none;
    z-index: 5;
    font-family: var(--font-family-sans, "Inter", sans-serif);
}

/* Discount / Cashback Badge */
.discount-badge-wrapper {
    position: absolute;
    top: -0.25rem;
    right: 2rem;
    height: 1.5rem;
    width: auto;
    min-width: 11rem;
    max-width: calc(100% - 3rem);
    transition: transform 0.2s;
    z-index: 5;
}
.discount-badge-wrapper::before {
    content: "";
    top: 0;
    left: -0.25rem;
    border-left: 0.25rem solid transparent;
    border-right: 0.25rem solid transparent;
    border-bottom: 0.25rem solid var(--color-components-tags-surface-l2);
    z-index: -1;
    width: 0;
    height: 0;
    position: absolute;
}
.discount-badge-wrapper::after {
    content: "";
    top: 0;
    right: -0.25rem;
    border-left: 0.25rem solid transparent;
    border-right: 0.25rem solid transparent;
    border-bottom: 0.25rem solid var(--color-components-tags-surface-l2);
    z-index: -1;
    width: 0;
    height: 0;
    position: absolute;
}
.discount-badge {
    border-radius: 0 0 0.5rem 0.5rem;
    background: var(--color-accent-primary);
    z-index: 1;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    inset: 0;
    box-shadow: 0 2px 2px #00000040;
    padding: 0 0.75rem;
}
.discount-text {
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Sleeve / Gift Card Cover */
.gift-card-cover {
    left: -1rem;
    right: -1rem;
    width: calc(100% + 2rem);
    height: auto;
    position: absolute;
    top: 0;
}
.gift-card-cover::before {
    content: "";
    filter: blur(15px);
    background: #0000004d;
    position: absolute;
    inset: -4% 10% 10%;
}
.gift-card-cover-image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: auto;
    position: relative;
}
.gift-card-cover-content {
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

.page-content { top: 0; position: relative; }

/* === BREADCRUMB === */
.breadcrumb-wrapper { display: none; }
.breadcrumb-nav { display: flex; align-items: center; }
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.breadcrumb-item {
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    display: flex;
}
.breadcrumb-link {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}
.breadcrumb-chevron { color: var(--color-text-primary); }
.breadcrumb-text {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

/* === AMOUNT SELECTOR (Mobile) === */
.amount-selector-mobile { display: none; margin-top: 1rem; }

/* === DESCRIPTION === */
.product-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-top: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
}
.description-expanded { /* controlled by JS */ }
.read-more-toggle {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.2s;
    margin-left: 0.25rem;
}
.read-more-toggle:hover { opacity: 0.8; }
.read-more-toggle:active { transform: scale(0.95); }

/* === FEATURES === */
.features-wrapper {
    align-self: stretch;
    margin-top: 1.5rem;
    grid-template-columns: 1fr;
    column-gap: 0;
    display: grid;
}
.feature-item {
    padding: 1rem 0;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-primary);
    font-size: 1rem;
    justify-self: stretch;
    font-weight: 700;
    display: flex;
}
.feature-icon {
    color: var(--color-text-primary);
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

/* === TERMS === */
.terms-wrapper {
    justify-content: flex-start;
    align-items: center;
    display: flex;
}
.terms-link {
    color: var(--color-text-primary);
    font-size: 1rem;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.2s;
}
.terms-link:hover { opacity: 0.8; }
.terms-link:active { transform: scale(0.95); }

/* === AMOUNT SELECTOR (Right Panel) === */
.amount-selector {
    background: var(--color-surface-l1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    flex-direction: column;
    display: flex;
    position: relative;
    box-shadow: 0 0 8px #00000073;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}
.amount-selector::before {
    content: "";
    border-radius: inherit;
    pointer-events: none;
    position: absolute;
    inset: 0;
    box-shadow: inset 0 2px 2px #ffffff26, inset 0 -2px 3px #00000057;
}


.selector-title {
    font-size: 1.125rem;
    color: var(--color-text-primary);
    margin: 0;
    font-weight: 700;
    line-height: 1;
}

.amount-grid {
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.25rem;
    grid-template-columns: repeat(1, 1fr);
    display: grid;
}

.amount-button {
    border: 2px solid var(--color-border-neutral);
    border-radius: 1rem;
    padding: 1rem 0.5rem 1rem 0.8rem;
    color: var(--color-text-secondary);
    font-size: 1rem;
    cursor: pointer;
    background: transparent;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    font-family: inherit;
}
.amount-button:hover { border-color: var(--color-text-white-secondary); }

.amount-button.selected {
    border-color: var(--color-text-white-primary);
    color: var(--color-text-primary);
    background: transparent;
    font-weight: 700;
    position: relative;
    box-shadow: 0 4px 11.4px #1e1e1e33;
}
.amount-button.selected::before {
    content: "";
    border-radius: inherit;
    pointer-events: none;
    position: absolute;
    inset: 0;
    box-shadow: inset 0 2px 2px #ffffff29, inset 0 -2px 2px 1px #0000003b;
}

.amount-denomination-img {
    width: 2.82rem;
    height: auto;
    flex-shrink: 0;
}

.amount-denomination-text {
    align-items: flex-start;
    gap: 0.5rem;
    flex-direction: column;
    flex: 1;
    display: flex;
}

.amount-denomination-amount {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    text-align: left;
    font-weight: 700;
    line-height: 1;
}

.amount-denomination-price {
    font-size: 0.875rem;
    text-align: left;
    color: var(--color-text-secondary);
    font-weight: 500;
    line-height: 1;
}
.amount-denomination-price span {
    color: var(--color-text-secondary);
}

/* === PAY BUTTON WRAPPER (STICKY FOOTER) === */
.pay-button-wrapper { 
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.85); /* Deep dark glassmorphism */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    margin: 0;
    transform: translateY(100%); /* hidden by default, slide up on show */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pay-button-wrapper.visible {
    transform: translateY(0);
}
.pay-button-wrapper .btn-pay {
    max-width: 600px; /* Limit width on desktop so it doesn't span infinitely */
    box-shadow: 0 0 2rem rgba(194, 248, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Ensure the body has enough padding so the sticky footer doesn't hide content */
body {
    padding-bottom: 6rem;
}

/* === REDEMPTION SECTION === */
.redemption-section { margin-top: 2.5rem; }
.section-title {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    font-weight: 700;
}
.heading-font { font-weight: 700; }
.redeem-steps {
    margin-top: 1.25rem;
    flex-direction: column;
    gap: 0;
    display: flex;
}
.redeem-step {
    padding: 1.25rem 0;
    align-items: center;
    gap: 2rem;
    align-self: stretch;
    display: flex;
}
.step-content {
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
    flex-direction: column;
    flex: 1 0 0;
    display: flex;
}
.step-title {
    font-size: 1rem;
    color: var(--color-text-primary);
    margin: 0;
    font-weight: 700;
    line-height: 1;
}
.step-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* === FAQ SECTION === */
.faqs-section { margin-top: 2.5rem; }
.faqs-list {
    margin-top: 1rem;
    flex-direction: column;
    display: flex;
}
.faq-item {
    padding: 2rem 0;
    gap: 1rem;
    flex-direction: column;
    align-self: stretch;
    display: flex;
}
.faq-item:nth-of-type(n+2) {
    border-top: 1px solid var(--color-border-neutral);
}
.faq-question-wrapper {
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-align: left;
    display: flex;
}
.faq-question {
    font-size: 1rem;
    color: var(--color-text-primary);
    font-weight: 500;
}
.faq-icon {
    color: var(--color-icon-primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-icon.rotated { transform: rotate(45deg); }
.faq-answer {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}
.faq-answer[hidden] { display: none; }

/* === CATEGORY SIDEBAR === */
.category-sidebar { display: none; }
.sidebar-logo-link {
    z-index: 1;
    width: 5rem;
    height: 4rem;
    margin-left: 1rem;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: all 0.2s;
    display: flex;
}
.sidebar-logo-link:hover { transform: scale(1.2); }
.sidebar-logo-link:active { transform: scale(0.95); }
.sidebar-logo {
    object-fit: contain;
    cursor: pointer;
    width: 100%;
    height: auto;
}



/* ============================================================
   RESPONSIVE - TABLET (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .amount-selector-mobile { display: block; }
}

/* ============================================================
   RESPONSIVE - DESKTOP (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {
    .hero-bg-image { display: block; }
    
    .hero-product-details {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 1.25fr;
        grid-template-areas: 
            "banner right"
            "lower right";
        gap: 4.5rem;
    }
    
    .gift-card-image-section { grid-area: banner; }
    .gift-card-cover-content { grid-area: lower; }

    .right-section {
        grid-area: right;
        display: block;
        top: 8rem;
        align-self: start;
        position: sticky;
    }
    .hero-right { position: sticky; }
    
    .amount-selector {
        margin-left: 0;
        margin-right: 0;
    }
    
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-wrapper {
        grid-template-columns: repeat(2, minmax(8rem, 1fr));
        column-gap: 1rem;
    }
    
    .breadcrumb-wrapper { display: flex; }
    
    .amount-selector-mobile { display: none; }
    
    .header-search { display: block; }
}

/* ============================================================
   RESPONSIVE - LARGE DESKTOP (min-width: 1280px)
   ============================================================ */
@media (min-width: 1280px) {
    .category-sidebar {
        width: 8rem;
        height: 100%;
        max-height: 100%;
        padding: 1.5rem 0;
        z-index: 100;
        background: transparent;
        flex-direction: column;
        flex-shrink: 0;
        justify-content: space-between;
        align-items: center;
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        overflow: visible;
    }
    
    .content-wrapper {
        max-width: min(72rem, 80%);
    }
}

/* ==========================================================================
   UID VALIDATION MODAL — COMPLETE OVERHAUL
   ========================================================================== */

/* ---- Overlay ---- */
.uid-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 1rem;
    padding-top: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.uid-modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

/* ---- Close Button (top-right of viewport) ---- */
.uid-modal-close {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 1010;
    padding: 0.5rem;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}
.uid-modal-close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ---- Modal Container (single-column centered card) ---- */
.uid-modal-container {
    background: rgba(30, 35, 50, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 2rem;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.uid-modal-overlay:not(.hidden) .uid-modal-container {
    transform: scale(1) translateY(0);
}

/* ---- Video Section ---- */
.uid-video-wrapper {
    width: 100%;
    background-color: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.uid-tutorial-video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ---- Form Section ---- */
.uid-form-section {
    padding: 1.5rem 1.75rem 1.75rem;
}

/* ---- Label Row (text + info icon) ---- */
.uid-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.uid-label-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #fff;
}
.uid-info-trigger {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}
.uid-info-trigger:hover {
    color: var(--color-primary, #b3ff00);
    background-color: rgba(179, 255, 0, 0.08);
}

/* ---- Input Field ---- */
.uid-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.uid-input:focus {
    outline: none;
    border-color: var(--color-primary, #b3ff00);
    box-shadow: 0 0 0 3px rgba(179, 255, 0, 0.12);
}
.uid-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.uid-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Input Error ---- */
.uid-input-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

/* ---- Verify Button ---- */
.uid-verify-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--color-primary, #b3ff00), #8bcc00);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    /* Animation container properties */
    position: relative;
    overflow: hidden;
}

.uid-btn-text,
.uid-btn-loader {
    position: relative;
    z-index: 2; /* Ensures text stays above the shine */
}

/* CSS Gradient Shine Animation */
.uid-verify-btn::after {
    content: '';
    top: 0;
    left: 0;
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    animation: uid-btn-slide 1.5s infinite;
    /* CSS Gradient - from user provided CodePen */
    background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(128,186,232,0) 99%, rgba(125,185,232,0) 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,0.8)), color-stop(99%,rgba(128,186,232,0)), color-stop(100%,rgba(125,185,232,0)));
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%);
    background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%);
    background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#007db9e8',GradientType=1 );
}

@keyframes uid-btn-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.uid-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 255, 0, 0.35);
}
.uid-verify-btn:active {
    transform: translateY(0);
}
.uid-verify-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Proceed to Payment Button ---- */
.uid-proceed-btn {
    margin-top: 1.25rem;
}

/* ---- Loader inside button ---- */
.uid-btn-loader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.uid-spinner {
    width: 1.2rem;
    height: 1.2rem;
    animation: uidSpin 0.8s linear infinite;
}
@keyframes uidSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- States ---- */
.uid-state-hidden {
    display: none;
}
.uid-state-active {
    display: block;
    animation: uidFadeIn 0.4s ease forwards;
}
@keyframes uidFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Success Card ---- */
.uid-success-card {
    background-color: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
}
.uid-success-icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}
.uid-success-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 1.25rem;
}
.uid-verified-details {
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}
.uid-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}
.uid-detail-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.uid-detail-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}
.uid-detail-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ==========================================================================
   INFO POPUP — "How To Find Your User ID in BGMI"
   ========================================================================== */
.uid-info-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}
.uid-info-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.uid-info-card {
    background-color: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 540px;
    width: 100%;
    padding: 2rem;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.uid-info-overlay:not(.hidden) .uid-info-card {
    transform: scale(1);
}

.uid-info-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}
.uid-info-close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.uid-info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
}

.uid-info-image-wrapper {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.uid-info-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.uid-info-steps {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* CSS Gradient Shine Keyframes (Used by btn-pay and other primary buttons) */
@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
