.portal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(88, 169, 207, 0.16), transparent 32%),
    radial-gradient(circle at 15% 72%, rgba(145, 255, 79, 0.08), transparent 28%),
    linear-gradient(140deg, #02070b 0%, #07131d 48%, #03090d 100%);
}

.portal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(132, 185, 210, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 185, 210, 0.025) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.portal-header { position: relative; background: rgba(3, 9, 13, 0.82); backdrop-filter: blur(18px); }
.portal-main { position: relative; z-index: 1; min-height: calc(100vh - 100px); padding: 132px clamp(20px, 5vw, 80px) 80px; }
.portal-shell { width: min(1180px, 100%); margin: 0 auto; }

.auth-main {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 126px 24px 70px;
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.96) 0%, rgba(2, 7, 11, 0.82) 44%, rgba(2, 7, 11, 0.44) 100%),
    linear-gradient(180deg, rgba(2, 8, 12, 0.22), #02070b 96%),
    url("assets/datacenter-hero.png") 68% center / cover no-repeat;
}
.auth-main::before,
.auth-main::after { content: ""; position: absolute; pointer-events: none; }
.auth-main::before {
  width: 58vw;
  height: 1px;
  top: 24%;
  left: 42%;
  background: linear-gradient(90deg, transparent, rgba(143, 229, 255, 0.55), transparent);
  box-shadow: 0 82px rgba(145,255,79,.2), 0 164px rgba(116,202,244,.18);
  transform: rotate(-10deg);
  animation: authLight 7s ease-in-out infinite alternate;
}
.auth-main::after { inset: 0; background: radial-gradient(circle at 75% 44%, transparent 0 17%, rgba(2,7,11,.42) 74%); }
@keyframes authLight { from { transform: translateX(-2%) rotate(-10deg); opacity: .46; } to { transform: translateX(4%) rotate(-8deg); opacity: .88; } }

.auth-shell { position: relative; z-index: 2; width: min(1060px, 100%); display: grid; grid-template-columns: 1fr minmax(390px, .78fr); align-items: center; gap: clamp(42px, 7vw, 96px); }
.auth-intro { max-width: 560px; }
.auth-intro .section-kicker { margin-bottom: 22px; }
.auth-intro h1 { max-width: 650px; margin-bottom: 27px; font-size: clamp(3.4rem, 6vw, 6.4rem); line-height: .9; }
.auth-intro > p:last-of-type { max-width: 500px; color: #adbac3; font-size: 1.05rem; line-height: 1.75; }
.auth-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.auth-points span { padding: 9px 13px; border: 1px solid rgba(157,196,216,.2); border-radius: 999px; color: #cbd5da; background: rgba(7,17,23,.64); font-size: .72rem; letter-spacing: .08em; }
.auth-card { padding: clamp(26px, 4vw, 44px); border: 1px solid rgba(157,196,216,.25); border-radius: 24px; background: linear-gradient(145deg, rgba(8,18,25,.95), rgba(4,11,16,.91)); box-shadow: 0 34px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(20px); }
.auth-card > span { color: var(--green); font-size: .7rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.auth-card h2 { margin: 12px 0 8px; font-size: clamp(2rem, 3vw, 3rem); }
.auth-card > p { margin-bottom: 28px; color: #8fa0ac; line-height: 1.55; }
.form-field { display: grid; gap: 9px; margin-bottom: 18px; }
.form-field label { color: #c9d2d7; font-size: .75rem; font-weight: 680; letter-spacing: .08em; }
.form-field input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid rgba(157,196,216,.23); border-radius: 11px; outline: none; color: #f4f8fa; background: rgba(3,10,15,.72); font: inherit; transition: border-color .18s, box-shadow .18s; }
.form-field input:focus { border-color: rgba(145,255,79,.7); box-shadow: 0 0 0 3px rgba(145,255,79,.08); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -2px 0 22px; color: #8797a2; font-size: .78rem; }
.check-line { display: flex; align-items: flex-start; gap: 9px; color: #a4b2ba; font-size: .78rem; line-height: 1.5; }
.check-line input { margin-top: 3px; accent-color: var(--green); }
.text-link { color: var(--green-soft); }
.auth-submit { width: 100%; min-height: 51px; border: 0; border-radius: 12px; color: #071006; background: linear-gradient(135deg, #caff91, #7dff43); font: inherit; font-weight: 790; cursor: pointer; }
.auth-submit:hover { box-shadow: 0 12px 36px rgba(125,255,67,.18); }
.auth-switch { margin: 22px 0 0 !important; text-align: center; font-size: .85rem; }
.auth-legal { margin-top: 25px; color: #687983; font-size: .7rem; line-height: 1.55; text-align: center; }

.otp-wrap { margin: 4px 0 20px; padding: 15px; border: 1px solid rgba(145,255,79,.18); border-radius: 13px; background: rgba(50,90,59,.09); }
.otp-heading { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.otp-heading strong { font-size: .82rem; }
.otp-heading span { color: #81929d; font-size: .7rem; }
.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.otp-cells input { min-width: 0; width: 100%; aspect-ratio: 1; border: 1px solid rgba(157,196,216,.28); border-radius: 9px; outline: none; color: #fff; background: rgba(3,10,15,.82); font-size: 1.15rem; text-align: center; }
.otp-cells input:focus { border-color: var(--green); }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.page-heading h1 { margin: 0; font-size: clamp(3rem, 5vw, 5.5rem); line-height: .88; }
.page-heading p { max-width: 520px; margin: 0; color: #91a1ac; line-height: 1.6; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 20px; }
.dashboard-column { display: grid; align-content: start; gap: 20px; }
.account-card { overflow: hidden; border: 1px solid rgba(157,196,216,.2); border-radius: 18px; background: linear-gradient(145deg, rgba(8,18,25,.9), rgba(4,11,16,.82)); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.account-card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 23px; border-bottom: 1px solid rgba(157,196,216,.14); }
.account-card-head h2 { margin: 0; font-size: 1rem; letter-spacing: .08em; }
.account-card-head a, .account-card-head span { color: #83949f; font-size: .73rem; }
.balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.balance-grid > div { padding: 24px; border-right: 1px solid rgba(157,196,216,.13); }
.balance-grid > div:last-child { border-right: 0; }
.balance-grid span, .balance-grid small { display: block; color: #7f909b; font-size: .71rem; letter-spacing: .08em; }
.balance-grid strong { display: block; margin: 10px 0 8px; font-size: clamp(1.35rem, 2.5vw, 2.15rem); }
.positive { color: var(--green) !important; }
.project-row { display: grid; grid-template-columns: 1.1fr .65fr .65fr auto; align-items: center; gap: 16px; padding: 21px 23px; border-bottom: 1px solid rgba(157,196,216,.12); }
.project-row:last-child { border-bottom: 0; }
.project-name { display: flex; align-items: center; gap: 13px; }
.project-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(145,255,79,.24); border-radius: 10px; color: var(--green); background: rgba(145,255,79,.06); font-size: .75rem; font-weight: 800; }
.project-name strong, .project-name span, .project-cell strong, .project-cell span { display: block; }
.project-name span, .project-cell span { margin-top: 5px; color: #788994; font-size: .7rem; }
.project-cell strong { font-size: .9rem; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 7px 10px; border-radius: 999px; color: #b9ff94; background: rgba(145,255,79,.09); font-size: .68rem; }
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(145,255,79,.7); }
.outline-button { min-height: 38px; padding: 0 15px; border: 1px solid rgba(157,196,216,.32); border-radius: 9px; color: #eaf0f2; background: rgba(5,12,17,.46); font: inherit; font-size: .73rem; cursor: pointer; }
.outline-button:hover { border-color: var(--green); color: var(--green-soft); }
.chart-body { padding: 22px; }
.chart-bars { height: 165px; display: flex; align-items: end; gap: 10px; padding-top: 10px; border-bottom: 1px solid rgba(157,196,216,.18); background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(157,196,216,.08) 40px); }
.chart-bars i { flex: 1; height: var(--bar); min-width: 8px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #a9ff72, rgba(71,180,124,.38)); box-shadow: 0 0 15px rgba(145,255,79,.08); }
.chart-labels { display: flex; justify-content: space-between; margin-top: 10px; color: #647680; font-size: .68rem; }
.quick-list { display: grid; }
.quick-list a, .quick-list button { width: 100%; min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 22px; border: 0; border-bottom: 1px solid rgba(157,196,216,.12); color: #dfe7eb; background: none; font: inherit; font-size: .83rem; text-align: left; cursor: pointer; }
.quick-list > :last-child { border-bottom: 0; }
.quick-list small { color: #71838d; }
.profile-box { padding: 23px; }
.profile-id { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #071006; background: linear-gradient(135deg, #d4ffad, #76ef4c); font-weight: 850; }
.profile-id strong, .profile-id span { display: block; }
.profile-id span { margin-top: 5px; color: #7c8e99; font-size: .72rem; }
.verify-line { display: flex; justify-content: space-between; gap: 20px; margin-top: 21px; padding-top: 18px; border-top: 1px solid rgba(157,196,216,.13); color: #91a2ac; font-size: .75rem; }

.earnings-dialog { width: min(920px, calc(100% - 28px)); padding: 0; border: 1px solid rgba(157,196,216,.29); border-radius: 22px; color: var(--text); background: #071119; box-shadow: 0 40px 140px rgba(0,0,0,.75); }
.earnings-dialog::backdrop { background: rgba(0,4,7,.76); backdrop-filter: blur(8px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding: 25px 27px; border-bottom: 1px solid rgba(157,196,216,.16); }
.dialog-head span { color: var(--green); font-size: .68rem; font-weight: 750; letter-spacing: .16em; }
.dialog-head h2 { margin: 8px 0 0; font-size: clamp(1.65rem, 3vw, 2.7rem); }
.dialog-close { width: 38px; height: 38px; border: 1px solid rgba(157,196,216,.25); border-radius: 50%; color: #fff; background: none; font-size: 1.2rem; cursor: pointer; }
.dialog-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 27px; background: rgba(4,11,16,.64); }
.dialog-stats div { padding: 20px 14px; border-right: 1px solid rgba(157,196,216,.13); }
.dialog-stats div:last-child { border: 0; }
.dialog-stats span, .dialog-stats strong { display: block; }
.dialog-stats span { color: #788a95; font-size: .67rem; }
.dialog-stats strong { margin-top: 8px; font-size: 1.05rem; }
.countdown { color: var(--green) !important; font-variant-numeric: tabular-nums; }
.earnings-table-wrap { max-height: 360px; overflow: auto; padding: 16px 27px 26px; }
.earnings-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.earnings-table th { padding: 11px 10px; color: #72848f; font-size: .66rem; letter-spacing: .08em; text-align: left; }
.earnings-table td { padding: 13px 10px; border-top: 1px solid rgba(157,196,216,.12); color: #c9d3d8; }
.earnings-table td:last-child { color: var(--green); font-weight: 720; text-align: right; }
.earnings-table th:last-child { text-align: right; }

.legal-shell { width: min(1120px, 100%); display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 6vw, 78px); margin: 0 auto; }
.legal-nav { position: sticky; top: 110px; align-self: start; padding: 22px; border: 1px solid rgba(157,196,216,.18); border-radius: 16px; background: rgba(5,13,18,.72); }
.legal-nav strong { display: block; margin-bottom: 14px; color: #e8eef1; font-size: .8rem; }
.legal-nav a { display: block; padding: 9px 0; color: #80919c; font-size: .74rem; }
.legal-nav a:hover { color: var(--green); }
.legal-doc { max-width: 760px; }
.legal-doc > span { color: var(--green); font-size: .7rem; letter-spacing: .17em; text-transform: uppercase; }
.legal-doc h1 { margin: 15px 0 14px; font-size: clamp(3.1rem, 6vw, 6rem); line-height: .9; }
.legal-updated { margin-bottom: 42px; color: #72848f; font-size: .76rem; }
.legal-notice { margin-bottom: 35px; padding: 18px 20px; border: 1px solid rgba(145,255,79,.18); border-radius: 12px; color: #b9c7ce; background: rgba(145,255,79,.045); font-size: .82rem; line-height: 1.6; }
.legal-section { padding: 28px 0; border-top: 1px solid rgba(157,196,216,.15); }
.legal-section h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; text-transform: none; }
.legal-section p, .legal-section li { color: #9dabb4; font-size: .9rem; line-height: 1.78; }
.legal-section ul { padding-left: 19px; }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; width: min(560px, 100%); }
  .auth-intro { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 3px 18px; }
  .legal-nav strong { width: 100%; }
}

@media (max-width: 700px) {
  .portal-main { padding: 106px 15px 55px; }
  .page-heading { display: block; }
  .page-heading p { margin-top: 19px; }
  .balance-grid { grid-template-columns: 1fr; }
  .balance-grid > div { border-right: 0; border-bottom: 1px solid rgba(157,196,216,.13); }
  .project-row { grid-template-columns: 1fr 1fr; }
  .project-row .outline-button { grid-column: 1 / -1; }
  .dialog-stats { grid-template-columns: 1fr 1fr; }
  .dialog-stats div:nth-child(2) { border-right: 0; }
  .dialog-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(157,196,216,.13); }
  .auth-main { padding: 100px 14px 42px; }
  .auth-card { padding: 25px 19px; }
  .otp-cells { gap: 4px; }
}