/* oga-recharge.css — "Recharge Oga Coin" (_OgaRecharge.cshtml) and its balance chip, in the site's look
   (myoga-theme.css, the poll card's design system). A modal (a bottom sheet on phones) or, on /coin,
   the page itself. Mobile first, fully responsive. */
.ogarecharge, .ogarecharge-chip {
    --rc-navy: #0B2C57; --rc-navy2: #0A2340; --rc-blue: #1F7BC0; --rc-cyan: #2BB3E3; --rc-red: #E63329; --rc-redD: #C4271E;
    --rc-border: #CFE6F5; --rc-line: #E3EEF6; --rc-muted: #6C8098; --rc-section: #E9F5FC; --rc-section2: #F2FAFF;
    --rc-gold: #F2C230; --rc-green: #1E7A45; --rc-greenBg: #E7F7EE;
}
.ogarecharge { font-family: 'Nunito', system-ui, -apple-system, sans-serif; color: var(--rc-navy); text-align: left; }
.ogarecharge *, .ogarecharge *::before, .ogarecharge *::after { box-sizing: border-box; }
.ogarecharge[hidden] { display: none !important; }

/* ---- the modal: centered on desktop, a bottom sheet on phones ---- */
.ogarecharge.is-modal { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10,35,64,.55); }
.ogarecharge.is-modal.is-behind { z-index: 1040; } /* the login modal (Bootstrap, 1055) above it */
.ogarecharge.is-modal .ogarecharge-sheet {
    width: 100%; max-width: 500px; max-height: 92vh; /* no wider than the cards need */ display: flex; flex-direction: column; background: #fff;
    border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; animation: ogarcIn .2s ease-out both;
}
@keyframes ogarcIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 520px) {
    .ogarecharge.is-modal { align-items: flex-end; padding: 0; }
    .ogarecharge.is-modal .ogarecharge-sheet { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 18px 18px 0 0; animation-name: ogarcUp; }
}
@keyframes ogarcUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
html.ogarecharge-lock, html.ogarecharge-lock body { overflow: hidden; }

.ogarecharge-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 10px; flex: none; border-bottom: 1px solid var(--rc-line); }
.ogarecharge-head h3 { flex: 1; margin: 0; font: 700 18px 'Poppins', system-ui, sans-serif; color: var(--rc-navy); letter-spacing: 0; }
.ogarecharge-iconbtn { width: 34px; height: 34px; flex: none; border: none; border-radius: 10px; background: none; color: var(--rc-muted); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ogarecharge-iconbtn:hover { background: var(--rc-section); color: var(--rc-navy); }
/* the window: the navy header band of the Studio's question modal (white title, white buttons) */
.ogarecharge.is-modal .ogarecharge-head { background: var(--rc-navy); border-bottom: 0; padding: 14px 16px 14px 18px; }
.ogarecharge.is-modal .ogarecharge-head h3 { color: #fff; }
.ogarecharge.is-modal .ogarecharge-iconbtn { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; }
.ogarecharge.is-modal .ogarecharge-iconbtn:hover { background: rgba(255,255,255,.22); color: #fff; }
.ogarecharge.is-modal .ogarecharge-body { padding: 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ogarecharge-foot { flex: none; padding: 12px 18px; border-top: 1px solid var(--rc-line); font-size: 12px; font-weight: 600; color: var(--rc-muted); }
@media (max-width: 480px) {
    .ogarecharge-head { padding: 14px 14px 10px; }
    .ogarecharge.is-modal .ogarecharge-body { padding: 14px; }
    .ogarecharge-foot { padding: 10px 14px; }
}

/* ---- inline (/coin): the page itself, no window around it ---- */
.ogarecharge.is-inline .ogarecharge-body { padding: 0; }

.ogarecharge-msg { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 13px; background: var(--rc-section2); color: var(--rc-blue); }
.ogarecharge-msg:empty { display: none; }
.ogarecharge-msg.err { background: #FDECEB; color: var(--rc-redD); }

/* ---- the packages ---- */
.ogarecharge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
@media (max-width: 330px) { .ogarecharge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* in the window: closer cards, less room on their sides */
.ogarecharge.is-modal .ogarecharge-grid { gap: 10px; }
.ogarecharge.is-modal .ogarecharge-pack { min-height: 86px; padding: 16px 4px 10px; }
.ogarecharge-pack {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 96px; padding: 18px 6px 12px; border: 1.5px solid var(--rc-border); border-radius: 14px; background: #fff;
    cursor: pointer; font-family: inherit; color: var(--rc-navy); text-align: center; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ogarecharge-pack:hover { border-color: var(--rc-cyan); transform: translateY(-2px); }
.ogarecharge-pack:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(43,179,227,.3); }
.ogarecharge-pack.is-best { border-color: var(--rc-gold); }
.ogarecharge-pack.is-selected { border-color: var(--rc-cyan); background: var(--rc-section); box-shadow: 0 0 0 2px rgba(43,179,227,.25); transform: none; }
.ogarecharge-pack .coins { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.ogarecharge-pack .coins img { width: 20px; height: 20px; flex: none; }
.ogarecharge-pack .coins b { font: 800 16px 'Poppins', system-ui, sans-serif; color: var(--rc-navy); letter-spacing: 0; }
.ogarecharge-pack .price { font-size: 13px; font-weight: 800; color: var(--rc-muted); }
.ogarecharge-pack .tier { font-size: 11px; font-weight: 700; color: var(--rc-muted); }
.ogarecharge-pack .tag {
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px;
    font: 800 10.5px 'Nunito', system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap; text-transform: capitalize; background: var(--rc-navy); color: #fff;
}
.ogarecharge-pack.is-best .tag { background: var(--rc-gold); color: #3A2C05; }
.ogarecharge-pack .bonus { position: absolute; top: 6px; right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--rc-greenBg); color: var(--rc-green); font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.ogarecharge-pack .bonus[hidden] { display: none; }
.ogarecharge-pack .check { display: none; position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--rc-cyan); color: #fff; align-items: center; justify-content: center; font-size: 12px; }
.ogarecharge-pack.is-selected .check { display: flex; }
.ogarecharge-pack.is-loading { cursor: default; border-color: var(--rc-line); background: linear-gradient(90deg, var(--rc-section2), #fff, var(--rc-section2)); background-size: 200% 100%; animation: ogarcShimmer 1.2s linear infinite; }
.ogarecharge-pack.is-loading:hover { transform: none; }
@keyframes ogarcShimmer { to { background-position: -200% 0; } }

/* the Custom card: its label, then the amount typed inside it */
.ogarecharge-pack.custom:hover { transform: none; }
.ogarecharge-pack .custom-label { font: 800 16px 'Poppins', system-ui, sans-serif; color: var(--rc-navy); padding: 10px 0; }
.ogarecharge-pack .custom-label[hidden], .ogarecharge-pack .custom-entry[hidden] { display: none; }
.ogarecharge-pack .custom-entry { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
/* specific enough to win over a page's own input rules (e.g. gift.css: .gift-page input[type="text"]) */
.ogarecharge .ogarecharge-pack .coins input[type="text"] {
    width: 100%; max-width: 90px; min-width: 0; height: auto; padding: 1px 0; border: none; border-bottom: 2px solid var(--rc-border); border-radius: 0;
    outline: none; box-shadow: none; background: transparent; text-align: center; font: 800 16px 'Poppins', system-ui, sans-serif; color: var(--rc-navy);
}
.ogarecharge .ogarecharge-pack .coins input[type="text"]:focus { border-bottom-color: var(--rc-cyan); }
.ogarecharge-pack .custom-msg { font-size: 11.5px; font-weight: 700; color: var(--rc-muted); }
.ogarecharge-pack .custom-msg.err { color: var(--rc-redD); }
.ogarecharge-pack .custom-msg.ok { font-size: 13px; font-weight: 800; color: var(--rc-muted); }

@media (max-width: 400px) {
    .ogarecharge-grid { gap: 8px; }
    .ogarecharge-pack { min-height: 88px; padding: 16px 4px 10px; border-radius: 12px; }
    .ogarecharge-pack .coins b, .ogarecharge-pack .custom-label, .ogarecharge .ogarecharge-pack .coins input[type="text"] { font-size: 14.5px; }
    .ogarecharge-pack .coins img { width: 18px; height: 18px; }
    .ogarecharge-pack .price { font-size: 12px; }
}

/* the checkout, under the grid */
.ogarecharge-checkout { margin-top: 16px; }
.ogarecharge-checkout[hidden] { display: none; }
.ogarecharge-checkout .ogacheckout { max-width: none; }
.ogarecharge-terms { margin: 14px 0 0; font-size: 13px; font-weight: 600; color: #94A3B8; }
.ogarecharge-terms[hidden] { display: none; }
.ogarecharge-terms a { color: var(--rc-gold); font-weight: 800; }

/* ---- the balance chip: coin + balance + Recharge (OUTSIDE the window, anywhere on the site) ---- */
.ogarecharge-chip {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 8px; border: 1.5px solid #BFE6CD; border-radius: 12px;
    background: var(--rc-greenBg); cursor: pointer; font-family: 'Nunito', system-ui, sans-serif; line-height: 1; vertical-align: middle; transition: border-color .15s ease, transform .1s ease;
}
.ogarecharge-chip:hover { border-color: #37B26A; }
.ogarecharge-chip:active { transform: scale(.98); }
.ogarecharge-chip img { width: 20px; height: 20px; flex: none; }
.ogarecharge-chip b { font: 800 14px 'Poppins', system-ui, sans-serif; color: var(--rc-navy); }
.ogarecharge-chip span { font-size: 13px; font-weight: 800; color: var(--rc-green); }
