.moneylab-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.moneylab-hero {
    margin-bottom: 24px;
}

.moneylab-hero h1 {
    margin: 4px 0 8px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9db0c8;
    margin: 0;
}

.moneylab-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.msg {
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.msg.success {
    border-color: rgba(87, 209, 157, 0.5);
    background: rgba(87, 209, 157, 0.12);
}

.msg.error {
    border-color: rgba(240, 98, 98, 0.5);
    background: rgba(240, 98, 98, 0.14);
}

.msg.warning {
    border-color: rgba(255, 193, 77, 0.5);
    background: rgba(255, 193, 77, 0.14);
}

.msg.info {
    border-color: rgba(103, 169, 255, 0.5);
    background: rgba(103, 169, 255, 0.14);
}

.moneylab-section {
    margin-top: 18px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 22, 33, 0.95), rgba(20, 29, 43, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.moneylab-section h2 {
    margin-top: 0;
    margin-bottom: 14px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.section-head h2 {
    margin: 0;
}

.attendance-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.attendance-head h2 {
    margin: 0;
}

.attendance-action form {
    margin: 0;
}

.attendance-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    background: #4f8cff;
    color: #fff;
}

.attendance-btn[disabled] {
    background: #586477;
    cursor: not-allowed;
}

.attendance-grid {
    margin-bottom: 0;
}

.attendance-garden-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.attendance-garden {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    overflow-x: auto;
    padding: 2px 0;
}

.attendance-week {
    display: grid;
    grid-template-rows: repeat(7, 12px);
    gap: 4px;
}

.attendance-cell {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(140, 160, 190, 0.08);
}

.attendance-cell.level-0 {
    background: rgba(140, 160, 190, 0.08);
}

.attendance-cell.level-1 {
    background: #1e4e2f;
}

.attendance-cell.level-2 {
    background: #2a7a43;
}

.attendance-cell.level-3 {
    background: #2d9d4d;
}

.attendance-cell.level-4 {
    background: #3dcb67;
}

.attendance-cell.is-future {
    opacity: 0.35;
}

.moneylab-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

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

.moneylab-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
    background: rgba(10, 15, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
}

.panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.value {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.meta {
    margin: 6px 0;
    color: #d2deef;
}

.meta.meta-pl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.meta .pl-label {
    min-width: 0;
}

.meta .pl-percent {
    font-weight: 800;
    white-space: nowrap;
}

.meta .pl-percent.plus {
    color: #5fd7a1;
}

.meta .pl-percent.minus {
    color: #ff8f8f;
}

.warning {
    color: #ffc477;
}

.tiny {
    margin: 8px 0 0;
    font-size: 13px;
    color: #95a7bf;
}

.inline-form {
    display: grid;
    gap: 8px;
}

.inline-form label {
    font-size: 14px;
    color: #d7e3f5;
}

.inline-form input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #f5f5f5;
    padding: 10px 12px;
}

.inline-form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form-actions button {
    flex: 1 1 120px;
}

.inline-form button,
.panel button {
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    background: #4f8cff;
    color: #fff;
}

.inline-form .btn-muted {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #dfe8f8;
}

.inline-form .btn-muted:hover {
    background: rgba(255, 255, 255, 0.16);
}

.panel button[disabled] {
    background: #586477;
    cursor: not-allowed;
}

.shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(79, 140, 255, 0.2);
    border: 1px solid rgba(79, 140, 255, 0.35);
    color: #dceafe;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.shop-link:hover {
    background: rgba(79, 140, 255, 0.3);
}

.shop-link-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.shop-link-danger:hover {
    background: rgba(239, 68, 68, 0.22);
}

.btn-danger-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 6px;
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.history-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.history-head h3 {
    margin: 0;
}

.history-more-btn {
    border: 1px solid rgba(126, 183, 255, 0.35);
    border-radius: 8px;
    padding: 6px 10px;
    background: rgba(79, 140, 255, 0.14);
    color: #dbe9ff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.history-more-btn:hover {
    background: rgba(79, 140, 255, 0.24);
}

.history-delta.plus {
    color: #5fd7a1;
}

.history-delta.minus {
    color: #ff8f8f;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-panel {
    display: grid;
    gap: 12px;
}

.shop-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.shop-item-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(9, 14, 22, 0.7);
    padding: 10px;
    display: grid;
    gap: 10px;
}

.shop-item-card.is-owned {
    border-color: rgba(106, 166, 255, 0.34);
}

.shop-item-card.is-equipped {
    border-color: rgba(107, 219, 164, 0.46);
    box-shadow: 0 0 0 1px rgba(107, 219, 164, 0.24) inset;
}

.shop-item-preview {
    height: 124px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 28, 42, 0.82);
    overflow: hidden;
    display: grid;
    place-items: center;
    position: relative;
}

.shop-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-album-theme-preview {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.18), transparent 42%),
      radial-gradient(circle at 84% 84%, rgba(46, 114, 209, 0.25), transparent 46%),
      linear-gradient(145deg, #1c2432, #111823 62%, #0c121b);
}

.shop-album-theme-preview.has-color {
    --shop-lp-theme-layer: linear-gradient(145deg, var(--shop-album-theme-color), rgba(10, 18, 30, 0.16) 68%);
    --shop-lp-theme-opacity: 0.8;
}

.shop-album-theme-preview.has-image {
    --shop-lp-theme-layer: var(--shop-album-theme-image) center / cover no-repeat;
    --shop-lp-theme-opacity: 0.86;
}

.shop-album-theme-preview::before {
    content: "";
    position: absolute;
    width: 72%;
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14) inset,
      0 18px 26px rgba(0, 0, 0, 0.52);
    background:
      radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 42%),
      var(--shop-lp-theme-layer, radial-gradient(circle at 74% 80%, rgba(84, 153, 255, 0.2), rgba(84, 153, 255, 0) 48%)),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 13%, rgba(255, 255, 255, 0) 14%),
      repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
      linear-gradient(140deg, #26344b, #111a29 66%, #0a111b);
    opacity: var(--shop-lp-theme-opacity, 0.94);
    animation: album-lp-spin 6s linear infinite;
}

.shop-album-theme-preview::after {
    content: "";
    position: absolute;
    width: 28%;
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    pointer-events: none;
    background:
      repeating-radial-gradient(circle at 50% 50%, rgba(167, 244, 255, 0.42) 0 2px, rgba(167, 244, 255, 0) 2px 7px),
      radial-gradient(circle at 50% 50%, rgba(120, 225, 230, 0.42) 0%, rgba(120, 225, 230, 0.18) 55%, rgba(120, 225, 230, 0) 72%);
    box-shadow:
      0 0 0 1px rgba(188, 238, 255, 0.44),
      0 0 20px rgba(103, 219, 227, 0.34);
    animation: album-core-wave 2.8s ease-in-out infinite;
}

.shop-color-preview {
    width: 100%;
    height: 100%;
    background:
      radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.36), transparent 40%),
      linear-gradient(135deg, var(--shop-color), #101a27 68%);
}

.shop-item-empty {
    color: #8aa0bf;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.shop-item-content {
    display: grid;
    gap: 4px;
}

.shop-item-name {
    margin: 0;
    color: #f2f7ff;
    font-size: 16px;
    font-weight: 800;
}

.shop-item-description {
    margin: 0;
    color: #b8c9e2;
    font-size: 13px;
    line-height: 1.4;
    min-height: 36px;
}

.shop-item-price {
    margin: 0;
    color: #8ac0ff;
    font-size: 14px;
    font-weight: 800;
}

.shop-item-color {
    margin: 0;
    color: #adc1de;
    font-size: 12px;
}

.shop-color-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    color: #e7f0ff;
    font-weight: 700;
}

.shop-color-inline::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--shop-color);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.shop-item-actions {
    margin-top: 2px;
}

.shop-item-actions form {
    margin: 0;
}

.shop-action-btn {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 9px 10px;
    background: #4f8cff;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.shop-action-btn.is-buy {
    background: #5a7dff;
}

.shop-action-btn.is-disabled {
    background: #4f5d73;
    cursor: not-allowed;
}

.rank-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.rank-list li {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel .rank-user-btn {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface-2) !important;
    box-shadow: none;
    color: inherit;
    text-align: left;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.panel .rank-user-btn:hover,
.panel .rank-user-btn:focus-visible {
    background: var(--surface-hover) !important;
    border-color: var(--border-focus);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.rank-user {
    color: #f2f6ff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rank-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: #0f1622;
}

.rank-user-meta {
    min-width: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.rank-user-meta .tiny {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.rank-points {
    font-weight: 700;
    color: #7eb7ff;
    white-space: nowrap;
}

.rank-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
}

.rank-profile-modal.is-open {
    display: block;
}

.rank-profile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 16, 0.72);
    backdrop-filter: blur(2px);
}

.rank-profile-card {
    position: relative;
    width: min(420px, calc(100% - 24px));
    margin: 8vh auto 0;
    background: #1b2333;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.rank-profile-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(10, 15, 24, 0.75);
    color: #eef5ff;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}

.rank-profile-banner {
    height: 132px;
    background:
      radial-gradient(circle at 82% 14%, rgba(81, 144, 255, 0.34), transparent 46%),
      linear-gradient(140deg, #30486f, #243956 58%, #1a2b42);
    background-size: cover;
    background-position: center;
}

.rank-profile-body {
    position: relative;
    padding: 0 16px 16px;
}

.rank-profile-avatar-wrap {
    width: 88px;
    height: 88px;
    margin-top: -44px;
    border-radius: 22px;
    border: 4px solid #1b2333;
    background: #101826;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

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

.rank-profile-meta {
    margin-top: 10px;
}

.rank-profile-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rank-profile-headline h4 {
    margin: 0;
    font-size: 22px;
    color: #f7fbff;
}

.rank-profile-badge {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #d6e9ff;
    border: 1px solid rgba(117, 166, 255, 0.45);
    background: rgba(117, 166, 255, 0.16);
}

.rank-profile-username {
    margin: 4px 0 0;
    color: #9eb5d8;
    font-size: 14px;
}

.rank-profile-points {
    margin: 12px 0 0;
    color: #edf5ff;
    font-size: 16px;
    font-weight: 800;
}

.rank-profile-bio-box {
    margin-top: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 14, 22, 0.76);
    padding: 10px 11px;
}

.rank-profile-bio-box p {
    margin: 0;
    color: #d8e6fa;
    line-height: 1.45;
    white-space: pre-wrap;
}

.rank-profile-media {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.rank-profile-album {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
      radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.18), transparent 42%),
      radial-gradient(circle at 84% 84%, rgba(46, 114, 209, 0.25), transparent 46%),
      linear-gradient(145deg, #1c2432, #111823 62%, #0c121b);
    overflow: hidden;
    display: grid;
    place-items: center;
    position: relative;
}

.rank-profile-album::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.14) inset,
      0 12px 20px rgba(0, 0, 0, 0.5);
    background:
      radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 42%),
      var(--rank-lp-theme-layer, radial-gradient(circle at 74% 80%, rgba(84, 153, 255, 0.2), rgba(84, 153, 255, 0) 48%)),
      radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 13%, rgba(255, 255, 255, 0) 14%),
      repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0 1px, rgba(255, 255, 255, 0) 1px 4px),
      linear-gradient(140deg, #26344b, #111a29 66%, #0a111b);
    opacity: var(--rank-lp-theme-opacity, 0.94);
    animation: album-lp-spin 6s linear infinite;
    z-index: 1;
}

.rank-profile-album::after {
    content: "";
    position: absolute;
    width: 28%;
    aspect-ratio: 1 / 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    pointer-events: none;
    background:
      repeating-radial-gradient(circle at 50% 50%, rgba(167, 244, 255, 0.42) 0 2px, rgba(167, 244, 255, 0) 2px 7px),
      radial-gradient(circle at 50% 50%, rgba(120, 225, 230, 0.42) 0%, rgba(120, 225, 230, 0.18) 55%, rgba(120, 225, 230, 0) 72%);
    box-shadow:
      0 0 0 1px rgba(188, 238, 255, 0.44),
      0 0 18px rgba(103, 219, 227, 0.34);
    animation: album-core-wave 2.8s ease-in-out infinite;
    z-index: 2;
}

.rank-profile-album.has-theme-image {
    --rank-lp-theme-layer: var(--rank-album-theme-image) center / cover no-repeat;
    --rank-lp-theme-opacity: 0.86;
}

.rank-profile-album.has-theme-color {
    --rank-lp-theme-layer: linear-gradient(145deg, var(--rank-album-theme-color), rgba(10, 18, 30, 0.16) 68%);
    --rank-lp-theme-opacity: 0.8;
}

.rank-profile-album-fallback {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-size: 0;
    color: transparent;
}

@keyframes album-lp-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes album-core-wave {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.92;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.12);
        opacity: 0.68;
    }
}

.rank-profile-music-box {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 14, 22, 0.76);
    padding: 9px 10px;
}

.rank-profile-music-label {
    margin: 0;
    color: #95adcf;
    font-size: 12px;
    font-weight: 700;
}

.rank-profile-music-title {
    margin: 4px 0 0;
    color: #edf5ff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-profile-volume {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.rank-profile-volume-label {
    margin: 0;
    color: #95adcf;
    font-size: 12px;
    font-weight: 700;
}

.rank-profile-volume-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.rank-profile-volume-range {
    width: 100%;
    margin: 0;
    accent-color: #6e86ff;
}

.rank-profile-volume-value {
    min-width: 28px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #dbe7fb;
}

.rank-profile-audio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    margin: 0;
}

.rank-profile-audio.is-hidden {
    display: none;
}

.rank-profile-music-empty {
    margin: 8px 0 0;
    color: #9db2cf;
    font-size: 12px;
}

.point-history-modal {
    position: fixed;
    inset: 0;
    z-index: 1520;
    display: none;
}

.point-history-modal.is-open {
    display: block;
}

.point-history-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 16, 0.72);
    backdrop-filter: blur(2px);
}

.point-history-card {
    position: relative;
    width: min(560px, calc(100% - 24px));
    margin: 8vh auto 0;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    background: #1b2333;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.point-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 16, 27, 0.92);
}

.point-history-head h4 {
    margin: 0;
    font-size: 17px;
    color: #edf5ff;
}

.point-history-close {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(10, 15, 24, 0.75);
    color: #eef5ff;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}

.point-history-body {
    overflow-y: auto;
    padding: 12px 14px;
}

.history-list-full li {
    align-items: center;
}

.history-entry-left {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.history-entry-left .history-reason {
    color: #edf3ff;
    overflow-wrap: anywhere;
}

.history-list-full .tiny {
    margin: 0;
}

.coin-news-panel {
    margin-bottom: 14px;
}

.coin-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.coin-news-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.coin-news-item-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    display: grid;
    gap: 6px;
    cursor: pointer;
    padding: 4px 2px;
}

.coin-news-item-btn:hover .coin-news-item-headline {
    color: #95beff;
}

.coin-news-item-headline {
    font-size: 15px;
    font-weight: 700;
    color: #edf5ff;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.coin-news-item-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.coin-news-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #e8f2ff;
}

.coin-news-tag.tier-major {
    color: #ffe7c2;
    border-color: rgba(255, 188, 96, 0.48);
    background: rgba(255, 188, 96, 0.2);
}

.coin-news-tag.tier-normal {
    color: #d8e9ff;
    border-color: rgba(126, 183, 255, 0.35);
    background: rgba(79, 140, 255, 0.16);
}

.coin-news-tag.sentiment-good {
    color: #d9ffe8;
    border-color: rgba(95, 215, 161, 0.48);
    background: rgba(95, 215, 161, 0.2);
}

.coin-news-tag.sentiment-bad {
    color: #ffe2e2;
    border-color: rgba(255, 143, 143, 0.48);
    background: rgba(255, 143, 143, 0.2);
}

.coin-news-empty {
    color: #9ab0cf;
    font-size: 14px;
    padding: 6px 0;
}

.coin-news-modal,
.coin-news-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1530;
    display: none;
}

.coin-news-detail-modal {
    z-index: 1540;
}

.coin-news-modal.is-open,
.coin-news-detail-modal.is-open {
    display: block;
}

.coin-news-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 16, 0.72);
    backdrop-filter: blur(2px);
}

.coin-news-card,
.coin-news-detail-card {
    position: relative;
    width: min(760px, calc(100% - 24px));
    margin: 8vh auto 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #1b2333;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.coin-news-detail-card {
    width: min(720px, calc(100% - 24px));
}

.coin-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 16, 27, 0.92);
}

.coin-news-head h4 {
    margin: 0;
    font-size: 17px;
    color: #edf5ff;
}

.coin-news-close {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(10, 15, 24, 0.75);
    color: #eef5ff;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}

.coin-news-body {
    overflow-y: auto;
    padding: 12px 14px;
}

.coin-news-list-full .coin-news-item-btn {
    padding: 6px 2px;
}

.coin-news-detail-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.coin-news-detail-impact {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 800;
}

.coin-news-detail-impact.plus {
    color: #5fd7a1;
}

.coin-news-detail-impact.minus {
    color: #ff8f8f;
}

.coin-news-detail-impact.neutral {
    color: #c7d6ea;
}

.coin-news-detail-price {
    margin: 4px 0 0;
    color: #b9cbe6;
    font-size: 13px;
}

.coin-news-detail-body {
    margin-top: 12px;
    color: #e6f0ff;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 960px) {
    .moneylab-grid.two,
    .moneylab-grid.three {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .attendance-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .rank-user-btn {
        padding: 8px 2px;
        gap: 8px;
    }

    .rank-user {
        gap: 8px;
    }

    .rank-avatar {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .rank-user-meta {
        display: grid;
        align-items: center;
        gap: 2px;
    }

    .rank-name {
        max-width: 100%;
    }

    .rank-user-meta .tiny {
        max-width: 170px;
        font-size: 12px;
    }

    .rank-points {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .history-head {
        align-items: flex-start;
    }

    .point-history-card {
        width: calc(100% - 16px);
        margin-top: 4vh;
        max-height: 84vh;
    }

    .point-history-head h4 {
        font-size: 16px;
    }

    .coin-news-card,
    .coin-news-detail-card {
        width: calc(100% - 16px);
        margin-top: 4vh;
        max-height: 84vh;
    }

    .rank-user-btn {
        grid-template-columns: minmax(0, 1fr) auto;
        display: grid;
        align-items: center;
        gap: 6px;
    }

    .rank-user {
        min-width: 0;
    }

    .rank-user-meta .tiny {
        max-width: 120px;
    }

    .rank-points {
        font-size: 13px;
        max-width: 42vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rank-profile-media {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .rank-profile-album {
        width: 76px;
        height: 76px;
        border-radius: 12px;
    }
}


.chart-wrap {
    position: relative;
    height: 280px;
    margin-bottom: 12px;
}

.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}


.coin-news-detail-modal .coin-news-backdrop {
    background: rgba(8, 11, 18, 0.78);
    backdrop-filter: blur(8px);
}

.coin-news-detail-card {
    width: min(1020px, calc(100% - 24px));
    background: #f7f9fc;
    border: 1px solid rgba(17, 24, 39, 0.14);
}

.coin-news-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    background: linear-gradient(180deg, rgba(245, 247, 252, 0.98), rgba(236, 240, 247, 0.94));
}

.coin-news-paperline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.coin-news-paper-name {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.coin-news-paper-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #94a3b8;
}

.coin-news-paper-section {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.coin-news-detail-topbar .coin-news-close {
    border-color: rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111827;
}

.coin-news-article-body {
    padding: 26px 32px 34px;
    background: #ffffff;
}

.coin-news-article-header {
    display: grid;
    gap: 12px;
}

.coin-news-article-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2563eb;
}

.coin-news-detail-card #coin-news-detail-headline {
    margin: 0;
    color: #111827;
    font-family: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.coin-news-article-summary {
    margin: 0;
    max-width: 860px;
    font-size: 19px;
    line-height: 1.7;
    color: #475569;
    word-break: keep-all;
}

.coin-news-article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    padding-top: 8px;
    color: #64748b;
}

.coin-news-article-reporter {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.coin-news-article-time {
    font-size: 14px;
    font-weight: 700;
}

.coin-news-detail-meta-article {
    margin-top: 18px;
}

.coin-news-hero {
    margin: 22px 0 18px;
}

.coin-news-hero-visual {
    position: relative;
    min-height: clamp(280px, 34vw, 430px);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #223c63, #5a7fbb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.coin-news-hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.26), transparent 34%),
        radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 52px);
}

.coin-news-hero-visual::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 14%;
    height: 43%;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
        linear-gradient(135deg, rgba(10, 18, 31, 0.9), rgba(30, 52, 80, 0.72));
    box-shadow: 0 26px 60px rgba(5, 10, 19, 0.34);
    transform: skewX(-11deg);
}

.coin-news-hero-glow {
    position: absolute;
    top: -8%;
    right: -6%;
    width: 42%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(173, 220, 255, 0.42), rgba(173, 220, 255, 0));
    filter: blur(10px);
}

.coin-news-hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
}

.coin-news-hero-label {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(7, 12, 20, 0.56);
    color: #f8fbff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.coin-news-hero-statbox {
    margin-left: auto;
    width: min(320px, 100%);
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.coin-news-hero-stat-title {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.coin-news-detail-impact {
    margin: 6px 0 0;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.coin-news-detail-impact.plus {
    color: #15803d;
}

.coin-news-detail-impact.minus {
    color: #b91c1c;
}

.coin-news-detail-impact.neutral {
    color: #334155;
}

.coin-news-detail-price {
    margin: 6px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
}

.coin-news-hero-caption {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.coin-news-detail-body {
    margin-top: 16px;
    display: grid;
    gap: 18px;
    color: #111827;
    white-space: normal;
}

.coin-news-article-paragraph {
    margin: 0;
    font-size: 18px;
    line-height: 1.9;
    color: #1f2937;
    word-break: keep-all;
}

.coin-news-article-paragraph.is-lead {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
}

.coin-news-detail-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.coin-news-detail-footer-note {
    margin: 0;
    color: #7c8799;
    font-size: 13px;
}

.coin-news-hero-visual.variant-normal-good {
    background: linear-gradient(135deg, #2b4d78, #6f9fe0);
}

.coin-news-hero-visual.variant-major-good {
    background: linear-gradient(135deg, #205245, #56b89c);
}

.coin-news-hero-visual.variant-normal-bad {
    background: linear-gradient(135deg, #4f3043, #9a5f76);
}

.coin-news-hero-visual.variant-major-bad {
    background: linear-gradient(135deg, #41202c, #a34b58);
}

.coin-news-hero-visual.variant-major-good .coin-news-hero-glow {
    background: radial-gradient(circle, rgba(166, 255, 224, 0.44), rgba(166, 255, 224, 0));
}

.coin-news-hero-visual.variant-normal-bad .coin-news-hero-glow,
.coin-news-hero-visual.variant-major-bad .coin-news-hero-glow {
    background: radial-gradient(circle, rgba(255, 194, 194, 0.42), rgba(255, 194, 194, 0));
}

@media (max-width: 720px) {
    .coin-news-detail-card {
        width: calc(100% - 12px);
        margin-top: 2vh;
        max-height: 92vh;
        border-radius: 14px;
    }

    .coin-news-detail-topbar {
        padding: 12px 14px;
        align-items: flex-start;
    }

    .coin-news-paperline {
        gap: 8px;
    }

    .coin-news-paper-name,
    .coin-news-paper-section {
        font-size: 12px;
    }

    .coin-news-article-body {
        padding: 18px 16px 22px;
    }

    .coin-news-detail-card #coin-news-detail-headline {
        font-size: clamp(26px, 8vw, 38px);
    }

    .coin-news-article-summary {
        font-size: 16px;
    }

    .coin-news-article-byline {
        gap: 6px 12px;
    }

    .coin-news-hero-visual {
        min-height: 260px;
    }

    .coin-news-hero-copy {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .coin-news-hero-statbox {
        width: 100%;
        margin-left: 0;
    }

    .coin-news-detail-impact {
        font-size: 28px;
    }

    .coin-news-detail-price {
        font-size: 14px;
    }

    .coin-news-article-paragraph {
        font-size: 16px;
        line-height: 1.8;
    }

    .coin-news-article-paragraph.is-lead {
        font-size: 17px;
    }
}

.moneylab-wrap {
    max-width: 1240px;
    padding: 28px 20px 72px;
}

.moneylab-hero {
    margin-bottom: 28px;
}

.moneylab-hero h1 {
    margin: 6px 0 10px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.moneylab-hero > p:last-child {
    max-width: 680px;
    margin: 0;
    color: #98a7bc;
    font-size: 18px;
    line-height: 1.72;
}

.moneylab-section {
    margin-top: 20px;
    padding: 24px;
    border-radius: 20px;
    background: #111821;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.section-head,
.attendance-head {
    margin-bottom: 18px;
}

.section-head h2,
.attendance-head h2,
.moneylab-section h2 {
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.moneylab-grid {
    gap: 16px;
}

.panel {
    background: #0d141d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px;
    box-shadow: none;
}

.panel h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.value {
    font-size: clamp(32px, 3vw, 42px);
    line-height: 1.05;
}

.meta,
.tiny,
.warning {
    color: #98a7bc;
}

.attendance-btn,
.panel button,
.inline-form button,
.shop-link,
.news-open-btn,
.detail-open-btn {
    border-radius: 14px;
}

.rank-user-btn,
.panel .rank-user-btn {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.rank-user-btn:hover,
.rank-user-btn:focus-visible,
.panel .rank-user-btn:hover,
.panel .rank-user-btn:focus-visible {
    background: var(--surface-hover) !important;
    border-color: var(--border-focus) !important;
}

.coin-news-item,
.point-history-item,
.coin-log-table-wrap,
.coin-news-detail-card,
.coin-news-modal-card {
    background: var(--surface-2);
    border-color: var(--border);
}

@media (max-width: 780px) {
    .moneylab-wrap {
        padding: 20px 12px 56px;
    }

    .moneylab-section {
        padding: 18px;
        border-radius: 18px;
    }
}

/* Warm profile/shop refinements */
.moneylab-wrap .shop-link {
    gap: 8px;
}

.moneylab-wrap .shop-link.shop-link-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-color: transparent;
    color: var(--accent-ink);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.moneylab-wrap .shop-link.shop-link-primary:hover,
.moneylab-wrap .shop-link.shop-link-primary:focus-visible {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    color: var(--accent-ink);
}

.moneylab-wrap .shop-dashboard-cta {
    width: fit-content;
    margin-top: 14px;
}

.moneylab-wrap .shop-panel {
    gap: 16px;
    background: var(--surface);
    border-color: var(--border);
}

.moneylab-wrap .shop-item-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.moneylab-wrap .shop-item-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 14px;
    border-color: var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    box-shadow: var(--shadow-sm);
}

.moneylab-wrap .shop-item-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
}

.moneylab-wrap .shop-item-card.is-owned {
    border-color: rgba(217, 120, 30, 0.38);
}

.moneylab-wrap .shop-item-card.is-equipped {
    border-color: rgba(63, 143, 104, 0.42);
    box-shadow:
        0 0 0 1px rgba(63, 143, 104, 0.18) inset,
        var(--shadow-sm);
}

.moneylab-wrap .shop-item-preview {
    height: 132px;
    border-radius: 12px;
    border-color: var(--border);
    background:
        radial-gradient(90% 100% at 20% 0%, rgba(217, 120, 30, 0.16), transparent 54%),
        linear-gradient(145deg, var(--surface-2), var(--surface-3));
}

.moneylab-wrap .shop-item-preview img {
    object-fit: cover;
}

.moneylab-wrap .shop-album-theme-preview {
    background:
        radial-gradient(circle at 24% 16%, rgba(255, 250, 242, 0.48), transparent 42%),
        radial-gradient(circle at 84% 84%, rgba(217, 120, 30, 0.18), transparent 46%),
        linear-gradient(145deg, #f7efe3, #eadcc9 62%, #d8c4a9);
}

.moneylab-wrap .shop-album-theme-preview.has-color {
    --shop-lp-theme-layer: linear-gradient(145deg, var(--shop-album-theme-color), rgba(255, 250, 242, 0.34) 70%);
}

.moneylab-wrap .shop-album-theme-preview::before {
    box-shadow:
        0 0 0 1px rgba(255, 250, 242, 0.42) inset,
        0 16px 26px rgba(66, 45, 26, 0.16);
    background:
        radial-gradient(circle at 24% 20%, rgba(255, 250, 242, 0.58), transparent 40%),
        var(--shop-lp-theme-layer, radial-gradient(circle at 74% 80%, rgba(217, 120, 30, 0.22), transparent 48%)),
        radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.22) 0 13%, transparent 14%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.2) 0 1px, transparent 1px 5px),
        linear-gradient(140deg, #efb35e, #d9781e 66%, #8c541f);
}

.moneylab-wrap .shop-album-theme-preview::after {
    background:
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.54) 0 2px, transparent 2px 7px),
        radial-gradient(circle at 50% 50%, rgba(255, 220, 160, 0.52) 0%, rgba(217, 120, 30, 0.22) 58%, transparent 72%);
    box-shadow:
        0 0 0 1px rgba(255, 250, 242, 0.62),
        0 0 18px rgba(217, 120, 30, 0.26);
}

.moneylab-wrap .shop-color-preview {
    background:
        radial-gradient(circle at 24% 24%, rgba(255, 250, 242, 0.48), transparent 40%),
        linear-gradient(135deg, var(--shop-color), var(--surface-2) 72%);
}

.moneylab-wrap .shop-item-empty {
    color: var(--text-3);
}

.moneylab-wrap .shop-item-name {
    color: var(--text);
}

.moneylab-wrap .shop-item-description,
.moneylab-wrap .shop-item-color {
    color: var(--text-2);
}

/* ── Coin news items — warm orange theme ───────────── */
.panel .coin-news-item-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px !important;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.panel .coin-news-item-btn:hover,
.panel .coin-news-item-btn:focus-visible {
    background: rgba(217, 120, 30, 0.08) !important;
    border-color: rgba(217, 120, 30, 0.30) !important;
    transform: translateY(-1px);
}

.panel .coin-news-item-btn:hover .coin-news-item-headline,
.panel .coin-news-item-btn:focus-visible .coin-news-item-headline {
    color: var(--accent);
}

.panel .coin-news-item-headline {
    color: var(--text);
}

.moneylab-wrap .coin-news-list li {
    border-bottom: none;
    padding-bottom: 0;
}

.moneylab-wrap .coin-news-list {
    gap: 6px;
}

.moneylab-wrap .shop-item-price,
.moneylab-wrap .shop-color-inline {
    color: var(--accent);
}

.moneylab-wrap .shop-color-inline::before {
    border-color: var(--surface);
    box-shadow: 0 0 0 1px var(--border);
}

.moneylab-wrap .shop-action-btn {
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--accent-ink);
    box-shadow: 0 8px 18px var(--accent-glow);
}

.moneylab-wrap .shop-action-btn.is-buy {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.moneylab-wrap .shop-action-btn.is-disabled {
    border-color: var(--border);
    background: var(--surface-3);
    color: var(--text-2);
    box-shadow: none;
}

.rank-profile-modal {
    overflow-y: auto;
    padding: calc(var(--header-offset) + 12px) 12px 24px;
}

.rank-profile-backdrop {
    position: fixed;
    background: rgba(66, 45, 26, 0.28);
    backdrop-filter: blur(5px);
}

.rank-profile-modal .rank-profile-card {
    width: min(500px, 100%);
    margin: 0 auto;
    border-color: var(--border-focus);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.rank-profile-modal .rank-profile-close {
    border-color: var(--border);
    background: rgba(255, 250, 242, 0.92);
    color: var(--text);
}

.rank-profile-modal .rank-profile-banner {
    height: 132px;
    background:
        radial-gradient(90% 120% at 5% 0%, rgba(217, 120, 30, 0.24), transparent 56%),
        linear-gradient(145deg, #d9781e 0%, #f0e2ce 58%, #fffaf2 100%);
    background-size: cover;
    background-position: center;
}

.rank-profile-modal .rank-profile-body {
    background: var(--surface);
    color: var(--text);
}

.rank-profile-modal .rank-profile-avatar-wrap {
    border-color: var(--surface);
    background: var(--surface-2);
    box-shadow: var(--shadow-md);
}

.rank-profile-modal .rank-profile-headline h4,
.rank-profile-modal .rank-profile-points,
.rank-profile-modal .rank-profile-music-title {
    color: var(--text);
}

.rank-profile-modal .rank-profile-username,
.rank-profile-modal .rank-profile-music-label,
.rank-profile-modal .rank-profile-volume-label,
.rank-profile-modal .rank-profile-music-empty,
.rank-profile-modal .rank-profile-volume-value {
    color: var(--text-2);
}

.rank-profile-modal .rank-profile-points {
    color: var(--accent);
}

.rank-profile-modal .rank-profile-badge {
    border-color: rgba(217, 120, 30, 0.28);
    background: var(--accent-subtle);
    color: var(--accent);
}

.rank-profile-modal .rank-profile-bio-box,
.rank-profile-modal .rank-profile-music-box {
    border-color: var(--border);
    background: var(--surface-2);
}

.rank-profile-modal .rank-profile-bio-box p {
    color: var(--text);
}

.rank-profile-modal .rank-profile-album {
    border-color: var(--border);
    background:
        radial-gradient(circle at 24% 16%, rgba(255, 250, 242, 0.48), transparent 42%),
        linear-gradient(145deg, var(--surface-2), var(--surface-3));
    box-shadow: var(--shadow-sm);
}

.rank-profile-modal .rank-profile-album::before {
    box-shadow:
        0 0 0 1px rgba(255, 250, 242, 0.42) inset,
        0 12px 20px rgba(66, 45, 26, 0.16);
    background:
        radial-gradient(circle at 24% 20%, rgba(255, 250, 242, 0.58), transparent 40%),
        var(--rank-lp-theme-layer, radial-gradient(circle at 74% 80%, rgba(217, 120, 30, 0.22), transparent 48%)),
        radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.22) 0 13%, transparent 14%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.2) 0 1px, transparent 1px 5px),
        linear-gradient(140deg, #efb35e, #d9781e 66%, #8c541f);
}

.rank-profile-modal .rank-profile-album::after {
    background:
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.54) 0 2px, transparent 2px 7px),
        radial-gradient(circle at 50% 50%, rgba(255, 220, 160, 0.52) 0%, rgba(217, 120, 30, 0.22) 58%, transparent 72%);
    box-shadow:
        0 0 0 1px rgba(255, 250, 242, 0.62),
        0 0 18px rgba(217, 120, 30, 0.26);
}

.rank-profile-modal .rank-profile-album.has-theme-color {
    --rank-lp-theme-layer: linear-gradient(145deg, var(--rank-album-theme-color), rgba(255, 250, 242, 0.34) 70%);
}

.rank-profile-modal .rank-profile-volume-range {
    accent-color: var(--accent);
}

@media (max-width: 560px) {
    .rank-profile-modal {
        padding: calc(var(--header-offset) + 8px) 8px 18px;
    }

    .rank-profile-modal .rank-profile-card {
        width: 100%;
    }

    .moneylab-wrap .shop-dashboard-cta {
        width: 100%;
    }
}
