/* DreamBridge USDT Draw — client-scoped styles */
.draw-page {
  min-height: calc(100vh - 72px);
  padding: 34px 0 72px;
  color: #e9e6f2;
  background:
    radial-gradient(circle at 82% 5%, rgba(128, 69, 255, .17), transparent 24rem),
    radial-gradient(circle at 8% 34%, rgba(73, 43, 255, .12), transparent 27rem),
    #07060d;
}
.draw-shell { max-width: 1240px; }
.draw-page *, .draw-page *::before, .draw-page *::after { box-sizing: border-box; }
.draw-page a { text-decoration: none; }
.draw-page h1, .draw-page h2, .draw-page h3, .draw-page p { margin-top: 0; }
.draw-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid #2d283d; }
.draw-page-head h1 { margin-bottom: 7px; color: #faf9ff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.draw-page-head > div > p:last-child { max-width: 610px; margin-bottom: 0; color: #aaa5b8; font-size: .95rem; line-height: 1.65; }
.draw-eyebrow, .draw-section-kicker { margin-bottom: 8px; color: #aa9bff; font-size: .69rem; font-weight: 800; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.draw-eyebrow i { margin-right: 6px; color: #d1c9ff; }
.draw-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.draw-tab, .draw-outline-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid #39324e; border-radius: 9px; color: #bdb7ca; background: rgba(20, 17, 30, .78); font-size: .8rem; font-weight: 700; transition: .18s ease; }
.draw-tab:hover, .draw-tab.active, .draw-outline-link:hover { border-color: #826fff; color: #fff; background: rgba(107, 107, 253, .18); }
.draw-tab.active { box-shadow: inset 0 0 0 1px rgba(162, 149, 255, .13); }
.draw-alert { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; padding: 13px 15px; border: 1px solid; border-radius: 10px; font-size: .88rem; line-height: 1.5; }
.draw-alert i { padding-top: 2px; }
.draw-alert-success { border-color: rgba(63, 211, 149, .35); color: #c8f9e1; background: rgba(15, 133, 86, .16); }
.draw-alert-error { border-color: rgba(255, 119, 145, .36); color: #ffd3dc; background: rgba(171, 44, 72, .17); }
.draw-panel { border: 1px solid #2d283d; border-radius: 15px; background: linear-gradient(145deg, #18151f 0%, #111019 100%); box-shadow: inset 0 1px rgba(255, 255, 255, .018), 0 16px 42px rgba(0, 0, 0, .16); }
.draw-directory-intro, .draw-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 30px 0 18px; }
.draw-directory-intro h2, .draw-section-heading h2 { max-width: 700px; margin: 0; color: #f9f8fe; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.22; letter-spacing: -.025em; }
.draw-section-heading { align-items: center; }
.draw-section-heading p { margin: 0; color: #9792a2; font-size: .84rem; }
.draw-text-link, .draw-primary-link, .draw-card-link { display: inline-flex; align-items: center; gap: 8px; color: #c9c2ff; font-size: .85rem; font-weight: 800; transition: color .18s ease; }
.draw-text-link:hover, .draw-primary-link:hover, .draw-card-link:hover { color: #fff; }
.draw-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.draw-event-card { position: relative; display: flex; flex-direction: column; min-height: 295px; padding: 19px; overflow: hidden; border: 1px solid #302a42; border-radius: 15px; background: linear-gradient(150deg, #1a1623, #12101a 70%); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.draw-event-card::after { content: ''; position: absolute; right: -50px; bottom: -72px; width: 175px; height: 175px; border-radius: 50%; background: radial-gradient(circle, rgba(93, 66, 252, .15), transparent 69%); pointer-events: none; }
.draw-event-card:hover { transform: translateY(-3px); border-color: #5c4d7d; box-shadow: 0 18px 38px rgba(7, 3, 17, .42); }
.draw-card-top, .draw-status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #9691a0; font-size: .72rem; }
.draw-status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border: 1px solid; border-radius: 999px; font-size: .65rem; font-weight: 800; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.draw-status-active { border-color: rgba(112, 236, 169, .3); color: #99f5c6; background: rgba(35, 178, 104, .13); }
.draw-status-drawn { border-color: rgba(174, 157, 255, .3); color: #d2caff; background: rgba(107, 107, 253, .14); }
.draw-event-card h3 { position: relative; z-index: 1; margin: 17px 0 16px; color: #f8f6fd; font-size: 1.1rem; line-height: 1.35; }
.draw-event-card h3 a { color: inherit; }
.draw-event-card h3 a:hover { color: #cbc3ff; }
.draw-card-prize { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.draw-card-prize > span, .draw-card-metrics span, .draw-card-note, .draw-card-warning { color: #9792a2; font-size: .76rem; }
.draw-card-prize strong { color: #faf9ff; font-size: 1.7rem; letter-spacing: -.04em; }
.draw-card-prize em { color: #bbb2ed; font-size: .72rem; font-style: normal; letter-spacing: 0; }
.draw-card-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 19px 0 15px; padding: 11px 0; border-top: 1px solid #2e293e; border-bottom: 1px solid #2e293e; }
.draw-card-metrics span { display: flex; flex-direction: column; gap: 2px; }
.draw-card-metrics b { color: #eae7f2; font-size: .9rem; }
.draw-card-note, .draw-card-warning, .draw-card-result { position: relative; z-index: 1; margin: 0; line-height: 1.5; }
.draw-card-note i { color: #9989ff; }
.draw-card-warning { color: #f0d08f; }
.draw-card-warning i { color: #edbd53; }
.draw-card-result { color: #cfc7ff; font-size: .78rem; }
.draw-card-result i { color: #f1c75b; }
.draw-card-link { position: relative; z-index: 1; margin-top: auto; padding-top: 17px; }
.draw-pagination { display: flex; align-items: center; justify-content: center; gap: 17px; margin: 30px 0 2px; color: #aaa4b7; font-size: .83rem; }
.draw-pagination a { display: inline-flex; align-items: center; gap: 7px; color: #cec7ff; font-weight: 800; }
.draw-pagination a:hover { color: #fff; }
.draw-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 38px 24px; text-align: center; }
.draw-empty > i { margin-bottom: 15px; color: #8675ed; font-size: 2.5rem; }
.draw-empty h2, .draw-empty h3 { margin-bottom: 8px; color: #f5f4fb; }
.draw-empty p { max-width: 410px; margin-bottom: 17px; color: #a19cab; font-size: .88rem; line-height: 1.6; }
.draw-empty-compact { min-height: 130px; }
.draw-empty-compact p { margin: 0; }
.draw-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 23px 0 15px; overflow: hidden; color: #918c9c; font-size: .78rem; white-space: nowrap; }
.draw-breadcrumb a { color: #bdb4ef; font-weight: 700; }
.draw-breadcrumb i { color: #5d566c; font-size: .62rem; }
.draw-breadcrumb span { overflow: hidden; text-overflow: ellipsis; }
.draw-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); gap: 28px; padding: clamp(23px, 4vw, 38px); border: 1px solid #38304e; border-radius: 17px; background: radial-gradient(circle at 90% 20%, rgba(112, 77, 255, .23), transparent 37%), linear-gradient(130deg, #1c1729, #121019 72%); }
.draw-status-line { margin-bottom: 15px; }
.draw-detail-hero h2 { margin-bottom: 12px; color: #fff; font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.1; letter-spacing: -.045em; }
.draw-detail-hero p { max-width: 720px; margin-bottom: 0; color: #aaa5b5; font-size: .92rem; line-height: 1.68; }
.draw-prize-box { align-self: center; padding: 20px; border: 1px solid rgba(157, 140, 255, .27); border-radius: 13px; background: rgba(8, 7, 14, .42); }
.draw-prize-box span, .draw-prize-box small { display: block; color: #a8a0ba; font-size: .74rem; }
.draw-prize-box strong { display: block; margin: 5px 0 7px; color: #fff; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; letter-spacing: -.05em; }
.draw-prize-box em { color: #cfc5ff; font-size: .82rem; font-style: normal; letter-spacing: 0; }
.draw-designated-notice { display: flex; gap: 13px; margin-top: 16px; padding: 16px 18px; border: 1px solid rgba(238, 187, 80, .33); border-radius: 12px; background: rgba(164, 111, 21, .11); }
.draw-designated-notice > i { padding-top: 2px; color: #f0bd50; font-size: 1.1rem; }
.draw-designated-notice strong { color: #ffe1a1; font-size: .91rem; }
.draw-designated-notice p { margin: 4px 0 0; color: #dfc995; font-size: .84rem; line-height: 1.6; }
.draw-stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 17px 0; }
.draw-stats-grid article { min-width: 0; padding: 15px; border: 1px solid #2d283d; border-radius: 12px; background: rgba(21, 18, 30, .8); }
.draw-stats-grid span, .draw-stats-grid small { display: block; overflow: hidden; color: #9993a3; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.draw-stats-grid strong { display: block; margin: 5px 0 3px; overflow: hidden; color: #f5f3fa; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.02em; }
.draw-detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 17px; }
.draw-participation-panel, .draw-purchase-panel { padding: 25px; }
.draw-participation-panel h2, .draw-purchase-panel h2 { margin-bottom: 9px; color: #f8f7fc; font-size: 1.35rem; letter-spacing: -.025em; }
.draw-probability { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 13px; }
.draw-probability > div { padding: 15px; border: 1px solid #342e47; border-radius: 11px; background: rgba(8, 7, 13, .36); }
.draw-probability span, .draw-probability small { display: block; color: #9b95a6; font-size: .72rem; }
.draw-probability strong { display: block; margin: 5px 0 4px; color: #d9d3ff; font-size: 1.35rem; letter-spacing: -.035em; }
.draw-muted { color: #a09aa9; font-size: .82rem; line-height: 1.62; }
.draw-owned-codes { margin: 16px 0 0; color: #d0c9e3; font-size: .83rem; line-height: 1.6; word-break: break-word; }
.draw-purchase-panel > p:not(.draw-form-note) { color: #a39eac; font-size: .84rem; line-height: 1.58; }
.draw-buy-form { margin-top: 18px; }
.draw-buy-form label:not(.draw-check) { display: block; margin: 0 0 7px; color: #cbc6d7; font-size: .78rem; font-weight: 800; }
.draw-quantity-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.draw-quantity-row input.form-control { width: 100%; min-height: 44px; border-color: #423755; border-radius: 9px; background: #0e0c14; color: #fff; font-weight: 800; }
.draw-quantity-row span { display: flex; align-items: baseline; gap: 4px; min-height: 44px; padding: 0 12px; border: 1px solid #352e48; border-radius: 9px; color: #bdb6cd; background: rgba(11, 9, 17, .7); font-size: .72rem; }
.draw-quantity-row strong { color: #fff; font-size: .94rem; }
.draw-check { display: grid; grid-template-columns: 17px 1fr; align-items: start; gap: 8px; margin: 15px 0; color: #aaa4b5; font-size: .76rem; line-height: 1.5; cursor: pointer; }
.draw-check input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: #7868ff; }
.draw-check a { color: #c6beff; text-decoration: underline; text-underline-offset: 2px; }
.draw-buy-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 45px; border: 1px solid #897aff; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #5032e5, #7869ff); cursor: pointer; font: inherit; font-size: .86rem; font-weight: 800; box-shadow: 0 9px 23px rgba(73, 43, 255, .25); transition: .18s ease; }
.draw-buy-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.draw-buy-button:disabled, .draw-buy-button.is-submitting { cursor: wait; opacity: .72; transform: none; }
.draw-form-note { margin: 11px 0 0; color: #898392; font-size: .71rem; line-height: 1.53; }
.draw-method-panel { display: grid; grid-template-columns: minmax(215px, .7fr) minmax(0, 1.3fr); gap: 26px; margin-top: 17px; padding: 23px 25px; }
.draw-method-panel h2 { margin: 0; color: #f4f2fa; font-size: 1.1rem; line-height: 1.25; }
.draw-method-panel p { align-self: center; margin: 0; color: #a8a2b2; font-size: .84rem; line-height: 1.65; }
.draw-result-panel { margin-top: 17px; padding: 25px; border: 1px solid rgba(141, 121, 255, .38); border-radius: 16px; background: radial-gradient(circle at 85% 0%, rgba(111, 89, 255, .22), transparent 35%), linear-gradient(145deg, #1b1730, #13111d); }
.draw-result-top { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid #3a3152; }
.draw-result-top h2 { margin-bottom: 6px; color: #fbfaff; font-size: 1.45rem; letter-spacing: -.025em; }
.draw-result-top h2 i { margin-right: 6px; color: #f0c556; }
.draw-result-top p { margin-bottom: 0; color: #b2aac3; font-size: .84rem; line-height: 1.5; }
.draw-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0 0; overflow: hidden; border: 1px solid #39314c; border-radius: 11px; background: #39314c; }
.draw-result-grid > div { padding: 15px; background: #15121f; }
.draw-result-grid span { display: block; margin-bottom: 4px; color: #9b94a7; font-size: .7rem; }
.draw-result-grid strong { display: block; color: #f3f1f8; font-size: .91rem; line-height: 1.35; }
.draw-result-foot { margin: 17px 0 0; color: #b8b0c7; font-size: .8rem; line-height: 1.58; }
.draw-result-foot i { margin-right: 5px; color: #ab9aff; }
.draw-rule-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 17px; margin-top: 30px; }
.draw-prose { padding: clamp(23px, 4vw, 38px); }
.draw-prose h2, .draw-rule-aside h2 { margin-bottom: 18px; color: #f8f6fd; font-size: 1.45rem; letter-spacing: -.025em; }
.draw-prose ol { display: grid; gap: 14px; margin: 0; padding-left: 21px; color: #b9b3c4; font-size: .88rem; line-height: 1.65; }
.draw-prose li::marker { color: #b2a4ff; font-weight: 800; }
.draw-prose strong { color: #f2effa; }
.draw-rule-aside { display: flex; flex-direction: column; align-items: flex-start; padding: 29px; background: radial-gradient(circle at 80% 7%, rgba(124, 100, 255, .28), transparent 43%), linear-gradient(150deg, #211a34, #15111f); }
.draw-rule-aside > i { margin-bottom: 16px; color: #c1b8ff; font-size: 1.9rem; }
.draw-rule-aside p { color: #b3acc1; font-size: .86rem; line-height: 1.65; }
.draw-rule-aside .draw-primary-link { margin-top: auto; padding-top: 13px; }
.draw-table-panel { overflow: hidden; }
.draw-table-scroll { overflow-x: auto; }
.draw-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.draw-table th { padding: 13px 17px; border-bottom: 1px solid #302a40; color: #9b94a5; background: rgba(10, 8, 14, .46); font-size: .68rem; letter-spacing: .075em; text-transform: uppercase; }
.draw-table td { padding: 15px 17px; border-bottom: 1px solid #2a2538; color: #c7c1d1; font-size: .79rem; vertical-align: top; line-height: 1.45; }
.draw-table tr:last-child td { border-bottom: 0; }
.draw-table tr:hover td { background: rgba(111, 91, 242, .045); }
.draw-row-link { display: block; max-width: 240px; overflow: hidden; color: #dfd8ff; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.draw-row-link:hover { color: #fff; }
.draw-table .draw-status { margin-top: 6px; }
.draw-code-list { display: block; max-width: 230px; margin-top: 3px; overflow: hidden; color: #928b9e; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.draw-win { color: #ffe2a2; font-weight: 800; }
.draw-win i { color: #f0c356; }
.draw-amount-plus { color: #83e3b7 !important; font-weight: 800; }
.draw-amount-minus { color: #ffabbf !important; font-weight: 800; }
.draw-ledger-heading { margin-top: 34px; }
@media (max-width: 1100px) {
  .draw-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draw-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .draw-page { padding: 24px 0 52px; }
  .draw-page-head, .draw-directory-intro, .draw-section-heading { align-items: flex-start; flex-direction: column; }
  .draw-head-actions { justify-content: flex-start; }
  .draw-detail-hero, .draw-detail-grid, .draw-method-panel, .draw-rule-layout { grid-template-columns: 1fr; }
  .draw-prize-box { max-width: 360px; width: 100%; }
  .draw-result-grid { grid-template-columns: repeat(2, 1fr); }
  .draw-rule-aside { min-height: 255px; }
}
@media (max-width: 560px) {
  .draw-page { padding-top: 20px; }
  .draw-shell { padding-right: 15px; padding-left: 15px; }
  .draw-page-head { gap: 18px; padding-bottom: 20px; }
  .draw-head-actions { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .draw-tab { width: 100%; font-size: .74rem; }
  .draw-event-grid, .draw-stats-grid, .draw-probability { grid-template-columns: 1fr; }
  .draw-event-card { min-height: 270px; }
  .draw-directory-intro, .draw-section-heading { margin-top: 24px; }
  .draw-detail-hero, .draw-result-panel, .draw-participation-panel, .draw-purchase-panel, .draw-method-panel { padding: 20px; }
  .draw-result-top { align-items: flex-start; flex-direction: column; }
  .draw-result-grid { grid-template-columns: 1fr; }
  .draw-designated-notice { padding: 14px; }
  .draw-quantity-row { grid-template-columns: 1fr; }
  .draw-pagination { gap: 10px; font-size: .76rem; }
}

/* Fixed application topbar clearance. */
.page-content.draw-page{padding-top:96px}
@media(max-width:560px){.page-content.draw-page{padding-top:80px}}
