:root {
    --user-font-body: "Plus Jakarta Sans", sans-serif;
    --user-font-headline: "Manrope", sans-serif;
    --user-app-max-width: 28rem;
    --user-header-height: 3.5rem;
    --user-bottom-nav-height: 4.5rem;
    --user-color-primary: #3b9eef;
    --user-color-primary-dark: #0070C0;
    --user-color-secondary: #34d399;
    --user-color-tertiary: #fb923c;
    --user-color-surface: #0b0f14;
    --user-color-surface-container: #151a21;
    --user-color-surface-container-low: #12171e;
    --user-color-surface-highest: #1e2530;
    --user-color-surface-lowest: #1a1f27;
    --user-color-border: #2a3340;
    --user-color-text: #e8eaed;
    --user-color-text-muted: #9aa3af;
    --user-color-outline: #7a8494;
    --user-surface-glow: rgba(59, 158, 239, 0.14);
    --user-panel-bg: linear-gradient(180deg, rgba(30, 37, 48, 0.92) 0%, rgba(18, 23, 30, 0.96) 100%);
    --user-panel-border: rgba(126, 200, 255, 0.12);
    --user-panel-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.2);
    --user-app-bg:
        radial-gradient(ellipse 120% 70% at 50% -10%, rgba(0, 112, 192, 0.2), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(59, 158, 239, 0.07), transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(15, 40, 70, 0.5), transparent 45%),
        linear-gradient(180deg, #0a1018 0%, #0b0f14 42%, #0c1219 100%);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--user-font-body);
    background: #070a0e;
    color: var(--user-color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.user-header h1,
.page-header h2,
.login-card h1,
.section-title,
.stat-card strong,
.commission-card-header strong,
.staking-item-header strong,
.staking-dropdown-text,
.staking-count {
    font-family: var(--user-font-headline);
}

body.user-app-body {
    min-height: 100vh;
}

a {
    color: var(--user-color-primary);
    text-decoration: none;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

.user-app-shell {
    max-width: var(--user-app-max-width);
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--user-app-bg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 32px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.user-app-atmosphere {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.user-app-atmosphere__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(52px);
    opacity: 0.5;
    animation: login-orb-drift 16s ease-in-out infinite alternate;
}

.user-app-atmosphere__orb--primary {
    width: 16rem;
    height: 16rem;
    top: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(59, 158, 239, 0.38) 0%, rgba(0, 112, 192, 0.1) 55%, transparent 70%);
}

.user-app-atmosphere__orb--secondary {
    width: 11rem;
    height: 11rem;
    right: -2.5rem;
    bottom: 22%;
    background: radial-gradient(circle, rgba(126, 200, 255, 0.16) 0%, transparent 70%);
    animation-name: login-orb-drift-side;
    animation-delay: -5s;
    animation-duration: 20s;
}

.user-app-atmosphere__grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.04) 2px,
            rgba(255, 255, 255, 0.04) 3px
        );
    mix-blend-mode: overlay;
}

.user-app-shell--auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.user-app-shell--auth .login-page {
    flex: 1;
    min-height: auto;
}

.user-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--user-header-height);
    padding-bottom: calc(var(--user-bottom-nav-height) + env(safe-area-inset-bottom));
}

.user-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--user-app-max-width);
    min-height: var(--user-header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: env(safe-area-inset-top) 20px 0;
    background: rgba(10, 14, 20, 0.72);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    color: var(--user-color-text);
    border-bottom: 1px solid rgba(126, 200, 255, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.28);
    z-index: 100;
}

.user-header h1 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #f2f5f8;
    letter-spacing: -0.02em;
    text-shadow: 0 0 28px rgba(59, 158, 239, 0.2);
}

.user-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--user-color-text-muted);
}

.user-header-identity {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.user-header-login-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-header-name {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--user-color-text);
}

.user-header-menu {
    position: relative;
}

.user-header-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(126, 200, 255, 0.14);
    border-radius: 999px;
    background: rgba(21, 26, 33, 0.85);
    color: var(--user-color-text-muted);
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.user-header-menu-btn:hover,
.user-header-menu.is-open .user-header-menu-btn {
    background: var(--user-color-surface-highest);
    color: var(--user-color-text);
    border-color: rgba(126, 200, 255, 0.28);
    box-shadow: 0 0 16px rgba(59, 158, 239, 0.12);
}

.user-header-menu-btn .material-symbols-outlined {
    font-size: 22px;
}

.user-header-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 13.5rem;
    padding: 6px;
    border-radius: 14px;
    background: var(--user-panel-bg);
    border: 1px solid var(--user-panel-border);
    box-shadow: var(--user-panel-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 120;
}

.user-header-menu-dropdown[hidden] {
    display: none;
}

.user-header-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--user-color-text);
    font-family: var(--user-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.user-header-menu-item:hover {
    background: var(--user-color-surface-container-low);
    color: var(--user-color-text);
}

.user-header-menu-item .material-symbols-outlined {
    font-size: 20px;
    color: var(--user-color-primary);
}

.user-copy-toast {
    position: fixed;
    left: 50%;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 210;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(14, 20, 28, 0.92);
    border: 1px solid rgba(126, 200, 255, 0.18);
    color: #ffffff;
    font-family: var(--user-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.user-copy-toast.hidden {
    display: none;
}

.user-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.user-modal.hidden {
    display: none;
}

.user-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 28, 33, 0.45);
}

.user-modal-card {
    position: relative;
    width: 100%;
    max-width: 22rem;
    background: var(--user-panel-bg);
    border-radius: 1.25rem;
    border: 1px solid var(--user-panel-border);
    box-shadow: var(--user-panel-shadow);
    overflow: hidden;
    z-index: 1;
}

.user-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 8px;
}

.user-modal-header-text {
    flex: 1;
    min-width: 0;
}

.user-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--user-color-text);
}

.user-modal-body {
    margin: 8px 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--user-color-text-muted);
    white-space: pre-line;
}

.user-modal-steps {
    margin: 12px 0 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--user-color-text);
}

.user-modal-steps.hidden {
    display: none;
}

.user-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: var(--user-color-surface-container-low);
    color: var(--user-color-text-muted);
    cursor: pointer;
}

.user-modal-close:hover {
    background: var(--user-color-surface-container);
    color: var(--user-color-text);
}

.user-modal-actions {
    display: flex;
    gap: 10px;
    padding: 12px 20px 20px;
}

.user-modal-btn {
    flex: 1;
    min-height: 2.75rem;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: var(--user-font-headline);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 150ms ease, transform 100ms ease;
}

.user-modal-btn.hidden {
    display: none;
}

.user-modal-btn:active {
    transform: scale(0.98);
}

.user-modal-btn-primary {
    background: linear-gradient(135deg, #0070C0 0%, #3b9eef 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 112, 192, 0.28);
}

.user-modal-btn-primary:hover {
    filter: brightness(1.05);
}

.user-modal-btn-secondary {
    background: var(--user-color-surface-highest);
    color: var(--user-color-text);
    border-color: var(--user-color-border);
}

.user-modal-btn-secondary:hover {
    background: var(--user-color-surface-container);
}

.desktop-nav {
    display: none;
}

.user-content {
    flex: 1;
    padding: 16px 20px 24px;
    width: 100%;
}

.user-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--user-app-max-width);
    display: flex;
    background: rgba(14, 18, 24, 0.88);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border-top: 1px solid rgba(126, 200, 255, 0.1);
    border-radius: 20px 20px 0 0;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 -8px 28px rgba(0, 0, 0, 0.4);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    z-index: 100;
}

.user-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    text-align: left;
    padding: 8px 6px;
    color: var(--user-color-outline);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    -webkit-tap-highlight-color: transparent;
}

.user-bottom-nav .nav-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.user-bottom-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, #0070C0 0%, #3b9eef 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 6px 16px rgba(0, 112, 192, 0.32);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.page-header h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #f2f5f8;
}

.staking-count {
    font-size: 1rem;
    font-weight: 800;
    color: var(--user-color-text);
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.card {
    background: var(--user-panel-bg);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--user-panel-shadow);
    margin-bottom: 16px;
    border: 1px solid var(--user-panel-border);
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 200, 255, 0.35), transparent);
    pointer-events: none;
}

.card--staking {
    background:
        linear-gradient(165deg, rgba(28, 58, 98, 0.72) 0%, rgba(18, 36, 62, 0.88) 48%, rgba(14, 28, 48, 0.94) 100%);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow:
        0 1px 0 rgba(147, 197, 253, 0.12) inset,
        0 14px 36px rgba(8, 24, 48, 0.35);
}

.card--staking::before {
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.5), transparent);
}

.card--commissions {
    background:
        linear-gradient(165deg, rgba(28, 58, 98, 0.72) 0%, rgba(18, 36, 62, 0.88) 48%, rgba(14, 28, 48, 0.94) 100%);
    border-color: rgba(96, 165, 250, 0.28);
    box-shadow:
        0 1px 0 rgba(147, 197, 253, 0.12) inset,
        0 14px 36px rgba(8, 24, 48, 0.35);
}

.card--commissions::before {
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.5), transparent);
}

.card--profile {
    background:
        linear-gradient(165deg, rgba(22, 72, 120, 0.74) 0%, rgba(18, 48, 86, 0.88) 48%, rgba(14, 36, 68, 0.94) 100%);
    border-color: rgba(96, 165, 250, 0.32);
    box-shadow:
        0 1px 0 rgba(147, 197, 253, 0.14) inset,
        0 14px 36px rgba(8, 28, 56, 0.3);
}

.card--profile::before {
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.5), transparent);
}

.card--profile input,
.card--profile select {
    background: rgba(8, 20, 36, 0.55);
    border-color: rgba(96, 165, 250, 0.22);
}

.card--profile input:hover,
.card--profile select:hover {
    border-color: rgba(147, 197, 253, 0.4);
}

.card--profile input:focus,
.card--profile select:focus {
    background: rgba(8, 20, 36, 0.72);
}

.card--profile input[readonly] {
    background: rgba(10, 24, 42, 0.42);
    border-color: rgba(96, 165, 250, 0.14);
}

.team-info-card {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.team-info-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--user-color-text);
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--user-panel-bg);
    border-radius: 20px;
    padding: 0.85rem;
    box-shadow: var(--user-panel-shadow);
    border: 1px solid var(--user-panel-border);
    position: relative;
    overflow: hidden;
}

.stat-card--principal {
    background:
        linear-gradient(150deg, rgba(16, 72, 56, 0.78) 0%, rgba(14, 48, 42, 0.9) 55%, rgba(12, 36, 34, 0.95) 100%);
    border-color: rgba(52, 211, 153, 0.32);
    box-shadow:
        0 1px 0 rgba(110, 231, 168, 0.14) inset,
        0 12px 28px rgba(6, 40, 30, 0.32);
}

.stat-card--commission {
    background:
        linear-gradient(150deg, rgba(90, 48, 18, 0.78) 0%, rgba(68, 36, 16, 0.9) 55%, rgba(48, 28, 14, 0.95) 100%);
    border-color: rgba(251, 146, 60, 0.34);
    box-shadow:
        0 1px 0 rgba(253, 186, 116, 0.14) inset,
        0 12px 28px rgba(48, 24, 8, 0.32);
}

.stat-card-body {
    position: relative;
    z-index: 1;
}

.stat-card-body > span {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--user-color-text-muted);
}

.stat-card--principal .stat-card-body > span {
    color: rgba(167, 243, 208, 0.82);
}

.stat-card--commission .stat-card-body > span {
    color: rgba(253, 186, 116, 0.86);
}

.stat-card strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 0.125rem;
    color: var(--user-color-text);
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.stat-card--principal strong {
    color: #ecfdf5;
}

.stat-card--commission strong {
    color: #fff7ed;
}

.stat-card-icon {
    position: absolute;
    right: -0.25rem;
    bottom: -0.25rem;
    font-size: 2.6rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.stat-card-icon.is-secondary {
    color: color-mix(in srgb, var(--user-color-secondary) 32%, transparent);
}

.stat-card-icon.is-tertiary {
    color: color-mix(in srgb, var(--user-color-tertiary) 34%, transparent);
}

.staking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.staking-payout-note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--user-color-outline);
}

.staking-item {
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 14px;
    padding: 14px;
    background:
        linear-gradient(160deg, rgba(36, 64, 104, 0.55) 0%, rgba(22, 40, 68, 0.72) 100%);
    position: relative;
    overflow: hidden;
}

.staking-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.staking-item.is-stopped {
    background: #2a2418;
}

.staking-item.is-expired {
    background: var(--user-color-surface-lowest);
}

.staking-item.is-stopped .staking-item-header strong,
.staking-item.is-stopped .staking-item-body .staking-item-inline > span:not(.label) {
    color: var(--user-color-outline);
}

.staking-item.is-stopped .staking-item-header .label,
.staking-item.is-stopped .staking-item-body .label {
    color: var(--user-color-outline);
}

.staking-item.is-stopped .staking-item-sequence {
    color: var(--user-color-outline);
    opacity: 0.18;
}

.staking-item.is-stopped .staking-item-inline {
    position: relative;
    width: fit-content;
}

.staking-item.is-stopped .staking-item-inline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 0.18em;
    margin-top: -0.09em;
    border-top: 1.5px solid var(--user-color-outline);
    border-bottom: 1.5px solid var(--user-color-outline);
    pointer-events: none;
}

.staking-item-link:hover,
.staking-item-link:focus-visible {
    border-color: rgba(59, 158, 239, 0.55);
    box-shadow: 0 0 0 2px rgba(59, 158, 239, 0.16), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.staking-item-link:focus-visible {
    outline: none;
}

.staking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.staking-item-sequence {
    position: absolute;
    right: 0.75rem;
    bottom: -0.4rem;
    font-family: var(--user-font-headline);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.85;
    color: var(--user-color-primary-dark);
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

.staking-item-header .staking-item-inline {
    font-size: 1.125rem;
}

.staking-item-header .label {
    font-size: 0.875rem;
    font-weight: 700;
}

.staking-item-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.staking-item-inline {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.staking-item-body .label,
.staking-item-header .label {
    color: var(--user-color-text-muted);
}

.staking-item-body .label {
    font-size: 0.75rem;
}

.commission-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.commission-card {
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 14px;
    padding: 14px;
    background:
        linear-gradient(160deg, rgba(36, 64, 104, 0.55) 0%, rgba(22, 40, 68, 0.72) 100%);
    position: relative;
    overflow: hidden;
}

.commission-card-sequence {
    position: absolute;
    right: 0.75rem;
    bottom: -0.4rem;
    font-family: var(--user-font-headline);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.12em;
    color: rgba(96, 165, 250, 0.18);
    opacity: 1;
    pointer-events: none;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

.commission-card-unsettled {
    background:
        linear-gradient(160deg, rgba(48, 58, 28, 0.58) 0%, rgba(32, 40, 22, 0.78) 100%);
    border-color: rgba(163, 230, 53, 0.22);
    color: var(--user-color-text-muted);
}

.commission-card-unsettled .commission-card-sequence {
    color: rgba(163, 230, 53, 0.14);
}

.commission-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.commission-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.commission-card-header strong {
    font-size: 1rem;
    color: var(--user-color-text);
}

.commission-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.commission-card-body .label {
    display: block;
    color: var(--user-color-text-muted);
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.commission-card-body .full {
    grid-column: 1 / -1;
}

.commission-staking-bar {
    margin-bottom: 12px;
}

.staking-dropdown {
    position: relative;
}

.staking-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    min-height: 4.25rem;
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 20px;
    background:
        linear-gradient(150deg, rgba(16, 72, 56, 0.78) 0%, rgba(14, 48, 42, 0.9) 55%, rgba(12, 36, 34, 0.95) 100%);
    box-shadow:
        0 1px 0 rgba(110, 231, 168, 0.14) inset,
        0 12px 28px rgba(6, 40, 30, 0.32);
    color: var(--user-color-text);
    font-family: var(--user-font-body);
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.staking-dropdown-toggle:focus-visible {
    outline: none;
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.staking-dropdown-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.staking-dropdown-caption {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(167, 243, 208, 0.82);
}

.staking-dropdown-text {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.125rem;
    font-weight: 800;
    color: #ecfdf5;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.staking-dropdown-icon {
    position: absolute;
    right: 1.75rem;
    bottom: -0.25rem;
    font-size: 2.6rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.staking-dropdown-icon.is-secondary {
    color: color-mix(in srgb, var(--user-color-secondary) 32%, transparent);
}

.staking-dropdown-chevron {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: rgba(167, 243, 208, 0.7);
    transition: transform 150ms ease;
    position: relative;
    z-index: 1;
}

.staking-dropdown.is-open .staking-dropdown-chevron {
    transform: rotate(180deg);
}

.staking-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background:
        linear-gradient(160deg, rgba(16, 64, 50, 0.96) 0%, rgba(12, 40, 34, 0.98) 100%);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: 20px;
    box-shadow:
        0 1px 0 rgba(110, 231, 168, 0.1) inset,
        0 16px 36px rgba(6, 40, 30, 0.45);
    max-height: 240px;
    overflow-y: auto;
    z-index: 20;
}

.staking-dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.875rem;
    cursor: pointer;
}

.staking-dropdown-option:hover,
.staking-dropdown-option:focus {
    background: var(--user-color-surface-container-low);
}

.staking-dropdown-option.is-selected {
    background: rgba(16, 72, 56, 0.55);
    color: #6ee7a8;
    font-weight: 600;
}

.commission-note-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.commission-filter-note {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    color: rgba(147, 197, 253, 0.82);
    line-height: 1.5;
}

.badge-view-toggle {
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    background: #0c2d4a;
    color: #7ec8ff;
    font-family: var(--user-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    line-height: 1.2;
}

.badge-view-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(62, 158, 239, 0.35);
}

.btn-secondary {
    background: var(--user-color-surface-container);
    color: var(--user-color-text);
    box-shadow: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--user-color-surface-highest);
    text-align: left;
    font-size: 0.875rem;
}

th {
    background: var(--user-color-surface-container-low);
    font-weight: 600;
    color: var(--user-color-text-muted);
}

.table-responsive {
    overflow-x: auto;
}

.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: var(--user-font-body);
    font-size: 1rem;
    min-height: 44px;
    font-weight: 700;
    transition: transform 150ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0070C0 0%, #3b9eef 55%, #5eb4ff 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 10px 28px rgba(0, 112, 192, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(154, 163, 175, 0.92);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

input, select {
    padding: 12px;
    border: 1px solid rgba(42, 51, 64, 0.95);
    border-radius: 12px;
    font-size: 16px;
    min-height: 44px;
    background: rgba(11, 15, 20, 0.72);
    color: var(--user-color-text);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input:hover, select:hover {
    border-color: rgba(126, 200, 255, 0.28);
}

input:focus, select:focus {
    outline: none;
    border-color: rgba(59, 158, 239, 0.75);
    background: rgba(11, 15, 20, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 158, 239, 0.18), 0 0 24px rgba(59, 158, 239, 0.08);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--user-color-text);
    caret-color: var(--user-color-text);
    box-shadow: 0 0 0 1000px rgba(11, 15, 20, 0.92) inset;
    transition: background-color 99999s ease-in-out 0s;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--user-color-outline);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover {
    color: var(--user-color-primary);
    background: var(--user-color-surface-container);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

input[readonly] {
    background: var(--user-color-surface-container-low);
    color: var(--user-color-text-muted);
}

.field-error {
    color: #ffb4ab;
    font-size: 0.8rem;
}

.field-hint {
    color: var(--user-color-outline);
    font-size: 0.75rem;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.alert-success {
    background: #0f2a1a;
    color: #6ee7a8;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.alert-error {
    background: #3b1515;
    color: #ffb4ab;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px 3px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-pending {
    background: #3d2e0f;
    color: #fbbf24;
}

.badge-paid {
    background: #00A651;
    color: #FFFFFF;
}

.badge-active {
    background: #0c2d4a;
    color: #7ec8ff;
}

.badge-stopped {
    background: #ed1c24;
    color: #FFFFFF;
}

.badge-expired {
    background: #00A651;
    color: #FFFFFF;
}

.badge-sequence {
    background: #0c2d4a;
    color: #7ec8ff;
    min-width: 1.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
    flex-shrink: 0;
}

.badge-scheduled {
    background: #fff200;
    color: #000000;
    border: 1px solid #c4b400;
}

.badge-upcoming {
    background: #363636;
    color: #FFFFFF;
}

.empty-state {
    text-align: center;
    color: var(--user-color-outline);
    padding: 32px 16px;
}

.section-title {
    margin: 24px 0 12px;
    font-size: 1rem;
    color: var(--user-color-text-muted);
}

.login-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    min-height: 100vh;
}

.user-login-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 120% 70% at 50% -10%, rgba(0, 112, 192, 0.22), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(59, 158, 239, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(15, 40, 70, 0.55), transparent 45%),
        linear-gradient(180deg, #0a1018 0%, #0b0f14 42%, #0c1219 100%);
    flex-direction: column;
    gap: 1.5rem;
}

.login-atmosphere {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.login-atmosphere__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: login-orb-drift 14s ease-in-out infinite alternate;
}

.login-atmosphere__orb--primary {
    width: 18rem;
    height: 18rem;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(59, 158, 239, 0.45) 0%, rgba(0, 112, 192, 0.12) 55%, transparent 70%);
}

.login-atmosphere__orb--secondary {
    width: 12rem;
    height: 12rem;
    right: -3rem;
    bottom: 18%;
    background: radial-gradient(circle, rgba(126, 200, 255, 0.18) 0%, transparent 70%);
    animation-name: login-orb-drift-side;
    animation-delay: -4s;
    animation-duration: 18s;
}

.login-atmosphere__grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.04) 2px,
            rgba(255, 255, 255, 0.04) 3px
        );
    mix-blend-mode: overlay;
}

.login-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0;
}

.user-login-page:has(.login-hero-wrap),
.user-login-page:has(.signup-card) {
    justify-content: flex-start;
    padding: max(12px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.user-login-page .login-hero-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0 1.25rem;
    animation: login-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.user-login-page .login-hero-glow {
    position: absolute;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 158, 239, 0.35) 0%, rgba(59, 158, 239, 0.08) 45%, transparent 70%);
    animation: login-glow-pulse 4.5s ease-in-out infinite;
}

.user-login-page .login-hero {
    position: relative;
    z-index: 1;
    width: 168px;
    height: 168px;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 24px rgba(59, 158, 239, 0.18));
}

.login-card {
    width: 100%;
    background: var(--user-color-surface-lowest);
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--user-color-border);
}

.user-login-page .login-card:not(.signup-card) {
    position: relative;
    padding: 32px 22px 28px;
    border-radius: 22px;
    background: var(--user-panel-bg);
    border: 1px solid var(--user-panel-border);
    box-shadow: var(--user-panel-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: login-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.user-login-page .login-card:not(.signup-card)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 200, 255, 0.45), transparent);
    pointer-events: none;
}

.signup-card {
    max-width: none;
    position: relative;
    margin-top: 1.25rem;
    padding: 32px 22px 28px;
    border-radius: 22px;
    background: var(--user-panel-bg);
    border: 1px solid var(--user-panel-border);
    box-shadow: var(--user-panel-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: login-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.signup-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 200, 255, 0.45), transparent);
    pointer-events: none;
}

.login-card h1 {
    margin-top: 0;
    text-align: center;
    color: var(--user-color-primary);
}

.user-login-page .login-eyebrow {
    margin: 0 0 0.5rem;
    text-align: center;
    font-family: var(--user-font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(126, 200, 255, 0.85);
}

.user-login-page .login-card h1 {
    font-family: var(--user-font-headline);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #f2f5f8;
    margin: 0 0 0.625rem;
    text-shadow: 0 0 40px rgba(59, 158, 239, 0.15);
}

.signup-card h1 {
    font-size: 1.75rem;
}

.user-login-page .login-welcome {
    font-family: var(--user-font-body);
    text-align: center;
    color: var(--user-color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
    margin: 0 0 1.75rem;
}

.user-login-page .login-welcome strong {
    font-weight: 700;
}

.login-subtitle {
    font-family: var(--user-font-body);
    text-align: center;
    color: var(--user-color-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.625;
    letter-spacing: 0.025em;
    margin-top: 0;
    margin-bottom: 24px;
}

.user-login-page .login-field {
    margin-bottom: 1rem;
}

.user-login-page .login-field:last-of-type {
    margin-bottom: 1.35rem;
}

.user-login-page .login-card label {
    font-family: var(--user-font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(154, 163, 175, 0.92);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-login-page .login-card input {
    font-family: var(--user-font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    color: var(--user-color-text);
    border-radius: 12px;
    border: 1px solid rgba(42, 51, 64, 0.95);
    background: rgba(11, 15, 20, 0.72);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.user-login-page .login-card input::placeholder {
    color: rgba(122, 132, 148, 0.75);
    font-weight: 400;
}

.user-login-page .login-card input:hover {
    border-color: rgba(126, 200, 255, 0.28);
}

.user-login-page .login-card input:focus {
    border-color: rgba(59, 158, 239, 0.75);
    background: rgba(11, 15, 20, 0.9);
    box-shadow: 0 0 0 3px rgba(59, 158, 239, 0.18), 0 0 24px rgba(59, 158, 239, 0.08);
}

.user-login-page .login-card input:-webkit-autofill,
.user-login-page .login-card input:-webkit-autofill:hover,
.user-login-page .login-card input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px rgba(11, 15, 20, 0.92) inset;
}

.login-secret-input {
    -webkit-text-security: disc;
    text-security: disc;
}

.user-login-page .login-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    border-radius: 12px;
    font-family: var(--user-font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: linear-gradient(135deg, #0070C0 0%, #3b9eef 55%, #5eb4ff 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 10px 28px rgba(0, 112, 192, 0.35);
    transition: transform 160ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.user-login-page .login-submit-btn:hover {
    filter: brightness(1.06);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 14px 32px rgba(0, 112, 192, 0.42);
}

.user-login-page .login-submit-btn:active {
    transform: scale(0.985);
}

.user-login-page .login-submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
    filter: none;
}

.user-login-page .login-submit-icon {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 200ms ease;
}

.user-login-page .login-submit-btn:hover .login-submit-icon {
    transform: translateX(2px);
}

.user-login-page .login-card .alert,
.user-login-page .login-card .field-error {
    font-family: var(--user-font-body);
    font-size: 0.875rem;
    font-weight: 600;
}

.user-login-page .login-footer {
    font-family: var(--user-font-body);
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(42, 51, 64, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    letter-spacing: normal;
    color: var(--user-color-text-muted);
}

.user-login-page .login-footer-text {
    font-weight: 500;
}

.user-login-page .login-footer-link {
    margin-left: 0.35rem;
    color: #7ec8ff;
    font-weight: 700;
    transition: color 200ms ease, text-shadow 200ms ease;
}

.user-login-page .login-footer-link:hover {
    color: #a8dcff;
    text-shadow: 0 0 18px rgba(126, 200, 255, 0.35);
}

.user-login-page .login-copyright {
    font-family: var(--user-font-body);
    width: 100%;
    text-align: center;
    padding-top: 1.5rem;
    color: rgba(122, 132, 148, 0.85);
    font-size: 11px;
    line-height: 1.375;
    letter-spacing: 0.02em;
    animation: login-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.user-login-page .login-copyright p {
    margin: 0;
}

.user-login-page .login-copyright p + p {
    margin-top: 0.125rem;
}

.user-login-page .login-copyright p:first-child {
    font-weight: 500;
}

@keyframes login-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-glow-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes login-orb-drift {
    from {
        transform: translateX(-50%) translateY(0);
    }
    to {
        transform: translateX(-46%) translateY(12px);
    }
}

@keyframes login-orb-drift-side {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-10px, 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-atmosphere__orb,
    .user-app-atmosphere__orb,
    .user-login-page .login-hero-glow,
    .user-login-page .login-hero-wrap,
    .user-login-page .login-card,
    .user-login-page .login-copyright {
        animation: none;
    }
}

@media (min-width: 640px) {
    .user-login-page .login-copyright {
        font-size: 0.75rem;
    }

    .user-login-page .login-card {
        padding: 36px 28px 30px;
    }

    .user-login-page .login-card:not(.signup-card) h1 {
        font-size: 2.125rem;
    }
}

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

.signup-card .login-submit-btn {
    margin-top: 16px;
}

/* ── Notices ── */

.notice-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 10px 14px;
    background:
        linear-gradient(135deg, rgba(22, 72, 120, 0.78) 0%, rgba(18, 48, 86, 0.9) 55%, rgba(14, 36, 68, 0.95) 100%);
    border: 1px solid rgba(96, 165, 250, 0.34);
    border-radius: 1.25rem;
    box-shadow:
        0 1px 0 rgba(147, 197, 253, 0.16) inset,
        0 12px 28px rgba(8, 28, 56, 0.3);
    position: relative;
}

.notice-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.notice-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: rgba(96, 165, 250, 0.22);
    color: #93c5fd;
    font-size: 1.25rem;
}

.notice-banner-text {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--user-color-text);
    min-width: 0;
}

.notice-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 1.625rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: #0c2d4a;
    color: #7ec8ff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}

.notice-banner-btn.has-notice {
    background: #DD4B78;
    color: #ffffff;
}

.notice-banner-btn:active {
    transform: scale(0.95);
}

.notice-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--user-color-primary);
    text-decoration: none;
}

.notice-page-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice-list-caption {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--user-color-text-muted);
}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-list-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--user-panel-border);
    border-radius: 1.25rem;
    background: var(--user-panel-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.notice-list-item:hover {
    border-color: rgba(126, 200, 255, 0.28);
}

.notice-list-item:active {
    transform: scale(0.99);
}

.notice-list-title {
    margin: 0;
    font-family: var(--user-font-headline);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--user-color-text);
}

.notice-date {
    margin: 6px 0 0;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--user-color-text-muted);
}

.notice-body-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--user-color-text);
    white-space: pre-line;
}

.notice-today-modal-card,
.notice-detail-modal-card {
    max-width: 24rem;
    max-height: min(90vh, 40rem);
    display: flex;
    flex-direction: column;
}

.notice-today-modal-body,
.notice-detail-body-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 20px 8px;
}

.notice-today-item {
    padding-bottom: 0;
}

.notice-today-item.has-divider {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--user-color-border);
}

.notice-today-index {
    margin: 0 0 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--user-color-text-muted);
}

.notice-today-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.notice-today-item .notice-body-text {
    margin-top: 8px;
}
