* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(199, 146, 234, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 138, 42, 0.08), transparent 30%),
        #11131a;
    color: #f5f5f5;
}

a {
    color: #c792ea;
}

a:hover {
    color: #dcb3f0;
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 18px 60px;
}

/* The account dashboard hosts multiple stacked tool panels (pools, hauls,
   integrations, etc.) and benefits from the same width as the tool pages
   themselves - login/register/etc. stay narrow since they're single forms. */
.page.page-wide {
    max-width: 1180px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-decoration: none;
}

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

.nav-links a {
    color: #c9ccd6;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    color: #c792ea;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: #aeb3c1;
    font-size: 13px;
    margin: 4px 0 28px;
}

.breadcrumb a {
    color: #c792ea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.hero {
    margin-bottom: 28px;
}

.eyebrow {
    color: #c792ea;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.14em;
    margin: 0 0 10px;
    font-weight: 800;
}

h1 {
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.05;
    margin: 0 0 12px;
}

h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

p {
    line-height: 1.6;
}

.intro {
    max-width: 600px;
    color: #d5d8e2;
    font-size: 17px;
    margin-bottom: 8px;
}

.panel {
    background: rgba(28, 31, 42, 0.94);
    border: 1px solid #303546;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.tab-bar {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid #303546;
}

.tab-button {
    background: transparent;
    color: #aeb3c1;
    font-weight: 800;
    font-size: 15px;
    padding: 10px 2px;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    cursor: pointer;
}

.tab-button:hover {
    background: transparent;
    color: #f5f5f5;
}

.tab-button.is-active {
    color: #c792ea;
    border-bottom-color: #c792ea;
}

.panel.wide {
    margin-top: 18px;
}

.form-row {
    margin-bottom: 16px;
}

label {
    display: block;
    font-weight: 800;
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #3d4358;
    background: #11131a;
    color: #fff;
    border-radius: 10px;
    padding: 12px 13px;
    font-size: 16px;
}

small,
.muted {
    color: #aeb3c1;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #c792ea;
    color: #11131a;
    font-weight: 900;
    border-radius: 10px;
    padding: 13px 18px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

button:hover,
.button:hover {
    background: #dcb3f0;
}

.button-muted {
    background: #242938;
    color: #f4f4f4;
    border: 1px solid #3a4054;
}

.button-muted:hover {
    background: #30364a;
    color: #fff;
}

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

.pagination a {
    background: #242938;
    border: 1px solid #3a4054;
    border-radius: 10px;
    padding: 10px 13px;
    text-decoration: none;
    color: #f4f4f4;
    font-weight: 700;
    font-size: 14px;
}

.pagination a:hover {
    background: #30364a;
    color: #fff;
}

.pagination p {
    margin: 0;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #6b7080;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.divider-row::before,
.divider-row::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #303546;
}

.notice {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.notice.success {
    background: #1f3525;
    border: 1px solid #3a7c49;
    color: #d5f5dc;
}

.notice.error {
    background: #3a1f1f;
    border: 1px solid #8c3c3c;
    color: #ffd2d2;
}

.notice.info {
    background: #1f2a3a;
    border: 1px solid #3c6a8c;
    color: #d2ecff;
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge.is-pending {
    background: #ffbd66;
    color: #11131a;
}

.status-badge.is-approved,
.status-badge.is-useful {
    background: #73d989;
    color: #11131a;
}

.status-badge.is-rejected,
.status-badge.is-unpaid {
    background: #ff7a7a;
    color: #11131a;
}

.status-badge.is-partial {
    background: #ffbd66;
    color: #11131a;
}

.status-badge.is-paid {
    background: #73d989;
    color: #11131a;
}

.status-badge.is-overpaid {
    background: #6285ff;
    color: #11131a;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

th,
td {
    border-bottom: 1px solid #303546;
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    color: #c792ea;
}

.pool-row {
    background: #141722;
    border: 1px solid #303546;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pool-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.small-button {
    padding: 9px 12px;
    font-size: 13px;
}

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

.site-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #303546;
    color: #aeb3c1;
    font-size: 14px;
}

.site-footer a {
    color: #ffbd66;
}

.hidden {
    display: none !important;
}

@media (max-width: 680px) {
    .top-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        gap: 12px;
    }

    .pool-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
