/* =====================================================================
   POWER GALAXY MART - Date of birth calendar (Register.aspx)
   Pink & white pop-up used by assets/js/powergalaxy-dob.js
   ===================================================================== */
:root {
    --dob-ink: #5c1233; --dob-ink2: #7d3a58; --dob-mute: #b892a4;
    --dob-pink: #d6246e; --dob-pink2: #e9659b; --dob-soft: #fde4ee; --dob-soft2: #fff3f8; --dob-line: #f6d5e3;
}

/* the hidden box the server reads */
.rg-dob-value { display: none !important; }

/* the field that opens the calendar (looks like the other inputs) */
.rg-in--dob { cursor: pointer; }
.rg-dob {
    flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border: 0; outline: 0; background: transparent; padding: 0 14px 0 0; cursor: pointer; text-align: left;
    font: 400 14.5px "Lexend", sans-serif; color: #bb9baa; border-radius: 0 14px 14px 0;
}
.rg-dob.has-value { color: var(--tx, #3a1325); font-weight: 500; }
.rg-dob > i { font-size: 12px; color: var(--dob-pink); transition: transform .2s; }
.rg-dob:hover > i { transform: translateY(1px); }
.rg-dob:focus-visible { box-shadow: none; }
.rg-in--dob:focus-within { border-color: var(--dob-pink); box-shadow: 0 0 0 4px rgba(214, 36, 110, .12); background: #fff; }
.rg-in--dob.is-set { background: #fff; }

/* ---------- pop-up ---------- */
html.dob-open { overflow: hidden; }
.dob-pop[hidden] { display: none !important; }
.dob-pop { position: fixed; inset: 0; z-index: 100050; display: grid; place-items: center; padding: 16px; }
.dob-pop__shade { position: absolute; inset: 0; background: rgba(92, 18, 51, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.dob-cal {
    position: relative; width: 100%; max-width: 360px; background: #fff; border-radius: 24px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(92, 18, 51, .35), 0 2px 8px rgba(92, 18, 51, .12);
    font-family: "Lexend", sans-serif; color: var(--dob-ink);
    opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .2s, transform .25s cubic-bezier(.05, .7, .1, 1);
}
.dob-pop.is-in .dob-pop__shade { opacity: 1; }
.dob-pop.is-in .dob-cal { opacity: 1; transform: none; }

/* header: big selected date on a pink gradient */
.dob-cal__top {
    position: relative; padding: 18px 22px 18px; color: #fff;
    background: radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .35), transparent 55%), linear-gradient(135deg, #e45a93 0%, #c2306c 100%);
}
.dob-cal__kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.dob-cal__sel { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.dob-cal__age { display: inline-block; min-height: 20px; margin-top: 6px; padding: 0 10px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 600; line-height: 20px; }
.dob-cal__age:empty { display: none; }
.dob-cal__x, .dob-cal__arrow { display: inline-grid; place-items: center; }
.dob-cal__x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 15px; cursor: pointer; transition: background .15s; }
.dob-cal__x:hover { background: rgba(255, 255, 255, .32); }

/* month / year bar */
.dob-cal__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 6px; }
.dob-cal__title { display: flex; gap: 6px; }
.dob-cal__chip {
    height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: var(--dob-soft2); color: var(--dob-ink);
    font: 600 14px "Lexend", sans-serif; cursor: pointer; transition: background .15s, color .15s;
}
.dob-cal__chip::after { content: "\25BE"; margin-left: 6px; font-size: 11px; color: var(--dob-pink); }
.dob-cal__chip:hover { background: var(--dob-soft); }
.dob-cal__chip.is-on { background: var(--dob-pink); color: #fff; }
.dob-cal__chip.is-on::after { color: #fff; }
.dob-cal__arrow { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--dob-pink); font-size: 14px; cursor: pointer; transition: background .15s; }
.dob-cal__arrow:hover:not(:disabled) { background: var(--dob-soft); }
.dob-cal__arrow:disabled { color: #e8cbd8; cursor: default; }

/* grids */
.dob-cal__body { display: grid; gap: 4px; padding: 6px 14px 10px; min-height: 252px; align-content: start; }
.dob-cal__body.is-days { grid-template-columns: repeat(7, 1fr); }
.dob-cal__body.is-months { grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; }
.dob-cal__body.is-years { grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 12px; }
.dob-wd { display: grid; place-items: center; height: 28px; font-size: 11.5px; font-weight: 700; color: var(--dob-mute); text-transform: uppercase; }
.dob-cell {
    display: grid; place-items: center; border: 0; background: transparent; color: var(--dob-ink); cursor: pointer;
    font: 500 14px "Lexend", sans-serif; transition: background .12s, color .12s, transform .12s;
}
.dob-cell--d { height: 38px; border-radius: 50%; }
.dob-cell--m, .dob-cell--y { height: 46px; border-radius: 14px; background: var(--dob-soft2); font-weight: 600; }
.dob-cell:hover:not(:disabled):not(.is-blank) { background: var(--dob-soft); color: var(--dob-pink); }
.dob-cell:active:not(:disabled) { transform: scale(.94); }
.dob-cell:focus-visible { outline: 2px solid var(--dob-pink); outline-offset: 1px; }
.dob-cell.is-sel, .dob-cell.is-sel:hover:not(:disabled) { background: linear-gradient(135deg, #e45a93, #c2306c) !important; color: #fff !important; box-shadow: 0 6px 14px rgba(194, 48, 108, .35); }
.dob-cell.is-blank { cursor: default; }
/* under-18 dates: visible but locked */
.dob-cell.is-off, .dob-cell:disabled { color: #e3c3d1; background: transparent; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(214, 36, 110, .35); }
.dob-cell--m.is-off, .dob-cell--y.is-off { background: #fdf7fa; }

/* 18+ rule + buttons */
.dob-cal__rule { display: flex; align-items: center; gap: 8px; margin: 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--dob-soft2); color: var(--dob-ink2); font-size: 12px; line-height: 1.4; }
.dob-cal__rule i { color: var(--dob-pink); font-size: 14px; }
.dob-cal__rule b { color: var(--dob-ink); }
.dob-cal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px 16px; }
.dob-cal__btn {
    min-width: 96px; height: 42px; padding: 0 18px; border: 0; border-radius: 21px; cursor: pointer;
    background: linear-gradient(135deg, #d94f88, #c2306c); color: #fff; font: 600 14px "Lexend", sans-serif;
    box-shadow: 0 8px 18px rgba(194, 48, 108, .3); transition: transform .12s, box-shadow .15s, opacity .15s;
}
.dob-cal__btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(194, 48, 108, .36); }
.dob-cal__btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.dob-cal__btn--ghost { background: transparent; color: var(--dob-pink); box-shadow: none; min-width: 0; }
.dob-cal__btn--ghost:hover:not(:disabled) { background: var(--dob-soft2); box-shadow: none; transform: none; }

/* phones: slide up from the bottom */
@media (max-width: 520px) {
    .dob-pop { place-items: end center; padding: 0; }
    .dob-cal { max-width: none; border-radius: 24px 24px 0 0; transform: translateY(40px); padding-bottom: env(safe-area-inset-bottom); }
    .dob-cell--d { height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    .dob-cal, .dob-pop__shade { transition: none; }
}
