* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eef2ff;
  background: #11121b;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 70% 0%, #4a202d 0%, #11121b 55%);
  font-size: 15px;
  line-height: 1.6;
}

a { color: #ff9aa4; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid #ffb6aa;
  outline-offset: 3px;
}

.site-header { border-bottom: 1px solid #70343f; background: #1c1720; }
.header-inner {
  max-width: 1440px;
  min-height: 76px;
  margin: auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { color: #f5f8ff; font-size: 21px; font-weight: 800; letter-spacing: -.5px; text-decoration: none; }
.brand span { color: #ff8290; }
.back-home { color: #b6c4d9; font-size: 14px; font-weight: 600; text-decoration: none; }
.back-home:hover { color: #fff; }

.account-layout { display: flex; max-width: 1440px; min-height: calc(100vh - 76px); margin: auto; }
.sidebar { flex: 0 0 240px; padding: 43px 20px 30px 36px; border-right: 1px solid #252e3d; }
.sidebar-label { padding: 0 12px; color: #77869e; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
nav { display: grid; gap: 7px; margin-top: 18px; }
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #aab8cc;
  font-weight: 600;
  text-decoration: none;
}
nav a span { width: 21px; color: #80a4d5; font-size: 20px; text-align: center; }
nav a:hover { background: #392531; color: #fff; }
nav a.active { background: #512a37; color: #fff3f1; }
nav a.active span { color: #ff9aa4; }

.content { flex: 1; min-width: 0; max-width: 1150px; padding: 52px 48px 80px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.04em; line-height: 1.2; }
h2 { font-size: 21px; letter-spacing: -.02em; }
p { color: #aab8cb; }

.welcome {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid #874051;
  border-radius: 20px;
  background: radial-gradient(circle at 90% 15%, #a53746 0%, transparent 50%), linear-gradient(120deg, #3c2330, #241d2a);
}
.welcome h1 span { color: #ffb0aa; overflow-wrap: anywhere; }
.welcome p { max-width: 590px; margin-bottom: 0; color: #bfcee2; font-size: 16px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: #ffbdaf; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #ff8290; box-shadow: 0 0 12px #ff8290; }
.section-heading { margin: 38px 0 20px; }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { margin-bottom: 0; font-size: 14px; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-card {
  display: flex;
  min-height: 226px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #65404b;
  border-radius: 16px;
  background: #29232d;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s, background .2s;
}
.quick-card:hover { transform: translateY(-3px); border-color: #ff8290; background: #392731; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: #632d3c; color: #ffb0aa; font-size: 22px; }
.card-icon.violet { background: #593047; color: #ffc0df; }
.card-icon.cyan { background: #61402e; color: #ffcc9b; }
.quick-card h3 { margin-bottom: 6px; font-size: 17px; }
.quick-card p { margin-bottom: 18px; font-size: 14px; }
.card-action { margin-top: auto; color: #ff9aa4; font-size: 13px; font-weight: 700; }
.account-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 22px; border-top: 1px solid #293345; }
.account-footer p, .account-footer form { margin: 0; }
.account-footer strong { color: #dbe8f9; overflow-wrap: anywhere; }

.settings-header { margin-bottom: 30px; }
.settings-header .eyebrow { margin-bottom: 12px; }
.settings-header p { margin-bottom: 0; }
.profile-avatar { display: block; width: 88px; height: 88px; border: 2px solid #ff9aa4; border-radius: 50%; object-fit: cover; }
.welcome-avatar { margin-bottom: 16px; }
.profile-panel .settings-panel-header { padding-bottom: 18px; }
.profile-content { display: flex; align-items: flex-start; gap: 24px; padding: 0 26px 26px; }
.profile-preview {
  display: grid;
  justify-items: center;
  flex: 0 0 140px;
  gap: 12px;
  padding: 20px 12px;
  border: 1px solid #65404b;
  border-radius: 14px;
  background: #211d27;
}
.profile-preview .profile-avatar { width: 96px; height: 96px; box-shadow: 0 0 0 4px #382734; }
.profile-placeholder { display: grid; place-items: center; background: #3a2a36; color: #ffb0aa; }
.profile-placeholder svg { width: 45px; height: 45px; }
.profile-preview-label { color: #cbbac5; font-size: 12px; font-weight: 700; text-align: center; }
.profile-controls { flex: 1; min-width: 0; }
.profile-content form { gap: 12px; max-width: none; margin: 0; }
.profile-content form + form { margin-top: 12px; }
.profile-content label { font-size: 14px; }
.profile-content input[type="file"] { min-width: 0; padding: 8px; border-color: #65404b; background: #211d27; color: #cbbac5; font-size: 13px; }
.profile-content input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: #59303f;
  color: #fff1f1;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.profile-content input[type="file"]::file-selector-button:hover { background: #754052; }
.profile-content p { margin: 0; font-size: 13px; }
.profile-content button { border-radius: 8px; }
.profile-content button.logout { border-color: #65404b; background: transparent; color: #e7cbd0; }
.profile-content button.logout:hover { background: #392731; }
.settings-panel {
  max-width: 760px;
  margin-bottom: 20px;
  border: 1px solid #65404b;
  border-radius: 18px;
  background: linear-gradient(135deg, #30242f, #241e28);
  overflow: hidden;
}
.settings-panel-header { display: flex; align-items: flex-start; gap: 16px; padding: 26px; }
.settings-panel-header h2 { margin: 0 0 3px; }
.settings-panel-header p { margin: 0; font-size: 14px; }
.settings-icon { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: #632d3c; color: #ffb0aa; font-size: 23px; }
.discord-icon { background: #34365f; color: #bec5ff; }
.settings-form form { max-width: none; margin: 0; gap: 0; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border-top: 1px solid #2c394e; cursor: pointer; }
.settings-row:hover { background: #392731; }
.settings-copy { display: grid; gap: 4px; min-width: 0; }
.settings-copy strong { color: #f0f5ff; font-size: 15px; }
.settings-copy > span { color: #aabbd1; font-size: 14px; font-weight: 400; }
.settings-toggle { position: relative; flex: 0 0 48px; width: 48px; height: 28px; }
.settings-toggle input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.settings-track { display: block; width: 48px; height: 28px; border: 1px solid #617089; border-radius: 999px; background: #344158; pointer-events: none; }
.settings-track::after { content: ""; display: block; width: 20px; height: 20px; margin: 3px; border-radius: 50%; background: #fff; transition: transform .2s; }
.settings-toggle input:checked + .settings-track { border-color: #ffb0aa; background: #d74458; }
.settings-toggle input:checked + .settings-track::after { transform: translateX(20px); }
.settings-toggle input:focus-visible + .settings-track { outline: 2px solid #b1d5ff; outline-offset: 3px; }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-top: 1px solid #2c394e; }
.settings-actions p { margin: 0; font-size: 13px; }
.connection-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 26px; border-top: 1px solid #2c394e; color: #adbed4; font-size: 14px; }
.connection-status strong { color: #b6efcf; }
.connection-status form { margin: 0 0 0 auto; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #68d79c; }
.status-dot.disconnected { background: #a7b3c5; }
.disconnected + strong { color: #e2e8f4; }
.connect-link { margin-left: auto; font-weight: 700; text-decoration: none; }
.connect-link:hover { text-decoration: underline; }

.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.support-compose, .support-help, .support-empty {
  border: 1px solid #65404b;
  border-radius: 18px;
  background: linear-gradient(135deg, #30242f, #241e28);
}
.support-compose { padding: 26px; }
.support-heading { display: flex; align-items: flex-start; gap: 16px; }
.support-heading h2 { margin: 0 0 3px; }
.support-heading p { margin: 0; font-size: 14px; }
.support-compose form { max-width: none; margin: 26px 0 0; gap: 20px; }
.support-compose label { gap: 9px; font-size: 14px; }
.support-compose input, .support-compose select, .support-compose textarea { background: #101927; }
.support-compose textarea { min-height: 165px; }
.support-compose input::placeholder, .support-compose textarea::placeholder { color: #8293ac; opacity: 1; }
.support-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.support-submit p { max-width: 290px; margin: 0; font-size: 13px; }
.support-help { padding: 24px; }
.support-help-icon, .support-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: #29385b; color: #a9c8ff; font-size: 20px; font-weight: 800; }
.support-help h2 { margin-bottom: 6px; font-size: 17px; }
.support-help p, .support-help li { font-size: 14px; }
.support-help ul { display: grid; gap: 10px; padding-left: 20px; margin: 20px 0; color: #b6c6da; }
.support-help li::marker { color: #7fb6ff; }
.support-help a { font-size: 13px; font-weight: 700; text-decoration: none; }
.support-help a:hover { text-decoration: underline; }
.support-tickets .section-heading { margin-top: 40px; }
.support-empty { display: flex; align-items: center; gap: 16px; padding: 24px; }
.support-empty-icon { flex: 0 0 42px; margin: 0; }
.support-empty strong { color: #edf4ff; }
.support-empty p { margin: 2px 0 0; font-size: 14px; }
.support-tickets .support-ticket { padding: 0; margin: 0 0 14px; border: 1px solid #65404b; border-radius: 16px; background: #27212b; }
.ticket-heading, .reply-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.ticket-heading { align-items: center; padding: 20px 24px; cursor: pointer; list-style: none; }
.ticket-heading::-webkit-details-marker { display: none; }
.ticket-heading:hover { background: #392731; border-radius: 16px; }
.ticket-heading > span:first-child { display: grid; min-width: 0; }
.ticket-title { color: #eef5ff; font-size: 18px; font-weight: 700; }
.ticket-owner { color: #aab8cb; font-size: 13px; overflow-wrap: anywhere; }
.ticket-meta { display: grid; justify-items: end; gap: 4px; }
.ticket-status { color: #b6efcf; font-size: 12px; font-weight: 700; }
.ticket-status.resolved { color: #d3c7cf; }
.ticket-toggle { color: #ff9aa4; font-size: 13px; font-weight: 700; }
.ticket-number { color: #ff9aa4; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.ticket-conversation { padding: 0 24px 24px; border-top: 1px solid #65404b; }
.ticket-message { margin-top: 20px; }
.ticket-message strong, .reply-heading strong { color: #dceaff; font-size: 13px; }
.ticket-message p, .support-ticket .reply p { margin: 6px 0 0; white-space: normal; }
.support-ticket .reply { margin: 18px 0 0; border-radius: 0 10px 10px 0; }
.support-ticket .reply-user { border-color: #80a4d5; background: #222e40; }
.ticket-conversation form { max-width: none; margin-bottom: 0; padding-top: 18px; border-top: 1px solid #49404a; }
.ticket-conversation textarea { min-height: 100px; }
.ticket-reminder { margin: -4px 0 0; font-size: 13px; }
.ticket-closed { margin: 20px 0 0; color: #d3c7cf; font-size: 14px; }
.ticket-conversation .resolve-ticket { border-color: #8dbfa0; background: #254638; }
.ticket-conversation .resolve-ticket:hover { background: #315a47; }

form { display: grid; gap: 16px; max-width: 600px; margin: 22px 0; }
label { display: grid; gap: 7px; color: #d6e0ef; font-weight: 600; }
input, select, textarea, button { font: inherit; }
input:not([type="checkbox"]), select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #3b4a60;
  border-radius: 10px;
  color: #eef2ff;
  background: #151d2b;
}
select { color-scheme: dark; }
.announcement-card { padding: 18px 24px; margin-bottom: 14px; border: 1px solid #65404b; border-radius: 16px; background: #27212b; overflow-wrap: anywhere; }
.announcement-card h3 { margin: 0 0 8px; }
.announcement-card p { margin: 8px 0; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: #e85a6b; }
textarea { min-height: 130px; resize: vertical; }
button {
  width: fit-content;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #b8203a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
button:hover { background: #df354c; }
button.logout { border-color: #3a4b64; background: #1a2433; color: #d5e2f4; }
button.logout:hover { background: #26364c; }
article, .notice { padding: 22px; margin: 18px 0; border: 1px solid #2d3b50; border-radius: 14px; background: #151d2b; overflow-wrap: anywhere; }
article h2, article h3 { margin-bottom: 8px; }
small { color: #9dacbf; }
.reply { padding: 12px 16px; margin: 12px 0; border-left: 3px solid #ff8290; background: #392731; }

@media (max-width: 900px) {
  .sidebar { flex-basis: 200px; padding-left: 20px; }
  .content { padding: 40px 28px 60px; }
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 66px; padding: 0 20px; }
  .account-layout { display: block; min-height: calc(100vh - 66px); }
  .sidebar { padding: 18px 20px 0; border-right: 0; }
  .sidebar-label { padding: 0; }
  nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  nav a { min-height: 40px; gap: 7px; padding: 7px 10px; font-size: 13px; }
  nav a span { width: 18px; font-size: 17px; }
  .content { padding: 26px 20px 50px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; }
  .account-footer { align-items: flex-start; flex-direction: column; }
  .settings-panel-header, .settings-row, .settings-actions, .connection-status { padding: 20px; }
  .profile-panel .settings-panel-header { padding-bottom: 16px; }
  .profile-content { flex-direction: column; gap: 18px; padding: 0 20px 20px; }
  .profile-preview { display: flex; align-items: center; width: 100%; flex-basis: auto; gap: 16px; padding: 14px; }
  .profile-preview .profile-avatar { width: 72px; height: 72px; }
  .profile-placeholder svg { width: 36px; height: 36px; }
  .profile-controls { width: 100%; }
  .settings-actions { align-items: flex-start; flex-direction: column; }
  .connect-link { width: 100%; margin-left: 18px; }
  .support-compose, .support-help { padding: 20px; }
  .ticket-heading { padding: 18px; }
  .ticket-meta { justify-items: start; }
  .ticket-conversation { padding: 0 18px 18px; }
  .support-submit { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-card, .settings-track::after { transition: none; }
}
