#dsm-hub-container { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; padding: 20px 15px 0px; background: #0d0e12; color: #f0f1f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-sizing: border-box; }
.dsm-inner-wrap { max-width: 600px; margin: 0 auto; width: 100%; }
.dsm-tabs-wrapper { width: 100%; overflow-x: auto; margin-bottom: 25px; scrollbar-width: none; }
.dsm-tabs-wrapper::-webkit-scrollbar { display: none; }
.dsm-tabs-nav { display: flex; width: 100%; border-bottom: 2px solid #232533; padding: 0; margin: 0; box-sizing: border-box; }
.dsm-tab-btn { flex: 1; background: transparent; color: #7e839e; border: none; padding: 14px 4px; cursor: pointer; font-size: 14px; font-weight: 700; text-align: center; transition: 0.2s; white-space: nowrap; margin-bottom: -2px; border-bottom: 2px solid transparent; border-radius: 0; }
.dsm-tab-btn:hover { color: #dcdfe8; }
.dsm-tab-btn.active { color: #ff2a3b; border-bottom: 2px solid #ff2a3b; }
.dsm-tab-panel { display: none; }
.dsm-tab-panel.active { display: block; animation: dsmIn 0.25s ease; }
@keyframes dsmIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.dsm-card-box { background: #14151d; border: 1px solid #232638; border-radius: 14px; padding: 24px 18px; margin-bottom: 16px; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.dsm-title { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 8px 0; }
.dsm-sub-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 16px 0; text-align: left; line-height: 1.4; }
.dsm-desc { font-size: 14px; color: #a0a4b8; margin: 0 0 20px 0; line-height: 1.5; }
.dsm-btn { width: 100%; box-sizing: border-box; border: none; padding: 14px 18px; border-radius: 9px; cursor: pointer; font-size: 15px; font-weight: 700; transition: 0.2s; }
.dsm-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dsm-btn-primary { background: #ff2a3b; color: #fff; }
.dsm-btn-primary:active:not(:disabled) { background: #d91b2b; transform: scale(0.98); }
.dsm-btn-sub { background: #232535; color: #e1e3ed; border: 1px solid #32354a; }
.dsm-btn-sub:active:not(:disabled) { background: #2e3146; transform: scale(0.98); }
.dsm-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dsm-quiz-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dsm-nav-back-btn { background: transparent; border: 1px solid #32364c; color: #a4a9c4; padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 600; }
.dsm-quiz-step-count { font-size: 13px; color: #ff8591; font-weight: 700; }
.dsm-progress-wrap { width: 100%; height: 8px; background: #232638; border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
#dsm-quiz-progress { height: 100%; background: #ff2a3b; transition: width 0.2s ease; }
.dsm-likert-scale { display: flex; flex-direction: column; gap: 10px; }
.dsm-scale-btn { width: 100%; border: none; border-radius: 9px; padding: 14px 16px; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; transition: 0.1s; margin: 0; }
.dsm-scale-btn.lvl-0 { background: #1a1c27; color: #8589a3; border: 1px solid #282b3d; }
.dsm-scale-btn.lvl-1 { background: #15283b; color: #64b5f6; border: 1px solid #1e3d5c; }
.dsm-scale-btn.lvl-2 { background: #2c2816; color: #ffd166; border: 1px solid #4a411f; }
.dsm-scale-btn.lvl-3 { background: #381d18; color: #ff8c69; border: 1px solid #5a2c24; }
.dsm-scale-btn.lvl-4 { background: #421116; color: #ff4d5a; border: 1px solid #6b1a22; }
.dsm-scale-btn.selected { outline: 2px solid #fff; filter: brightness(1.2); }
.dsm-results-bars { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px 0; text-align: left; }
.dsm-bar-row { background: #1a1c27; padding: 10px 14px; border-radius: 8px; border: 1px solid #272a3e; }
.dsm-bar-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.dsm-bar-meta-left { display: inline-flex; align-items: center; gap: 6px; }
.dsm-role-info-btn { background: transparent; border: 1px solid #3a3e59; color: #9296ad; width: 18px; height: 18px; min-width: 18px; border-radius: 50%; font-size: 11px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.dsm-role-info-btn:active { background: #232535; color: #fff; border-color: #ff2a3b; }
.dsm-bar-meta .dsm-role-pct { color: #ffb703; }
.dsm-bar-track { width: 100%; height: 8px; background: #282b3d; border-radius: 4px; overflow: hidden; }
.dsm-bar-fill { height: 100%; background: #ff2a3b; transition: width 0.5s ease; }
.dsm-dice-visual-area { perspective: 600px; width: 80px; height: 80px; margin: 12px auto 20px; }
.dsm-cube-wrapper { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; }
.dsm-cube { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(25deg); transition: transform 0.6s cubic-bezier(0.17,0.67,0.83,0.67); }
.dsm-cube.rolling { animation: diceTumble 0.6s infinite linear; }
@keyframes diceTumble { 0% { transform: rotateX(0deg) rotateY(0deg); } 100% { transform: rotateX(360deg) rotateY(720deg); } }
.dsm-cube-face { position: absolute; width: 78px; height: 78px; background: #1f212f; border: 2px solid #ff2a3b; color: #ffb703; font-size: 28px; display: flex; align-items: center; justify-content: center; border-radius: 12px; box-shadow: inset 0 0 12px rgba(255,42,59,0.3); }
.dsm-cube-face.front { transform: rotateY(0deg) translateZ(39px); }
.dsm-cube-face.back { transform: rotateY(180deg) translateZ(39px); }
.dsm-cube-face.right { transform: rotateY(90deg) translateZ(39px); }
.dsm-cube-face.left { transform: rotateY(-90deg) translateZ(39px); }
.dsm-cube-face.top { transform: rotateX(90deg) translateZ(39px); }
.dsm-cube-face.bottom { transform: rotateX(-90deg) translateZ(39px); }
.dsm-dice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dsm-dice-col { background: #1b1d28; border: 1px solid #292c3f; border-radius: 9px; padding: 12px 6px; }
.dsm-dice-tag { font-size: 12px; color: #7e839e; text-transform: uppercase; display: block; margin-bottom: 4px; font-weight: 700; }
.dsm-dice-text { font-size: 14px; font-weight: 800; color: #ffb703; min-height: 38px; display: flex; align-items: center; justify-content: center; line-height: 1.3; }
.dsm-filter-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }
.dsm-filter-pill { background: #181a24; border: 1px solid #303348; color: #9296ad; padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.dsm-filter-pill.tier-basic.active { background: #00b4d8; color: #000; border-color: #00b4d8; }
.dsm-filter-pill.tier-medium.active { background: #ffb703; color: #000; border-color: #ffb703; }
.dsm-filter-pill.tier-wild.active { background: #ff2a3b; color: #fff; border-color: #ff2a3b; }
.dsm-flip-container { perspective: 1000px; width: 100%; height: 150px; margin-bottom: 12px; }
.dsm-flipper { width: 100%; height: 100%; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); transform-style: preserve-3d; position: relative; }
.dsm-flipper.flipped { transform: rotateY(180deg); }
.dsm-flip-front, .dsm-flip-back { width: 100%; height: 100%; position: absolute; backface-visibility: hidden; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; box-sizing: border-box; }
.dsm-flip-front { background: #1c1e2b; border: 2px dashed #3a3e59; color: #989cb5; font-size: 14px; font-weight: 700; }
.dsm-flip-front .dsm-flip-icon { font-size: 36px; color: #ff2a3b; margin-bottom: 6px; }
.dsm-flip-back { background: #1f2233; border: 2px solid #ff2a3b; color: #fff; transform: rotateY(180deg); box-shadow: 0 0 18px rgba(255,42,59,0.25); }
.dsm-card-text { font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; }
.dsm-rp-detail { text-align: left; margin-top: 16px; border-top: 1px solid #282b3d; padding-top: 16px; }
.dsm-rp-item { margin-bottom: 14px; font-size: 15px; line-height: 1.6; }
.dsm-rp-key { color: #8287a3; font-size: 13px; font-weight: 700; display: block; margin-bottom: 4px; text-transform: uppercase; }
.dsm-rp-val { color: #e2e5f0; }
.dsm-products-wrap { margin-top: 22px; border-top: 1px solid #242738; padding-top: 18px; }
.dsm-section-label { font-size: 13px; font-weight: 800; color: #ffb703; text-transform: uppercase; margin-bottom: 14px; text-align: left; }
.dsm-products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dsm-prod-item { background: #181a24; border: 1px solid #292c3f; border-radius: 10px; overflow: hidden; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.dsm-prod-link { text-decoration: none !important; display: block; color: inherit; }
.dsm-prod-img-box { width: 100%; height: 160px; background-color: #202230; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 10px 10px 0 0; }
.dsm-prod-title { font-size: 13px; font-weight: 700; color: #e1e4f0; padding: 10px 8px 6px; line-height: 1.4; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.dsm-prod-price { font-size: 14px !important; font-weight: 800 !important; color: #ff2a3b !important; padding: 0 8px 10px !important; margin: 0 auto !important; width: 100% !important; text-align: center !important; display: block !important; line-height: 1.3 !important; }
.dsm-prod-price * { color: #ff2a3b !important; text-decoration: none !important; border: none !important; box-shadow: none !important; text-align: center !important; }
.dsm-prod-price del { display: none !important; }
.dsm-prod-price::before, .dsm-prod-price::after, .dsm-prod-price *::before, .dsm-prod-price *::after { display: none !important; content: none !important; }
.dsm-prod-btn { background: #ff2a3b; color: #fff !important; font-size: 12px; font-weight: 800; padding: 10px 0; border-radius: 0 0 9px 9px; text-decoration: none !important; display: block; text-align: center; }

/* Loading / lỗi mạng */
.dsm-loading-text { grid-column: 1 / -1; font-size: 13px; color: #8287a3; padding: 12px 0; text-align: center; }
.dsm-error-text { grid-column: 1 / -1; font-size: 13px; color: #ff2a3b; padding: 10px 0; text-align: center; }
.dsm-global-loading { text-align: center; padding: 10px; font-size: 13px; color: #7e839e; }
.dsm-global-error { text-align: center; padding: 16px; font-size: 14px; color: #ff8591; background: #1c1418; border: 1px solid #4a1f26; border-radius: 10px; }

/* Modal định nghĩa vai trò */
.dsm-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.dsm-modal-box { background: #14151d; border: 1px solid #2f3350; border-radius: 14px; padding: 26px 20px 20px; max-width: 420px; width: 100%; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.dsm-modal-close { position: absolute; top: 10px; right: 12px; background: transparent; border: none; color: #8287a3; font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; }
.dsm-modal-close:active { color: #fff; }
.dsm-modal-title { font-size: 18px; font-weight: 800; color: #ff2a3b; margin: 0 0 12px 0; }
.dsm-modal-desc { font-size: 14.5px; line-height: 1.6; color: #dcdfe8; margin: 0; text-align: left; }
