/* CASCA Platform: voting sheet. Uses the theme's CSS variables when present. */
.vsheet-open, .vsheet-open body { overflow: hidden; }
.vsheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.vsheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.vsheet__panel { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--surface, #2E3134); color: var(--text, #fff); border-radius: 24px 24px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); animation: vsheet-up 0.22s ease-out; font-family: var(--font, Inter, system-ui, sans-serif); }
@media (min-width: 640px) { .vsheet { align-items: center; } .vsheet__panel { border-radius: 24px; } }
@keyframes vsheet-up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vsheet__panel { animation: none; } }
.vsheet__grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); margin: 4px auto 6px; }
.vsheet__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; }
.vsheet__title { margin: 0; text-align: center; font-size: 17px; font-weight: 700; }
.vsheet__icon { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text, #fff); font-size: 26px; line-height: 1; cursor: pointer; }
.vsheet__body { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.vsheet__err { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 138, 128, 0.14); color: var(--err, #FF8A80); font-size: 14px; }

.vopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vopt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.15); background: var(--bg, #1F2123); color: var(--text, #fff); text-align: left; cursor: pointer; }
.vopt span { color: var(--champagne, #E8CD95); font-size: 14px; }
.vopt small { color: var(--muted, #C4C8CB); }
.vopt.is-on { border-color: var(--gold, #BF9300); box-shadow: 0 0 0 2px var(--gold, #BF9300) inset; }
.vqty { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; opacity: 0.6; }
.vqty.is-on { opacity: 1; }
.vqty__btn { height: 48px; border: 0; border-radius: 12px; background: var(--surface-2, #3B3F42); color: var(--text, #fff); font-size: 22px; cursor: pointer; }
.vqty__input { text-align: center; font-size: 18px !important; font-weight: 700; }
.vsum { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: var(--bg, #1F2123); }
.vsum span { color: var(--muted, #C4C8CB); }
.vsum b:last-child { color: var(--champagne, #E8CD95); }
.vfields { display: flex; flex-direction: column; gap: 12px; }
.vphone { display: flex; align-items: center; gap: 8px; }
.vphone__cc { padding: 0 12px; min-height: 46px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--surface-2, #3B3F42); color: var(--text, #fff); font-weight: 600; }
.vphone .input { flex: 1 1 auto; }
.vop { font-size: 12px; font-weight: 700; white-space: nowrap; }
.vop--mtn { color: #FFCC00; }
.vop--orange { color: #FF7900; }
.input--code { text-align: center; letter-spacing: 0.4em; font-size: 22px !important; font-weight: 700; }
.bigcheck { width: 72px; height: 72px; margin: 6px auto 0; border-radius: 50%; background: var(--gold, #BF9300); color: var(--ink, #1C1D1E); font-size: 40px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.phoneanim { width: 54px; height: 88px; margin: 8px auto 0; border-radius: 12px; border: 3px solid var(--champagne, #E8CD95); position: relative; animation: buzz 1.6s infinite; }
.phoneanim::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--champagne, #E8CD95); }
@keyframes buzz { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-6deg); } 88% { transform: rotate(6deg); } 92% { transform: rotate(-4deg); } 96% { transform: rotate(4deg); } }
