/* Estland ID v41 */
/* Critical visibility guard: author CSS must never override the HTML hidden attribute. */
[hidden] {
  display: none !important;
}


:root {
  --id-bg: #050a12;
  --id-panel: rgba(10, 18, 30, .9);
  --id-panel-2: rgba(15, 26, 42, .82);
  --id-border: rgba(151, 175, 208, .16);
  --id-text: #f4f8ff;
  --id-muted: #91a2b8;
  --id-gold: #f4bb55;
  --id-gold-2: #ffd77f;
  --id-blue: #39a8ff;
  --id-green: #43d69d;
  --id-danger: #ff6d7c;
}

.page-account {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(33, 132, 218, .12), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(244, 187, 85, .08), transparent 28rem),
    var(--id-bg);
}

.id-main { min-height: calc(100vh - 210px); }

.id-auth-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr);
  border: 1px solid var(--id-border);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(4, 9, 16, .72);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .38);
  min-height: 690px;
}

.id-auth-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 64px;
  background:
    linear-gradient(145deg, rgba(5, 15, 28, .2), rgba(6, 14, 24, .94)),
    url('/assets/brand/estland-game-banner.webp') center/cover no-repeat;
}

.id-auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 9, 17, .98) 0%, rgba(4, 9, 17, .25) 58%, rgba(4, 9, 17, .2) 100%),
    linear-gradient(110deg, rgba(4, 9, 17, .15), rgba(4, 9, 17, .72));
}

.id-orbit { position: absolute; border: 1px solid rgba(244, 187, 85, .22); border-radius: 999px; transform: rotate(-16deg); }
.id-orbit-one { width: 440px; height: 190px; right: -160px; top: 80px; }
.id-orbit-two { width: 650px; height: 280px; right: -260px; top: 40px; opacity: .55; }

.id-visual-card { position: relative; z-index: 1; max-width: 590px; }
.id-visual-kicker, .id-kicker { color: var(--id-gold); font-size: .75rem; font-weight: 900; letter-spacing: .22em; }
.id-visual-card h1 { margin: 14px 0 18px; color: #fff; font-size: clamp(2.8rem, 5vw, 5.1rem); line-height: .96; letter-spacing: -.055em; }
.id-visual-card > p { margin: 0; max-width: 520px; color: #b9c7d8; font-size: 1.05rem; line-height: 1.7; }
.id-visual-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.id-visual-stats article { padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(6, 13, 24, .62); backdrop-filter: blur(12px); }
.id-visual-stats strong { display: block; color: #fff; font-size: 1.05rem; }
.id-visual-stats span { display: block; margin-top: 4px; color: #8091a7; font-size: .76rem; }

.id-auth-card { padding: 46px 42px; background: linear-gradient(180deg, rgba(12, 21, 35, .98), rgba(7, 13, 23, .98)); }
.id-auth-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.id-auth-brand img { width: 46px; height: 46px; object-fit: contain; }
.id-auth-brand strong { display: block; color: #fff; font-size: 1.25rem; }
.id-auth-brand span { display: block; margin-top: 3px; color: var(--id-muted); font-size: .86rem; }

.id-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 22px; border: 1px solid var(--id-border); border-radius: 14px; background: rgba(255,255,255,.025); }
.id-auth-tabs button { border: 0; border-radius: 10px; padding: 11px 14px; color: var(--id-muted); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.id-auth-tabs button.is-active { color: #07101b; background: linear-gradient(135deg, var(--id-gold-2), var(--id-gold)); box-shadow: 0 7px 22px rgba(244,187,85,.16); }

.id-google-button { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; color: #f5f8fd; background: rgba(255,255,255,.045); text-decoration: none; font-weight: 800; transition: .18s ease; }
.id-google-button:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.075); transform: translateY(-1px); }
.id-google-button svg { width: 20px; height: 20px; }
.id-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #6f8198; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; }
.id-divider::before, .id-divider::after { content: ""; height: 1px; flex: 1; background: var(--id-border); }

.id-form { display: grid; gap: 15px; }
.id-form label, .id-settings-form label { display: grid; gap: 7px; }
.id-form label > span, .id-settings-form label > span { color: #cbd6e4; font-size: .79rem; font-weight: 800; }
.id-form input, .id-settings-form input { width: 100%; min-height: 48px; border: 1px solid var(--id-border); border-radius: 12px; padding: 0 14px; color: #fff; background: rgba(2, 7, 14, .7); outline: none; box-sizing: border-box; font: inherit; transition: .18s ease; }
.id-form input:focus, .id-settings-form input:focus { border-color: rgba(57,168,255,.68); box-shadow: 0 0 0 3px rgba(57,168,255,.1); }
.id-form input::placeholder, .id-settings-form input::placeholder { color: #586a81; }
.id-form input:disabled, .id-settings-form input:disabled { opacity: .62; }
.id-password-wrap { position: relative; }
.id-password-wrap input { padding-right: 68px; }
.id-password-wrap button { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); border: 0; padding: 6px; color: #8fa2b9; background: transparent; font-size: .72rem; font-weight: 900; cursor: pointer; }
.id-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.id-checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px !important; cursor: pointer; }
.id-checkbox input { width: 17px; min-height: 17px; height: 17px; margin-top: 1px; accent-color: var(--id-gold); }
.id-checkbox span { color: #93a4b9 !important; font-weight: 600 !important; line-height: 1.45; }
.id-terms { margin-top: 2px; }
.id-text-button, .id-resend-button, .id-back-button { border: 0; padding: 0; color: var(--id-gold); background: transparent; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.id-back-button { margin-bottom: 22px; color: #9eb0c5; }
.id-primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; border: 0; border-radius: 13px; padding: 0 20px; color: #08111b; background: linear-gradient(135deg, var(--id-gold-2), var(--id-gold)); box-shadow: 0 14px 32px rgba(244,187,85,.15); font: inherit; font-weight: 950; cursor: pointer; transition: .18s ease; }
.id-primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(244,187,85,.21); }
.id-primary-button:disabled { opacity: .48; cursor: not-allowed; }
.id-primary-button i { font-style: normal; font-size: 1.1rem; }
.id-primary-button.is-loading span { opacity: .7; }
.id-auth-footer { margin: 24px 0 0; color: #61738a; text-align: center; font-size: .73rem; }
.id-form-status { margin-bottom: 15px; border: 1px solid rgba(57,168,255,.24); border-radius: 12px; padding: 11px 13px; color: #bfe1ff; background: rgba(57,168,255,.08); font-size: .8rem; line-height: 1.5; }
.id-form-status.is-error { border-color: rgba(255,109,124,.3); color: #ffc3ca; background: rgba(255,109,124,.08); }
.id-form-status.is-success { border-color: rgba(67,214,157,.3); color: #b8f4dc; background: rgba(67,214,157,.08); }
.id-step-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 14px; color: #0a121c; background: linear-gradient(135deg, var(--id-gold-2), var(--id-gold)); font-size: 1.25rem; }
.id-auth-card h2 { margin: 0 0 9px; color: #fff; font-size: 1.5rem; }
.id-step-copy { margin: 0 0 22px; color: var(--id-muted); line-height: 1.55; }
.id-step-copy strong { color: #eaf2fc; }
.id-code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.id-code-inputs input { padding: 0; text-align: center; font-size: 1.35rem; font-weight: 900; }
.id-resend-button { display: block; margin: 18px auto 0; }

/* Global account controls inserted into the main header */
.portal-coins-button, .portal-account-button { text-decoration: none; }
.portal-coins-button { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 13px; border: 1px solid rgba(244,187,85,.28); border-radius: 12px; color: #f8d991; background: rgba(244,187,85,.075); font-size: .78rem; font-weight: 950; white-space: nowrap; }
.portal-coins-button:hover { border-color: rgba(244,187,85,.58); background: rgba(244,187,85,.12); }
.portal-coins-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-account-button { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(151,175,208,.18); border-radius: 12px; color: #e9f0f8; background: rgba(255,255,255,.035); transition: .18s ease; }
.portal-account-button:hover, .portal-account-button.is-active { border-color: rgba(244,187,85,.45); color: var(--id-gold); background: rgba(244,187,85,.08); }
.portal-account-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.portal-account-button img { width: 100%; height: 100%; object-fit: cover; }
.portal-account-dot { position: absolute; width: 8px; height: 8px; margin: -28px 0 0 29px; border: 2px solid #08111b; border-radius: 50%; background: var(--id-green); }
.portal-account-button { position: relative; }
.portal-drawer-id { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 14px; }
.portal-drawer-id a { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--id-border); border-radius: 12px; color: #eaf2fb; text-decoration: none; font-weight: 850; }
.portal-drawer-id a:first-child { padding: 0 18px; }
.portal-drawer-id a:last-child { width: 48px; color: var(--id-gold); }

/* Dashboard */
.id-dashboard { width: min(1380px, calc(100% - 34px)); margin: 34px auto 70px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; }
.id-sidebar { position: sticky; top: 94px; align-self: start; min-height: 650px; padding: 18px; border: 1px solid var(--id-border); border-radius: 22px; background: linear-gradient(180deg, rgba(13,23,38,.94), rgba(7,13,23,.96)); box-shadow: 0 28px 70px rgba(0,0,0,.24); }
.id-profile-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--id-border); border-radius: 15px; background: rgba(255,255,255,.025); }
.id-avatar, .id-character-avatar { display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(244,187,85,.24); border-radius: 13px; color: #07101a; background: linear-gradient(135deg, var(--id-gold-2), var(--id-gold)); font-weight: 950; }
.id-avatar { width: 46px; height: 46px; flex: 0 0 46px; }
.id-avatar img, .id-character-avatar img { width: 100%; height: 100%; object-fit: cover; }
.id-profile-card strong { display: block; max-width: 145px; overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.id-profile-card span { display: block; max-width: 145px; overflow: hidden; margin-top: 4px; color: #7f91a8; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.id-side-nav { display: grid; gap: 6px; margin-top: 18px; }
.id-side-nav button { display: flex; align-items: center; gap: 12px; min-height: 44px; border: 1px solid transparent; border-radius: 12px; padding: 0 13px; color: #91a3b9; background: transparent; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; text-align: left; }
.id-side-nav button span { width: 18px; color: #72869e; text-align: center; }
.id-side-nav button:hover { color: #eef5fc; background: rgba(255,255,255,.035); }
.id-side-nav button.is-active { border-color: rgba(244,187,85,.16); color: #fff; background: linear-gradient(90deg, rgba(244,187,85,.12), rgba(244,187,85,.035)); }
.id-side-nav button.is-active span { color: var(--id-gold); }
.id-logout-button { width: 100%; min-height: 43px; margin-top: 24px; border: 1px solid rgba(255,109,124,.16); border-radius: 12px; color: #ff9eaa; background: rgba(255,109,124,.055); font: inherit; font-weight: 850; cursor: pointer; }
.id-dashboard-content { min-width: 0; }
.id-dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 10px 4px; }
.id-dashboard-head h1 { margin: 7px 0 5px; color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.04em; }
.id-dashboard-head p { margin: 0; color: var(--id-muted); }
.id-play-now { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 13px; color: #07101a; background: linear-gradient(135deg, var(--id-gold-2), var(--id-gold)); text-decoration: none; font-weight: 950; }
.id-connect-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid rgba(57,168,255,.24); border-radius: 18px; background: linear-gradient(100deg, rgba(57,168,255,.11), rgba(57,168,255,.025)); }
.id-connect-logo, .id-service-logo { display: grid; place-items: center; border-radius: 14px; font-weight: 950; }
.id-connect-logo { width: 48px; height: 48px; color: #fff; background: #1c72df; }
.id-connect-banner strong { display: block; color: #fff; }
.id-connect-banner p { margin: 4px 0 0; color: #8fa1b6; font-size: .84rem; }
.id-connect-banner a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid rgba(57,168,255,.3); border-radius: 11px; color: #c7eaff; background: rgba(57,168,255,.1); text-decoration: none; font-size: .78rem; font-weight: 900; }
.id-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.id-metric-grid article, .id-detail-grid article { min-width: 0; padding: 19px; border: 1px solid var(--id-border); border-radius: 18px; background: linear-gradient(150deg, rgba(15,26,43,.86), rgba(7,13,23,.92)); }
.id-metric-grid span, .id-detail-grid span { color: #8496ac; font-size: .76rem; font-weight: 750; }
.id-metric-grid strong, .id-detail-grid strong { display: block; margin: 9px 0 4px; color: #fff; font-size: clamp(1.45rem, 2.5vw, 2.25rem); letter-spacing: -.035em; }
.id-metric-grid small, .id-detail-grid small { color: #65778e; font-size: .72rem; }
.id-coin-metric { position: relative; overflow: hidden; border-color: rgba(244,187,85,.2) !important; }
.id-coin-metric::after { content: ""; position: absolute; width: 110px; height: 110px; right: -42px; top: -42px; border-radius: 50%; background: rgba(244,187,85,.12); filter: blur(10px); }
.id-coin-metric strong { color: #ffd984; }
.id-coin-metric i { font-style: normal; font-size: .9em; }
.id-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 14px; margin-top: 14px; }
.id-panel { border: 1px solid var(--id-border); border-radius: 19px; background: linear-gradient(150deg, rgba(15,26,43,.83), rgba(7,13,23,.92)); box-shadow: 0 20px 50px rgba(0,0,0,.13); }
.id-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.id-panel-head span { color: var(--id-gold); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.id-panel-head h2 { margin: 5px 0 0; color: #fff; font-size: 1.08rem; }
.id-panel-head button { border: 0; color: #9eb0c5; background: transparent; font: inherit; font-size: .76rem; font-weight: 850; cursor: pointer; }
.id-activity-panel, .id-character-panel { padding: 20px; }
.id-mini-chart { height: 210px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 10px; margin-top: 22px; padding: 10px 0 24px; border-bottom: 1px solid var(--id-border); }
.id-mini-bar-wrap { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.id-mini-bar { width: min(34px, 70%); min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #55b9ff, #176fc0); box-shadow: 0 8px 22px rgba(57,168,255,.12); }
.id-mini-bar-wrap strong { color: #8193aa; font-size: .65rem; font-weight: 800; }
.id-character-row { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--id-border); }
.id-character-avatar { width: 52px; height: 52px; flex: 0 0 52px; }
.id-character-row strong { display: block; color: #fff; }
.id-character-row span { display: block; margin-top: 4px; color: #7f91a8; font-size: .76rem; }
.id-character-list { margin: 14px 0 0; }
.id-character-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.id-character-list dt { color: #7f91a8; font-size: .78rem; }
.id-character-list dd { margin: 0; color: #eaf2fb; font-size: .82rem; font-weight: 850; }
.id-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.id-section-head h2 { margin: 7px 0 5px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.035em; }
.id-section-head p { margin: 0; color: var(--id-muted); }
.id-range-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--id-border); border-radius: 13px; background: rgba(255,255,255,.025); }
.id-range-tabs button { border: 0; border-radius: 9px; padding: 8px 12px; color: #8295ac; background: transparent; font: inherit; font-size: .75rem; font-weight: 900; cursor: pointer; }
.id-range-tabs button.is-active { color: #08111b; background: var(--id-gold); }
.id-chart-panel { padding: 22px; }
.id-chart-summary { display: flex; gap: 38px; margin-bottom: 24px; }
.id-chart-summary span { color: #8294aa; font-size: .73rem; }
.id-chart-summary strong { display: block; margin-top: 6px; color: #fff; font-size: 1.45rem; }
.id-main-chart { height: 330px; display: grid; grid-template-columns: repeat(var(--id-chart-columns, 7), minmax(12px, 1fr)); align-items: end; gap: 9px; padding: 18px 8px 34px; border-bottom: 1px solid var(--id-border); background-image: linear-gradient(rgba(148,170,198,.06) 1px, transparent 1px); background-size: 100% 25%; }
.id-chart-column { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.id-chart-bars { width: 100%; height: calc(100% - 22px); display: flex; justify-content: center; align-items: end; gap: 3px; }
.id-play-bar { width: min(26px, 66%); min-height: 2px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #55b9ff, #176fc0); }
.id-visit-bar { width: 4px; min-height: 2px; border-radius: 4px; background: var(--id-gold); }
.id-chart-column label { max-width: 100%; overflow: hidden; color: #74869d; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.id-chart-legend { display: flex; gap: 18px; margin-top: 14px; color: #8294aa; font-size: .72rem; }
.id-chart-legend span { display: flex; align-items: center; gap: 7px; }
.id-chart-legend i, .id-chart-legend b { width: 10px; height: 10px; border-radius: 3px; }
.id-chart-legend i { background: #319ce8; }
.id-chart-legend b { background: var(--id-gold); }
.id-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.id-wallet-card { position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: center; padding: 34px; margin-bottom: 14px; border: 1px solid rgba(244,187,85,.22); border-radius: 22px; background: linear-gradient(125deg, #101c2d, #0b1422 58%, #161a22); }
.id-wallet-card::before { content: "ESTLAND"; position: absolute; right: 24px; bottom: -24px; color: rgba(255,255,255,.025); font-size: 7rem; font-weight: 950; letter-spacing: -.07em; }
.id-wallet-glow { position: absolute; width: 260px; height: 260px; right: -70px; top: -90px; border-radius: 50%; background: rgba(244,187,85,.14); filter: blur(24px); }
.id-wallet-card > span, .id-wallet-card > strong, .id-wallet-card > small { position: relative; z-index: 1; }
.id-wallet-card > span { color: #9caec2; font-size: .74rem; font-weight: 900; letter-spacing: .15em; }
.id-wallet-card > strong { display: flex; align-items: center; gap: 14px; margin: 13px 0 8px; color: #ffd984; font-size: clamp(3rem, 7vw, 5.7rem); line-height: .9; letter-spacing: -.06em; }
.id-wallet-card > strong i { font-style: normal; font-size: .45em; }
.id-wallet-card > small { color: #71839a; font-size: .72rem; letter-spacing: .12em; }
.id-coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .7fr); gap: 14px; }
.id-exchange-card { display: grid; grid-template-columns: auto 1fr; gap: 17px; padding: 24px; }
.id-exchange-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #101821; background: var(--id-gold); font-size: 1.5rem; }
.id-exchange-card > div:nth-child(2) > span { color: #8496ac; font-size: .77rem; }
.id-exchange-card > div:nth-child(2) > strong { display: block; margin: 7px 0; color: #fff; font-size: 1.75rem; }
.id-exchange-card p { margin: 0; color: #8193aa; font-size: .81rem; line-height: 1.55; }
.id-exchange-card p b { color: #e9c876; }
.id-exchange-result { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid rgba(244,187,85,.13); border-radius: 13px; background: rgba(244,187,85,.045); }
.id-exchange-result span { color: #8496ac; font-size: .77rem; }
.id-exchange-result strong { color: #ffd984; }
.id-exchange-card .id-primary-button { grid-column: 1 / -1; }
.id-ledger-card { padding: 22px; }
.id-ledger-list { display: grid; gap: 9px; margin-top: 17px; }
.id-ledger-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--id-border); border-radius: 12px; background: rgba(255,255,255,.02); }
.id-ledger-item i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #0a141e; background: var(--id-gold); font-style: normal; }
.id-ledger-item strong { display: block; color: #fff; font-size: .8rem; }
.id-ledger-item span { display: block; margin-top: 3px; color: #71839a; font-size: .68rem; }
.id-ledger-item b { color: #77e2b8; font-size: .85rem; }
.id-empty { color: #71839a; font-size: .82rem; }
.id-connections-list { display: grid; gap: 12px; }
.id-connection-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--id-border); border-radius: 17px; background: var(--id-panel); }
.id-service-logo { width: 48px; height: 48px; }
.id-service-google { color: #3178ea; background: #fff; }
.id-service-roblox { color: #fff; background: #1c72df; }
.id-connection-card strong { display: block; color: #fff; }
.id-connection-card span { display: block; margin-top: 4px; color: #7f91a8; font-size: .78rem; }
.id-connection-card a { min-height: 39px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--id-border); border-radius: 11px; color: #dbe7f4; background: rgba(255,255,255,.035); text-decoration: none; font-size: .76rem; font-weight: 900; }
.id-security-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px; margin-bottom: 12px; }
.id-security-card strong { color: #fff; }
.id-security-card p { margin: 5px 0 0; color: #7f91a8; font-size: .8rem; }
.id-security-card button { min-height: 39px; border: 1px solid var(--id-border); border-radius: 11px; padding: 0 14px; color: #dce7f3; background: rgba(255,255,255,.035); font: inherit; font-size: .75rem; font-weight: 900; cursor: pointer; }
.id-settings-form { max-width: 680px; display: grid; gap: 16px; padding: 24px; }
.id-settings-form .id-primary-button { justify-self: start; min-width: 220px; }

@media (max-width: 1120px) {
  .id-auth-shell { grid-template-columns: 1fr 430px; }
  .id-auth-visual { padding: 42px; }
  .id-visual-stats { grid-template-columns: 1fr; max-width: 220px; }
  .id-visual-stats article { display: flex; justify-content: space-between; gap: 12px; }
  .id-visual-stats span { margin: 0; }
  .id-dashboard { grid-template-columns: 230px minmax(0, 1fr); }
  .id-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .id-dashboard-grid, .id-coin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .id-auth-shell { width: min(560px, calc(100% - 24px)); grid-template-columns: 1fr; margin-top: 24px; }
  .id-auth-visual { min-height: 320px; padding: 30px; }
  .id-visual-card h1 { font-size: 2.55rem; }
  .id-visual-stats { display: none; }
  .id-auth-card { padding: 30px 24px; }
  .id-dashboard { width: min(100% - 24px, 860px); grid-template-columns: 1fr; }
  .id-sidebar { position: static; min-height: 0; padding: 12px; }
  .id-profile-card { margin-bottom: 10px; }
  .id-side-nav { display: flex; overflow-x: auto; gap: 6px; margin-top: 0; padding-bottom: 3px; scrollbar-width: none; }
  .id-side-nav::-webkit-scrollbar { display: none; }
  .id-side-nav button { flex: 0 0 auto; min-height: 40px; padding: 0 12px; }
  .id-side-nav button span { display: none; }
  .id-logout-button { display: none; }
  .id-dashboard-head { align-items: flex-start; }
  .id-dashboard-head h1 { font-size: 2.3rem; }
  .id-connect-banner { grid-template-columns: auto 1fr; }
  .id-connect-banner a { grid-column: 1 / -1; justify-content: center; }
  .id-section-head { align-items: flex-start; flex-direction: column; }
  .id-range-tabs { width: 100%; }
  .id-range-tabs button { flex: 1; }
  .id-main-chart { overflow-x: auto; }
}

@media (max-width: 720px) {
  .portal-coins-button { height: 38px; padding: 0 10px; font-size: .7rem; }
  .portal-account-button { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .portal-header-actions .portal-coins-button { display: none !important; }
  .id-auth-shell { margin-bottom: 34px; min-height: 0; }
  .id-auth-visual { min-height: 250px; }
  .id-visual-card > p { font-size: .92rem; }
  .id-auth-card { padding: 26px 18px; }
  .id-form-row { align-items: flex-start; }
  .id-dashboard { margin-top: 18px; margin-bottom: 100px; }
  .id-dashboard-head { display: block; }
  .id-head-actions { margin-top: 16px; }
  .id-play-now { width: 100%; justify-content: center; box-sizing: border-box; }
  .id-metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .id-metric-grid article { padding: 15px; }
  .id-metric-grid strong { font-size: 1.45rem; }
  .id-mini-chart { gap: 5px; }
  .id-detail-grid { grid-template-columns: 1fr; gap: 9px; }
  .id-chart-panel { padding: 16px; }
  .id-chart-summary { gap: 18px; }
  .id-main-chart { height: 260px; gap: 6px; padding-left: 2px; padding-right: 2px; }
  .id-wallet-card { min-height: 170px; padding: 24px; }
  .id-wallet-card > strong { font-size: 3.2rem; }
  .id-exchange-card { grid-template-columns: 1fr; padding: 19px; }
  .id-exchange-result, .id-exchange-card .id-primary-button { grid-column: auto; }
  .id-security-card { align-items: flex-start; flex-direction: column; }
  .id-security-card button { width: 100%; }
}

@media (max-width: 430px) {
  .id-auth-visual { min-height: 210px; padding: 24px; }
  .id-visual-card h1 { font-size: 2.05rem; }
  .id-visual-card > p { display: none; }
  .id-auth-brand img { width: 40px; height: 40px; }
  .id-code-inputs { gap: 5px; }
  .id-code-inputs input { min-height: 44px; font-size: 1.1rem; }
  .id-metric-grid { grid-template-columns: 1fr; }
  .id-chart-summary { flex-direction: column; gap: 10px; }
}

.id-toast {
  position: fixed;
  z-index: 5000;
  right: 22px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(57,168,255,.28);
  border-radius: 13px;
  color: #c7e8ff;
  background: rgba(9,20,34,.96);
  box-shadow: 0 20px 55px rgba(0,0,0,.38);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-size: .82rem;
  font-weight: 750;
}
.id-toast.is-visible { opacity: 1; transform: translateY(0); }
.id-toast.is-success { border-color: rgba(67,214,157,.34); color: #b8f4dc; }
.id-toast.is-error { border-color: rgba(255,109,124,.34); color: #ffc3ca; }
@media (max-width: 720px) { .id-toast { right: 12px; bottom: 86px; left: 12px; max-width: none; } }
