* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255,255,255,.08), transparent 28%),
        #06070a;
    color: #f8fafc;
}

a {
    color: inherit;
}

.marketing-auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.marketing-auth-shell {
    width: min(1120px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 40px 140px rgba(0,0,0,.55);
}

.auth-visual {
    padding: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(212,175,55,.22), rgba(255,255,255,.02)),
        rgba(0,0,0,.28);
}

.auth-visual img {
    width: 150px;
    margin-bottom: 34px;
}

.auth-visual span {
    color: #fde68a;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.auth-visual h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    margin: 18px 0;
}

.auth-visual p {
    color: #d4d4d8;
    max-width: 520px;
    line-height: 1.7;
}

.auth-card {
    padding: 44px;
    background: rgba(8,9,13,.82);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card-header h2 {
    font-size: 32px;
    margin: 0 0 8px;
}

.auth-card-header p {
    color: #a1a1aa;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.auth-form label,
.portal-form label {
    color: #e4e4e7;
    font-size: 13px;
    font-weight: 900;
}

.auth-form input,
.portal-form input,
.filter-form input,
.filter-form select {
    min-height: 50px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    padding: 0 15px;
    outline: none;
    font-family: inherit;
}

.auth-form button,
.portal-form button,
.filter-form button,
.gold-btn {
    min-height: 50px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #d4af37);
    font-weight: 900;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

.auth-links {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.auth-links a {
    color: #fde68a;
    font-weight: 800;
    text-decoration: none;
}

.notice {
    padding: 14px 16px;
    border-radius: 16px;
    margin: 14px 0;
    font-weight: 800;
    line-height: 1.5;
}

.notice.success {
    color: #bbf7d0;
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.22);
}

.notice.error {
    color: #fecdd3;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.22);
}

.notice.warning {
    color: #fde68a;
    background: rgba(250,204,21,.12);
    border: 1px solid rgba(250,204,21,.22);
}

.marketing-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 285px 1fr;
}

.marketing-sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
    padding: 24px;
    background: rgba(0,0,0,.38);
    border-right: 1px solid rgba(255,255,255,.09);
}

.marketing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.marketing-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.marketing-brand strong {
    display: block;
    font-size: 17px;
}

.marketing-brand span,
.marketing-user-card span {
    color: #a1a1aa;
    font-size: 12px;
}

.marketing-user-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.marketing-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #facc15, #d4af37);
    color: #111827;
    font-weight: 900;
}

.marketing-nav {
    display: grid;
    gap: 8px;
}

.marketing-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 0 14px;
    color: #d4d4d8;
    text-decoration: none;
    font-weight: 800;
}

.marketing-nav a.active,
.marketing-nav a:hover {
    background: rgba(212,175,55,.16);
    color: #fde68a;
}

.marketing-sidebar-footer {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.marketing-sidebar-footer a {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(239,68,68,.14);
    color: #fecdd3;
    text-decoration: none;
    font-weight: 900;
}

.marketing-main {
    padding: 28px;
}

.marketing-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 24px;
}

.marketing-topbar h1 {
    margin: 0 0 6px;
    font-size: 34px;
}

.marketing-topbar p {
    margin: 0;
    color: #a1a1aa;
}

.topbar-pill {
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
}

.topbar-pill span {
    display: block;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.topbar-pill strong {
    display: block;
    margin-top: 5px;
    color: #fde68a;
    font-size: 22px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-grid.three {
    grid-template-columns: repeat(3, minmax(0,1fr));
}

.stat-card,
.portal-panel,
.wallet-hero {
    border-radius: 26px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.stat-card {
    padding: 22px;
}

.stat-card.gold {
    background:
        radial-gradient(circle at top left, rgba(250,204,21,.22), transparent 35%),
        rgba(255,255,255,.06);
}

.stat-card span {
    display: block;
    color: #a1a1aa;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    color: #fff;
}

.stat-card p {
    color: #a1a1aa;
    margin-bottom: 0;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.portal-panel {
    padding: 22px;
    margin-bottom: 20px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.panel-header h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

.panel-header p {
    margin: 0;
    color: #a1a1aa;
}

.panel-header a {
    color: #fde68a;
    text-decoration: none;
    font-weight: 900;
}

.profile-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-summary div,
.rules-list div {
    padding: 15px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.profile-summary span,
.rules-list span {
    display: block;
    color: #a1a1aa;
    font-size: 12px;
    margin-bottom: 6px;
}

.profile-summary strong,
.rules-list strong {
    color: #fff;
}

.mini-list {
    display: grid;
    gap: 10px;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px;
    border-radius: 17px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

.mini-row span,
td span {
    display: block;
    color: #a1a1aa;
    font-size: 12px;
    margin-top: 4px;
}

.mini-row b,
.credit-text {
    color: #bbf7d0;
}

.debit-text {
    color: #fecdd3;
}

.empty-box,
.empty-table {
    padding: 22px;
    color: #a1a1aa;
    text-align: center;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-form input,
.filter-form select {
    width: auto;
    min-width: 210px;
}

.filter-form a {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #fde68a;
    background: rgba(212,175,55,.10);
    font-weight: 900;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
}

th {
    text-align: left;
    color: #a1a1aa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    vertical-align: top;
}

.badge {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(255,255,255,.08);
    color: #e4e4e7;
}

.badge.active,
.badge.approved,
.badge.posted,
.badge.credit {
    background: rgba(34,197,94,.13);
    color: #bbf7d0;
}

.badge.pending {
    background: rgba(250,204,21,.13);
    color: #fde68a;
}

.badge.rejected,
.badge.cancelled,
.badge.debit {
    background: rgba(239,68,68,.13);
    color: #fecdd3;
}

.portal-form {
    display: grid;
    gap: 12px;
}

.wallet-hero {
    padding: 32px;
    margin-bottom: 20px;
    background:
        radial-gradient(circle at top left, rgba(250,204,21,.22), transparent 38%),
        rgba(255,255,255,.055);
}

.wallet-hero span {
    color: #fde68a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.wallet-hero strong {
    display: block;
    font-size: clamp(38px, 7vw, 64px);
    margin: 8px 0;
}

.wallet-hero p {
    margin: 0;
    color: #a1a1aa;
}

.rules-list {
    display: grid;
    gap: 10px;
}

@media(max-width: 1000px) {
    .marketing-auth-shell,
    .marketing-layout,
    .portal-grid,
    .stat-grid,
    .stat-grid.three {
        grid-template-columns: 1fr;
    }

    .marketing-sidebar {
        position: relative;
        min-height: auto;
    }

    .marketing-sidebar-footer {
        position: static;
        margin-top: 24px;
    }

    .marketing-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-visual,
    .auth-card {
        padding: 30px;
    }
}

@media(max-width: 640px) {
    .marketing-main {
        padding: 18px;
    }

    .profile-summary {
        grid-template-columns: 1fr;
    }

    .filter-form input,
    .filter-form select,
    .filter-form button,
    .filter-form a {
        width: 100%;
    }
}