@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #eef4fb;
    --bg-soft: #dce8f7;
    --sidebar: #1c1512;
    --page-bg-start: var(--bg);
    --page-bg-end: #dce8f7;
    --sidebar-bg: var(--sidebar);
    --sidebar-bg-soft: #241a16;
    --sidebar-active-bg: #2a201c;
    --sidebar-divider: #3a2e2a;
    --sidebar-icon-bg: #b5432c;
    --sidebar-text: #ffffff;
    --sidebar-text-soft: #cfc4bd;
    --sidebar-text-muted: #83766f;
    --sidebar-active-line: #f97316;
    --sidebar-account-bg: #241a16;
    --sidebar-account-alt: #2a1f1a;
    --trust-score: #f5a623;
    --logout-text: #e0796a;
    --logout-border: #e0796a;

    --card: #ffffff;
    --card-soft: #f8fbff;
    --ink: #111827;
    --text: var(--ink);
    --muted: #6b7280;
    --line: rgba(0, 0, 0, 0.06);
    --line-strong: rgba(0, 0, 0, 0.06);
    --brand: #f97316;
    --brand-dark: #b5432c;
    --accent: #f97316;
    --success-bg: #dcfce7;
    --success-text: #16a34a;
    --warning-bg: #fef3c7;
    --warning-text: #d97706;
    --error-bg: #fee2e2;
    --error-text: #dc2626;
    --neutral-bg: #f3f4f6;
    --neutral-text: #6b7280;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 24%),
        linear-gradient(180deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
}

body.sidebar-open {
    overflow: hidden;
}

body.landing-page {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 228px 1fr;
    position: relative;
}

.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-divider);
    position: relative;
    z-index: 20;
    min-height: 100vh;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    align-content: start;
    gap: 14px;
    padding-right: 0;
    scrollbar-width: none;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-overlay,
.sidebar-toggle,
.sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.sidebar-brand {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sidebar-divider);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark-icon,
.yt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark-icon svg,
.yt-icon svg {
    width: 14px;
    height: 14px;
}

.brand-mark-icon svg path:first-child,
.yt-icon svg path:first-child {
    fill: #ffcfb1;
}

.brand-mark-icon .play-shape,
.yt-icon .play-shape {
    fill: #ffffff;
}

.yt-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--sidebar-icon-bg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex: 0 0 32px;
}

.yt-icon svg {
    width: 18px;
    height: 18px;
}

.yt-icon svg path,
.yt-icon svg circle {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-label {
    flex: 1;
}

.category-badge {
    font-size: 0.72rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 5px 8px;
    white-space: nowrap;
}

.brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #fff;
}

.brand-mark small {
    display: block;
    color: var(--sidebar-text-soft);
    font-size: 0.58rem;
    line-height: 1.1;
    margin-top: 2px;
}

.sidebar-copy,
.sidebar-heading,
.sidebar-user span {
    color: var(--sidebar-text-muted);
}

.user-name-row,
.headline-row,
.inline-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-name-row {
    justify-content: flex-start;
}

.headline-row {
    margin-bottom: 10px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22);
}

.verified-badge-sm {
    width: 20px;
    height: 20px;
}

.verified-badge-md {
    width: 26px;
    height: 26px;
}

.verified-badge svg {
    width: 12px;
    height: 12px;
}

.verified-badge-md svg {
    width: 15px;
    height: 15px;
}

.verified-badge svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-nav a {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sidebar-text);
    background: transparent;
    transition: 0.2s ease;
}

.sidebar-nav a::before,
.category-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sidebar-active-line) 0%, var(--brand-dark) 100%);
    opacity: 0;
    transform: scaleY(0.45);
    transition: 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--sidebar-active-bg);
    color: #fff;
}

.sidebar-nav a.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.sidebar-nav-group {
    display: grid;
    gap: 6px;
}

.sidebar-nav-group-toggle {
    position: relative;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--sidebar-text);
    background: transparent;
    border: 0;
    text-align: left;
    transition: 0.2s ease;
}

.sidebar-nav-group-toggle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sidebar-active-line) 0%, var(--brand-dark) 100%);
    opacity: 0;
    transform: scaleY(0.45);
    transition: 0.2s ease;
}

.sidebar-nav-group-toggle:hover,
.sidebar-nav-group-toggle.active,
.sidebar-nav-group.is-open .sidebar-nav-group-toggle {
    background: var(--sidebar-active-bg);
    color: #fff;
}

.sidebar-nav-group-toggle.active::before,
.sidebar-nav-group.is-open .sidebar-nav-group-toggle::before {
    opacity: 1;
    transform: scaleY(1);
}

.sidebar-nav-group-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.sidebar-nav-group.is-open .sidebar-nav-group-toggle svg {
    transform: rotate(180deg);
}

.sidebar-subnav {
    display: grid;
    gap: 6px;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid var(--sidebar-divider);
    overflow: hidden;
    max-height: 140px;
    transition: max-height 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

.sidebar-subnav[hidden] {
    display: grid;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.sidebar-subnav a {
    position: relative;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--sidebar-text);
    background: rgba(255, 255, 255, 0.04);
    transition: 0.2s ease;
}

.sidebar-subnav a:hover,
.sidebar-subnav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-subnav a::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sidebar-active-line) 0%, var(--brand-dark) 100%);
    opacity: 0;
}

.sidebar-subnav a.active::before {
    opacity: 1;
}

.sidebar-link-badge {
    margin-left: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.18);
    color: #fff3eb;
    font-size: 0.72rem;
    font-weight: 700;
}

.sidebar-heading {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.66rem;
    margin: 0 0 8px;
}

.category-list {
    display: grid;
    gap: 8px;
}

.category-list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--sidebar-account-alt);
    color: var(--sidebar-text);
    transition: 0.2s ease;
    border: 1px solid var(--sidebar-divider);
    min-width: 0;
}

.category-list a:hover,
.category-list a.active {
    background: var(--sidebar-active-bg);
    color: #fff;
    transform: translateX(2px);
}

.category-list a.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.sidebar-user {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 12px;
    border-radius: 18px;
    background: var(--sidebar-account-bg);
    display: grid;
    gap: 7px;
    box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.22);
    position: relative;
}

.sidebar-user-settings {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sidebar-text-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sidebar-divider);
    transition: 0.2s ease;
}

.sidebar-user-settings:hover {
    color: #fff;
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.28);
    transform: translateY(-1px);
}

.sidebar-user-settings svg {
    width: 17px;
    height: 17px;
}

.sidebar-user-settings svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-user-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.28), rgba(249, 115, 22, 0.12));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.sidebar-user-metrics {
    display: grid;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--sidebar-divider);
}

.sidebar-user-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-user-metric span {
    color: var(--sidebar-text-muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.sidebar-user-metric strong {
    color: #fff;
    font-size: 0.92rem;
}

.sidebar-user-divider {
    height: 1px;
    background: var(--sidebar-divider);
}

.sidebar-user-metric.trust strong {
    color: var(--trust-score);
}

.sidebar-user .btn {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.76rem;
}

.verification-box,
.verification-chip {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.verification-chip-label {
    color: #9cc2ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.sidebar-user-trust {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.main-area {
    padding: 14px 18px 22px;
}

.dashboard-page .main-area {
    padding: 16px 20px; /* Kenar boşluklarını biraz daha optimize eder */
    max-width: 1200px; /* İçeriğin sonsuza kadar uzayıp dağılmasını engeller */
}

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

.dashboard-page .topbar {
    margin-bottom: 0;
}

.dashboard-page .topbar-pill {
    display: none;
}

.dashboard-page .topbar-actions {
    display: none;
}

.dashboard-head {
    display: grid;
    gap: 8px;
    margin-bottom: 2px;
}

.dashboard-head-top,
.dashboard-head-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-head-top {
    min-height: 34px;
}

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

.dashboard-head .headline-row {
    margin-bottom: 0;
}

.dashboard-notification-wrap {
    margin-left: auto;
}

.dashboard-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.topbar-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.notification-wrap {
    position: relative;
}

.notification-bell {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: none;
    cursor: pointer;
}

.notification-bell.has-unread::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--error-text);
    box-shadow: 0 0 0 2px #fff;
}

.notification-bell svg {
    width: 21px;
    height: 21px;
}

.notification-bell svg path,
.notification-bell svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leaderboard-link {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(180, 67, 44, 0.18);
    background: linear-gradient(180deg, rgba(255, 248, 244, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
    color: var(--accent);
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.leaderboard-link:hover {
    transform: translateY(-1px);
    border-color: rgba(180, 67, 44, 0.28);
    box-shadow: 0 10px 24px rgba(180, 67, 44, 0.14);
}

.leaderboard-link svg {
    width: 19px;
    height: 19px;
}

.leaderboard-link svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--error-text);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border: 2px solid #fff;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(420px, 84vw);
    display: none;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    z-index: 40;
}

.notification-dropdown.is-open {
    display: grid;
}

.notification-dropdown-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.notification-dropdown-head strong {
    display: block;
    margin-bottom: 4px;
}

.notification-dropdown-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.notification-dropdown-link {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.88rem;
}

.notification-dropdown-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
}

.notification-dropdown-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.notification-dropdown-item.warning {
    border-color: rgba(245, 158, 11, 0.28);
    background: #fff9ef;
}

.notification-dropdown-item.success {
    border-color: rgba(34, 197, 94, 0.2);
    background: #f5fff8;
}

.notification-dropdown-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.1);
    color: var(--brand);
}

.notification-dropdown-item.warning .notification-dropdown-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.notification-dropdown-item.success .notification-dropdown-icon {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success-text);
}

.notification-dropdown-icon svg {
    width: 18px;
    height: 18px;
}

.notification-dropdown-icon svg path,
.notification-dropdown-icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-dropdown-copy {
    display: grid;
    gap: 4px;
}

.notification-dropdown-copy p,
.notification-dropdown-copy small {
    margin: 0;
    color: var(--muted);
}

.notification-dropdown-copy strong {
    color: var(--ink);
}

.notification-dropdown-footer {
    display: flex;
    justify-content: flex-end;
}

.notification-empty {
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
    background: var(--card-soft);
}

.topbar-pill {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    display: grid;
    gap: 4px;
    box-shadow: var(--shadow);
}

.topbar-pill span {
    color: var(--muted);
    font-size: 0.82rem;
}

.content-area {
    display: grid;
    gap: 12px;
}

.landing-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.landing-topbar,
.landing-footer,
.landing-main {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
}

.landing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 8px;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.landing-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.landing-brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.landing-brand-copy {
    display: grid;
    gap: 2px;
}

.landing-brand-copy strong {
    font-size: 1.4rem;
    color: var(--ink);
    line-height: 1;
}

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

.landing-nav,
.landing-actions,
.landing-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-locale-switch {
    display: flex;
    align-items: center;
}

.landing-locale-switch select {
    min-width: 132px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
}

.landing-nav {
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
}

.landing-nav a {
    padding: 8px 10px;
    border-radius: 10px;
    transition: 0.2s ease;
}

.landing-nav a:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

.landing-main {
    display: grid;
    gap: 22px;
    padding: 12px 0 20px;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.landing-hero-copy,
.landing-hero-panel {
    display: grid;
    gap: 16px;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9fafb 0%, #eef4fb 100%);
    border: 1px solid rgba(249, 115, 22, 0.12);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.92rem;
}

.landing-badge svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 0.98;
}

.landing-hero .lead {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.7;
}

.landing-hero-panel h2 {
    margin: 0;
    font-size: 1.35rem;
}

.landing-hero-points {
    display: grid;
    gap: 12px;
}

.landing-hero-points > div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
}

.landing-hero-points strong {
    font-size: 0.98rem;
}

.landing-hero-points span {
    color: var(--muted);
    line-height: 1.5;
}

.landing-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-stat-card {
    display: grid;
    gap: 10px;
    min-height: 132px;
}

.landing-stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.landing-stat-card strong {
    font-size: clamp(1.2rem, 2vw, 2rem);
    line-height: 1.1;
}

.landing-section {
    display: grid;
    gap: 18px;
}

.landing-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-step-card {
    display: grid;
    gap: 14px;
}

.landing-step-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0.12) 100%);
    color: var(--brand);
}

.landing-step-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-step-copy {
    display: grid;
    gap: 6px;
}

.landing-step-copy p {
    margin: 0;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-step-copy strong {
    font-size: 1.12rem;
}

.landing-step-copy span {
    color: var(--muted);
    line-height: 1.6;
}

.landing-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.landing-category-card {
    display: grid;
    gap: 14px;
    justify-items: start;
    min-height: 150px;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.landing-category-card::after {
    content: "Kayıt ol";
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(-4px);
    transition: 0.2s ease;
}

.landing-category-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.landing-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14) 0%, rgba(181, 67, 44, 0.12) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
}

.landing-category-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-category-card strong {
    font-size: 1.03rem;
}

.landing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.landing-cta h2 {
    margin: 4px 0 10px;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}

.landing-cta p {
    margin: 0;
    max-width: 700px;
}

.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 8px;
}

.landing-footer-brand {
    display: grid;
    gap: 4px;
}

.landing-footer-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-footer p {
    margin: 0;
    color: var(--muted);
}

.landing-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.landing-footer-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.landing-footer-links a:hover {
    color: var(--brand);
}

.hero,
.stats-grid,
.two-col {
    display: grid;
    gap: 16px;
}

.hero {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
}

.hero h1,
.page-head h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.3rem);
    line-height: 1;
    margin: 0 0 10px;
}

.page-head {
    padding-bottom: 0;
    padding-top: 0;
}

.task-create-head {
    padding-bottom: 0;
}

.task-create-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.task-create-cancel:hover {
    color: var(--brand);
}

.lead,
.muted,
.subtext {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 18px;
    box-shadow: none;
}

.dashboard-page .card {
    padding: 16px;
}

.page-head,
.card,
.topbar-pill {
    backdrop-filter: blur(10px);
}

.stack {
    display: grid;
    gap: 16px;
}

.compact-stack {
    gap: 10px;
}

.page-head,
.section-head,
.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.page-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-page .page-head {
    display: flex;
    flex-direction: column; /* Başlık ve buton grubunu alt alta getirir */
    align-items: flex-start;
    margin-top: -6px;
    gap: 12px; /* Başlık ile butonlar arasına mesafe koyar */
}

.dashboard-page .page-head-actions {
    padding-top: 0; /* Gereksiz üst boşluğu sıfırlar */
    justify-content: flex-start; /* Butonları sola yaslar */
    width: 100%;
    margin-left: 0;
    gap: 10px;
}

.dashboard-page .page-head-actions .btn {
    min-width: 128px;
}

.pending-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pending-alert p {
    margin: 4px 0 0;
    color: rgba(107, 75, 0, 0.82);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.20);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
    box-shadow: none;
}

.btn-danger {
    background: transparent;
    color: var(--logout-text);
    border-color: var(--logout-border);
    box-shadow: none;
}

.btn-sm {
    padding: 8px 12px;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.dashboard-page .page-head-actions .btn-primary {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
    box-shadow: none;
}

.dashboard-page .page-head-actions .btn-primary:hover {
    background: #232323;
    border-color: #232323;
}

.btn-outline:hover {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.55);
}

.dashboard-page .page-head-actions .btn-outline {
    background: #ffffff;
    color: #111827;
    border-color: rgba(17, 24, 39, 0.22);
}

.dashboard-page .page-head-actions .btn-outline:hover {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.35);
}

.btn-danger:hover {
    background: var(--logout-text);
    color: #fff;
    border-color: var(--logout-text);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.auth-wrap {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 180px);
}

.auth-page {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
}

.auth-topbar {
    display: flex;
    justify-content: center;
    padding-top: 22px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.auth-brand-mark,
.auth-page-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.auth-brand-mark svg,
.auth-page-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-brand-copy {
    display: grid;
    gap: 2px;
}

.auth-brand-copy strong {
    font-size: 1.4rem;
    color: var(--ink);
    line-height: 1;
}

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

.auth-main {
    display: grid;
    place-items: center;
    padding: 10px 0 26px;
}

.auth-page-copy {
    width: min(420px, 100%);
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.auth-brand-center {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.auth-brand-center h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.02;
}

.auth-brand-center p {
    margin: 0;
    color: var(--muted);
}

.signup-bonus-banner {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14) 0%, rgba(181, 67, 44, 0.18) 100%);
    border: 1px solid rgba(249, 115, 22, 0.18);
    color: #8a431f;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.signup-bonus-banner strong {
    color: var(--brand);
}

.signup-bonus-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
}

.signup-bonus-icon svg,
.auth-terms svg,
.auth-trust-row svg,
.oauth-soon svg {
    width: 100%;
    height: 100%;
}

.signup-bonus-icon svg path,
.auth-terms svg path,
.auth-trust-row svg path,
.auth-trust-row svg rect,
.oauth-soon svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.signup-card {
    width: min(420px, 100%);
    padding: 22px;
}

.auth-form {
    display: grid;
    gap: 14px;
}

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

.form-field label {
    font-weight: 700;
    color: var(--ink);
}

.auth-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth-muted-link {
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 700;
}

.auth-muted-link:hover {
    text-decoration: underline;
}

.form-field input {
    height: 42px;
}

.form-hint {
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

.field-error {
    min-height: 18px;
    margin: -2px 0 0;
    color: #dc2626;
    font-size: 0.84rem;
    line-height: 1.35;
}

.field-error:empty {
    visibility: hidden;
}

.field-error.visible {
    visibility: visible;
}

.auth-alert {
    margin-bottom: 14px;
}

.auth-inline-note {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, 0.14);
    background: rgba(249, 115, 22, 0.06);
    color: #37517b;
    font-size: 0.84rem;
    line-height: 1.55;
}

.form-divider {
    position: relative;
    display: grid;
    place-items: center;
    margin: 2px 0;
    color: var(--muted);
}

.form-divider::before {
    content: "";
    width: 100%;
    border-top: 1px solid var(--line);
    position: absolute;
    top: 50%;
    left: 0;
}

.form-divider span {
    position: relative;
    padding: 0 10px;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

.oauth-soon {
    gap: 10px;
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
    position: relative;
}

.oauth-soon svg {
    width: 18px;
    height: 18px;
    color: #5b6477;
}

.soon-badge {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 800;
}

.oauth-soon:disabled {
    opacity: 0.82;
}

.auth-footer-copy {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
    color: var(--muted);
}

.auth-footer-copy p {
    margin: 0;
}

.auth-footer-copy a {
    color: var(--brand);
    font-weight: 700;
}

.auth-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-trust-row svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.auth-card,
.form-card {
    width: min(760px, 100%);
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-page .stats-grid,
.dashboard-page .two-col,
.dashboard-page .dashboard-insights {
    gap: 12px;
}

.dashboard-insights {
    align-items: stretch;
}

.stat-card {
    background: #fff;
}

.stat-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.8rem;
}

.stat-card strong {
    font-size: 1.7rem;
}

.dashboard-page .stat-card strong {
    font-size: 1.55rem;
}

.stat-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.stat-card-icon svg {
    width: 16px;
    height: 16px;
}

.stat-card-icon svg path,
.stat-card-icon svg circle {
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card.credit .stat-card-icon {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.18);
}

.stat-card.credit .stat-card-icon svg path,
.stat-card.credit .stat-card-icon svg circle {
    stroke: var(--success-text);
}

.stat-card.tasks .stat-card-icon {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.16);
}

.stat-card.tasks .stat-card-icon svg path,
.stat-card.tasks .stat-card-icon svg circle {
    stroke: var(--brand);
}

.stat-card.spent .stat-card-icon {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.16);
}

.stat-card.spent .stat-card-icon svg path,
.stat-card.spent .stat-card-icon svg circle {
    stroke: #dc2626;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    font: inherit;
}

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

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

.split-triple-on-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field-help-trigger {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(249, 115, 22, 0.22);
    background: rgba(249, 115, 22, 0.1);
    color: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.field-help-panel {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    background: rgba(249, 115, 22, 0.06);
    color: var(--muted);
    line-height: 1.5;
}

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

.interest-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

.interest-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.interest-option strong {
    display: block;
}

.interest-option small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-weight: 400;
}

.interest-option:has(input:checked) {
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1) inset;
    background: rgba(249, 115, 22, 0.04);
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.alert.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert.error {
    background: var(--error-bg);
    color: var(--error-text);
}

.alert.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: rgba(245, 158, 11, 0.18);
}

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

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

th,
td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    text-transform: capitalize;
    font-size: 0.88rem;
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.inline-form {
    margin: 0;
}

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

.completion-card,
.marketplace-card,
.meta-box,
.compact-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

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

.marketplace-grid.task-accordion-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.marketplace-head {
    gap: 20px;
    align-items: flex-end;
}

.sort-bar {
    min-width: 280px;
}

.sort-bar label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.sort-bar span {
    color: var(--muted);
    font-size: 0.88rem;
}

.sort-bar select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.compact-card {
    min-width: 180px;
}

.compact-card strong,
.meta-box strong {
    display: block;
    font-size: 1.5rem;
    margin-top: 8px;
}

.task-meta {
    margin: 16px 0;
}

.marketplace-card {
    height: 100%;
    display: grid;
    align-content: start;
}

.marketplace-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.task-card {
    overflow: hidden;
    display: grid;
    gap: 0;
    padding: 12px;
    position: relative;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.task-card.is-open {
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.task-card-toggle-state {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.task-card-summary {
    display: grid;
    gap: 8px;
}

.task-card-main {
    display: grid;
    gap: 7px;
}

.task-owner-line {
    margin: -2px 0 0;
}

.task-owner-line .inline-name {
    line-height: 1.2;
}

.task-card-status-wrap {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.task-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
}

.task-url-link {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.task-url-link:hover {
    color: var(--brand);
}

.task-link-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}

.task-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.task-watch-status {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.4;
}

.task-watch-status.is-active {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.24);
    color: #9a3412;
}

.task-watch-status.is-complete {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.24);
    color: #166534;
}

.task-watch-status.is-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.24);
    color: #b91c1c;
}

.task-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, opacity 0.24s ease, padding-top 0.24s ease;
    opacity: 0;
    padding-top: 0;
}

.task-card-body.is-open {
    opacity: 1;
    padding-top: 10px;
}

.task-card-toggle-state:checked ~ .task-card-body {
    max-height: 720px;
    opacity: 1;
    padding-top: 10px;
}

.task-card-close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
}

.task-card-close-icon:hover {
    background: rgba(15, 23, 42, 0.1);
    color: var(--ink);
}

.task-card-toggle-state:checked ~ .task-card-close-icon {
    display: inline-flex;
}

.task-card-toggle-state:checked ~ .task-card-summary .task-toggle-btn {
    display: none;
}

.task-application-form {
    border-top: 1px solid var(--line);
    padding-top: 8px;
    gap: 8px;
}

.task-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.task-card-note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.task-application-form label {
    gap: 4px;
}

.task-application-form textarea {
    min-height: 58px;
    padding: 10px 12px;
    line-height: 1.35;
    resize: vertical;
}

.task-file-field small {
    color: var(--muted);
    font-size: 0.8rem;
}

.task-file-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.task-file-trigger {
    flex: 0 0 auto;
}

.task-file-name {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.task-meta {
    margin: 10px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.task-meta .meta-box {
    padding: 10px 12px;
    border-radius: 10px;
}

.task-meta .meta-box span {
    font-size: 0.76rem;
    color: var(--muted);
}

.task-meta .meta-box strong {
    margin-top: 4px;
    font-size: 1.15rem;
}

.reward-badge-inline {
    margin-top: 0;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 12px;
    gap: 2px;
    font-size: 0.75rem;
    text-align: right;
}

.btn-disabled {
    pointer-events: none;
    opacity: 0.65;
}

.application-status-default {
    background: var(--neutral-bg);
    color: var(--neutral-text);
}

.application-status-pending {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.application-status-approved {
    background: var(--success-bg);
    color: var(--success-text);
}

.application-status-rejected {
    background: var(--error-bg);
    color: var(--error-text);
}

.pagination-card {
    margin-top: 18px;
}

.pagination-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pagination-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.active-task-summary {
    margin-bottom: 20px;
}

.stat-card.spent.is-alert {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(180deg, rgba(255, 251, 240, 0.98) 0%, rgba(255, 248, 231, 0.98) 100%);
}

.badge-success,
.task-status-badge.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-primary,
.task-status-badge.badge-primary {
    background: rgba(249, 115, 22, 0.12);
    color: var(--brand);
}

.badge-muted,
.task-status-badge.badge-muted {
    background: var(--neutral-bg);
    color: var(--neutral-text);
}

.badge-danger,
.task-status-badge.badge-danger {
    background: var(--error-bg);
    color: var(--error-text);
}

.task-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.active-task-list {
    display: grid;
    gap: 16px;
}

.active-task-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    overflow: hidden;
}

.active-task-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.active-task-card-title {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.active-task-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.active-task-title-row h2 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.2;
    color: var(--ink);
}

.active-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.active-task-card-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.task-icon-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.task-icon-group form {
    margin: 0;
}

.task-icon-button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.18s ease;
}

.task-icon-button:hover {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.28);
    color: var(--accent);
    transform: translateY(-1px);
}

.task-icon-button svg {
    width: 16px;
    height: 16px;
}

.task-icon-button svg path,
.task-icon-button svg rect,
.task-icon-button svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.task-icon-button.is-danger {
    color: #dc2626;
}

.task-icon-button.is-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.28);
}

.task-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.task-stat {
    background: linear-gradient(180deg, #fff 0%, var(--card-soft) 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    display: grid;
    gap: 6px;
}

.task-stat span {
    color: var(--muted);
    font-size: 0.8rem;
}

.task-stat strong {
    font-size: 1rem;
    line-height: 1.1;
}

.task-edit-panel {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.task-edit-form {
    display: grid;
    gap: 14px;
}

.task-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.task-edit-grid label,
.task-reject-form label {
    display: grid;
    gap: 6px;
}

.task-edit-grid label span,
.task-reject-form label span {
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 600;
}

.task-lock-note {
    margin: 0;
    color: var(--warning-text);
    background: var(--warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.93rem;
}

.task-edit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.task-proof-section {
    display: grid;
    gap: 14px;
}

.task-proof-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.task-proof-section-head h3 {
    margin: 0;
    font-size: 1.02rem;
}

.task-proof-section-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.task-proof-list,
.task-history-list {
    display: grid;
    gap: 12px;
}

.task-proof-card,
.task-history-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #fffdf6 0%, #fff7e1 100%);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.08);
}

.task-history-card {
    background: linear-gradient(180deg, #fff 0%, var(--card-soft) 100%);
    box-shadow: none;
}

.task-proof-card-head,
.task-proof-user,
.task-proof-meta-row,
.task-proof-actions,
.task-reject-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-proof-card-head,
.task-proof-meta-row {
    justify-content: space-between;
}

.task-proof-user {
    align-items: flex-start;
    min-width: 0;
}

.task-proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 235, 199, 0.95) 100%);
    border: 1px solid rgba(249, 115, 22, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    font-weight: 800;
    flex: none;
}

.task-proof-user strong {
    display: block;
    font-size: 0.96rem;
}

.task-proof-user p,
.task-proof-note,
.task-history-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.task-proof-note {
    color: var(--ink);
    font-style: italic;
}

.task-proof-meta-row {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.86rem;
}

.task-proof-image-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.task-proof-image-open {
    gap: 8px;
}

.task-proof-image-open svg {
    width: 16px;
    height: 16px;
}

.task-proof-actions {
    flex-wrap: wrap;
}

.task-proof-actions form {
    margin: 0;
}

.task-reject-panel {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(249, 115, 22, 0.18);
}

.task-reject-form {
    display: grid;
    gap: 10px;
}

.task-reject-form textarea {
    min-height: 76px;
}

.task-reject-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.task-history {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 16px 16px;
    background: #fff;
}

.task-history summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
    color: var(--ink);
}

.task-history summary::-webkit-details-marker {
    display: none;
}

.task-history summary span {
    color: var(--muted);
    font-weight: 600;
}

.task-history-empty {
    color: var(--muted);
    font-size: 0.94rem;
    padding-bottom: 4px;
}

.task-proof-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
}

.task-proof-modal[hidden] {
    display: none;
}

.task-proof-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
}

.task-proof-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 32px));
    max-height: min(82vh, 920px);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.task-proof-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.task-proof-modal-head h3 {
    margin: 0;
    font-size: 1.12rem;
}

.task-proof-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.task-proof-modal-close span {
    position: absolute;
    width: 14px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
}

.task-proof-modal-close span:first-child {
    transform: rotate(45deg);
}

.task-proof-modal-close span:last-child {
    transform: rotate(-45deg);
}

.task-proof-modal-image {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

@media (max-width: 920px) {
    .task-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-edit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .active-task-card-head,
    .task-proof-section-head,
    .task-proof-card-head,
    .task-proof-meta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .active-task-card-toolbar {
        justify-content: flex-start;
    }

    .task-stats-grid {
        grid-template-columns: 1fr;
    }

    .task-proof-actions,
    .task-reject-actions {
        align-items: stretch;
    }

    .task-proof-modal-dialog {
        width: min(100vw - 18px, 720px);
        padding: 16px;
    }
}

.active-task-list {
    display: grid;
    gap: 14px;
}

.active-task-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.active-task-card > summary {
    list-style: none;
}

.active-task-card > summary::-webkit-details-marker {
    display: none;
}

.active-task-summary-row {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    cursor: pointer;
}

.active-task-title-row {
    display: grid;
    gap: 8px;
}

.active-task-title-row strong {
    font-size: 1.15rem;
}

.active-task-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.92rem;
    word-break: break-word;
}

.active-task-summary-right {
    display: grid;
    grid-auto-flow: column;
    gap: 12px;
}

.active-task-proof-count {
    min-width: 118px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.06);
    display: grid;
    gap: 4px;
    justify-items: start;
}

.active-task-proof-count span {
    color: var(--muted);
    font-size: 0.8rem;
}

.active-task-proof-count strong {
    font-size: 1.1rem;
}

.active-task-body {
    border-top: 1px solid var(--line);
    padding: 18px 20px 20px;
    display: grid;
    gap: 18px;
}

.active-task-details-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.active-task-details-grid > div {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 4px;
}

.active-task-details-grid span {
    color: var(--muted);
    font-size: 0.8rem;
}

.active-task-details-grid strong {
    font-size: 0.96rem;
}

.task-application-list {
    display: grid;
    gap: 14px;
}

.task-application-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 12px;
}

.task-application-card.approved {
    border-color: rgba(34, 197, 94, 0.22);
}

.task-application-card.rejected {
    border-color: rgba(239, 68, 68, 0.22);
}

.task-application-card.needs_review {
    border-color: rgba(245, 158, 11, 0.28);
}

.task-application-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.task-application-proof {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.task-application-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.task-application-proof-link,
.task-application-owner-note {
    margin: 0;
    font-size: 0.92rem;
}

.task-application-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.application-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.application-status-badge.pending,
.application-status-pending {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.application-status-badge.approved,
.application-status-approved {
    background: var(--success-bg);
    color: var(--success-text);
}

.application-status-badge.rejected,
.application-status-rejected {
    background: var(--error-bg);
    color: var(--error-text);
}

.application-status-badge.needs_review {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.marketplace-action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.reward-badge {
    display: grid;
    gap: 4px;
    min-width: 164px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.14);
    color: var(--brand);
    font-size: 0.82rem;
    text-align: left;
}

.reward-badge strong {
    color: var(--ink);
}

.site-footer {
    color: var(--muted);
    padding: 10px 4px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 8px;
}

.site-footer p,
.site-footer strong,
.site-footer a {
    margin: 0;
}

.site-footer strong,
.site-footer a {
    color: var(--ink);
}

.site-footer-brand {
    display: grid;
    gap: 4px;
}

.site-footer-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff0e9 0%, #ffe1d4 100%);
    color: var(--brand);
    flex: 0 0 auto;
}

.footer-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.site-footer strong {
    font-size: 1rem;
}

.site-footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    font-size: 0.95rem;
}

.site-footer-links a {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-footer-links a:hover {
    color: var(--brand);
}

.footer-meta {
    white-space: nowrap;
    font-size: 0.9rem;
}

.legal-page {
    display: grid;
    gap: 20px;
}

.page-head.compact {
    margin-bottom: 0;
}

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

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

.info-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.info-card h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.contact-card strong {
    color: var(--ink);
}

.privacy-page {
    display: grid;
    gap: 20px;
}

.privacy-content {
    display: grid;
    gap: 16px;
}

.privacy-section,
.privacy-note {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.privacy-section h2 {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

.privacy-section p,
.privacy-section li,
.privacy-note p {
    color: var(--muted);
    line-height: 1.7;
}

.privacy-section ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.legal-document-body {
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 24%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.08), transparent 26%),
        var(--bg);
}

.legal-document-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 36px;
}

.legal-document-main {
    display: grid;
    gap: 24px;
}

.legal-page-head {
    display: grid;
    gap: 14px;
}

.legal-back-link {
    width: fit-content;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.legal-back-link:hover {
    color: var(--accent);
}

.legal-page-head-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.legal-page-head-copy {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

.legal-page-head-copy h1 {
    margin: 0;
}

.legal-pdf-button {
    flex-shrink: 0;
    height: 40px;
}

.legal-pdf-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.legal-toc strong {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.legal-toc nav {
    display: grid;
    gap: 6px;
}

.legal-toc a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.legal-toc a:hover,
.legal-toc a.active {
    background: rgba(255, 111, 61, 0.12);
    color: var(--accent);
    border-color: rgba(255, 111, 61, 0.18);
}

.legal-content {
    display: grid;
    gap: 14px;
}

.legal-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 22px;
    box-shadow: 0 10px 30px rgba(20, 36, 67, 0.05);
    scroll-margin-top: 24px;
}

.legal-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.legal-section-badge {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 111, 61, 0.14);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.legal-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.legal-card-body p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.72;
}

.legal-card-body p:last-child {
    margin-bottom: 0;
}

.legal-card-body a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.legal-card-body a:hover {
    text-decoration: underline;
}

.legal-data-table {
    width: 100%;
    border-collapse: collapse;
}

.legal-data-table th,
.legal-data-table td {
    padding: 14px 0;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
}

.legal-data-table tr:last-child th,
.legal-data-table tr:last-child td {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-data-table th {
    width: 180px;
    color: var(--muted);
    font-weight: 600;
    padding-right: 18px;
}

.legal-data-table td {
    color: var(--text);
    font-weight: 600;
}

.legal-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.legal-icon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--surface-1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text);
}

.legal-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: rgba(255, 111, 61, 0.12);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-icon-label {
    color: var(--text);
    font-weight: 600;
    line-height: 1.5;
}

.legal-bullet-list {
    margin: 0 0 14px;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.legal-bullet-list li {
    color: var(--muted);
    line-height: 1.7;
}

.legal-note {
    padding: 14px 16px;
    background: rgba(249, 115, 22, 0.08);
    border-left: 4px solid rgba(249, 115, 22, 0.45);
    border-radius: 12px;
}

.legal-note-card {
    border: 1px dashed rgba(255, 111, 61, 0.3);
    border-radius: 12px;
    background: rgba(255, 111, 61, 0.06);
    padding: 16px 18px;
}

.legal-note-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }
}

@media (max-width: 767px) {
    .legal-document-shell {
        width: min(100% - 20px, 100%);
        padding-top: 18px;
    }

    .legal-page-head-row {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-pdf-button {
        width: 100%;
        justify-content: center;
    }

    .legal-toc {
        overflow-x: auto;
    }

    .legal-toc nav {
        display: flex;
        gap: 8px;
        padding-bottom: 4px;
        white-space: nowrap;
    }

    .legal-toc a {
        flex-shrink: 0;
    }

    .legal-content {
        gap: 12px;
    }

    .legal-card {
        padding: 18px;
    }

    .legal-icon-grid {
        grid-template-columns: 1fr;
    }

    .legal-data-table th,
    .legal-data-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .legal-data-table th {
        padding-bottom: 0;
    }
}

@media print {
    .legal-back-link,
    .legal-pdf-button,
    .legal-toc {
        display: none !important;
    }

    .legal-document-body {
        background: #fff !important;
    }

    .legal-document-shell {
        width: 100% !important;
        padding: 0 !important;
    }

    .legal-document-main,
    .legal-layout,
    .legal-content {
        display: block !important;
    }

    .legal-card {
        break-inside: avoid;
        box-shadow: none;
        margin: 0 0 14px;
    }
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    line-height: 1.5;
}

.terms-check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.terms-check a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

.proof-grid,
.moderator-grid {
    display: grid;
    gap: 18px;
}

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

.moderator-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

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

.proof-card,
.moderator-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.moderator-summary-card {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.moderator-summary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.22);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.moderator-summary-body {
    display: grid;
    gap: 16px;
    align-content: space-between;
    min-height: 180px;
}

.moderator-summary-body .btn {
    justify-self: start;
}

.proof-card {
    display: grid;
    gap: 14px;
}

.proof-card-head,
.moderator-task-head,
.moderator-user-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.proof-card-head h2,
.moderator-task-head strong {
    margin: 0;
    font-size: 1.08rem;
}

.proof-category,
.proof-age {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
    font-weight: 700;
}

.proof-meta,
.moderator-task-meta,
.moderator-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.proof-text {
    margin: 0;
    color: var(--ink);
    line-height: 1.6;
}

.proof-image-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.proof-actions,
.moderator-task-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.moderator-task-list,
.moderator-user-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.moderator-task-card,
.moderator-user-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.moderator-ban-form {
    display: grid;
    gap: 10px;
}

.moderator-dispute-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.moderator-dispute-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.moderator-dispute-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.moderator-dispute-person {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    gap: 4px;
    background: #fafcff;
}

.moderator-dispute-person strong,
.moderator-dispute-person span,
.moderator-dispute-person small {
    display: block;
}

.moderator-dispute-actions,
.task-dispute-form {
    display: grid;
    gap: 10px;
}

.moderator-dispute-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.moderator-ban-form textarea {
    min-height: 72px;
    resize: vertical;
}

.moderator-modal-open {
    overflow: hidden;
}

.moderator-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.moderator-modal[hidden] {
    display: none !important;
}

.moderator-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
}

.moderator-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: min(88vh, 920px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
    overflow: hidden;
}

.moderator-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.moderator-modal-head h2 {
    margin: 0;
}

.moderator-modal-close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.moderator-modal-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
}

.moderator-modal-list,
.moderator-modal-detail {
    min-height: 0;
    overflow: auto;
}

.moderator-modal-list {
    display: grid;
    gap: 10px;
    align-content: start;
    padding-right: 6px;
}

.moderator-search-field {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 4px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.88) 100%);
}

.moderator-search-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    padding: 12px 14px;
    font: inherit;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.moderator-search-input:focus {
    outline: none;
    border-color: rgba(249, 115, 22, 0.26);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.moderator-list-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 14px 16px;
    display: grid;
    gap: 6px;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.moderator-list-item strong,
.moderator-list-item span,
.moderator-list-item small {
    display: block;
}

.moderator-list-item span,
.moderator-list-item small {
    color: var(--muted);
}

.moderator-list-item:hover,
.moderator-list-item.is-active {
    border-color: rgba(249, 115, 22, 0.26);
    background: rgba(249, 115, 22, 0.08);
    transform: translateY(-1px);
}

.moderator-list-item[hidden] {
    display: none;
}

.moderator-modal-detail {
    display: block;
    padding-right: 6px;
}

.moderator-detail-card {
    display: none;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    padding: 18px;
}

.moderator-detail-card.is-active {
    display: grid;
}

.moderator-detail-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.moderator-detail-tab {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    padding: 8px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.moderator-detail-tab:hover,
.moderator-detail-tab.is-active {
    border-color: rgba(249, 115, 22, 0.26);
    background: rgba(249, 115, 22, 0.08);
    color: var(--brand);
}

.moderator-detail-panel {
    display: none;
    gap: 14px;
}

.moderator-detail-panel.is-active {
    display: grid;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-chip-accent {
    background: rgba(249, 115, 22, 0.1);
    color: var(--brand);
}

.admin-chip-danger {
    background: rgba(239, 68, 68, 0.08);
    color: var(--error-text);
}

.admin-chip-success {
    background: rgba(34, 197, 94, 0.08);
    color: var(--success-text);
}

.page-head-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.transaction-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.transaction-meta {
    text-align: right;
    display: grid;
    gap: 4px;
    justify-items: end;
}

.transaction-meta small {
    color: var(--muted);
    max-width: 220px;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1rem;
}

.transaction-amount.plus {
    color: var(--success-text);
}

.transaction-amount.minus {
    color: var(--error-text);
}

.chart-card {
    padding-top: 8px;
}

.dashboard-page .chart-card {
    padding-top: 4px;
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 220px;
}

.dashboard-page .chart-bars {
    gap: 10px;
    min-height: 180px;
}

.chart-bar-item {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.chart-bar-shell {
    width: 100%;
    min-height: 140px;
    border-radius: 18px;
    background: linear-gradient(180deg, #eef4ff 0%, #dbe8ff 100%);
    display: flex;
    align-items: end;
    padding: 8px;
}

.dashboard-page .chart-bar-shell {
    min-height: 120px;
    border-radius: 16px;
}

.dashboard-page .dashboard-head-body {
    width: 100%;
    align-items: center;
}

.dashboard-page .dashboard-head-body > div:first-child {
    width: 100%;
}

.dashboard-page .dashboard-head-body .page-head-actions {
    width: 100%;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
}

.chart-bar-fill {
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.20);
}

.chart-bar-empty {
    width: 100%;
    height: 8%;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.24);
}

.chart-value {
    font-weight: 700;
    color: var(--ink);
}

.task-builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 24px;
    align-items: start;
    margin-top: -6px;
}

.task-section {
    display: grid;
    gap: 14px;
}

.task-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.task-category-card {
    position: relative;
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    padding: 14px 10px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    font: inherit;
    appearance: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.task-category-card:focus-visible {
    outline: 2px solid rgba(249, 115, 22, 0.55);
    outline-offset: 2px;
}

.task-category-card:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.task-category-card.is-selected {
    border: 2px solid rgba(249, 115, 22, 0.95);
    background: rgba(255, 241, 230, 0.92);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.14);
}

.task-category-card strong {
    font-size: 0.96rem;
    line-height: 1.2;
}

.task-category-card small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.task-category-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0.08) 100%);
}

.task-category-card-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.task-category-card.is-selected .task-category-card-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.12) 100%);
}

.preview-card {
    position: sticky;
    top: 24px;
}

.preview-card.theme-yt-video,
.preview-card.theme-yt-subs,
.preview-card.theme-yt-like,
.preview-card.theme-yt-comment {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.preview-card.theme-yt-video { border-color: rgba(249, 115, 22, 0.16); }
.preview-card.theme-yt-subs { border-color: rgba(249, 115, 22, 0.16); }
.preview-card.theme-yt-like { border-color: rgba(245, 158, 11, 0.16); }
.preview-card.theme-yt-comment { border-color: rgba(13, 148, 136, 0.16); }

.preview-card.theme-yt-video .preview-icon,
.preview-card.theme-yt-video .selected-category-icon {
    color: var(--brand);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16) 0%, rgba(181, 67, 44, 0.08) 100%);
}

.preview-card.theme-yt-subs .preview-icon,
.preview-card.theme-yt-subs .selected-category-icon {
    color: #f97316;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0.08) 100%);
}

.preview-card.theme-yt-like .preview-icon,
.preview-card.theme-yt-like .selected-category-icon {
    color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.preview-card.theme-yt-comment .preview-icon,
.preview-card.theme-yt-comment .selected-category-icon {
    color: #0f766e;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.16) 0%, rgba(13, 148, 136, 0.08) 100%);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0 8px;
}

.preview-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.12) 100%);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preview-icon svg,
.selected-category-icon svg {
    width: 22px;
    height: 22px;
}

.preview-icon svg path,
.preview-icon svg circle,
.selected-category-icon svg path,
.selected-category-icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.preview-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.preview-line span {
    color: var(--muted);
}

.preview-line strong {
    text-align: right;
}

.preview-line.total {
    border-bottom: 0;
    padding-bottom: 0;
}

.form-summary {
    display: grid;
    gap: 6px;
    margin-top: 4px;
}

.cost-line {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
}

.cost-line.success {
    color: var(--success-text);
}

.cost-line.warning,
.cost-warning.warning {
    color: var(--warning-text);
}

.cost-line.danger,
.cost-warning.danger,
.cost-warning {
    color: var(--error-text);
}

.cost-warning {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.8rem;
}

.field-error {
    margin: 6px 0 0;
    color: var(--error-text);
    font-size: 0.82rem;
    font-weight: 700;
}

.selected-category-pill {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.22);
}

.selected-category-pill.theme-yt-video {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.22);
}

.selected-category-pill.theme-yt-subs {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.22);
}

.selected-category-pill.theme-yt-like {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.22);
}

.selected-category-pill.theme-yt-comment {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.22);
}

.selected-category-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.selected-category-pill.theme-yt-video .selected-category-icon {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
}

.selected-category-pill.theme-yt-subs .selected-category-icon {
    background: linear-gradient(135deg, var(--brand) 0%, #fb923c 100%);
}

.selected-category-pill.theme-yt-like .selected-category-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.selected-category-pill.theme-yt-comment .selected-category-icon {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.buy-credits-layout,
.buy-credits-bottom {
    align-items: stretch;
}

.credit-pack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.credit-pack-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.credit-pack-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.credit-pack-card.featured {
    background: linear-gradient(180deg, #fff8f4 0%, #f8fbff 100%);
    border-color: rgba(249, 115, 22, 0.24);
}

.credit-pack-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
}

.credit-pack-head {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding-right: 68px;
}

.credit-pack-head span {
    color: var(--muted);
    font-size: 0.92rem;
}

.credit-pack-head strong {
    font-size: 1.7rem;
}

.buy-credits-price {
    margin: 0 0 16px;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 800;
}

.why-buy-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    border: 1px solid var(--line);
}

.why-buy-box h3 {
    margin: 0 0 12px;
}

.plain-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 10px;
}

.hero-stat-chip {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    border: 1px solid var(--line);
}

.hero-stat-chip span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 0.86rem;
}

.hero-stat-chip strong {
    font-size: 1.2rem;
}

.verification-banner {
    align-items: center;
}

.settings-layout {
    align-items: start;
}

.verification-status-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.verification-status-card.verified {
    border-color: rgba(249, 115, 22, 0.18);
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.checkbox-row input {
    width: auto;
}

.checkbox-row.compact {
    margin-top: 24px;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-row,
.admin-row-form {
    display: grid;
    gap: 12px;
    align-items: end;
}

.admin-row {
    grid-template-columns: 1fr auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-row-form {
    grid-template-columns: minmax(220px, 1fr) repeat(4, auto);
    width: 100%;
}

.admin-row-main {
    display: grid;
    gap: 4px;
}

.admin-row-task {
    grid-template-columns: 1fr auto;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 8px 0;
}

.dashboard-page .empty-state {
    padding: 18px 16px 16px;
}

.compact-empty-state {
    min-height: 220px;
    align-content: center;
}

.leaderboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr);
    gap: 18px;
    align-items: stretch;
}

.leaderboard-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    line-height: 1.1;
}

.leaderboard-hero .muted {
    max-width: 58ch;
}

.leaderboard-prize-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.leaderboard-prize-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(180, 67, 44, 0.14);
    background: rgba(255, 248, 244, 0.9);
    color: var(--text);
}

.leaderboard-prize-pill strong {
    color: var(--accent);
}

.leaderboard-hero-meta {
    display: grid;
    gap: 12px;
}

.leaderboard-score-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.leaderboard-score-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.leaderboard-score-card strong {
    font-size: 1.25rem;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 18px;
    margin-top: 18px;
}

.leaderboard-podium {
    display: grid;
    gap: 12px;
}

.leaderboard-podium-item,
.leaderboard-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.leaderboard-podium-item.rank-1 {
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(180deg, #fff8e9 0%, #fffdf6 100%);
}

.leaderboard-podium-item.rank-2 {
    border-color: rgba(148, 163, 184, 0.28);
}

.leaderboard-podium-item.rank-3 {
    border-color: rgba(180, 67, 44, 0.18);
}

.leaderboard-podium-item.is-self,
.leaderboard-row.is-self {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.12);
}

.leaderboard-podium-rank,
.leaderboard-row-rank {
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.08);
    color: var(--accent);
    font-weight: 800;
}

.leaderboard-podium-name-row,
.leaderboard-row-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.leaderboard-podium-body p,
.leaderboard-row-main p {
    margin: 4px 0 0;
    color: var(--muted);
}

.leaderboard-podium-body span,
.leaderboard-row-meta span {
    display: inline-flex;
    margin-top: 8px;
    font-weight: 800;
    color: var(--accent);
}

.leaderboard-row-meta {
    text-align: right;
}

.leaderboard-self-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.76rem;
    font-weight: 800;
}

.leaderboard-list {
    display: grid;
    gap: 12px;
}

.notification-card {
    display: grid;
    gap: 16px;
}

.notification-list {
    display: grid;
    gap: 14px;
}

.notification-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.notification-item.warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: linear-gradient(180deg, #fff9ed 0%, #fffdf8 100%);
}

.notification-item.info {
    border-color: rgba(249, 115, 22, 0.16);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.16);
    color: var(--brand);
}

.notification-item.info .notification-icon {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.16);
    color: var(--brand);
}

.notification-icon svg {
    width: 22px;
    height: 22px;
}

.notification-icon svg path,
.notification-icon svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-copy {
    display: grid;
    gap: 8px;
}

.notification-copy p {
    margin: 0;
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.12) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 26px;
    height: 26px;
}

.empty-state-icon svg path {
    fill: none;
    stroke: #2c4d8f;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-state h3 {
    margin: 0;
    font-size: 1.15rem;
}

@media (max-width: 1400px) and (min-width: 1121px) {
    .marketplace-grid.task-accordion-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) and (min-width: 861px) {
    .marketplace-grid.task-accordion-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hero,
    .stats-grid,
    .split,
    .two-col,
    .hero-stats-strip,
    .landing-hero,
    .landing-stat-grid,
    .landing-step-grid,
    .landing-category-grid,
    .task-builder-grid,
    .credit-pack-grid,
    .marketplace-grid,
    .proof-grid,
    .moderator-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .page-head,
    .section-head,
    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-head-actions,
    .pending-alert {
        width: 100%;
        justify-content: flex-start;
    }

    .main-area {
        padding: 18px;
    }

    .auth-shell {
        width: min(100%, calc(100% - 24px));
    }

    .signup-card {
        width: 100%;
    }

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

    .preview-card {
        position: static;
    }

    .admin-row,
    .admin-row-form,
    .admin-row-task {
        grid-template-columns: 1fr;
    }

    .landing-topbar,
    .landing-footer,
    .landing-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .landing-nav {
        justify-content: flex-start;
    }

    .landing-actions,
    .landing-cta-actions {
        width: 100%;
    }

    .landing-actions .btn,
    .landing-cta-actions .btn {
        flex: 1 1 auto;
    }

    .landing-main,
    .landing-topbar,
    .landing-footer {
        width: min(100%, calc(100% - 32px));
    }

    .marketplace-grid.task-accordion-list {
        grid-template-columns: 1fr;
    }

    .moderator-grid-modal,
    .moderator-modal-layout,
    .moderator-dispute-people {
        grid-template-columns: 1fr;
    }

    .moderator-modal {
        padding: 12px;
    }

    .moderator-modal-dialog {
        max-height: 92vh;
        padding: 16px;
    }
}

@media (max-width: 767px) {
    .task-card {
        padding: 10px;
    }

    .task-card-summary,
    .task-card-main {
        gap: 6px;
    }

    .task-card .section-head {
        gap: 8px;
    }

    .task-card .section-head h2 {
        font-size: 1.05rem;
        line-height: 1.2;
        padding-right: 28px;
    }

    .task-link-row {
        gap: 8px;
        align-items: flex-start;
    }

    .task-url-link {
        font-size: 0.88rem;
    }

    .reward-badge-inline {
        padding: 6px 8px;
        font-size: 0.72rem;
    }

    .task-meta {
        gap: 6px;
    }

    .task-meta .meta-box {
        padding: 8px 10px;
    }

    .task-meta .meta-box strong {
        font-size: 1rem;
    }

    .task-card-actions {
        gap: 5px;
    }

    .task-application-form {
        gap: 7px;
    }

    .task-application-form textarea {
        min-height: 46px;
        padding: 9px 10px;
    }

    .task-file-row {
        gap: 6px;
    }

    .task-file-name {
        font-size: 0.8rem;
    }

    .task-card-note {
        padding: 9px 10px;
        font-size: 0.88rem;
    }

    .task-form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 86vw);
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sidebar-scroll {
        overflow-y: auto;
    }

    .sidebar-user {
        box-shadow: none;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
        z-index: 15;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-toggle {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.82);
        box-shadow: var(--shadow);
    }

    .sidebar-toggle span,
    .sidebar-close span {
        display: block;
        border-radius: 999px;
    }

    .sidebar-toggle span {
        width: 18px;
        height: 2px;
        background: var(--ink);
    }

    .sidebar-close {
        display: inline-flex;
        position: absolute;
        top: 22px;
        right: 20px;
        width: 36px;
        height: 36px;
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
    }

    .sidebar-close span {
        position: absolute;
        width: 16px;
        height: 2px;
        background: #fff;
    }

    .sidebar-close span:first-child {
        transform: rotate(45deg);
    }

    .sidebar-close span:last-child {
        transform: rotate(-45deg);
    }

    .main-area {
        padding: 16px;
    }

    .topbar {
        gap: 16px;
    }

    .topbar-main {
        align-items: center;
    }

    .dashboard-head-actions {
        gap: 8px;
    }

    .leaderboard-link,
    .notification-bell {
        width: 40px;
        height: 40px;
    }

    .leaderboard-grid,
    .leaderboard-hero {
        grid-template-columns: 1fr;
    }

    .leaderboard-row,
    .leaderboard-podium-item {
        grid-template-columns: auto 1fr;
    }

    .leaderboard-row-meta {
        grid-column: 1 / -1;
        text-align: left;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid-compact {
        grid-template-columns: 1fr;
    }

    .active-task-summary-row {
        grid-template-columns: 1fr;
    }

    .active-task-summary-right {
        grid-auto-flow: row;
    }

    .active-task-details-grid {
        grid-template-columns: 1fr;
    }
}
