@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --account-primary: #2563eb;
  --account-primary-dark: #1d4ed8;
  --account-accent: #7c3aed;
  --account-bg: #f4f7fb;
  --account-surface: #ffffff;
  --account-text: #172033;
  --account-muted: #697386;
  --account-border: #e5eaf2;
  --account-success: #059669;
  --account-danger: #dc2626;
  --account-shadow: 0 16px 40px rgba(30, 64, 175, .08);
}

body.dashboard-page {
  min-width: 320px;
  margin: 0;
  color: var(--account-text);
  background: var(--account-bg);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.dashboard-page button, .dashboard-page input, .dashboard-page select, .dashboard-page textarea,
.dashboard-page .ui.button, .dashboard-page .ui.form { font-family:'Inter','Segoe UI',Arial,sans-serif!important; }

.dashboard-page .app.navtop { display: none; }
.dashboard-page *, .dashboard-page *::before, .dashboard-page *::after { box-sizing: border-box; }
.dashboard-page a { color: inherit; }

.account-shell { min-height: 100vh; display: flex; flex-direction: column; }
.account-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 84px;
  color: #172033;
  background: linear-gradient(110deg, rgba(232, 239, 255, .98), rgba(242, 239, 255, .98) 58%, rgba(255, 245, 239, .98));
  border-bottom: 1px solid #dbe4ff;
  box-shadow: 0 4px 18px rgba(67, 56, 202, .09);
  backdrop-filter: blur(18px);
}
.account-topbar__inner {
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.account-brand { display: inline-flex; align-items: center; gap: 12px; color: #172033 !important; text-decoration: none; }
.account-brand img { width: 162px; height: 91px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(96,165,250,.18)); }
.account-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.account-brand strong { font-size: 15px; letter-spacing: .01em; }
.account-brand small { margin-top: 3px; color: #64748b; font-size: 11px; }
.account-topnav { display: flex; align-items: center; gap: 6px; }
.account-topnav a, .account-topnav__user {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  color: #475569 !important;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}
.account-topnav a:hover { color: #1d4ed8 !important; background: #eff6ff; }
.account-topnav__user { color: #1e40af; background: #eff6ff; }

.account-workspace {
  width: min(1440px, calc(100% - 48px));
  margin: 28px auto 46px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  flex: 1;
}
.account-sidebar {
  position: sticky;
  top: 112px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 130px);
  border: 1px solid var(--account-border);
  border-radius: 20px;
  background: var(--account-surface);
  box-shadow: var(--account-shadow);
}
.account-sidebar::-webkit-scrollbar { width: 5px; }
.account-sidebar::-webkit-scrollbar-thumb { border-radius: 5px; background: #d8dfeb; }
.account-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}
.account-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 15px;
  background: rgba(255,255,255,.16);
  font-size: 20px;
  font-weight: 800;
}
.account-profile-card > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.account-profile-card small { color: #dbeafe; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.account-profile-card strong { overflow: hidden; margin: 2px 0; font-size: 15px; text-overflow: ellipsis; }
.account-profile-card span { color: #e0e7ff; font-size: 11px; }
.account-menu { padding: 12px; }
.account-menu__group { padding: 8px 0 12px; border-bottom: 1px solid #eef1f6; }
.account-menu__group:last-child { border: 0; }
.account-menu__label { padding: 5px 11px 8px; color: #98a2b3; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.account-menu__group--admin .account-menu__label { color: #7c3aed; }
.account-menu a[href*="/char_exchange"] { display: none !important; }
.account-menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  margin: 2px 0;
  padding: 0 12px;
  color: #526076 !important;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: .18s ease;
}
.account-menu a i.icon,
.account-menu__emoji {
  width: 22px;
  margin: 0 !important;
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  color: #8290a5;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}
.account-menu a > span:last-child { min-width: 0; line-height: 1.35; }
.account-menu a:hover { color: var(--account-primary) !important; background: #f1f5ff; transform: translateX(2px); }
.account-menu a.active { color: var(--account-primary) !important; background: #eaf1ff; }
.account-menu a.active::before { position: absolute; left: 0; width: 3px; height: 22px; content: ''; border-radius: 0 3px 3px 0; background: var(--account-primary); }
.account-menu a.active i.icon { color: var(--account-primary); }
.account-menu__group--admin a.active { color: var(--account-accent) !important; background: #f4efff; }
.account-menu__group--admin a.active::before { background: var(--account-accent); }

.account-main { min-width: 0; }
.account-page-heading { min-height: 72px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-page-heading span { color: var(--account-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.account-page-heading h1 { margin: 5px 0 0; color: var(--account-text); font-size: clamp(23px, 3vw, 32px); line-height: 1.2; }
.account-help-link { display: inline-flex; align-items: center; padding: 10px 14px; color: #526076 !important; border: 1px solid var(--account-border); border-radius: 11px; background: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }

.dashboard-page .ui.segment {
  border: 1px solid var(--account-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}
.dashboard-page .ui.header { color: var(--account-text); font-family: inherit; }
.dashboard-page .ui.message, .dashboard-page .ui.table, .dashboard-page .ui.label,
.dashboard-page .ui.dropdown, .dashboard-page .ui.menu { font-family:'Inter','Segoe UI',Arial,sans-serif; }
.dashboard-page .ui.header.dividing { padding-bottom: 14px; border-bottom-color: var(--account-border); }
.dashboard-page .ui.button {
  min-height:38px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  font-family:inherit;
  font-weight:700;
  line-height:1.2;
  text-align:center;
}
.dashboard-page .ui.button > i.icon { margin-top:0; margin-bottom:0; }
.dashboard-page .ui.primary.button, .dashboard-page .ui.positive.button { background: var(--account-primary); }
.dashboard-page .ui.primary.button:hover, .dashboard-page .ui.positive.button:hover { background: var(--account-primary-dark); }
.dashboard-page .ui.message { border-radius: 14px; box-shadow: none; }
.dashboard-page .ui.table { border-radius: 12px; }
.dashboard-page .ui.table thead th { color: #667085; background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.dashboard-page .ui.table td { border-top-color: #edf0f5; }
.dashboard-page .ui.form input, .dashboard-page .ui.form textarea, .dashboard-page .ui.form .dropdown { border-radius: 10px !important; }
.dashboard-page .ui.form .field > label { margin-bottom: 7px; color: #475467; font-size: 11px; }
.dashboard-page .account-main > .ui.header:first-child { display: none; }
.dashboard-page .account-main > .ui.info.message,
.dashboard-page .account-main > .ui.message.info { border: 1px solid #bfdbfe; background: #eff6ff; box-shadow: none; }
.dashboard-page .account-main .ui.segment.red { border-color: #e9d5ff !important; }
.dashboard-page .account-main .ui.segment.disabled { opacity: .58; }

.account-auth-main { width: min(1040px, calc(100% - 32px)); margin: 46px auto; flex: 1; }
.account-auth-main > .ui.grid { margin-top: 0; }
.register-page { display:grid; grid-template-columns:1fr minmax(360px,470px); gap:72px; align-items:center; min-height:560px; padding:20px 18px 45px; }
.register-intro { padding:20px 0; }
.register-kicker { display:inline-flex; align-items:center; gap:7px; color:#536dfe; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.register-kicker i { margin:0; font-size:14px; }
.register-intro h1 { margin:18px 0 18px; color:#182230; font-size:clamp(34px,4.5vw,58px); line-height:1.08; letter-spacing:-.045em; }
.register-intro h1 em { color:#536dfe; font-style:normal; }
.register-intro>p { max-width:440px; color:#667085; font-size:15px; line-height:1.75; }
.register-benefits { display:grid; gap:18px; margin-top:34px; }
.register-benefits>div { display:flex; align-items:center; gap:13px; }
.register-benefits>div>i { width:40px; height:40px; display:grid; place-items:center; margin:0; color:#536dfe; border-radius:12px; background:#eef2ff; }
.register-benefits span { display:grid; gap:3px; }
.register-benefits b { color:#344054; font-size:13px; }
.register-benefits small { color:#98a2b3; font-size:11px; }
.register-card { padding:32px; border:1px solid #e7ebf3; border-radius:12px; background:#fff; box-shadow:0 18px 40px rgba(40,55,90,.08); }
.register-card__head span { color:#536dfe; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.register-card__head h2 { margin:8px 0 5px; color:#182230; font-size:25px; }
.register-card__head p { margin:0 0 24px; color:#98a2b3; font-size:13px; }
.register-error { display:flex; gap:8px; align-items:center; margin-bottom:16px; padding:11px 12px; color:#b42318; border:1px solid #fecdca; border-radius:10px; background:#fff5f4; font-size:12px; }
.register-error i { margin:0; }
.register-form .field>label { color:#344054; font-size:11px; font-weight:700; }
.register-form input { min-height:44px !important; padding:0 13px !important; border:1px solid #dfe4ec !important; border-radius:6px !important; background:#fbfcfe !important; }
.register-form input:focus { border-color:#8b9cff !important; background:#fff !important; box-shadow:0 0 0 3px rgba(83,109,254,.12) !important; }
.register-form__row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.register-field-error { display:block; margin-top:6px; color:#d92d20; font-size:11px; }
.register-turnstile { display:flex; flex-direction:column; align-items:center; margin:16px 0 2px !important; }
.register-turnstile .register-field-error { width:300px; max-width:100%; text-align:left; }
.register-terms { display:flex; align-items:flex-start; gap:9px; margin:18px 0 2px; color:#667085; font-size:11px; line-height:1.5; cursor:pointer; }
.register-terms input { position:absolute; width:1px !important; height:1px !important; opacity:0; }
.register-checkmark { width:17px; height:17px; flex:none; display:grid; place-items:center; margin-top:1px; color:#fff; border:1px solid #cbd5e1; border-radius:4px; background:#fff; }
.register-checkmark i { display:none; margin:0; font-size:10px; }
.register-terms input:checked + .register-checkmark { border-color:#536dfe; background:#536dfe; }
.register-terms input:checked + .register-checkmark i { display:block; }
.register-terms a { color:#536dfe !important; font-weight:700; }
.register-submit { width:100%; min-height:46px !important; margin-top:12px !important; border-radius:6px !important; background:#536dfe !important; box-shadow:0 8px 18px rgba(83,109,254,.22); }
.register-submit i { margin-left:8px !important; }
.register-divider { display:flex; align-items:center; gap:12px; margin:21px 0 15px; color:#98a2b3; font-size:11px; }
.register-divider::before,.register-divider::after { flex:1; height:1px; content:''; background:#edf0f5; }
.register-google { width:100%; min-height:44px; display:flex; align-items:center; justify-content:center; gap:10px; color:#344054; border:1px solid #dfe4ec; border-radius:6px; background:#fff; font-size:12px; font-weight:700; cursor:pointer; }
.register-google:hover { border-color:#aab7d4; background:#f8fafc; }
.register-google b { color:#4285f4; font-size:17px; font-family:Arial,sans-serif; }
.register-login { margin:20px 0 0; color:#98a2b3; font-size:12px; text-align:center; }
.register-login a { color:#536dfe !important; font-weight:800; }
@media (max-width:800px) { .register-page { grid-template-columns:1fr; gap:24px; min-height:0; padding-top:10px; } .register-intro { padding-bottom:0; } .register-intro h1 { font-size:38px; } }
@media (max-width:480px) { .register-card { padding:23px 18px; } .register-form__row { grid-template-columns:1fr; gap:0; } }
.account-footer {
  min-height: 64px;
  padding: 18px 32px;
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #8a96a8;
  border-top: 1px solid var(--account-border);
  background: #fff;
  font-size: 11px;
}

.account-stat-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-stat-card { padding: 20px; border: 1px solid var(--account-border); border-radius: 17px; background: #fff; box-shadow: 0 8px 25px rgba(15,23,42,.04); }
.account-stat-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--account-muted); font-size: 11px; font-weight: 700; }
.account-stat-card__icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--account-primary); border-radius: 11px; background: #eaf1ff; }
.account-stat-card__icon i { margin: 0; }
.account-stat-card strong { display: block; margin: 13px 0 4px; font-size: 24px; line-height: 1; }
.account-stat-card small { color: #98a2b3; }
.account-panel-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.account-modern-panel { padding: 22px; border: 1px solid var(--account-border); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.04); }
.account-modern-panel h3 { margin: 0 0 16px; font-size: 16px; }
.account-info-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #eef1f6; font-size: 12px; }
.account-info-row:last-child { border: 0; }
.account-info-row span { color: var(--account-muted); }
.account-quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-quick-links a { min-height: 72px; padding: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #334155 !important; border: 1px solid var(--account-border); border-radius: 13px; background: #f8fafc; text-align: center; text-decoration: none; transition: .2s ease; }
.account-quick-links a:hover { color: var(--account-primary) !important; border-color: #bfdbfe; background: #eff6ff; transform: translateY(-2px); }
.account-quick-links i { margin: 0 0 7px !important; color: var(--account-primary); text-align: center; }
.account-quick-links span { width: 100%; display: block; font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; }
.account-main .ui.yellow.message,.account-main .ui.warning.message { color:#4338ca; border:1px solid #c7d2fe; background:linear-gradient(135deg,#f5f7ff,#eef2ff); box-shadow:0 8px 22px rgba(79,70,229,.07); }
.security-alert__link { color:#dc2626 !important; font-weight:800; text-decoration:underline; text-underline-offset:2px; }
.security-alert__link:hover { color:#991b1b !important; }
.account-main .ui.yellow.message .header,.account-main .ui.warning.message .header,.account-main .ui.yellow.message a,.account-main .ui.warning.message a { color:#3730a3; }
.account-notice { position:relative; overflow:hidden; padding:11px 14px!important; display:flex!important; align-items:center; gap:9px; border:1px solid #a5b4fc!important; border-left:4px solid #4f46e5!important; border-radius:12px!important; background:linear-gradient(135deg,#eef2ff,#e0e7ff)!important; box-shadow:0 9px 22px rgba(79,70,229,.13)!important; }
.account-notice::after { position:absolute; right:-24px; top:-30px; width:90px; height:90px; content:''; border-radius:50%; background:rgba(99,102,241,.08); }
.account-notice>i.icon { width:auto; height:auto; margin:0!important; display:block; flex:0 0 auto; color:#4f46e5; border-radius:0; background:none; font-size:16px; box-shadow:none; }.account-notice>span { position:relative; z-index:1; flex:1; color:#3730a3; font-weight:600; line-height:1.4; }.account-notice a { color:#312e81!important; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.account-admin-panel { grid-column: 1 / -1; border-color: #ddd6fe; background: linear-gradient(135deg, #fff, #faf7ff); }
.account-admin-panel .account-quick-links { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .account-workspace { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
  .account-panel-grid { grid-template-columns: 1fr; }
  .account-admin-panel { grid-column: auto; }
}
@media (max-width: 767px) {
  .account-topbar { height: auto; position: relative; }
  .account-topbar__inner { width: calc(100% - 28px); padding: 6px 0; flex-direction: column; align-items: center; gap: 12px; }
  .account-brand span { display: none; }
  .account-brand img { width: 135px; height: 76px; }
  .account-topnav { width: 100%; justify-content: center; flex-wrap: wrap; }
  .account-topnav__user, .account-topnav a:first-child { display: none; }
  .account-topnav a { min-height: 32px; padding: 0 9px; font-size: 11px; }
  .account-workspace { width: calc(100% - 24px); margin-top: 16px; grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-sidebar { max-height: none; overflow: visible; }
  .account-profile-card { padding: 16px; }
  .account-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .account-menu__group { border-bottom: 0; }
  .account-menu__group--admin { grid-column: 1 / -1; }
  .account-page-heading { min-height: 58px; }
  .account-help-link { display: none; }
  .account-stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .account-stat-card { padding: 16px; }
  .account-admin-panel .account-quick-links { grid-template-columns: 1fr 1fr; }
  .account-footer { flex-direction: column; gap: 4px; text-align: center; }
}
@media (max-width: 480px) {
  .account-menu { grid-template-columns: 1fr; }
  .account-menu__group--admin { grid-column: auto; }
  .account-quick-links, .account-admin-panel .account-quick-links { grid-template-columns: 1fr; }
}
