@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #05080f;
    --bg-layer: #0a1324;
    --app-bg: radial-gradient(circle at 20% 10%, #0f2548 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, #14362d 0%, transparent 38%),
        linear-gradient(145deg, var(--bg-base), var(--bg-layer));
    --text-main: #f4f7ff;
    --text-muted: #91a6c2;
    --accent-main: #1ed9a4;
    --accent-alt: #14b8ff;
    --accent-warm: #ff9d43;
    --danger: #ff5f7a;
    --card-bg: rgba(11, 17, 31, 0.75);
    --card-border: rgba(112, 143, 198, 0.25);
    --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.4);
    --menu-nav-text: #99aecd;
    --menu-nav-hover: #dbe8ff;
    --profile-card-bg: linear-gradient(160deg, rgba(4, 13, 30, 0.92), rgba(10, 20, 40, 0.88));
    --profile-card-border: rgba(102, 143, 196, 0.35);
    --profile-avatar-bg: linear-gradient(130deg, #112347, #0b1227 62%, #1f2f52);
    --profile-avatar-border: rgba(93, 132, 188, 0.34);
    --profile-avatar-text: #dceafe;
    --profile-copy-muted: #90a7c8;
    --profile-copy-handle: #8299b9;
    --menu-lead: #9bb0cf;
    --menu-status: #e7f1ff;
    --menu-tile-border: rgba(74, 121, 189, 0.45);
    --menu-tile-border-hover: rgba(30, 217, 164, 0.64);
    --menu-tile-bg: linear-gradient(160deg, rgba(3, 10, 27, 0.95), rgba(6, 14, 36, 0.88));
    --menu-tile-text: #f2f7ff;
    --menu-tile-glow: rgba(20, 184, 255, 0.15);
    --menu-sheen: rgba(31, 217, 164, 0.18);
    --field-bg: rgba(0, 0, 0, 0.3);
    --field-focus: rgba(20, 184, 255, 0.95);
    --field-focus-shadow: rgba(20, 184, 255, 0.15);
    --small-muted: #7f95b4;
    --status-copy: #b4c8e8;
    --grid-line: rgba(255, 255, 255, 0.03);
    --grid-opacity: 0.24;
    --orb-opacity: 0.26;
}

body[data-theme='dark'] {
    --bg-base: #020205;
    --bg-layer: #070910;
    --app-bg: radial-gradient(circle at 15% 12%, rgba(35, 49, 90, 0.35) 0%, transparent 35%),
        radial-gradient(circle at 80% 22%, rgba(20, 110, 99, 0.28) 0%, transparent 45%),
        linear-gradient(160deg, var(--bg-base), var(--bg-layer));
    --text-main: #edf1ff;
    --text-muted: #7f8fb0;
    --accent-main: #18d8a8;
    --accent-alt: #19a9ff;
    --card-bg: rgba(6, 8, 14, 0.84);
    --card-border: rgba(71, 89, 130, 0.34);
    --shadow-lg: 0 25px 64px rgba(0, 0, 0, 0.55);
    --menu-nav-text: #90a1c0;
    --menu-nav-hover: #f0f5ff;
    --profile-card-bg: linear-gradient(160deg, rgba(6, 9, 16, 0.96), rgba(9, 14, 24, 0.93));
    --profile-card-border: rgba(74, 96, 138, 0.38);
    --profile-avatar-bg: linear-gradient(135deg, #121a2f, #090d16);
    --profile-avatar-border: rgba(59, 84, 131, 0.42);
    --profile-avatar-text: #d4ddf2;
    --profile-copy-muted: #8c9dbf;
    --profile-copy-handle: #7d8eae;
    --menu-lead: #91a3c4;
    --menu-status: #e6eeff;
    --menu-tile-border: rgba(67, 95, 152, 0.5);
    --menu-tile-border-hover: rgba(24, 216, 168, 0.65);
    --menu-tile-bg: linear-gradient(160deg, rgba(6, 9, 16, 0.96), rgba(10, 15, 24, 0.95));
    --menu-tile-text: #edf3ff;
    --menu-tile-glow: rgba(25, 169, 255, 0.2);
    --menu-sheen: rgba(24, 216, 168, 0.17);
    --field-bg: rgba(5, 6, 10, 0.68);
    --field-focus: rgba(25, 169, 255, 0.95);
    --field-focus-shadow: rgba(25, 169, 255, 0.22);
    --small-muted: #8390ab;
    --status-copy: #98a9c9;
    --grid-line: rgba(140, 168, 224, 0.05);
    --grid-opacity: 0.2;
    --orb-opacity: 0.2;
}

body[data-theme='light'] {
    --bg-base: #f2f5fb;
    --bg-layer: #e7edf7;
    --app-bg: radial-gradient(circle at 12% 14%, rgba(82, 165, 255, 0.28) 0%, transparent 34%),
        radial-gradient(circle at 84% 18%, rgba(54, 201, 168, 0.24) 0%, transparent 37%),
        linear-gradient(150deg, var(--bg-base), var(--bg-layer));
    --text-main: #1d2a40;
    --text-muted: #526785;
    --accent-main: #17a57d;
    --accent-alt: #1699db;
    --card-bg: rgba(255, 255, 255, 0.76);
    --card-border: rgba(140, 162, 193, 0.45);
    --shadow-lg: 0 16px 36px rgba(41, 68, 110, 0.15);
    --menu-nav-text: #4f6382;
    --menu-nav-hover: #1a2840;
    --profile-card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(241, 247, 255, 0.88));
    --profile-card-border: rgba(136, 157, 188, 0.5);
    --profile-avatar-bg: linear-gradient(135deg, #dde8f8, #c8dbf3);
    --profile-avatar-border: rgba(129, 154, 191, 0.48);
    --profile-avatar-text: #233957;
    --profile-copy-muted: #556d90;
    --profile-copy-handle: #607b9f;
    --menu-lead: #566d8d;
    --menu-status: #233a59;
    --menu-tile-border: rgba(129, 154, 191, 0.55);
    --menu-tile-border-hover: rgba(22, 153, 219, 0.62);
    --menu-tile-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(239, 245, 255, 0.94));
    --menu-tile-text: #1f3555;
    --menu-tile-glow: rgba(22, 153, 219, 0.17);
    --menu-sheen: rgba(22, 165, 125, 0.16);
    --field-bg: rgba(255, 255, 255, 0.76);
    --field-focus: rgba(22, 153, 219, 0.88);
    --field-focus-shadow: rgba(22, 153, 219, 0.18);
    --small-muted: #657fa2;
    --status-copy: #4f6789;
    --grid-line: rgba(55, 84, 124, 0.08);
    --grid-opacity: 0.25;
    --orb-opacity: 0.17;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: var(--app-bg);
    overflow-x: hidden;
}

.page {
    position: relative;
    padding: 2rem 0 3rem;
}

.shell {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.topbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    line-height: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: clamp(44px, 6vw, 58px);
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(3, 8, 20, 0.35));
}

.top-actions {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
}

.top-actions a,
.text-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-actions a:hover,
.text-link:hover {
    color: var(--accent-main);
}

.inline-form {
    margin: 0;
}

.link-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.link-btn:hover {
    color: var(--accent-main);
}

.lang-switch {
    display: inline-flex;
    gap: 0.45rem;
}

.lang-pill {
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
    transition: all 0.2s ease;
}

.lang-pill.active,
.lang-pill:hover {
    color: #011117;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-main), var(--accent-alt));
}

.hero,
.menu-layout {
    display: grid;
    gap: 1.5rem;
}

.menu-showcase {
    display: grid;
    gap: 1.35rem;
}

.menu-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.1rem;
    align-items: start;
    margin-bottom: 1.7rem;
}

.menu-top-left {
    display: grid;
    gap: 0.7rem;
}

.menu-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

.menu-nav a {
    color: var(--menu-nav-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.menu-nav a.active {
    color: var(--accent-main);
}

.menu-nav a:hover {
    color: var(--menu-nav-hover);
}

.menu-nav .link-btn {
    color: var(--menu-nav-text);
    font-weight: 500;
}

.menu-nav .link-btn:hover {
    color: var(--menu-nav-hover);
}

.notify-wrap {
    position: relative;
    z-index: 120;
}

.notify-btn {
    position: relative;
    appearance: none;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-radius: 0.6rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.notify-bell {
    font-size: 1rem;
    line-height: 1;
}

.notify-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 50%;
    background: #ff384f;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.notify-count {
    position: absolute;
    top: -0.32rem;
    right: -0.42rem;
    min-width: 1.05rem;
    height: 1.05rem;
    border-radius: 999px;
    padding: 0 0.24rem;
    background: #ff384f;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.64rem;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    line-height: 1;
}

.notify-count.is-hidden {
    display: none;
}

.notify-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    width: min(360px, 90vw);
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--card-border);
    border-radius: 0.9rem;
    background: var(--card-bg);
    box-shadow: var(--shadow-lg);
    padding: 0.6rem;
    display: none;
    z-index: 220;
}

.notify-panel.align-left {
    right: auto;
    left: 0;
}

.notify-wrap.open .notify-panel {
    display: block;
}

.notify-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.link-btn.mini {
    font-size: 0.78rem;
}

.notify-empty {
    margin: 0.35rem 0;
    color: var(--text-muted);
}

.notify-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.notify-item {
    border: 1px solid var(--card-border);
    border-radius: 0.65rem;
    padding: 0.48rem 0.55rem;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.88rem;
}

.notify-item.unread {
    border-color: rgba(20, 184, 255, 0.5);
}

.notify-item a,
.notify-item span {
    color: var(--text-main);
    text-decoration: none;
}

.menu-lang .lang-pill {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.profile-card {
    min-width: 238px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid var(--profile-card-border);
    border-radius: 0.95rem;
    background: var(--profile-card-bg);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--profile-avatar-text);
    background: var(--profile-avatar-bg);
    border: 1px solid var(--profile-avatar-border);
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-copy {
    display: grid;
    line-height: 1.12;
    gap: 0.2rem;
}

.profile-name-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.profile-copy small {
    color: var(--profile-copy-muted);
    font-size: 0.84rem;
}

.profile-copy strong {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    color: var(--text-main);
}

.profile-copy span {
    color: var(--profile-copy-handle);
    font-size: 0.92rem;
}

.profile-handle-row {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
}

.shield-icon {
    width: 0.88rem;
    height: 0.88rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%, #ffffff, #ffd568 55%, #f0a10a);
    border: 1px solid rgba(255, 226, 134, 0.7);
    display: inline-block;
    transform: translateY(1px);
    box-shadow: 0 0 8px rgba(255, 173, 51, 0.45);
}

.restricted-mark {
    display: inline-flex;
    margin-left: 0.22rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255, 95, 122, 0.2);
    color: #ff5f7a;
    border: 1px solid rgba(255, 95, 122, 0.45);
}

.role-badge {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.68rem;
    font-family: 'Chakra Petch', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border: 1px solid transparent;
}

.role-badge-staff {
    color: #000;
    border-color: rgba(30, 217, 164, 0.5);
    background: linear-gradient(135deg, rgba(30, 217, 164, 0.95), rgba(20, 184, 255, 0.85));
}

body[data-theme='light'] .role-badge-staff {
    color: #000;
}

.role-badge-employee {
    color: #0f1218;
    border-color: rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, #d9e4ff, #b6ffe6);
}

.employee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.16rem 0.5rem 0.16rem 0.28rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: linear-gradient(135deg, rgba(217, 228, 255, 0.95), rgba(182, 255, 230, 0.9));
    color: #0f192b;
    font-size: 0.68rem;
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.employee-badge-icon {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #061220;
    background: radial-gradient(circle at 25% 20%, #ffffff, #a7c6ff 55%, #6a8fd8);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 1px 6px rgba(40, 77, 140, 0.35);
    font-size: 0.62rem;
    line-height: 1;
    flex-shrink: 0;
}

.employee-badge-none .employee-badge-icon::before {
    content: '\2022';
}

.employee-badge-silver_crown .employee-badge-icon {
    background: radial-gradient(circle at 25% 20%, #ffffff, #d6deef 55%, #8e9ab3);
}

.employee-badge-silver_crown .employee-badge-icon::before {
    content: '\2655';
}

.employee-badge-gold_crown .employee-badge-icon {
    background: radial-gradient(circle at 25% 20%, #fff6d8, #ffd76e 55%, #e49e11);
}

.employee-badge-gold_crown .employee-badge-icon::before {
    content: '\265B';
}

.employee-badge-editor .employee-badge-icon {
    background: radial-gradient(circle at 25% 20%, #f0faff, #9adfff 55%, #3f86d8);
}

.employee-badge-editor .employee-badge-icon::before {
    content: '\270E';
}

.employee-badge-developer .employee-badge-icon {
    background: radial-gradient(circle at 25% 20%, #e8fff6, #7ee9c8 55%, #1d9d7e);
}

.employee-badge-developer .employee-badge-icon::before {
    content: '</>';
    font-size: 0.48rem;
    font-weight: 700;
}

.employee-badge-programmer .employee-badge-icon {
    background: radial-gradient(circle at 25% 20%, #edf1ff, #b1c1ff 55%, #5f6dc6);
}

.employee-badge-programmer .employee-badge-icon::before {
    content: '\2699';
}

.user-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.35rem;
    flex-wrap: wrap;
}

.user-badge-chip {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 1px 5px rgba(18, 28, 46, 0.35);
}

.user-badge-icon {
    font-size: 0.66rem;
    line-height: 1;
    color: #071320;
}

.user-badge-silver_crown {
    background: radial-gradient(circle at 22% 20%, #ffffff, #d8dfec 55%, #9ba7bd);
}

.user-badge-silver_crown .user-badge-icon::before {
    content: '\2655';
}

.user-badge-gold_crown {
    background: radial-gradient(circle at 22% 20%, #fff8de, #ffd772 55%, #d8920f);
}

.user-badge-gold_crown .user-badge-icon::before {
    content: '\265B';
}

.user-badge-editor {
    background: radial-gradient(circle at 22% 20%, #effbff, #97deff 55%, #3f86d8);
}

.user-badge-editor .user-badge-icon::before {
    content: '\270E';
}

.user-badge-developer {
    background: radial-gradient(circle at 22% 20%, #e9fff6, #7ee9c8 55%, #1d9d7e);
}

.user-badge-developer .user-badge-icon::before {
    content: '</>';
    font-size: 0.45rem;
    font-weight: 700;
}

.user-badge-programmer {
    background: radial-gradient(circle at 22% 20%, #eef2ff, #b4c4ff 55%, #6571c8);
}

.user-badge-programmer .user-badge-icon::before {
    content: '\2699';
}

.user-badge-founding_2026_2036 {
    background: radial-gradient(circle at 22% 20%, #f3edff, #cfb6ff 55%, #8660dd);
}

.user-badge-founding_2026_2036 .user-badge-icon::before {
    content: '\2726';
}

.badge-pick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.badge-pick-item {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.2rem 0.35rem;
    border: 1px solid var(--card-border);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
}

.badge-pick-item input[type='checkbox'] {
    margin: 0;
}

.list-copy strong .role-badge {
    margin-left: 0.32rem;
}

.list-item-no-decoration {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
    min-width: 0;
}

.menu-intro {
    display: grid;
    gap: 0.45rem;
}

.menu-intro h1 {
    margin: 0.15rem 0 0.7rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(2rem, 4.3vw, 2.75rem);
    letter-spacing: 0.02em;
}

.menu-lead {
    max-width: 68ch;
    margin: 0;
    color: var(--menu-lead);
    font-size: 1.26rem;
}

.menu-intro .status-copy {
    margin-top: 0.2rem;
    font-size: 1.23rem;
    color: var(--menu-status);
}

.menu-intro-actions {
    margin-top: 0.55rem;
}

.menu-logout {
    min-width: 102px;
    border-radius: 0.78rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-family: 'Chakra Petch', sans-serif;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.4rem;
}

.menu-tile {
    position: relative;
    min-height: 108px;
    border: 1px solid var(--menu-tile-border);
    border-radius: 1rem;
    background: var(--menu-tile-bg);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.menu-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--menu-sheen), transparent);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.menu-tile h2 {
    position: relative;
    margin: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: 0.025em;
    color: var(--menu-tile-text);
    text-shadow: 0 0 12px var(--menu-tile-glow);
}

.menu-tile:hover::before {
    transform: translateX(120%);
}

.menu-tile:hover {
    border-color: var(--menu-tile-border-hover);
    transform: translateY(-2px);
    transition: transform 0.18s ease, border-color 0.2s ease;
}

.menu-tile-link {
    text-decoration: none;
}

.menu-tile small {
    position: relative;
    margin-top: 0.35rem;
    color: var(--small-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.menu-tile-disabled {
    opacity: 0.82;
}

.menu-tile-disabled:hover {
    border-color: var(--menu-tile-border);
    transform: none;
}

.menu-tile-disabled:hover::before {
    transform: translateX(-120%);
}

.hero-copy h1 {
    margin: 0.3rem 0 0.9rem;
    font-family: 'Chakra Petch', sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: 0.02em;
}

.hero-copy p {
    max-width: 70ch;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 1.3rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    padding: 0.72rem 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #021217;
    background: linear-gradient(135deg, var(--accent-main), var(--accent-alt));
    box-shadow: 0 14px 30px rgba(20, 184, 255, 0.25);
}

.btn-ghost {
    color: var(--text-main);
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.status-copy {
    margin-top: 0.9rem;
    color: var(--status-copy);
}

.eyebrow {
    margin: 0;
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-main);
    font-size: 0.72rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.05rem;
    padding: 1.1rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(7px);
}

.card h2 {
    margin-top: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.05rem;
}

.card p {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.auth-layout {
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(560px, 96vw);
}

.tabs {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tab-btn {
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    border-radius: 0.7rem;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    font-weight: 600;
}

.tab-btn.active {
    color: #021217;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-main), var(--accent-alt));
}

.tab-panel {
    display: none;
    margin-top: 1rem;
}

.tab-panel.active {
    display: block;
}

.auth-form {
    display: grid;
    gap: 0.55rem;
}

.auth-form label {
    margin-top: 0.55rem;
    font-size: 0.92rem;
}

.auth-form input {
    width: 100%;
    border: 1px solid var(--card-border);
    border-radius: 0.65rem;
    padding: 0.68rem 0.72rem;
    font: inherit;
    color: var(--text-main);
    background: var(--field-bg);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--field-focus);
    box-shadow: 0 0 0 3px var(--field-focus-shadow);
}

.auth-form small {
    color: var(--small-muted);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.auth-check input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--accent-alt);
}

.auth-check label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.notice {
    margin: 0 0 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.72rem 0.85rem;
}

.notice-success {
    border-color: rgba(30, 217, 164, 0.55);
    background: rgba(30, 217, 164, 0.12);
}

.notice-error {
    border-color: rgba(255, 95, 122, 0.55);
    background: rgba(255, 95, 122, 0.11);
}

.settings-shell {
    display: grid;
    gap: 1rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.settings-card h2 {
    margin-bottom: 0.4rem;
}

.settings-card p {
    margin-top: 0;
}

.settings-form {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.5rem;
}

.settings-form label {
    font-size: 0.9rem;
    color: var(--text-main);
}

.settings-form input[type='text'],
.settings-form input[type='password'],
.settings-form input[type='file'],
.settings-form select,
.settings-form textarea {
    width: 100%;
    border: 1px solid var(--card-border);
    border-radius: 0.65rem;
    padding: 0.66rem 0.72rem;
    font: inherit;
    color: var(--text-main);
    background: var(--field-bg);
}

.settings-form input:focus,
.settings-form select:focus {
    outline: none;
    border-color: var(--field-focus);
    box-shadow: 0 0 0 3px var(--field-focus-shadow);
}

.settings-form textarea {
    min-height: 110px;
    resize: vertical;
}

.settings-form textarea:focus {
    outline: none;
    border-color: var(--field-focus);
    box-shadow: 0 0 0 3px var(--field-focus-shadow);
}

.settings-form small {
    color: var(--small-muted);
}

.settings-form .btn {
    margin-top: 0.5rem;
}

.settings-form-inline {
    margin-top: 0.65rem;
}

.settings-avatar-row {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.settings-avatar-preview {
    width: 68px;
    height: 68px;
    border-radius: 0.8rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--profile-avatar-border);
    background: var(--profile-avatar-bg);
    color: var(--profile-avatar-text);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.settings-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar-copy {
    display: grid;
    gap: 0.15rem;
}

.settings-avatar-copy strong {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.05rem;
}

.settings-avatar-copy small {
    color: var(--small-muted);
}

.list-stack {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.55rem;
}

.list-item {
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 0.55rem 0.62rem;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
}

.list-avatar {
    width: 42px;
    height: 42px;
    border-radius: 0.6rem;
    border: 1px solid var(--profile-avatar-border);
    background: var(--profile-avatar-bg);
    color: var(--profile-avatar-text);
    display: grid;
    place-items: center;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.list-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-avatar.mini {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    font-size: 0.78rem;
}

.list-copy {
    display: grid;
    gap: 0.1rem;
    flex: 1;
}

.list-copy strong {
    font-family: 'Chakra Petch', sans-serif;
}

.list-copy small,
.list-copy span {
    color: var(--small-muted);
    font-size: 0.84rem;
}

.inline-actions,
.staff-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.staff-user-item {
    display: grid;
    gap: 0.55rem;
}

.support-ticket-item.active {
    border-color: var(--field-focus);
    box-shadow: 0 0 0 2px var(--field-focus-shadow);
}

.support-thread-card {
    grid-column: 1 / -1;
}

.support-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-pill-open {
    border-color: rgba(20, 184, 255, 0.45);
}

.status-pill-in_progress {
    border-color: rgba(255, 157, 67, 0.45);
}

.status-pill-closed,
.status-pill-resolved {
    border-color: rgba(30, 217, 164, 0.45);
}

.status-pill-dismissed {
    border-color: rgba(255, 95, 122, 0.45);
}

.support-thread {
    display: grid;
    gap: 0.7rem;
}

.support-msg {
    display: flex;
    gap: 0.6rem;
}

.support-msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 0.58rem;
    border: 1px solid var(--profile-avatar-border);
    background: var(--profile-avatar-bg);
    color: var(--profile-avatar-text);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.92rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.support-msg-bubble {
    flex: 1;
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
}

.support-msg-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: baseline;
}

.support-msg-head small {
    color: var(--small-muted);
}

.support-msg-bubble p {
    margin: 0.35rem 0 0;
    line-height: 1.5;
}

.support-msg-staff .support-msg-bubble {
    border-color: rgba(30, 217, 164, 0.36);
}

.staff-support-thread {
    border: 1px solid var(--card-border);
    border-radius: 0.78rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.015);
    display: grid;
    gap: 0.55rem;
}

.staff-support-replies {
    display: grid;
    gap: 0.45rem;
}

.staff-support-reply {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    border: 1px solid var(--card-border);
    border-radius: 0.65rem;
    padding: 0.4rem 0.45rem;
    background: rgba(255, 255, 255, 0.02);
}

.staff-profile-card {
    border: 1px solid var(--card-border);
    border-radius: 0.78rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 0.55rem;
}

.staff-profile-head {
    display: flex;
    align-items: start;
    gap: 0.6rem;
}

.chat-board {
    margin-top: 0.7rem;
    max-height: 260px;
    overflow: auto;
    border: 1px solid var(--card-border);
    border-radius: 0.72rem;
    padding: 0.6rem;
    display: grid;
    gap: 0.45rem;
}

.chat-msg {
    border: 1px solid var(--card-border);
    border-radius: 0.62rem;
    padding: 0.45rem 0.52rem;
    background: rgba(255, 255, 255, 0.02);
}

.chat-msg strong {
    display: block;
    font-size: 0.82rem;
}

.chat-msg span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.chat-board-real {
    max-height: 360px;
    padding: 0.65rem;
    gap: 0.7rem;
}

.chat-msg-real {
    display: flex;
    gap: 0.55rem;
    align-items: start;
    border: none;
    background: transparent;
    padding: 0;
}

.chat-msg-real.mine {
    justify-content: flex-end;
}

.chat-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 0.55rem;
    border: 1px solid var(--profile-avatar-border);
    background: var(--profile-avatar-bg);
    color: var(--profile-avatar-text);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.8rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-msg-bubble {
    max-width: min(80%, 650px);
    border: 1px solid var(--card-border);
    border-radius: 0.76rem;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
}

.chat-msg-real.mine .chat-msg-bubble {
    border-color: rgba(30, 217, 164, 0.42);
}

.chat-msg-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
}

.chat-msg-head strong {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.chat-msg-head small {
    color: var(--small-muted);
    font-size: 0.74rem;
    white-space: nowrap;
}

.chat-msg-bubble p {
    margin: 0.35rem 0 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.chat-read-row {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.chat-read-row small {
    color: var(--small-muted);
    font-size: 0.74rem;
}

.chat-read-avatars {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.chat-read-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--profile-avatar-border);
    background: var(--profile-avatar-bg);
    color: var(--profile-avatar-text);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.6rem;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.chat-read-empty {
    font-size: 0.72rem;
    color: var(--small-muted);
}

.theme-options {
    display: grid;
    gap: 0.55rem;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid var(--card-border);
    border-radius: 0.82rem;
    padding: 0.58rem 0.66rem;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.theme-option input[type='radio'] {
    margin: 0;
}

.theme-swatch {
    width: 42px;
    height: 24px;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    flex-shrink: 0;
}

.theme-swatch-default {
    background: linear-gradient(130deg, #0e1d3e, #19224f, #0f6f62);
}

.theme-swatch-dark {
    background: linear-gradient(130deg, #06070a, #0f1117, #111b2a);
}

.theme-swatch-light {
    background: linear-gradient(130deg, #eef3fb, #f9fcff, #d6e9ff);
}

.theme-copy {
    display: grid;
    gap: 0.12rem;
}

.theme-copy strong {
    font-size: 0.96rem;
    color: var(--text-main);
}

.theme-copy small {
    color: var(--small-muted);
}

.live-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid var(--card-border);
    border-radius: 0.82rem;
    background: var(--card-bg);
    color: var(--text-main);
    padding: 0.62rem 0.74rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(14px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.live-toast.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.live-toast-text {
    font-size: 0.88rem;
    color: var(--text-main);
}

.live-toast-btn {
    width: auto;
    padding: 0.45rem 0.7rem;
    border-radius: 0.6rem;
    white-space: nowrap;
}

.bg-orb,
.bg-grid {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.bg-orb {
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(42px);
    opacity: var(--orb-opacity);
    animation: float 9s ease-in-out infinite alternate;
}

.orb-a {
    top: -8rem;
    left: -9rem;
    background: #0fb6ff;
}

.orb-b {
    top: 25%;
    right: -11rem;
    background: #ff9340;
    animation-duration: 11s;
}

.orb-c {
    bottom: -10rem;
    left: 22%;
    background: #2de0ae;
    animation-duration: 12s;
}

.bg-grid {
    inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: var(--grid-opacity);
    mask-image: radial-gradient(circle at center, black 28%, transparent 84%);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
}

body.is-ready [data-reveal] {
    animation: reveal 0.7s ease forwards;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    from {
        transform: translateY(-8px) scale(1);
    }
    to {
        transform: translateY(8px) scale(1.06);
    }
}

@media (max-width: 960px) {
    .topbar {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        justify-items: start;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-topbar {
        grid-template-columns: 1fr;
    }

    .profile-card {
        min-width: 0;
        width: 100%;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page {
        padding-top: 1.1rem;
    }

    .top-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-actions {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        height: 44px;
    }

    .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    .profile-copy strong {
        font-size: 0.94rem;
    }

    .profile-copy span {
        font-size: 0.82rem;
    }

    .menu-intro h1 {
        font-size: clamp(1.6rem, 8.5vw, 2.2rem);
    }

    .menu-lead {
        font-size: 1.02rem;
    }

    .menu-tile {
        min-height: 94px;
    }

    .menu-tile h2 {
        font-size: clamp(1.35rem, 8vw, 1.8rem);
    }

    .settings-avatar-preview {
        width: 58px;
        height: 58px;
        font-size: 1.2rem;
    }

    .theme-option {
        align-items: flex-start;
    }
}
