/* ═══════════════════════════════════════════
   Birthday Card Woo — card.css v1.0
   Gold-Shine · Fireworks · Animated Cakes
   ═══════════════════════════════════════════ */

/* ── PRODUCT PAGE FORM ── */
.bcw-form-wrap {
    margin: 1.4rem 0 1rem;
    padding: 1.5rem 1.6rem;
    background: #0d0b1a;
    border: 1px solid rgba(212,170,60,.25);
    border-radius: 16px;
}
.bcw-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}
.bcw-form-icon { font-size: 32px; }
.bcw-form-title { font-size: 16px; font-weight: 700; color: #f0c060; }
.bcw-form-sub   { font-size: 12px; color: #8a7a5a; margin-top: 2px; }

.bcw-field { margin-bottom: 1rem; }
.bcw-field label {
    display: block; font-size: 12px; font-weight: 700;
    color: #c0aa70; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px;
}
.bcw-field input,
.bcw-field textarea {
    width: 100%; padding: 11px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(212,170,60,.2);
    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;
}
.bcw-field input::placeholder,
.bcw-field textarea::placeholder { color: #5a4a2a; }
.bcw-field input:focus,
.bcw-field textarea:focus { border-color: #f0c060; background: rgba(255,255,255,.08); }

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

.bcw-preview-btn {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #8a6010 0%, #c9923a 50%, #f0c060 100%);
    color: #1a0a00; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer; letter-spacing: .04em;
    transition: opacity .2s, transform .15s;
}
.bcw-preview-btn:hover  { opacity: .86; }
.bcw-preview-btn:active { transform: scale(.98); }

/* ── MODAL ── */
.bcw-modal {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.75);
    display: flex; align-items: center; justify-content: center;
    animation: bcwFadeIn .3s ease;
}
@keyframes bcwFadeIn { from{opacity:0} to{opacity:1} }

.bcw-modal-inner { width: min(96vw, 520px); border-radius: 20px; overflow: hidden; }

.bcw-scene {
    position: relative; width: 100%; height: 460px;
    background: radial-gradient(ellipse at 50% 30%, #1a1060 0%, #0a0520 60%, #000 100%);
    overflow: hidden;
}

/* Fireworks canvas */
.bcw-fw-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 1;
}

/* Cakes layer */
.bcw-cakes-layer {
    position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden;
}
.bcw-cake {
    position: absolute; bottom: -120px;
    animation: bcwCakeRise linear infinite;
}
@keyframes bcwCakeRise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: .8; }
    100% { transform: translateY(-580px) scale(.6); opacity: 0; }
}
.bcw-candle-flame {
    animation: bcwFlicker ease-in-out infinite;
    transform-origin: bottom center;
}
@keyframes bcwFlicker {
    0%,100%{ transform: scaleY(1) scaleX(1); opacity: 1; }
    25%    { transform: scaleY(1.15) scaleX(.85); opacity: .9; }
    50%    { transform: scaleY(.9) scaleX(1.1); opacity: 1; }
    75%    { transform: scaleY(1.1) scaleX(.9); opacity: .85; }
}

/* Sparkles */
.bcw-sparkles-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.bcw-sparkle {
    position: absolute; border-radius: 50%;
    animation: bcwSparkle ease-in-out infinite;
}
@keyframes bcwSparkle {
    0%,100%{ opacity: 0; transform: scale(.3); }
    50%    { opacity: 1; transform: scale(1.8); }
}

/* ── 3-D CARD ── */
.bcw-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;
}

#bcw-card-wrap { perspective: 1000px; cursor: pointer; pointer-events: all; }
#bcw-card3d {
    width: 300px; height: 196px;
    position: relative; transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.4,0,.2,1);
    animation: bcwFloat 3.8s ease-in-out infinite;
}
#bcw-card3d.bcw-flipped {
    transform: rotateY(180deg);
    animation: bcwFloatF 3.8s ease-in-out infinite;
}
@keyframes bcwFloat  { 0%,100%{ transform: translateY(0); }          50%{ transform: translateY(-12px); } }
@keyframes bcwFloatF { 0%,100%{ transform: rotateY(180deg) translateY(0); } 50%{ transform: rotateY(180deg) translateY(-12px); } }

.bcw-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;
}

/* ── GOLD SHINE FRONT ── */
.bcw-front {
    background: linear-gradient(145deg, #1a1400 0%, #3a2a00 30%, #6a4a00 60%, #3a2a00 80%, #1a1400 100%);
    border: 1.5px solid #c9923a;
    box-shadow: 0 0 30px rgba(201,146,58,.45), inset 0 0 30px rgba(0,0,0,.6);
}
.bcw-shine {
    position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 0%, transparent 30%,
        rgba(255,220,100,.18) 45%, rgba(255,255,200,.35) 50%,
        rgba(255,220,100,.18) 55%, transparent 70%, transparent 100%
    );
    animation: bcwShine 3s ease-in-out infinite;
}
@keyframes bcwShine {
    0%   { background-position: -200% 0; opacity: 0; }
    20%  { opacity: 1; }
    50%  { background-position: 200% 0; }
    51%,100%{ opacity: 0; }
}

.bcw-front-deco  { font-size: 30px; filter: drop-shadow(0 0 8px rgba(255,200,60,.7)); }
.bcw-front-title {
    font-size: 22px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(180deg, #fff5c0 0%, #f0c060 50%, #c9923a 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 4px rgba(201,146,58,.6));
}
.bcw-front-name  { font-size: 17px; font-style: italic; color: #fff8e0; font-weight: 400; }
.bcw-front-stars { font-size: 14px; color: #f0c060; letter-spacing: 6px; margin-top: 2px; }
.bcw-front-hint  { font-size: 10px; color: rgba(240,192,96,.55); margin-top: 4px; }

/* ── BACK ── */
.bcw-back {
    background: linear-gradient(145deg, #0d0b1a 0%, #1a1640 50%, #0d0b1a 100%);
    border: 1.5px solid rgba(140,120,255,.5);
    transform: rotateY(180deg);
    box-shadow: 0 8px 40px rgba(80,60,200,.4);
}
.bcw-back-deco { font-size: 26px; }
.bcw-back-msg  { font-size: 14px; color: #e8e4ff; line-height: 1.75; font-style: italic; }
.bcw-back-hint { font-size: 10px; color: rgba(180,170,255,.5); margin-top: 6px; }

/* Modal actions */
.bcw-modal-actions {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    pointer-events: all;
}
.bcw-sound-bar { text-align: center; }
.bcw-sound-btn {
    padding: 8px 22px;
    background: rgba(240,192,96,.15);
    border: 1px solid rgba(240,192,96,.4);
    border-radius: 20px;
    color: #f0c060; font-size: 13px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background .2s;
}
.bcw-sound-btn:hover { background: rgba(240,192,96,.28); }

.bcw-close-modal-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, #8a6010, #c9923a, #f0c060);
    color: #1a0a00; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: opacity .2s;
}
.bcw-close-modal-btn:hover { opacity: .86; }

/* ═══════════════════════════════
   THANK-YOU PAGE
   ═══════════════════════════════ */
.bcw-ty-wrap {
    margin: 2rem 0;
    padding: 2rem 1.6rem;
    background: #0d0b1a;
    border: 1px solid rgba(212,170,60,.25);
    border-radius: 18px;
}
.bcw-ty-heading {
    text-align: center;
    font-size: 22px; font-weight: 700;
    background: linear-gradient(180deg, #fff5c0, #f0c060, #c9923a);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: .4rem;
}
.bcw-ty-sub { text-align: center; font-size: 13px; color: #8a7a5a; margin-bottom: 1rem; }

.bcw-ty-scene {
    position: relative; width: 100%; height: 360px;
    background: radial-gradient(ellipse at 50% 30%, #1a1060 0%, #0a0520 60%, #000 100%);
    border-radius: 14px; overflow: hidden; margin-bottom: 1.4rem;
}

/* Thank-you card sizing */
#bcw-ty-card3d {
    width: 270px; height: 176px;
    position: relative; transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.4,0,.2,1);
    animation: bcwFloat 3.8s ease-in-out infinite;
    cursor: pointer;
}
#bcw-ty-card3d.bcw-flipped {
    transform: rotateY(180deg);
    animation: bcwFloatF 3.8s ease-in-out infinite;
}

/* ── SHARE ── */
.bcw-share-block { margin-top: .8rem; }
.bcw-share-label {
    font-size: 11px; color: #8a7a5a; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    text-align: center; margin-bottom: .7rem;
}
.bcw-share-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.bcw-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;
}
.bcw-sh-btn:hover  { opacity: .82; }
.bcw-sh-btn:active { transform: scale(.96); }
.bcw-sh-btn .ic { font-size: 17px; }
.bcw-sh-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.sh-native { grid-column: 1/-1; background: rgba(212,170,60,.15); border-color: rgba(212,170,60,.45); color: #f0c060; }
.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: #c0b0d0; }

.bcw-sound-ty-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px; margin-bottom: 10px;
    background: rgba(240,192,96,.12); border: 1px solid rgba(240,192,96,.35);
    border-radius: 11px; color: #f0c060;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: background .2s;
}
.bcw-sound-ty-btn:hover { background: rgba(240,192,96,.22); }
