:root {
  --primary: #b76ddf;
  --primary-400: #cc96ea;
  --primary-600: #a44ecf;
  --sky: #c2e9f6;
  --ink: #374151;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); }
body { background: #f3f4f6; }
button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: url("assets/bg-login.jpg") center / cover no-repeat; }
.auth-card { width: min(384px, calc(100vw - 32px)); padding: 32px; border-radius: 8px; background: white; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.auth-card h1 { margin: 0 0 32px; color: var(--primary-400); font-size: 24px; line-height: 32px; text-align: center; }
.auth-form { display: grid; gap: 32px; }
.main-input { width: 100%; padding: 12px 16px; border: 2px solid var(--primary-400); border-radius: 6px; outline: 0; color: #111827; background: white; }
.main-input::placeholder { color: #9ca3af; }
.main-button { width: 100%; border: 0; border-radius: 6px; padding: 14px 16px; color: white; font-weight: 700; text-transform: uppercase; background: linear-gradient(to right, var(--primary), var(--primary-400)); }
.auth-switch { display: block; margin: 32px auto 0; border: 0; background: none; color: var(--primary); font-weight: 600; }
.form-error { margin: -16px 0 0; font-size: 13px; color: #dc2626; text-align: center; }

.shell { position: relative; width: 100%; max-width: 512px; min-height: 100vh; margin: 0 auto; background: var(--sky); box-shadow: 0 10px 15px -3px #0000001a; }
.content { min-height: 100vh; padding-bottom: 140px; }
.period { display: flex; justify-content: center; gap: 8px; padding: 6px 16px; color: white; background: var(--primary); font-size: 14px; font-weight: 600; }
.period-icon { font-size: 18px; line-height: 16px; }
.today { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid #e5e7eb; font-size: 14px; font-weight: 600; }
.today-number { padding: 4px 12px; border-radius: 4px; color: white; background: var(--primary); font-size: 12px; }
.page-title { margin: 0; padding: 16px; font-size: 24px; line-height: 32px; font-weight: 400; text-align: center; }
.pick-wrap { padding: 0 16px; }
.pick { display: flex; border: 3px solid var(--primary); background: var(--primary); color: white; font-size: 20px; font-weight: 600; text-transform: uppercase; }
.pick button { width: 50%; padding: 40px 0; border: 0; color: white; background: transparent; font-weight: inherit; text-transform: inherit; }
.pick button:first-child { border-right: 1px solid white; }
.pick button:last-child { border-left: 1px solid white; }
.pick button.selected { background: var(--primary-600); box-shadow: inset 0 0 0 2px #fff7; }
.info-row { display: flex; justify-content: flex-end; margin-top: 12px; padding: 0 16px; }
.icon-button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: #4b5563; color: white; font: 700 12px/18px Arial, sans-serif; text-align: center; }
.wheel { display: block; width: calc(100% - 32px); margin: 20px 16px 0; border-radius: 50%; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.wheel.spin { transform: rotate(720deg); }

.bottom { position: fixed; z-index: 30; bottom: 0; left: 50%; width: 100%; max-width: 512px; transform: translateX(-50%); color: white; background: var(--primary); box-shadow: 0 -2px 8px #0002; }
.balance { display: flex; justify-content: space-between; padding: 5px 12px; border-bottom: 1px solid #ffffff33; font-size: 13px; }
.balance span span { color: #fef08a; }
.nav { display: flex; }
.nav-button { display: flex; width: 20%; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 2px; border: 0; color: white; background: none; opacity: .8; }
.nav-button.active { opacity: 1; }
.nav-button svg { width: 20px; height: 20px; fill: currentColor; }
.nav-button span { font-size: 15px; }

.intro-header { padding: 12px; color: white; background: var(--primary-400); font-weight: 600; text-align: center; }
.intro-body { padding: 16px; }
.intro-body > img:first-child { display: block; width: 100%; }
.intro-copy { font-size: 16px; line-height: 1.35; }
.intro-copy p { margin: 13px 0; }
.stats-title, .section-title { margin: 10px 0; padding: 10px 12px; border-left: 2px solid #4b5563; border-radius: 3px; background: #f3f4f6; font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 4px; background: #f3f4f6; }
.stat { padding: 11px 12px; font-size: 14px; }
.stat b { display: block; margin-top: 12px; }
.partners { width: 100%; padding: 8px 12px; background: white; }
.rating { padding: 12px; border-radius: 4px; background: #f3f4f6; }
.stars { color: #f97316; letter-spacing: 2px; }
.rating small { display: block; margin-top: 12px; color: #6b7280; }
.signed { display: block; width: 150px; margin: 30px auto 0; }

.account-hero { min-height: 208px; padding: 18px 16px; border-radius: 0 0 24px 24px; color: white; background: var(--primary-400); text-align: center; }
.account-hero h2 { margin: 0 0 18px; font-size: 17px; }
.member-id { text-align: left; }
.account-label { margin-top: 16px; font-size: 14px; }
.amount { margin-top: 12px; font-size: 30px; }
.withdraw { position: absolute; top: 173px; left: 50%; width: 138px; padding: 11px 12px; transform: translateX(-50%); border: 1px solid white; border-radius: 999px; color: white; background: var(--primary-400); font-weight: 600; }
.account-list { margin-top: 60px; }
.account-row { display: flex; align-items: center; width: 100%; gap: 13px; padding: 15px 16px; border: 0; border-bottom: 1px solid #d1d5db; color: var(--ink); background: transparent; text-align: left; }
.account-row .row-icon { width: 20px; font-size: 18px; text-align: center; }
.account-row .chevron { margin-left: auto; font-size: 26px; font-weight: 300; }
.support { display:flex; min-height:100vh; max-height:100vh; flex-direction:column; padding-bottom:106px; background:#eef5f8; }
.support-header { display:flex; align-items:center; flex:none; gap:11px; padding:12px 15px; color:#fff; background:linear-gradient(135deg,var(--primary-600),var(--primary-400)); box-shadow:0 2px 8px #0002; }
.support-avatar { display:grid; width:42px; height:42px; flex:none; place-items:center; border:2px solid #fff9; border-radius:50%; background:#fff2; font-weight:800; }
.support-header b,.support-header span { display:block; }.support-header span { margin-top:3px; font-size:12px; opacity:.92; }.support-header i { display:inline-block; width:7px; height:7px; border-radius:50%; background:#4ade80; }
.support-messages { flex:1; min-height:0; overflow-y:auto; padding:18px 13px; scroll-behavior:smooth; }
.support-loading { padding:35px 10px; color:#64748b; text-align:center; }
.support-welcome { width:85%; margin:20px auto; padding:16px; border-radius:14px; color:#586273; background:#fff; box-shadow:0 2px 10px #0000000d; text-align:center; }.support-welcome b,.support-welcome span { display:block; }.support-welcome span { margin-top:7px; font-size:13px; line-height:1.45; }
.support-message { display:flex; margin:7px 0; }.support-message.mine { justify-content:flex-end; }.support-message.theirs { justify-content:flex-start; }
.support-bubble { max-width:78%; padding:9px 11px 6px; border-radius:15px 15px 15px 4px; color:#273244; background:#fff; box-shadow:0 1px 4px #0001; overflow-wrap:anywhere; line-height:1.4; }
.support-message.mine .support-bubble { border-radius:15px 15px 4px 15px; color:#fff; background:var(--primary); }
.support-bubble small { display:block; margin-top:5px; font-size:9px; opacity:.72; text-align:right; }
.support-photo { display:block; margin:-4px -6px 7px; overflow:hidden; border-radius:10px; }.support-photo img { display:block; width:100%; max-width:280px; max-height:300px; object-fit:cover; }
.support-compose { flex:none; padding:7px 9px 9px; border-top:1px solid #dbe4e8; background:#fff; }.support-compose-row { display:flex; align-items:flex-end; gap:7px; }.support-compose textarea { min-width:0; max-height:90px; flex:1; resize:none; padding:10px 12px; border:1px solid #d7dee3; border-radius:18px; outline:0; }.support-compose textarea:focus { border-color:var(--primary-400); }
.support-image-button,.support-compose button { display:grid; width:39px; height:39px; flex:none; place-items:center; border:0; border-radius:50%; color:#fff; background:var(--primary); font-size:20px; cursor:pointer; }.support-image-button input { display:none; }.support-compose button:disabled { opacity:.55; }
.support-file-name { min-height:0; padding:0 47px; overflow:hidden; color:#6b7280; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.support-file-name:not(:empty) { padding-top:2px; padding-bottom:5px; }

.sub-header { position: relative; padding: 14px 48px; color: white; background: var(--primary); font-weight: 600; text-align: center; }
.back-button { position: absolute; left: 16px; top: 50%; padding: 0; border: 0; color: white; background: none; transform: translateY(-50%); font-size: 30px; font-weight: 300; line-height: 1; }
.sub-body { padding: 16px; }
.total-box { padding: 8px 16px; border-radius: 12px; color: white; background: var(--primary-400); font-size: 14px; }
.history-head { display: grid; gap: 4px; align-items: center; margin-top: 12px; padding: 8px 6px; border-radius: 10px; background: #d1d5db; font-size: 12px; text-align: center; }
.history-head.five { grid-template-columns: .7fr .8fr .9fr 1.1fr 1.7fr; }
.history-head.four { grid-template-columns: .7fr 1fr 1.6fr 1.7fr; }
.history-item { display: grid; grid-template-columns: .7fr 1fr 1.3fr 1fr 1.8fr; gap: 4px; padding: 9px 6px; border-bottom: 1px solid #d1d5db; font-size: 11px; text-align: center; overflow-wrap: anywhere; }
.field { display: block; margin-bottom: 18px; font-size: 14px; }
.field > span { display: block; margin-bottom: 8px; }
.field .main-input { padding: 9px 16px; }
.form-note { margin: 2px 0 20px; font-size: 14px; text-align: right; }
.form-note.error { color: red; font-size: 13px; }
.small-action { display: block; margin-left: auto; padding: 9px 15px; border: 2px solid white; border-radius: 12px; color: white; background: var(--primary-400); font-weight: 600; }
.current-balance { margin: 2px 0 22px; font-size: 14px; }

.deposit-card { position: relative; z-index: 20; width: 100%; max-width: 350px; padding: 20px; border-radius: 8px; background: white; color: var(--ink); }
.deposit-title { padding: 8px 12px; border-radius: 8px; color: white; background: var(--primary); font-size: 14px; font-weight: 600; }
.amount-control { display: flex; margin: 12px 40px; overflow: hidden; border: 2px solid var(--primary); border-radius: 8px; }
.amount-control button { width: 40px; flex: none; border: 0; color: white; background: var(--primary); font-size: 22px; }
.amount-control input { width: 100%; min-width: 0; height: 40px; border: 0; outline: 0; text-align: center; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amount-grid button { padding: 8px 2px; border: 1px solid var(--primary); border-radius: 6px; background: white; }
.amount-grid button.active { color: white; background: var(--primary); }
.deposit-actions { display: flex; gap: 20px; margin-top: 12px; }
.deposit-actions button { width: 100%; padding: 8px; border: 0; border-radius: 6px; background: #d1d5db; font-weight: 600; }
.deposit-actions button:last-child { color: white; background: var(--primary); }

.modal { position: fixed; z-index: 50; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0003; }
.modal-card { position: relative; width: 100%; max-width: 448px; overflow: hidden; border-radius: 8px; background: white; color: #111; }
.modal-title { padding: 8px 16px; color: white; background: var(--primary-600); font-weight: 500; }
.modal-copy { padding: 12px 16px 0; font-size: 15px; line-height: 1.5; }
.modal-copy p { margin: 0 0 8px; font-weight: 500; }
.modal-action { display: flex; justify-content: center; padding: 8px 16px 16px; }
.modal-action button { padding: 8px 12px; border: 0; border-radius: 999px; color: white; background: var(--primary-400); font-size: 14px; font-weight: 500; text-transform: uppercase; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 125px; max-width: calc(100% - 32px); padding: 9px 14px; transform: translate(-50%, 12px); border-radius: 6px; color: white; background: #111827e8; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 540px) {
  .auth-page { padding: 16px; }
  .auth-card { padding: 28px 24px; }
  .shell { box-shadow: none; }
  .intro-body { padding: 16px; }
}

/* Trang chủ kết nối hẹn hò */
.home-shell { background: #fff; color: #262437; }
.home-content { padding-bottom: 92px; }
.home-hero { position: relative; height: 250px; padding: 28px 20px 12px; overflow: hidden; background: linear-gradient(110deg, #ec30a3, #8549cc 48%, #a63c91); }
.home-hero::before { content: ""; position: absolute; top: -80px; left: -45px; width: 140px; height: 300px; border-radius: 30px; background: #ff2bba; transform: rotate(-12deg); }
.home-hero img { position: relative; display: block; width: 100%; height: 100%; border: 2px solid #ffffff88; border-radius: 9px; object-fit: cover; object-position: center; box-shadow: 0 10px 18px #552b722e; }
.hero-message { position: absolute; top: 56px; right: 31px; display: grid; gap: 7px; max-width: 48%; color: #fff; text-align: center; text-shadow: 0 2px 5px #6f2d70, 0 0 2px #6f2d70; }
.hero-message small { padding: 3px 8px; border: 1px solid #fff8; border-radius: 20px; background: #ad5c9c80; font-size: 10px; white-space: nowrap; }
.hero-message strong { font-family: Georgia, serif; font-size: clamp(13px, 3.6vw, 19px); font-style: italic; line-height: 1.35; }
.notice { display: flex; align-items: center; width: 100%; height: 39px; gap: 9px; margin-top: 8px; padding: 0 14px; border: 0; color: #a64940; background: #fff9e9; text-align: left; }
.notice span { font-size: 24px; line-height: 1; }
.notice b { margin-left: auto; color: #b5a49b; font-size: 22px; font-weight: 300; }
.home-section { padding: 8px 0 14px; background: #fff; }
.home-section.popular { background: #f7f7fa; }
.home-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
.home-heading h2 { margin: 0; padding-left: 5px; border-left: 4px solid #8449c0; color: #8b437b; font-size: 14px; font-weight: 700; line-height: 17px; }
.home-heading button { padding: 4px 0 4px 10px; border: 0; color: #92929a; background: none; font-size: 11px; }
.ballot-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 18px 8px 0; }
.ballot { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; color: #25212c; background: transparent; font-size: 12px; }
.ballot-art { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #fafafa; font-size: 30px; }
.ballot-art svg { width: 27px; height: 27px; fill: currentColor; }
.ballot-1 { color: #ab559a; background: #f8edf6; }
.ballot-2 { color: #8261b8; background: #f1edf9; }
.ballot-3 { color: #cc768b; background: #fff0f3; }
.couple-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 10px 15px 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.couple-scroll::-webkit-scrollbar { display: none; }
.couple-card { position: relative; display: flex; flex-direction: column; flex: 0 0 69%; overflow: hidden; padding: 0; border: 1px solid #efe8ee; border-radius: 10px; background: #f8f5f7; scroll-snap-align: start; }
.couple-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.couple-badge { position: absolute; top: 0; left: 0; padding: 5px 8px; color: #fff; background: #e35c71; font-size: 9px; transform-origin: 0 0; }
.couple-name { display: flex; justify-content: space-between; padding: 11px 10px; color: #55445b; background: #fff; font-size: 12px; text-align: left; }
.couple-name > span { color: #ad799f; }
.list-header { padding: 18px; color: #fff; background: linear-gradient(110deg, #8549c0, #c447a1); font-size: 18px; font-weight: 700; text-align: center; }
.list-intro { margin: 16px; color: #65616b; font-size: 13px; }
.couples-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 15px 18px; }
.couples-grid .couple-card { width: 100%; }
.couples-grid .couple-card img { aspect-ratio: 4 / 5; }
.couple-detail { margin: 16px 12px; overflow: hidden; border-radius: 12px; background: #fff; }
.couple-detail img { display: block; width: 100%; height: auto; }
.couple-detail figcaption { padding: 15px; color: #55445b; font-size: 15px; text-align: center; }
.home-shell .bottom { color: #a8a2ab; background: #fff; box-shadow: 0 -3px 12px #31263b16; }
.home-shell .nav { align-items: end; min-height: 67px; }
.home-shell .nav-button { width: 20%; min-height: 58px; padding: 7px 2px 3px; color: #b7afb9; opacity: 1; }
.home-shell .nav-button.active { color: #a25798; }
.home-shell .nav-button svg { width: 24px; height: 24px; }
.home-shell .nav-button span { font-size: 10px; white-space: nowrap; }
.home-shell .nav-wheel svg { fill: none; }
.home-shell .nav-wheel.active svg { color: #a25798; }
.home-shell .nav-button:focus-visible { outline: 2px solid #a25798; outline-offset: -3px; border-radius: 8px; }
@media (max-width: 380px) { .home-hero { height: 218px; padding: 22px 13px 10px; } .hero-message { top: 45px; right: 20px; } }

/* Các trang thành viên dùng cùng màu và điều hướng với trang chủ */
.home-shell .content { padding-bottom: 95px; }
.home-shell .nav-button.active { color: #a25798; }
.home-shell .intro-header,
.home-shell .sub-header,
.home-shell .app-header { min-height: 47px; padding: 10px 46px; color: #fff; background: linear-gradient(100deg, #8059ce, #b640a1); font-size: 18px; font-weight: 500; text-align: center; }
.home-shell .intro-body { padding: 16px; background: #fff; }
.home-shell .section-title,
.home-shell .stats-title { border-left: 4px solid #9651b7; background: #f8f4fa; }
.home-shell .account-hero { background: linear-gradient(125deg, #8059ce, #c350ac); }
.home-shell .withdraw,
.home-shell .small-action { background: #9a55bd; }
.home-shell .account-list { padding: 10px 12px; }
.home-shell .account-row { margin-bottom: 8px; border: 1px solid #eee8f2; border-radius: 12px; background: #fff; }
.home-shell .sub-body { background: #fff; }
.home-shell .total-box { background: #9a55bd; }
.home-shell .support-header { background: linear-gradient(100deg, #8059ce, #b640a1); }
.home-shell .support-compose button,
.home-shell .support-image-button { background: #9a55bd; }
.home-shell .back-button { top: 48%; }
.hall-content { background:#faf8fc; }
.hall-content .period { background:#965cbb; }
.hall-content .today { background:#fff; }
.hall-content .page-title { color:#6a3d86; font-weight:600; }
.hall-content .pick { overflow:hidden; border:0; border-radius:14px; background:linear-gradient(100deg,#8059ce,#c350ac); box-shadow:0 5px 15px #5c317b25; }
.hall-content .pick button { padding:25px 0; }
.hall-content .hall-image { max-width:410px; margin:18px auto 0; }
.hall-intro { margin:15px 13px; padding:21px 18px; border-radius:14px; color:#fff; background:linear-gradient(115deg,#a45ec4,#e794bc); box-shadow:0 8px 20px #803b8c26; }
.hall-intro h1 { margin:0 0 7px; font-size:21px; }
.hall-intro p { margin:0; font-size:13px; line-height:1.45; }
.hall-ballots { display:grid; gap:12px; padding:0 13px 22px; }
.hall-ballot { display:flex; align-items:center; gap:15px; overflow:hidden; padding:17px; border:1px solid #eee7f1; border-radius:14px; background:#fff; box-shadow:0 4px 13px #3c2c4c0a; text-align:left; }
.hall-ballot-icon { display:grid; flex:0 0 56px; height:56px; place-items:center; border-radius:15px; }
.hall-ballot-icon svg { width:29px; height:29px; fill:currentColor; }
.hall-ballot-copy { flex:1; }
.hall-ballot strong, .hall-ballot small { display:block; }
.hall-ballot strong { color:#45364d; font-size:15px; }
.hall-ballot small { margin-top:5px; color:#8c8092; font-size:11px; }
.hall-ballot small b { float:right; color:#a45ec4; font-size:17px; line-height:10px; }
.ballot-content { background:#f8f8fb; }
.ballot-record { margin:13px 12px 0; padding:15px; border-radius:13px; background:#fff; box-shadow:0 3px 14px #3c2c4c12; }
.ballot-period { display:flex; align-items:center; gap:11px; }
.ballot-symbol { display:grid; width:45px; height:45px; flex:none; place-items:center; border-radius:12px; color:#fff; background:linear-gradient(135deg,#ed83b2,#955ac7); font-size:25px; }
.ballot-period small, .ballot-period strong, .ballot-next b { display:block; }
.ballot-period small { color:#918498; font-size:11px; }
.ballot-period strong { margin-top:4px; color:#3d3046; font-size:14px; }
.ballot-next { margin-left:auto; text-align:right; }
.ballot-next b { margin-top:2px; color:#e14b75; font-size:22px; }
.ballot-recent { display:flex; align-items:center; gap:5px; flex-wrap:wrap; margin-top:14px; padding-top:12px; border-top:1px solid #f0eaf2; }
.ballot-recent > span { width:100%; margin-bottom:3px; color:#85778c; font-size:11px; }
.ballot-recent b { padding:5px 7px; border-radius:14px; color:#955ac7; background:#f7eefa; font-size:10px; font-weight:500; }
.ballot-recent small { color:#a8a0ac; font-size:11px; }
.ballot-title { display:flex; align-items:end; justify-content:space-between; margin:20px 13px 10px; }
.ballot-title h2 { margin:0; color:#34243b; font-size:17px; }
.ballot-title span { color:#a497aa; font-size:11px; }
.ballot-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0 13px; }
.ballot-option { display:flex; min-height:125px; flex-direction:column; align-items:center; justify-content:center; gap:6px; border:2px solid #fff; border-radius:13px; background:#fff; box-shadow:0 3px 12px #3c2c4c12; }
.ballot-option.selected { border-color:#c560b5; background:#fff5fc; box-shadow:0 3px 15px #c560b52a; }
.ballot-option-icon { color:#df6eaa; font-size:26px; line-height:1; }
.ballot-option strong { color:#4c394f; font-size:15px; }
.ballot-option small { color:#d15c83; font-size:12px; }
.ballot-entry { margin:17px 13px 0; padding:16px; border-radius:13px; background:#fff; box-shadow:0 3px 12px #3c2c4c12; }
.ballot-entry-head { display:flex; align-items:baseline; justify-content:space-between; gap:5px; }
.ballot-entry-head h2 { margin:0; font-size:16px; }
.ballot-entry-head span { color:#7e7184; font-size:11px; }
.ballot-entry-head span b { color:#bd4e99; }
.ballot-chips { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:15px; }
.ballot-chips button { padding:9px 4px; border:1px solid #e8dcec; border-radius:9px; color:#795580; background:#fdfbfe; font-size:13px; }
.ballot-chips button.active { border-color:#aa5caf; color:#fff; background:#aa5caf; }
.ballot-amount { display:flex; align-items:center; justify-content:space-between; gap:9px; margin-top:15px; color:#5b4b60; font-size:13px; }
.ballot-amount span { display:flex; align-items:center; gap:5px; }
.ballot-amount input { width:106px; padding:8px; border:1px solid #e8dcec; border-radius:8px; color:#4e3b52; text-align:right; }
.ballot-summary { display:flex; justify-content:space-between; margin:14px 0; padding:10px 0; border-top:1px solid #eee7f0; color:#786b7b; font-size:12px; }
.ballot-summary b { color:#bb4c94; }
.ballot-review { width:100%; padding:11px; border:0; border-radius:999px; color:#fff; background:linear-gradient(100deg,#8b5acc,#d776a9); font-weight:600; }
.ballot-review:disabled { opacity:.5; }
.ballot-sent { margin:13px; color:#978c9c; font-size:12px; text-align:center; }
.ballot-modal-card { width:min(100%,390px); max-height:80vh; overflow:auto; padding:18px; border-radius:15px; background:#fff; }
.ballot-modal-card h3 { margin:0 0 12px; color:#45364d; font-size:17px; }
.ballot-modal-row { display:flex; align-items:center; justify-content:space-between; padding:11px 0; border-bottom:1px solid #f1edf3; font-size:14px; }
.ballot-modal-row small { display:block; margin-top:4px; color:#998c9e; font-size:11px; }
.ballot-modal-row button { border:0; color:#a393a9; background:none; font-size:24px; }
.ballot-modal-total { display:flex; justify-content:space-between; margin:14px 0; color:#55445b; font-size:14px; }
.ballot-modal-total b { color:#c04e96; }
.ballot-modal-actions { display:flex; gap:10px; }
.ballot-modal-actions button { flex:1; padding:10px; border:0; border-radius:9px; background:#ece7ef; }
.ballot-modal-actions button:last-child { color:#fff; background:linear-gradient(100deg,#8b5acc,#d776a9); }
.auth-page { background: linear-gradient(140deg, #ad5cbb99, #f37eb199), url("assets/home-hero.webp") center / cover no-repeat; }
.auth-card { border-radius: 16px; box-shadow: 0 16px 40px #57266544; }
.auth-card h1 { color: #9d4fab; }
.main-input { border-color: #d8b2df; }
.main-input:focus { border-color: #a958c3; box-shadow: 0 0 0 3px #c977ce24; }
.main-button { background: linear-gradient(100deg, #8059ce, #c350ac); }

/* Vòng quay may mắn */
.spin-content { background: #f8f9fd; }
.app-header { position: relative; }
.header-back { position: absolute; top: 0; left: 10px; height: 100%; padding: 0 6px; border: 0; color: white; background: none; font-size: 34px; font-weight: 300; line-height: 1; }
.spin-wheel-wrap { position: relative; width: min(calc(100% - 24px), 420px); aspect-ratio: 1; margin: 22px auto 16px; border: 7px solid #e7b64c; border-radius: 50%; background: #fbd881; box-shadow: 0 0 0 4px #f7e5ad, 0 9px 16px #53483235; }
.spin-wheel { position: absolute; inset: 8px; overflow: hidden; border: 6px solid #fff; border-radius: 50%; background: var(--wheel-gradient); transition: transform 4.1s cubic-bezier(.11,.75,.13,1); }
.spin-wheel::after { content: ""; position: absolute; inset: 0; border: 2px solid #ffffff91; border-radius: 50%; pointer-events: none; }
.spin-pointer { position: absolute; z-index: 4; top: 4px; left: 50%; width: 24px; height: 30px; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 50% 100%); background: #a85d24; }
.spin-sector { position: absolute; top: 50%; left: 50%; width: 65px; color: #fff; font-size: clamp(11px, 3vw, 17px); font-weight: 700; text-align: center; text-shadow: 0 1px 2px #5151637a; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * min(35vw, 139px))) rotate(90deg); }
.spin-center { position: absolute; z-index: 5; top: 50%; left: 50%; display: grid; width: 30%; aspect-ratio: 1; place-items: center; transform: translate(-50%, -50%); border: 7px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #64a9ed, #1664c1); box-shadow: 0 1px 7px #203d7b80; font-size: clamp(16px, 4.5vw, 25px); font-weight: 700; }
.spin-center:disabled { opacity: .72; cursor: default; }
.spin-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 12px 10px; color: #222; font-size: 14px; }
.spin-meta button { padding: 8px 14px; border: 0; border-radius: 999px; color: #38323c; background: #fff; box-shadow: 0 3px 13px #4b426b18; font-size: 13px; }
.spin-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 12px 16px; color: #787080; font-size: 12px; line-height: 1.5; }
.spin-status button { flex-shrink: 0; padding: 5px 0 5px 8px; border: 0; color: #99548f; background: none; font-weight: 600; }
.spin-status button:disabled { opacity: .5; }
.spin-list-title { margin: 7px 12px 12px; color: #222; font-size: 18px; }
.spin-prize-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 11px 24px; }
.spin-prize-card { display: flex; align-items: center; min-width: 0; min-height: 84px; gap: 8px; padding: 10px; border-radius: 13px; background: white; box-shadow: 0 2px 8px #2421460d; }
.spin-prize-icon { flex: 0 0 62px; font-size: 39px; text-align: center; }
.spin-prize-card strong { display: block; overflow-wrap: anywhere; color: #20202b; font-size: 14px; font-weight: 500; line-height: 1.18; }
.spin-prize-card small { display: block; margin-top: 4px; color: #8e8e99; font-size: 11px; }
.spin-empty { grid-column: 1 / -1; padding: 24px 12px; color: #8e8e99; text-align: center; }
.spin-history { padding: 15px 12px; }
.spin-history-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; padding: 13px; border-radius: 12px; background: #fff; }
.spin-history-row > span { font-size: 28px; }
.spin-history-row b, .spin-history-row small { display: block; }
.spin-history-row b { font-size: 14px; }
.spin-history-row small { margin-top: 4px; color: #8e8e99; font-size: 11px; }
@media (max-width: 380px) { .spin-prize-icon { flex-basis: 45px; font-size: 31px; } .spin-prize-card strong { font-size: 12px; } .spin-sector { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-31vw) rotate(90deg); } }

/* ===== Giao diện cặp đôi v2 ===== */
.couple-card { position: relative; display: block; flex: none; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: 0; border: 0; border-radius: 18px; background: #e9e1ee; box-shadow: 0 8px 22px #4a2a5f26; text-align: left; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.couple-card:active { transform: scale(.985); }
.couple-card img, .couples-grid .couple-card img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .6s; }
.couple-card:hover img { transform: scale(1.05); }
.couple-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0000 48%, #2a103ccc 100%); }
.couple-heart { position: absolute; top: 11px; right: 11px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #f0457c; background: #ffffffe6; box-shadow: 0 3px 10px #0003; backdrop-filter: blur(4px); }
.couple-heart svg { width: 18px; height: 18px; fill: currentColor; }
.couple-info { position: absolute; right: 14px; bottom: 13px; left: 14px; display: grid; gap: 3px; color: #fff; text-shadow: 0 1px 6px #0006; }
.couple-info b { font-size: 17px; font-weight: 700; letter-spacing: .1px; }
.couple-info small { font-size: 12px; opacity: .92; }
.couple-info small::before { content: "♥ "; color: #ff8fb5; }

.carousel { position: relative; padding-top: 12px; }
.carousel-track { display: flex; gap: 14px; overflow-x: auto; padding: 6px 15% 18px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 70%; scroll-snap-align: center; transform: scale(.92); opacity: .72; transition: transform .35s, opacity .35s, box-shadow .25s; }
.carousel .slide:first-child { margin-left: 0; }
.carousel-arrow { position: absolute; top: 42%; z-index: 3; display: grid; width: 38px; height: 38px; place-items: center; padding: 0 0 3px; border: 0; border-radius: 50%; color: #8b437b; background: #fffffff0; box-shadow: 0 4px 14px #3c2c4c3a; font-size: 26px; line-height: 1; transition: opacity .2s, transform .2s; }
.carousel-arrow:hover { transform: scale(1.08); }
.carousel-arrow.prev { left: 8px; } .carousel-arrow.next { right: 8px; }
.carousel.at-start .prev, .carousel.at-end .next { opacity: 0; pointer-events: none; }
.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: -2px; }
.carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: #d9cce0; transition: width .3s, background .3s; }
.carousel-dots button.active { width: 22px; background: linear-gradient(90deg, #8b5acc, #e0649c); }
.carousel-progress { height: 3px; margin: 12px 15px 0; overflow: hidden; border-radius: 3px; background: #ece5f0; }
.carousel-progress span { display: block; width: 12%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8b5acc, #e0649c); transition: width .25s; }

.couples-grid { gap: 14px 12px; }
.couples-grid .couple-info b { font-size: 15px; }
.couples-grid .couple-heart { top: 9px; right: 9px; width: 30px; height: 30px; }

.home-section.suggest { padding-bottom: 22px; }
.couple-list { display: grid; gap: 12px; padding: 12px 15px 0; }
.couple-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 9px; border: 1px solid #f0e8f3; border-radius: 16px; color: inherit; background: #fff; box-shadow: 0 4px 16px #3c2c4c12; text-align: left; transition: transform .2s, box-shadow .2s; }
.couple-row:active { transform: scale(.985); }
.couple-row img { flex: none; width: 96px; height: 120px; border-radius: 12px; object-fit: cover; }
.couple-row-copy { display: grid; flex: 1; min-width: 0; gap: 5px; }
.couple-row-copy b { color: #3d2a47; font-size: 16px; }
.couple-row-copy em { display: -webkit-box; overflow: hidden; color: #7a6c82; font-size: 12.5px; font-style: normal; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.couple-row-meta { display: flex; align-items: center; gap: 5px; color: #b0537f; font-size: 11.5px; }
.couple-row-meta i { display: inline-grid; }
.couple-row-meta svg { width: 12px; height: 12px; fill: #f0457c; }
.couple-row-go { display: grid; flex: none; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #a25798; background: #f6eef8; font-size: 20px; }

/* Icon bình chọn trái tim */
.ballot-art svg, .hall-ballot-icon svg { fill: currentColor; }
.ballot-art { width: 62px; height: 62px; box-shadow: 0 6px 14px #cc476f22; animation: heartbeat 2.4s ease-in-out infinite; }
.ballot-art svg { width: 30px; height: 30px; }
.ballot-1 { color: #e0457b; background: linear-gradient(145deg, #fff0f5, #ffd6e4); }
.ballot-2 { color: #c14fbb; background: linear-gradient(145deg, #fbeefb, #efcbf1); }
.ballot-3 { color: #f0664f; background: linear-gradient(145deg, #fff2ee, #ffd8cf); }
.ballot:nth-child(2) .ballot-art { animation-delay: .3s; } .ballot:nth-child(3) .ballot-art { animation-delay: .6s; }
.home-shell .nav-button[data-view="hall"].active svg { color: #e0457b; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.09); } 30% { transform: scale(1); } 42% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .ballot-art { animation: none; } .carousel-track { scroll-behavior: auto; } }

/* Trang chi tiết cặp đôi */
.couple-page { padding-bottom: 100px; background: #fff; }
.couple-hero { position: relative; height: 62vh; min-height: 400px; max-height: 560px; overflow: hidden; background: #2a103c; }
.couple-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.couple-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #2a103c66 0%, #0000 26%, #2a103c00 42%, #2a103cf2 100%); }
.hero-back { position: absolute; top: 14px; left: 14px; z-index: 2; display: grid; width: 40px; height: 40px; place-items: center; padding: 0 0 4px; border: 0; border-radius: 50%; color: #fff; background: #ffffff33; backdrop-filter: blur(8px); font-size: 28px; line-height: 1; }
.couple-hero-copy { position: absolute; right: 20px; bottom: 26px; left: 20px; z-index: 2; color: #fff; }
.couple-hero-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: #e0457bd9; font-size: 12px; font-weight: 600; }
.couple-hero-badge svg { width: 12px; height: 12px; fill: #fff; }
.couple-hero h1 { margin: 12px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.15; text-shadow: 0 2px 10px #0006; }
.couple-hero p { margin: 0; font-size: 14.5px; line-height: 1.5; opacity: .95; }
.couple-facts { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); margin: -22px 16px 0; padding: 14px 6px; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px #3c2c4c26; text-align: center; }
.couple-facts div + div { border-left: 1px solid #f0e8f3; }
.couple-facts b { display: block; overflow: hidden; padding: 0 4px; color: #b0417a; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.couple-facts small { color: #928598; font-size: 11px; }
.couple-story { padding: 26px 22px 6px; color: #3d3346; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.story-tags span { padding: 5px 12px; border-radius: 99px; color: #a4438f; background: #f8ecf6; font-size: 12px; font-weight: 600; }
.couple-story h2 { margin: 16px 0 14px; color: #34243b; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.couple-story p { margin: 0 0 16px; font-size: 16px; line-height: 1.85; text-align: justify; }
.couple-story p.lead::first-letter { float: left; padding: 4px 9px 0 0; color: #d8477f; font-family: Georgia, serif; font-size: 52px; line-height: .85; }
.couple-story blockquote { margin: 22px 0; padding: 18px 20px; border-left: 4px solid #e0649c; border-radius: 0 14px 14px 0; color: #7a2d63; background: linear-gradient(100deg, #fdeef5, #f7effc); font-family: Georgia, serif; font-size: 18px; font-style: italic; line-height: 1.6; }
.story-end { display: flex; justify-content: center; margin: 24px 0 6px; color: #e0649c; }
.story-end svg { width: 26px; height: 26px; fill: currentColor; }
.couple-album { margin: 12px 20px 8px; overflow: hidden; border-radius: 16px; background: #f5f0f7; box-shadow: 0 6px 20px #3c2c4c1a; }
.couple-album img { display: block; width: 100%; height: auto; }
.couple-album figcaption { padding: 11px; color: #8b7f92; font-size: 12px; text-align: center; }
.couple-page .home-section { margin-top: 14px; }

@media (min-width: 520px) { .carousel-track { padding-left: 18%; padding-right: 18%; } .carousel .slide { flex-basis: 64%; } }

/* Điểm tín nhiệm */
.credit-row { display: flex; align-items: center; gap: 12px; max-width: 320px; margin: 16px auto 0; padding: 10px 14px; border-radius: 16px; color: #fff; background: #ffffff26; backdrop-filter: blur(6px); text-align: left; }
.credit-icon { display: grid; flex: none; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #ffffff33; }
.credit-icon svg { width: 22px; height: 22px; fill: #fff; }
.credit-row small { display: block; font-size: 12px; opacity: .9; }
.credit-row b { font-size: 22px; }
.credit-refresh { display: grid; width: 34px; height: 34px; margin-left: auto; place-items: center; padding: 0 0 2px; border: 0; border-radius: 50%; color: #fff; background: #c34d96; font-size: 20px; }
.credit-refresh.spinning { animation: creditspin .7s linear infinite; }
@keyframes creditspin { to { transform: rotate(360deg); } }

/* Nút Rút tiền nằm trong luồng, đè mép dưới khối thành viên */
.home-shell .withdraw { position: relative; z-index: 2; top: auto; left: auto; display: block; width: auto; min-width: 150px; margin: -24px auto 0; padding: 11px 26px; transform: none; border: 2px solid #fff; background: linear-gradient(100deg, #8b5acc, #d776a9); box-shadow: 0 6px 16px #6a3a9a44; line-height: 1.3; }
.home-shell .account-list { margin-top: 18px; }

/* Tên thành viên ở Hồ sơ */
.member-profile { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; text-align: left; }
.member-avatar { display: grid; flex: none; width: 52px; height: 52px; place-items: center; border: 2px solid #ffffffaa; border-radius: 50%; background: linear-gradient(140deg, #f7a6cf, #9d6be0); font-size: 22px; font-weight: 700; }
.member-name { display: block; overflow: hidden; max-width: 60vw; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.member-profile small { display: block; margin-top: 3px; font-size: 12px; opacity: .85; }

/* Ngân hàng đã liên kết (chỉ xem) */
.bank-locked { padding-top: 26px; }
.bank-locked p { margin: 0 0 26px; font-size: 16px; }
.bank-locked p span { color: #2b2733; }
.bank-locked b { color: #111; font-weight: 700; word-break: break-all; }
.bank-locked .bank-locked-note { color: #a09aa8; font-size: 14px; line-height: 1.6; }

/* Lịch sử rút */
.wd-content { background: #f1f1f6; }
.wd-list { display: grid; gap: 16px; padding: 18px 15px 24px; }
.wd-card { padding: 20px 22px; border-radius: 16px; background: #fff; box-shadow: 0 2px 10px #3c2c4c0f; }
.wd-card p { margin: 10px 0 0; color: #1d1a22; font-size: 15px; }
.wd-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wd-top b { font-size: 19px; }
.wd-pending { color: #e6952b; } .wd-done { color: #17b26a; } .wd-failed { color: #e5252a; }
.wd-card .wd-note { color: #9a96a3; font-weight: 600; line-height: 1.7; }
