/* ═══════════════════════════════════════════════
   New Baby Card Woo — card.css v1.0
   Blue & Pink Balloons · Stars · Silver Shine
   ═══════════════════════════════════════════════ */

/* ── PRODUCT PAGE FORM ── */
.nbc-form-wrap {
    margin: 1.4rem 0 1rem;
    padding: 1.5rem 1.6rem;
    background: #07101e;
    border: 1px solid rgba(150,210,255,.2);
    border-radius: 16px;
}
.nbc-form-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem;
}
.nbc-form-icon  { font-size: 34px; }
.nbc-form-title { font-size: 16px; font-weight: 700; color: #a8d8ff; }
.nbc-form-sub   { font-size: 12px; color: #5a7a9a; margin-top: 2px; }

/* Theme picker */
.nbc-theme-row {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.nbc-theme-label { font-size: 12px; color: #7a9ab0; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nbc-theme-opt { cursor: pointer; }
.nbc-theme-opt input { display: none; }
.nbc-theme-chip {
    display: inline-block; padding: 6px 14px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,.12);
    font-size: 13px; font-weight: 700; color: #aac0d8;
    background: rgba(255,255,255,.05);
    transition: all .2s; user-select: none;
}
.nbc-theme-opt input:checked ~ .nbc-theme-chip { border-color: #7ad0ff; color: #fff; }
.nbc-boy.nbc-theme-chip,     .nbc-theme-opt input:checked ~ .nbc-boy     { background: rgba(90,160,255,.2); }
.nbc-girl.nbc-theme-chip,    .nbc-theme-opt input:checked ~ .nbc-girl    { background: rgba(255,130,190,.2); }
.nbc-surprise.nbc-theme-chip,.nbc-theme-opt input:checked ~ .nbc-surprise{ background: rgba(180,130,255,.2); }

/* Fields */
.nbc-field { margin-bottom: 1rem; }
.nbc-field label {
    display: block; font-size: 12px; font-weight: 700;
    color: #8ab0cc; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.nbc-field input,
.nbc-field textarea {
    width: 100%; padding: 11px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(150,210,255,.18);
    border-radius: 8px; font-size: 15px; color: #fff;
    font-family: inherit; resize: vertical; outline: none;
    transition: border-color .22s, background .22s;
    box-sizing: border-box;
}
.nbc-field input::placeholder,
.nbc-field textarea::placeholder { color: #3a5a70; }
.nbc-field input:focus,
.nbc-field textarea:focus { border-color: #7ad0ff; background: rgba(255,255,255,.08); }

/* Sound toggle */
.nbc-sound-toggle { margin-bottom: 1rem; }
.nbc-toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.nbc-toggle-track {
    position: relative; width: 42px; height: 24px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(150,210,255,.25);
    border-radius: 12px; flex-shrink: 0; transition: background .25s;
}
.nbc-toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #3a6080; transition: transform .25s, background .25s;
}
.nbc-toggle-label input:checked ~ .nbc-toggle-track { background: rgba(100,190,255,.25); border-color: #7ad0ff; }
.nbc-toggle-label input:checked ~ .nbc-toggle-track .nbc-toggle-thumb { transform: translateX(18px); background: #7ad0ff; }
.nbc-toggle-label input { display: none; }
.nbc-toggle-text { font-size: 13px; color: #8ab0cc; }

.nbc-preview-btn {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #1a4a80 0%, #3a80c0 50%, #7ad0ff 100%);
    color: #fff; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer; letter-spacing: .04em;
    transition: opacity .2s, transform .15s;
}
.nbc-preview-btn:hover  { opacity: .86; }
.nbc-preview-btn:active { transform: scale(.98); }

/* ── MODAL ── */
.nbc-modal {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.78);
    display: flex; align-items: center; justify-content: center;
    animation: nbcFadeIn .3s ease;
}
@keyframes nbcFadeIn { from{opacity:0} to{opacity:1} }
.nbc-modal-inner { width: min(96vw, 520px); border-radius: 20px; overflow: hidden; }

/* Scene backgrounds per theme */
.nbc-scene {
    position: relative; width: 100%; height: 460px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #0a2040 0%, #04101e 60%, #000 100%);
}
.nbc-scene.theme-girl {
    background: radial-gradient(ellipse at 50% 30%, #2a0a20 0%, #140010 60%, #000 100%);
}
.nbc-scene.theme-surprise {
    background: radial-gradient(ellipse at 50% 30%, #15083a 0%, #08031e 60%, #000 100%);
}

/* ── CONFETTI / STARS CANVAS ── */
.nbc-confetti-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 1;
}

/* ── BALLOON LAYER ── */
.nbc-balloons-layer {
    position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden;
}
.nbc-balloon {
    position: absolute; bottom: -160px;
    animation: nbcBalloonRise ease-in-out infinite;
}
@keyframes nbcBalloonRise {
    0%   { transform: translateY(0) rotate(-4deg); opacity: 0; }
    6%   { opacity: 1; }
    50%  { transform: translateY(-260px) rotate(4deg); }
    92%  { opacity: .7; }
    100% { transform: translateY(-600px) rotate(-3deg); opacity: 0; }
}

/* ── STARS LAYER ── */
.nbc-stars-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.nbc-star {
    position: absolute;
    animation: nbcStarPulse ease-in-out infinite;
}
@keyframes nbcStarPulse {
    0%,100%{ opacity: .15; transform: scale(.7); }
    50%    { opacity: 1;   transform: scale(1.3); }
}

/* ── 3-D CARD ── */
.nbc-scene-ui {
    position: absolute; inset: 0; z-index: 10;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px;
    pointer-events: none;
}
#nbc-card-wrap { perspective: 1000px; cursor: pointer; pointer-events: all; }
#nbc-card3d {
    width: 300px; height: 200px;
    position: relative; transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.4,0,.2,1);
    animation: nbcFloat 4s ease-in-out infinite;
}
#nbc-card3d.nbc-flipped {
    transform: rotateY(180deg);
    animation: nbcFloatF 4s ease-in-out infinite;
}
@keyframes nbcFloat  { 0%,100%{ transform:translateY(0); }          50%{ transform:translateY(-13px); } }
@keyframes nbcFloatF { 0%,100%{ transform:rotateY(180deg) translateY(0); } 50%{ transform:rotateY(180deg) translateY(-13px); } }

.nbc-face {
    position: absolute; inset: 0;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; padding: 20px; text-align: center;
}

/* SILVER-BLUE SHINE FRONT (boy default) */
.nbc-front {
    background: linear-gradient(145deg, #020e1e 0%, #0a2a50 35%, #1a5090 60%, #0a2a50 80%, #020e1e 100%);
    border: 1.5px solid #5ab0ff;
    box-shadow: 0 0 32px rgba(90,176,255,.4), inset 0 0 30px rgba(0,0,0,.5);
    transition: background .5s, border-color .5s, box-shadow .5s;
}
.nbc-front.theme-girl {
    background: linear-gradient(145deg, #1e0215 0%, #4a0a30 35%, #8a2060 60%, #4a0a30 80%, #1e0215 100%);
    border-color: #ff8abf;
    box-shadow: 0 0 32px rgba(255,138,191,.4), inset 0 0 30px rgba(0,0,0,.5);
}
.nbc-front.theme-surprise {
    background: linear-gradient(145deg, #0a0520 0%, #220a50 35%, #4a18a0 60%, #220a50 80%, #0a0520 100%);
    border-color: #b078ff;
    box-shadow: 0 0 32px rgba(176,120,255,.4), inset 0 0 30px rgba(0,0,0,.5);
}

/* Silver/pearl shine sweep */
.nbc-shine {
    position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
    background: linear-gradient(
        110deg,
        transparent 0%, transparent 28%,
        rgba(220,240,255,.14) 42%, rgba(255,255,255,.30) 50%,
        rgba(220,240,255,.14) 58%, transparent 72%, transparent 100%
    );
    animation: nbcShine 3.5s ease-in-out infinite;
}
@keyframes nbcShine {
    0%,100%{ opacity:0; transform:translateX(-100%); }
    10%    { opacity:1; }
    55%    { opacity:1; transform:translateX(100%); }
    56%    { opacity:0; }
}

.nbc-front-deco  { font-size: 30px; filter: drop-shadow(0 0 8px rgba(120,200,255,.8)); }
.nbc-front-title {
    font-size: 20px; font-weight: 800; letter-spacing: .5px;
    background: linear-gradient(180deg, #e8f8ff 0%, #90d0ff 50%, #5ab0ff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 1px 4px rgba(90,176,255,.6));
}
.nbc-front.theme-girl .nbc-front-title {
    background: linear-gradient(180deg, #fff0f8 0%, #ffb0d8 50%, #ff6ab0 100%);
    -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 1px 4px rgba(255,106,176,.6));
}
.nbc-front.theme-surprise .nbc-front-title {
    background: linear-gradient(180deg, #f8f0ff 0%, #d0a8ff 50%, #9060ff 100%);
    -webkit-background-clip: text; background-clip: text;
    filter: drop-shadow(0 1px 4px rgba(144,96,255,.6));
}
.nbc-front-name  { font-size: 16px; font-style: italic; color: #e0f4ff; font-weight: 400; }
.nbc-front-hearts{ font-size: 15px; color: #90d0ff; letter-spacing: 5px; margin-top: 2px; }
.nbc-front.theme-girl  .nbc-front-hearts { color: #ffb0d8; }
.nbc-front.theme-surprise .nbc-front-hearts { color: #c8a0ff; }
.nbc-front-hint  { font-size: 10px; color: rgba(160,210,255,.5); margin-top: 4px; }

/* BACK */
.nbc-back {
    background: linear-gradient(145deg, #030a14 0%, #0a1830 50%, #030a14 100%);
    border: 1.5px solid rgba(120,180,255,.4);
    transform: rotateY(180deg);
    box-shadow: 0 8px 40px rgba(60,120,200,.35);
}
.nbc-back-deco { font-size: 26px; }
.nbc-back-msg  { font-size: 14px; color: #d8f0ff; line-height: 1.75; font-style: italic; }
.nbc-back-hint { font-size: 10px; color: rgba(160,210,255,.45); margin-top: 6px; }

/* Modal bottom */
.nbc-modal-actions {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; pointer-events: all;
}
.nbc-sound-bar { text-align: center; }
.nbc-sound-btn {
    padding: 8px 22px;
    background: rgba(100,190,255,.12);
    border: 1px solid rgba(100,190,255,.35);
    border-radius: 20px;
    color: #90d0ff; font-size: 13px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background .2s;
}
.nbc-sound-btn:hover { background: rgba(100,190,255,.25); }
.nbc-close-modal-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, #1a4a80, #3a80c0, #7ad0ff);
    color: #fff; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: opacity .2s;
}
.nbc-close-modal-btn:hover { opacity: .86; }

/* ═══════════════════════════════
   THANK-YOU PAGE
   ═══════════════════════════════ */
.nbc-ty-wrap {
    margin: 2rem 0; padding: 2rem 1.6rem;
    background: #07101e;
    border: 1px solid rgba(150,210,255,.2);
    border-radius: 18px;
}
.nbc-ty-heading {
    text-align: center; font-size: 22px; font-weight: 700;
    background: linear-gradient(180deg, #e8f8ff, #90d0ff, #5ab0ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: .4rem;
}
.nbc-ty-heading.theme-girl {
    background: linear-gradient(180deg, #fff0f8, #ffb0d8, #ff6ab0);
    -webkit-background-clip: text; background-clip: text;
}
.nbc-ty-heading.theme-surprise {
    background: linear-gradient(180deg, #f8f0ff, #d0a8ff, #9060ff);
    -webkit-background-clip: text; background-clip: text;
}
.nbc-ty-sub { text-align: center; font-size: 13px; color: #5a7a9a; margin-bottom: 1rem; }
.nbc-ty-scene {
    position: relative; width: 100%; height: 360px;
    border-radius: 14px; overflow: hidden; margin-bottom: 1.4rem;
    background: radial-gradient(ellipse at 50% 30%, #0a2040 0%, #04101e 60%, #000 100%);
}
.nbc-ty-scene.theme-girl {
    background: radial-gradient(ellipse at 50% 30%, #2a0a20 0%, #140010 60%, #000 100%);
}
.nbc-ty-scene.theme-surprise {
    background: radial-gradient(ellipse at 50% 30%, #15083a 0%, #08031e 60%, #000 100%);
}

#nbc-ty-card3d {
    width: 270px; height: 178px;
    position: relative; transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.4,0,.2,1);
    animation: nbcFloat 4s ease-in-out infinite;
    cursor: pointer;
}
#nbc-ty-card3d.nbc-flipped {
    transform: rotateY(180deg);
    animation: nbcFloatF 4s ease-in-out infinite;
}

/* ── SHARE ── */
.nbc-share-label {
    font-size: 11px; color: #5a7a9a; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    text-align: center; margin-bottom: .7rem;
}
.nbc-share-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.nbc-sh-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 8px; border-radius: 11px; border: 1px solid;
    font-size: 13px; font-weight: 700; font-family: inherit;
    cursor: pointer; background: none; text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.nbc-sh-btn:hover  { opacity: .82; }
.nbc-sh-btn:active { transform: scale(.96); }
.nbc-sh-btn .ic { font-size: 17px; }
.nbc-sh-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.sh-native { grid-column:1/-1; background:rgba(100,190,255,.15); border-color:rgba(100,190,255,.4); color:#7ad0ff; }
.sh-viber  { background:rgba(115,96,242,.15); border-color:rgba(115,96,242,.4); color:#c8a0f5; }
.sh-wa     { background:rgba(37,211,102,.12); border-color:rgba(37,211,102,.35); color:#6fe8a0; }
.sh-sms    { background:rgba(90,160,255,.12); border-color:rgba(90,160,255,.3); color:#90c8ff; }
.sh-copy   { background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); color:#b0c8d8; }

.nbc-sound-ty-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px; margin-bottom: 10px;
    background: rgba(100,190,255,.1); border: 1px solid rgba(100,190,255,.3);
    border-radius: 11px; color: #7ad0ff;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background .2s;
}
.nbc-sound-ty-btn:hover { background: rgba(100,190,255,.2); }
