/* Khu vực tự phục vụ của khách hàng */
.customer-portal { position: fixed; inset: 0; z-index: 500; overflow: auto; color: var(--ink); background: #f6f5f3; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.customer-portal.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
.portal-header { position: sticky; top: 0; z-index: 5; height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(15px); }
.portal-header__account { display: flex; align-items: center; gap: 10px; }
.portal-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--orange), #9b0022); font-size: 12px; font-weight: 800; }
.portal-header__account div { min-width: 120px; }
.portal-header__account strong, .portal-header__account small { display: block; }
.portal-header__account strong { font-size: 10px; }
.portal-header__account small { max-width: 210px; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.portal-header__account > button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: #555; background: #fff; font-size: 8px; font-weight: 700; cursor: pointer; }
.portal-header__account .portal-home { border-color: var(--orange); color: #fff; background: var(--orange); }
.portal-layout { width: min(1440px, 100%); min-height: calc(100vh - 74px); display: grid; grid-template-columns: 245px 1fr; margin: 0 auto; }
.portal-sidebar { position: sticky; top: 74px; align-self: start; min-height: calc(100vh - 74px); padding: 30px 20px; border-right: 1px solid var(--line); background: #fff; }
.portal-sidebar > p { margin: 0 12px 15px; color: #aaa; font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.portal-sidebar nav { display: grid; gap: 4px; }
.portal-sidebar nav button { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 0; border-radius: 10px; color: #5d5d5d; background: transparent; font-size: 9px; font-weight: 600; text-align: left; cursor: pointer; }
.portal-sidebar nav button span { width: 21px; color: #8a8a8a; font-size: 15px; text-align: center; }
.portal-sidebar nav button:hover { color: var(--orange); background: var(--orange-soft); }
.portal-sidebar nav button.is-active { color: #fff; background: var(--orange); box-shadow: 0 8px 20px rgba(238,0,51,.2); }
.portal-sidebar nav button.is-active span { color: #fff; }
.portal-sidebar__help { display: grid; gap: 7px; margin-top: 34px; padding: 17px; border-radius: 14px 14px 14px 4px; background: linear-gradient(145deg, #272326, #151515); color: #fff; }
.portal-sidebar__help strong { font-size: 10px; }
.portal-sidebar__help small { color: rgba(255,255,255,.62); font-size: 7px; line-height: 1.5; }
.portal-sidebar__help button { min-height: 32px; margin-top: 4px; border: 0; border-radius: 7px; color: var(--orange); background: #fff; font-size: 7px; font-weight: 700; cursor: pointer; }
.portal-main { min-width: 0; padding: 38px clamp(24px, 4vw, 58px) 70px; }
.portal-main__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.portal-main__heading p { margin: 0 0 7px; color: var(--orange); font-size: 7px; font-weight: 800; letter-spacing: .16em; }
.portal-main__heading h1 { margin: 0; font-size: 29px; letter-spacing: -.045em; }
.portal-main__heading span { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }
.portal-main__heading > button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: #555; background: #fff; font-size: 8px; font-weight: 700; cursor: pointer; }
.portal-content { min-height: 420px; }
.portal-loading { min-height: 320px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.portal-loading::before { content: ''; width: 27px; height: 27px; margin-right: 9px; border: 3px solid #eee; border-top-color: var(--orange); border-radius: 50%; animation: portal-spin .7s linear infinite; }
@keyframes portal-spin { to { transform: rotate(360deg); } }
.portal-error, .portal-empty { min-height: 220px; display: grid; place-items: center; padding: 30px; border: 1px dashed #d8d5d2; border-radius: 15px; color: var(--muted); background: #fff; font-size: 10px; text-align: center; }
.portal-error { color: #a1263f; background: #fff5f7; }
.portal-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.portal-stat { min-height: 115px; display: grid; align-content: space-between; padding: 19px; border: 1px solid var(--line); border-radius: 15px 15px 15px 5px; background: #fff; box-shadow: 0 9px 25px rgba(30,22,24,.04); }
.portal-stat > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--orange); background: var(--orange-soft); font-size: 16px; }
.portal-stat small { color: var(--muted); font-size: 7px; }
.portal-stat strong { display: block; margin-top: 5px; font-size: 20px; letter-spacing: -.04em; }
.portal-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 17px; }
.portal-card { overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 9px 25px rgba(30,22,24,.04); }
.portal-card__head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.portal-card__head h2 { margin: 0; font-size: 13px; }
.portal-card__head button { padding: 0; border: 0; color: var(--orange); background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.portal-due { position: relative; min-height: 195px; overflow: hidden; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.2), transparent 28%), linear-gradient(145deg, #ee0033, #970021); }
.portal-due::after { content: 'H'; position: absolute; right: -14px; bottom: -76px; color: rgba(255,255,255,.08); font-size: 190px; font-weight: 800; }
.portal-due p { margin: 0; color: rgba(255,255,255,.75); font-size: 8px; }
.portal-due h2 { margin: 10px 0 6px; font-size: 20px; }
.portal-due b { display: block; margin-top: 23px; font-size: 25px; }
.portal-due small { font-size: 8px; opacity: .8; }
.portal-due button { position: relative; z-index: 1; min-height: 36px; margin-top: 15px; padding: 0 13px; border: 0; border-radius: 8px; color: var(--orange); background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.portal-list { display: grid; }
.portal-list-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 11px; min-width: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.portal-list-item:first-child { border-top: 0; }
.portal-list-item > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--orange); background: var(--orange-soft); font-size: 17px; }
.portal-list-item strong, .portal-list-item small { display: block; }
.portal-list-item strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.portal-list-item small { margin-top: 4px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.portal-list-item > em { padding: 5px 8px; border-radius: 20px; color: #625b54; background: #f1efed; font-size: 7px; font-style: normal; font-weight: 700; white-space: nowrap; }
.portal-list-item > em.is-success { color: #15714a; background: #e8f8ef; }
.portal-list-item > em.is-warning { color: #976000; background: #fff4d7; }
.portal-list-item > em.is-danger { color: #b01f3e; background: #ffe8ed; }
.portal-section-grid { display: grid; gap: 14px; }
.portal-contract { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 21px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; background: #fff; }
.portal-contract__top { display: flex; align-items: center; gap: 10px; }
.portal-contract__top h3 { margin: 0; font-size: 14px; }
.portal-contract__meta { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 12px; margin-top: 18px; }
.portal-contract__meta small, .portal-contract__meta strong { display: block; }
.portal-contract__meta small { color: var(--muted); font-size: 7px; }
.portal-contract__meta strong { margin-top: 5px; font-size: 9px; }
.portal-contract__action { display: grid; align-content: center; gap: 8px; }
.portal-contract__action button { min-height: 37px; padding: 0 13px; border: 0; border-radius: 8px; color: #fff; background: var(--orange); font-size: 8px; font-weight: 700; cursor: pointer; }
.portal-contract__action button[disabled] { opacity: .45; cursor: not-allowed; }
.portal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 8px; }
.portal-table th, .portal-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.portal-table th { color: var(--muted); background: #faf9f8; font-size: 7px; }
.portal-table tr:last-child td { border-bottom: 0; }
.portal-status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 20px; color: #625b54; background: #f1efed; font-size: 7px; font-weight: 700; }
.portal-status.is-success { color: #15714a; background: #e8f8ef; }
.portal-status.is-warning { color: #976000; background: #fff4d7; }
.portal-status.is-danger { color: #b01f3e; background: #ffe8ed; }
.portal-loyalty-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.portal-balance { min-height: 150px; display: grid; align-content: center; padding: 24px; border-radius: 17px 17px 17px 5px; color: #fff; background: linear-gradient(145deg, #ee0033, #9c0022); }
.portal-balance:nth-child(2) { background: linear-gradient(145deg, #2f2a2d, #121212); }
.portal-balance small { font-size: 8px; opacity: .7; }
.portal-balance strong { margin-top: 9px; font-size: 31px; }
.portal-form { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.portal-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portal-form label { display: grid; gap: 6px; color: #444; font-size: 8px; font-weight: 700; }
.portal-form input, .portal-form select, .portal-form textarea { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #dedbd8; border-radius: 9px; background: #fff; font: inherit; font-size: 9px; outline: none; }
.portal-form textarea { min-height: 105px; padding-top: 12px; resize: vertical; }
.portal-form input:focus, .portal-form select:focus, .portal-form textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(238,0,51,.08); }
.portal-form button { min-height: 43px; border: 0; border-radius: 9px 9px 9px 3px; color: #fff; background: var(--orange); font-size: 9px; font-weight: 800; cursor: pointer; }
.portal-form button:disabled { opacity: .55; }
.portal-note { padding: 11px 13px; border-radius: 9px; color: #6e5c25; background: #fff8df; font-size: 7px; line-height: 1.55; }

.plus-home { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; }
.plus-home__copy h2 { margin: 0; font-size: clamp(31px, 3vw, 44px); line-height: 1.14; letter-spacing: -.045em; }
.plus-home__copy > p:not(.section-kicker) { max-width: 590px; margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.plus-home-benefits { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 24px 0; }
.plus-home-benefits span { color: #555; font-size: 9px; font-weight: 600; }
.plus-home-benefits i { width: 18px; height: 18px; display: inline-grid; place-items: center; margin-right: 5px; border-radius: 50%; color: #fff; background: var(--orange); font-size: 8px; font-style: normal; }
.plus-home-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.plus-home-offers { border: 1px solid var(--orange); color: var(--orange); background: #fff; box-shadow: none; }
.plus-home-links { display: grid; gap: 12px; }
.plus-home-links > a { min-height: 125px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 17px 17px 17px 5px; background: #fff; transition: transform .2s, border-color .2s, box-shadow .2s; }
.plus-home-links > a:hover { border-color: rgba(238,0,51,.35); box-shadow: 0 16px 36px rgba(35,22,26,.08); transform: translateY(-3px); }
.plus-home-links > a > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px 13px 13px 4px; color: #fff; background: var(--orange); font-size: 10px; font-weight: 800; }
.plus-home-links small, .plus-home-links strong, .plus-home-links p { display: block; }.plus-home-links small { color: var(--orange); font-size: 7px; font-weight: 800; letter-spacing: .1em; }.plus-home-links strong { margin-top: 5px; font-size: 14px; }.plus-home-links p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }.plus-home-links i { color: var(--orange); font-size: 18px; font-style: normal; }
