:root {
    --ink: #f7f8ff;
    --muted: #a7adc2;
    --panel: rgba(22, 25, 39, 0.88);
    --line: rgba(255, 255, 255, 0.09);
    --lime: #b7ff3c;
    --purple: #8c67ff;
    --background: #0b0d14;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 80% 10%, rgba(140, 103, 255, 0.17), transparent 30rem),
        radial-gradient(circle at 15% 40%, rgba(183, 255, 60, 0.08), transparent 28rem),
        var(--background);
}

a { color: inherit; }

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 5vw;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 13, 20, 0.82);
    backdrop-filter: blur(18px);
}

.brand, .nav-links { display: flex; align-items: center; }

.brand {
    gap: 0.7rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand img, .balance-pill img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-links { gap: 1.35rem; }

.nav-links > a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 150ms ease;
}

.nav-links > a:hover, .nav-links .nav-secondary { color: var(--ink); }

.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    color: var(--lime);
    font-weight: 800;
    border: 1px solid rgba(183, 255, 60, 0.2);
    border-radius: 999px;
    background: rgba(183, 255, 60, 0.07);
}

.container {
    width: min(1080px, calc(100% - 2rem));
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    padding: 4.5rem 0;
}

.alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    color: #ffdce1;
    border: 1px solid rgba(255, 101, 119, 0.35);
    border-radius: 12px;
    background: rgba(255, 101, 119, 0.1);
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 490px;
}

.eyebrow {
    color: var(--lime);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
    max-width: 760px;
    margin-bottom: 1rem;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.97;
    letter-spacing: -0.065em;
}

.hero h1 { margin-top: 0.8rem; }
.hero h1 span { color: var(--lime); }

.hero-copy > p, .page-heading p, .status-card p, .history-link, .empty-state p {
    color: var(--muted);
    line-height: 1.65;
}

.hero-copy > p { max-width: 590px; font-size: 1.08rem; }

.hero-art {
    position: relative;
    display: grid;
    min-height: 430px;
    place-items: center;
}

.hero-art img {
    position: relative;
    z-index: 1;
    width: min(88%, 420px);
    filter: drop-shadow(0 32px 45px rgba(0, 0, 0, 0.5));
    animation: float 4s ease-in-out infinite;
}

.glow {
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 255, 60, 0.24), rgba(140, 103, 255, 0.12) 48%, transparent 70%);
    filter: blur(10px);
}

@keyframes float { 50% { transform: translateY(-12px) rotate(1deg); } }

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.btn, form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    color: #111608;
    font: inherit;
    font-weight: 850;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    background: var(--lime);
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.btn:hover, form button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #c8ff6e;
}

.btn-secondary {
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); }

.status-card, .form-card, .transaction-list, .quota-card, .credential-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    border-radius: 18px;
}

.status-card h2 { margin: 0.45rem 0; font-size: 1.8rem; }
.status-icon { width: 82px; }

.progress-track {
    width: min(520px, 100%);
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple), var(--lime));
}

.flag {
    display: inline-block;
    padding: 0.8rem 1rem;
    color: var(--lime);
    border-radius: 8px;
    background: #090b10;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.page-heading h1 {
    margin: 0.55rem 0 0.7rem;
    font-size: clamp(2.4rem, 6vw, 4.3rem);
}

.page-heading p { max-width: 650px; margin-bottom: 0; }

.quota-card {
    flex: 0 0 auto;
    padding: 1.1rem 1.3rem;
    text-align: right;
    border-radius: 14px;
}

.quota-card strong {
    display: block;
    color: var(--lime);
    font-size: 2rem;
    line-height: 1;
}

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

.form-card {
    max-width: 680px;
    padding: 2rem;
    border-radius: 18px;
}

.auth-card {
    margin: 3rem auto;
}

.form-help,
form small,
.credential-card > p {
    color: var(--muted);
    line-height: 1.6;
}

form small {
    margin-top: 0.45rem;
}

form { display: flex; flex-direction: column; }
form h2 { margin-bottom: 0.6rem; }

form label {
    margin-top: 1rem;
    color: #d9dced;
    font-size: 0.88rem;
    font-weight: 700;
}

form input, form textarea {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    color: var(--ink);
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: rgba(7, 9, 15, 0.72);
}

form textarea { resize: vertical; }

form input:focus, form textarea:focus {
    border-color: rgba(183, 255, 60, 0.55);
    box-shadow: 0 0 0 3px rgba(183, 255, 60, 0.08);
}

.amount-input { position: relative; }

.amount-input img {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0.9rem;
    width: 25px;
    transform: translateY(-37%);
}

.amount-input input { padding-left: 3rem; }
form button { margin-top: 1.5rem; }

form button:disabled {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

.history-link { margin-top: 1.4rem; }

.history-link a {
    color: var(--lime);
    font-weight: 750;
    text-decoration: none;
}

.personal-history {
    margin-top: 4rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0.4rem 0 0;
    font-size: 1.65rem;
}

.section-heading > a {
    color: var(--lime);
    font-weight: 750;
    text-decoration: none;
}

.transaction-list { overflow: hidden; border-radius: 18px; }

.transaction-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    border-bottom: 1px solid var(--line);
}

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

.transaction-direction {
    display: grid;
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    font-weight: 900;
    border-radius: 12px;
    place-items: center;
}

.transaction-direction.incoming {
    color: var(--lime);
    background: rgba(183, 255, 60, 0.1);
}

.transaction-direction.outgoing {
    color: #bdabff;
    background: rgba(140, 103, 255, 0.13);
}

.transaction-party { display: flex; flex-direction: column; gap: 0.25rem; }
.transaction-party span { color: var(--muted); font-size: 0.8rem; }

.transaction-amount {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    font-weight: 850;
}

.transaction-amount img { width: 23px; }
.transaction-amount.positive { color: var(--lime); }
.transaction-amount.negative { color: #c8bcff; }

.empty-state { padding: 4.5rem 1.5rem; text-align: center; }
.empty-state img { width: 68px; margin-bottom: 1rem; opacity: 0.8; }

.empty-state.compact {
    padding: 2.5rem 1.5rem;
}

.credential-card {
    max-width: 780px;
    margin: 2rem auto;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 20px;
}

.credential-card h1 {
    margin: 0.6rem 0 1rem;
    font-size: clamp(2.4rem, 7vw, 4.5rem);
}

.credential-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.credential-row > div {
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(7, 9, 15, 0.72);
}

.credential-row span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.credential-row strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    overflow-wrap: anywhere;
}

.support-heading {
    margin-bottom: 2rem;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
    align-items: start;
    gap: 2rem;
}

.support-layout .form-card {
    position: sticky;
    top: 104px;
}

.ticket-history {
    min-width: 0;
}

.ticket-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.ticket-card-link + .ticket-card-link {
    margin-top: 1rem;
}

.ticket-card,
.review-card {
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.ticket-card {
    transition: transform 150ms ease, border-color 150ms ease;
}

.ticket-card-link:hover .ticket-card {
    transform: translateY(-2px);
    border-color: rgba(183, 255, 60, 0.3);
}

.ticket-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
}

.ticket-status {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

.status-queued {
    color: #d3c8ff;
    background: rgba(140, 103, 255, 0.14);
}

.status-reviewing {
    color: #fff0a6;
    background: rgba(255, 208, 67, 0.13);
}

.status-answered {
    color: var(--lime);
    background: rgba(183, 255, 60, 0.1);
}

.ticket-text {
    margin: 1.1rem 0 0.55rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ticket-meta {
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.ticket-open {
    display: inline-block;
    margin-top: 1rem;
    color: var(--lime);
    font-size: 0.82rem;
    font-weight: 800;
}

.ticket-progress {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.8rem;
    color: #d8ccff;
    font-size: 0.86rem;
    border-radius: 10px;
    background: rgba(140, 103, 255, 0.09);
}

.ticket-progress.reviewing {
    color: #fff0a6;
    background: rgba(255, 208, 67, 0.09);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 7px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.ticket-reply {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 3px solid var(--lime);
    border-radius: 0 10px 10px 0;
    background: rgba(183, 255, 60, 0.07);
}

.ticket-reply span {
    color: var(--lime);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ticket-reply p {
    margin: 0.45rem 0 0;
    line-height: 1.55;
}

.ticket-empty {
    border: 1px dashed var(--line);
    border-radius: 16px;
}

.review-card {
    max-width: 760px;
    margin: 2rem auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

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

.review-card h1 {
    margin-top: 0.6rem;
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.complaint-payload {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(7, 9, 15, 0.72);
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 5vw;
    color: var(--muted);
    font-size: 0.82rem;
    border-top: 1px solid var(--line);
}

footer p { margin: 0; }
footer a { color: var(--lime); }

@media (max-width: 760px) {
    nav { align-items: flex-start; padding-top: 1rem; padding-bottom: 1rem; }
    .nav-links { justify-content: flex-end; gap: 0.75rem; }
    .nav-links > a:not(.nav-secondary), .brand span { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-art { min-height: 310px; grid-row: 1; }
    .hero-art img { width: min(70%, 300px); }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .quota-card { text-align: left; }
    .credential-row { grid-template-columns: 1fr; }
    .support-layout { grid-template-columns: 1fr; }
    .support-layout .form-card { position: static; }
    .transaction-row { grid-template-columns: auto 1fr; }
    .transaction-amount { grid-column: 2; }
    footer { gap: 0.5rem; flex-direction: column; }
}
