:root {
    color-scheme: light;
    --bg: #f7f8fc;
    --surface: #fff;
    --text: #131b36;
    --muted: #69728c;
    --line: #e7eaf2;
    --primary: #5945de;
    --primary-dark: #4432c4;
    --primary-soft: #f1efff;
    --success: #097a51;
    --radius: 18px;
    --shadow: 0 17px 50px rgba(28,36,82,.055);
    font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #a99cf7; outline-offset: 3px; }
.container { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }
.skip-link { position: absolute; top: -100px; left: 15px; z-index: 100; padding: 8px 14px; background: white; }
.skip-link:focus { top: 10px; }
.site-header { background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { color: var(--text); display: inline-flex; gap: 11px; align-items: center; font-size: 1.19rem; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-symbol { width: 35px; height: 35px; display: inline-grid; place-items: center; border-radius: 11px; background: var(--primary); color: white; font-size: 1.35rem; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px 25px; align-items: center; }
.main-nav a, .nav-logout { font-size: .89rem; color: #4c5672; font-weight: 650; }
.main-nav a:hover, .nav-logout:hover { color: var(--primary); }
.main-nav .nav-register { background: var(--primary-soft); border-radius: 9px; padding: 10px 14px; color: var(--primary); }
.nav-form { margin: 0; }
.nav-logout { background: none; border: none; padding: 0; }
.content-container { flex: 1; padding-top: 54px; padding-bottom: 100px; }
.admin-container { flex: 1; padding-top: 52px; padding-bottom: 95px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 85px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner a { color: #505b79; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; color: var(--primary); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .72rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #51c6ab; box-shadow: 0 0 0 4px #51c6ab27; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: 1.12; letter-spacing: -.065em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 1.08rem; line-height: 1.35; letter-spacing: -.017em; }
p { color: #58637c; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: center; gap: 56px; padding: 52px 0 90px; }
.hero h1 { margin: 20px 0 24px; max-width: 680px; }
.hero-lead { font-size: 1.12rem; color: #5a6580; line-height: 1.8; max-width: 620px; }
.hero-actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { border: 1px solid transparent; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 10px; font-weight: 750; font-size: .89rem; padding: 12px 19px; min-height: 45px; transition: background .15s, transform .15s, box-shadow .15s; text-align: center; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--primary); box-shadow: 0 7px 19px rgba(89,69,222,.16); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: white; color: #333d5c; border-color: #dfe2ec; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { color: #af3450; background: #fff4f6; border-color: #ffdde4; }
.btn-danger:hover { color: #9d213c; background: #ffecef; }
.btn-small { min-height: 34px; padding: 7px 12px; font-size: .77rem; border-radius: 8px; }
.btn-full { width: 100%; }
.hero-visual { position: relative; width: 100%; aspect-ratio: 1.06; background: radial-gradient(circle at 50% 50%, #e3ddff 0, #eae8fe 35%, #f7f8fc 69%); border-radius: 44px; overflow: hidden; isolation: isolate; }
.visual-orbit { border: 1px solid #b9aff289; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-25deg); border-radius: 50%; }
.orbit-one { width: 78%; height: 52%; }
.orbit-two { width: 56%; height: 80%; transform: translate(-50%, -50%) rotate(36deg); }
.visual-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-11deg); width: 39%; aspect-ratio: 1; border-radius: 29%; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #7968f4, #3b24b5); font-size: clamp(6rem, 14vw, 9.5rem); box-shadow: 25px 28px 44px #533bc24f, inset -8px -13px 26px #30209f33; }
.visual-label { position: absolute; padding: 12px 18px; border-radius: 12px; background: #ffffffed; color: #3f3b6d; box-shadow: 0 12px 22px #42328d18; font-size: .87rem; font-weight: 800; }
.label-one { top: 19%; left: 11%; transform: rotate(-7deg); }
.label-two { top: 29%; right: 4%; transform: rotate(8deg); }
.label-three { bottom: 16%; left: 17%; transform: rotate(7deg); }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 33px; }
.section-heading h2 { margin-top: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }
.feature-card { border: 1px solid #e9eaf1; border-radius: var(--radius); padding: 31px; background: #fff; box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--primary-soft); color: var(--primary); font-size: 1.55rem; border-radius: 14px; margin-bottom: 22px; }
.feature-card h3 { margin-bottom: 9px; }
.feature-card p { margin: 0; font-size: .92rem; line-height: 1.7; }
.page-header { margin: 20px 0 33px; }
.page-header h1 { font-size: clamp(2.3rem,4vw,3.25rem); margin: 8px 0 12px; }
.page-header p { margin: 0; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-article { padding: clamp(24px,5vw,62px); font-size: 1.02rem; line-height: 1.85; min-height: 280px; }
.formatted-content { overflow-wrap: anywhere; white-space: normal; }
.auth-wrap { min-height: 620px; display: flex; align-items: flex-start; justify-content: center; padding-top: 22px; }
.auth-card { width: min(100%,490px); padding: clamp(26px,4vw,43px); }
.auth-card h1 { font-size: 2.3rem; margin: 7px 0 7px; }
.auth-card > .muted { margin-bottom: 26px; }
.form-icon { background: #f0edff; color: var(--primary); display: grid; place-items: center; width: 47px; height: 47px; border-radius: 13px; margin-bottom: 20px; font-size: 1.4rem; font-weight: 900; }
.form-stack { display: grid; gap: 19px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-weight: 750; color: #29324c; font-size: .87rem; }
.field input, .field textarea, .field select { display: block; width: 100%; border: 1px solid #dce0ea; border-radius: 10px; color: #202844; background: #fff; padding: 12px 14px; min-height: 46px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #8172ed; box-shadow: 0 0 0 3px #8172ed22; }
.field input:disabled { background: #f6f7fa; color: #81899e; }
.field textarea { resize: vertical; }
.hint { font-size: .75rem; color: #8991a5; font-weight: 450; }
.auth-bottom { border-top: 1px solid var(--line); text-align: center; padding-top: 22px; margin-top: 27px; color: var(--muted); font-size: .87rem; }
.auth-bottom a { font-weight: 800; }
.notice { padding: 14px 17px; margin-bottom: 22px; border-radius: 10px; border: 1px solid transparent; font-size: .9rem; }
.notice ul { padding-left: 20px; margin: 8px 0 0; }
.notice-success { background: #eaf9f2; border-color: #bfead5; color: #166844; }
.notice-error { background: #fff0f1; border-color: #f6ced3; color: #993445; }
.notice-neutral { background: #f5f3ff; border-color: #e3dcff; color: #4f4597; margin-bottom: 0; }
.notice a { text-decoration: underline; }
.two-col-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(255px,.9fr); gap: 24px; align-items: start; }
.panel { padding: clamp(23px,3.5vw,38px); }
.panel h2 { font-size: 1.32rem; margin-bottom: 22px; }
.panel h3 { margin: 0; }
.form-divider { height: 1px; border: 0; background: var(--line); width: 100%; margin: 0; }
.account-aside { text-align: center; }
.account-aside h3 { margin: 14px 0 6px; }
.account-aside .small { margin: 26px 0 20px; }
.account-aside .muted { overflow-wrap: anywhere; }
.profile-avatar { display: grid; place-items: center; margin: 0 auto; height: 74px; width: 74px; color: white; background: linear-gradient(145deg,#a9a0f8,#6250d7); border-radius: 22px; font-weight: 800; font-size: 1.9rem; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: .75rem; white-space: nowrap; color: #686d80; background: #f0f1f5; font-weight: 750; }
.pill-success { color: #137b56; background: #e4f7ec; }
.contact-layout { grid-template-columns: minmax(0,1.45fr) minmax(250px,.7fr); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .83rem; color: #69728c; }
.checkbox-row input { accent-color: var(--primary); margin-top: 3px; width: 17px; height: 17px; flex: none; }
.checkbox-row a { text-decoration: underline; }
.field-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { display: grid; gap: 18px; }
.info-card { background: #f0eeff; border: 1px solid #e6e1ff; border-radius: var(--radius); padding: 29px; }
.info-card:nth-child(2) { background: #f3f6ff; border-color: #e5ebff; }
.info-card p { line-height: 1.75; margin-bottom: 0; font-size: .9rem; }
.centered { text-align: center; }
.empty-state { max-width: 520px; margin: 70px auto; }
.empty-state h1 { font-size: 2.3rem; }
.empty-state .btn { margin-top: 20px; }
.empty-icon { background: #eeeafe; color: var(--primary); width: 65px; height: 65px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 20px; }
.admin-page-header { margin-top: 0; }
.admin-tabs { display: flex; gap: 8px; padding-bottom: 22px; margin-bottom: 23px; border-bottom: 1px solid var(--line); overflow: auto; white-space: nowrap; }
.admin-tabs a { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #4f5670; padding: 9px 13px; font-weight: 700; font-size: .84rem; }
.admin-tabs a:hover { color: var(--primary); border-color: #beb4ff; }
.section-row { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.section-row h1 { margin-bottom: 0; }
.section-row h2 { margin-bottom: 0; }
.section-row p { margin: 9px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-bottom: 26px; }
.stat-card { background: white; border-radius: 15px; border: 1px solid var(--line); padding: 25px; display: flex; flex-direction: column; gap: 8px; }
.stat-card > span:first-child { font-size: .86rem; color: #66708a; font-weight: 650; }
.stat-card > strong { font-size: 2.65rem; line-height: 1.3; letter-spacing: -.05em; }
.stat-card a { margin-top: 10px; font-size: .85rem; font-weight: 800; }
.admin-section { padding: 23px; }
.admin-section > .section-row { padding: 0 6px 17px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; }
.data-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #8790a3; background: #f9f9fc; }
.data-table td, .data-table th { padding: 16px 13px; border-bottom: 1px solid #eff0f5; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td { color: #46516b; }
.data-table td strong { color: #26304a; }
.data-table a { font-weight: 750; }
.mono { color: #6c7289; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .83rem; }
.action-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.action-row form { margin: 0; }
.editor-panel { max-width: 850px; }
.editor-textarea { min-height: 310px; line-height: 1.6; }
.form-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 7px; }
.editor-actions form { margin: 0; }
.empty-inline { padding: 30px 12px; color: #8790a3; text-align: center; }
.message-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 21px; color: var(--muted); }
.message-meta strong { color: var(--text); }
.message-body { padding: 28px 0; line-height: 1.85; }
.message-card .section-row h2 { margin: 8px 0; }
@media (max-width: 940px) {
    .header-inner { align-items: flex-start; padding: 20px 0; flex-direction: column; gap: 15px; }
    .main-nav { justify-content: flex-start; }
    .hero { gap: 25px; }
    .hero-visual { border-radius: 25px; }
    .feature-card { padding: 24px; }
}
@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1160px); }
    .main-nav { gap: 10px 18px; }
    .main-nav a, .nav-logout { font-size: .82rem; }
    .content-container, .admin-container { padding-top: 27px; padding-bottom: 65px; }
    .hero { grid-template-columns: 1fr; padding: 28px 0 50px; }
    .hero h1 { font-size: 2.85rem; }
    .hero-visual { max-width: 480px; margin: 8px auto; }
    .feature-grid, .stats-grid, .two-col-layout, .contact-layout { grid-template-columns: 1fr; }
    .footer-inner { padding: 23px 0; flex-direction: column; align-items: flex-start; }
    .page-header { margin-bottom: 24px; }
    .page-header h1 { font-size: 2.2rem; }
    .section-row { align-items: flex-start; flex-wrap: wrap; }
    .form-options { grid-template-columns: 1fr; }
    .admin-section { padding: 12px; }
    .data-table td, .data-table th { padding: 12px 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
