:root {
    --background: #151124;
    --foreground: #f4f2ff;
    --card: rgba(30, 24, 44, 0.5);
    --card-strong: rgba(30, 24, 44, 0.72);
    --primary: #b05cff;
    --primary-glow: rgba(176, 92, 255, 0.35);
    --secondary: #72e7ff;
    --secondary-soft: rgba(114, 231, 255, 0.2);
    --muted: #271f39;
    --muted-foreground: #b8b1cd;
    --success: #41d49c;
    --warning: #f4c84f;
    --destructive: #f97373;
    --border: rgba(255, 255, 255, 0.1);
    --input: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #b05cff 0%, #72e7ff 100%);
    --gradient-hero:
        radial-gradient(circle at top, rgba(176, 92, 255, 0.32), transparent 46%),
        radial-gradient(circle at bottom right, rgba(114, 231, 255, 0.2), transparent 36%);
    --shadow-glow: 0 0 56px -14px rgba(176, 92, 255, 0.55);
    --shadow-card: 0 20px 45px -22px rgba(0, 0, 0, 0.65);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--foreground);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-feature-settings: "cv11", "ss01";
}

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

code,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--gradient-hero);
    z-index: -2;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-main {
    min-height: calc(100vh - 145px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--border);
    background: rgba(21, 17, 36, 0.72);
    backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-inner {
    min-height: 64px;
}

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

.brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-image: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

.brand-icon {
    width: 18px;
    height: 18px;
}

.brand-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-text span,
.text-gradient {
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-size: 0.92rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--foreground);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.05rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn .inline-icon {
    width: 15px;
    height: 15px;
}

.btn-primary {
    background-image: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--foreground);
    border-color: var(--border);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn-danger {
    background: rgba(249, 115, 115, 0.12);
    color: #ffd8d8;
    border-color: rgba(249, 115, 115, 0.25);
}

.full {
    width: 100%;
}

.hero-band {
    position: relative;
    overflow: hidden;
    background-image: var(--gradient-hero);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
}

.hero-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 820px;
    padding: 80px 16px 96px;
    text-align: center;
}

.pill,
.pill-muted,
.status-chip,
.status-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.pill {
    margin-bottom: 24px;
    background: rgba(176, 92, 255, 0.1);
    color: #d9a8ff;
    border-color: rgba(176, 92, 255, 0.35);
}

.pill-outline {
    background: rgba(176, 92, 255, 0.1);
    border-color: rgba(176, 92, 255, 0.4);
}

.pill-muted,
.status-chip {
    background: rgba(255, 255, 255, 0.06);
    color: var(--foreground);
    border-color: rgba(255, 255, 255, 0.08);
}

.inline-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.tiny-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.small-icon {
    width: 14px;
    height: 14px;
}

.hero-center h1,
.section-header h1,
.section-header h2,
.package-card h2,
.package-card h3,
.feature-card h3,
.stack-card h2,
.mini-card h3,
.auth-card h1,
.empty-state h1,
.empty-state h2 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-center h1 {
    font-size: clamp(2.45rem, 5vw, 4.4rem);
    line-height: 1.08;
}

.hero-center p,
.section-header p,
.feature-card p,
.meta-line,
.record-copy,
.record-meta,
.muted-note,
.auth-copy-center,
.empty-copy,
.mini-card p {
    color: var(--muted-foreground);
}

.hero-center p {
    margin: 24px auto 0;
    max-width: 720px;
    font-size: 1.06rem;
}

.hero-actions,
.section-actions,
.auth-links,
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 36px;
}

.hero-actions-center,
.section-actions {
    justify-content: center;
    margin-top: 28px;
}

.hero-stats {
    margin-top: 44px;
    display: grid;
    gap: 16px;
}

.hero-stats-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 520px;
}

.hero-stats div {
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    font-size: 0.84rem;
    color: var(--muted-foreground);
}

.section {
    padding: 72px 0;
}

.section-soft {
    padding-top: 8px;
}

.section-header {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-header-center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-header h1,
.section-header h2 {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
}

.section-header p {
    margin: 12px 0 0;
}

.dashboard-heading,
.admin-toolbar {
    margin-bottom: 24px;
}

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

.dashboard-heading h1,
.admin-toolbar h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dashboard-heading p,
.admin-toolbar p {
    margin: 6px 0 0;
    color: var(--muted-foreground);
    font-size: 0.92rem;
}

.compact-header {
    margin-bottom: 24px;
}

.card,
.mini-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--card);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.card {
    padding: 24px;
}

.mini-card {
    padding: 20px;
}

.grid-cards,
.grid-layout,
.stack-layout {
    display: grid;
    gap: 24px;
}

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

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

.grid-cards.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.package-card {
    border-color: rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover,
.package-card:hover {
    border-color: rgba(176, 92, 255, 0.35);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: translateY(-2px);
}

.feature-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 12px;
    background-image: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

.feature-svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.92rem;
}

.package-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.package-card::before {
    content: "";
    position: absolute;
    width: 128px;
    height: 128px;
    top: -38px;
    right: -38px;
    border-radius: 999px;
    opacity: 0.2;
    filter: blur(28px);
}

.package-card[data-tier="starter"]::before {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.package-card[data-tier="pro"]::before {
    background: linear-gradient(135deg, #8b5cf6, #9333ea);
}

.package-card[data-tier="elite"]::before {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.package-card[data-tier="ultimate"]::before {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.package-card > * {
    position: relative;
    z-index: 1;
}

.package-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-line {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.price-line small {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.meta-line {
    margin: 0;
    font-size: 0.82rem;
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    vertical-align: middle;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    font-size: 0.92rem;
}

.feature-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--foreground);
}

.check-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--success);
}

.check-icon-secondary {
    color: var(--secondary);
}

.narrow-section .container,
.auth-card {
    max-width: 520px;
}

.auth-card {
    width: 100%;
}

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

.compact-form {
    gap: 12px;
}

.grid-form {
    display: grid;
    gap: 16px;
}

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

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

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

.field span {
    font-size: 0.88rem;
    font-weight: 500;
}

.input {
    width: 100%;
    border: 1px solid var(--input);
    background: rgba(255, 255, 255, 0.04);
    color: var(--foreground);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus {
    border-color: rgba(176, 92, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(176, 92, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.auth-links {
    justify-content: flex-end;
    font-size: 0.78rem;
}

.auth-links a,
.auth-copy-center a,
.footer-links a,
.record-meta a {
    color: var(--primary);
}

.auth-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.key-icon {
    color: var(--primary);
}

.auth-copy-center {
    margin: 0;
    text-align: center;
    font-size: 0.92rem;
}

.auth-copy-small {
    font-size: 0.8rem;
}

.checkout-steps {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted-foreground);
    font-size: 0.88rem;
}

.checkout-step span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.checkout-step.is-active {
    color: var(--foreground);
}

.checkout-step.is-active span {
    background-image: var(--gradient-primary);
    border-color: transparent;
}

.checkout-layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
}

.payment-box,
.key-box {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 18px;
}

.payment-box h3,
.key-box h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card-title h2,
.section-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.section-card-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.payment-total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
}

.payment-total strong {
    color: var(--foreground);
}

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

.payment-option-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 9, 20, 0.42);
}

.payment-option-card.is-active {
    border-color: rgba(176, 92, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(176, 92, 255, 0.18);
}

.payment-option-card.is-unavailable {
    opacity: 0.8;
}

.payment-option-card p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.92rem;
}

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

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.payment-method-choice {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 9, 20, 0.5);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-choice strong {
    font-size: 0.95rem;
}

.payment-method-choice small {
    color: var(--muted-foreground);
    font-size: 0.82rem;
    line-height: 1.5;
}

.payment-method-choice input {
    margin: 0;
}

.payment-method-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(114, 231, 255, 0.26);
}

.payment-method-choice.is-active,
.payment-method-choice:has(input:checked) {
    border-color: rgba(176, 92, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(176, 92, 255, 0.18);
    background: rgba(176, 92, 255, 0.08);
}

.payment-method-choice.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.payment-link-btn {
    margin-top: 2px;
}

.field-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--muted-foreground);
}

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

.meta-grid.tight {
    gap: 10px;
}

.meta-grid div {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-grid dt {
    margin-bottom: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.meta-grid dd {
    margin: 0;
    word-break: break-word;
}

.flash-stack,
.alert-stack {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.flash,
.inline-alert {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.flash-success,
.inline-alert-success {
    background: rgba(65, 212, 156, 0.12);
    color: #a9f3d3;
    border-color: rgba(65, 212, 156, 0.2);
}

.flash-warning,
.inline-alert-warning {
    background: rgba(244, 200, 79, 0.12);
    color: #ffe7aa;
    border-color: rgba(244, 200, 79, 0.2);
}

.flash-error,
.inline-alert-error,
.inline-alert-critical {
    background: rgba(249, 115, 115, 0.12);
    color: #ffc6c6;
    border-color: rgba(249, 115, 115, 0.22);
}

.stack-card {
    display: grid;
    gap: 18px;
}

.order-list {
    gap: 0;
}

.order-list .order-row + .order-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.order-row {
    padding: 16px 0;
}

.order-row:first-child {
    padding-top: 0;
}

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

.order-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 6px;
    color: var(--muted-foreground);
    font-size: 0.78rem;
}

.order-meta-line code {
    color: var(--foreground);
}

.inline-text-danger {
    margin: 6px 0 0;
    color: #ffc6c6;
    font-size: 0.78rem;
}

.card-topline,
.record-head,
.record-row,
.split-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.balance-block {
    text-align: right;
}

.balance-block strong {
    display: block;
    margin-top: 4px;
    font-size: 1.75rem;
    font-weight: 700;
}

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

.compact-list {
    gap: 10px;
}

.record-row,
.record-block {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(12, 9, 20, 0.42);
}

.record-block {
    display: grid;
    gap: 14px;
}

.record-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 600;
}

.record-copy {
    margin: 4px 0 0;
    font-size: 0.82rem;
}

.record-meta {
    font-size: 0.82rem;
    text-align: right;
}

.status-inline-icon {
    width: 16px;
    height: 16px;
}

.status-tag {
    text-transform: capitalize;
    font-size: 0.72rem;
}

.status-method.get {
    border-color: rgba(65, 212, 156, 0.3);
    color: var(--success);
}

.status-method.post {
    border-color: rgba(114, 231, 255, 0.28);
    color: var(--secondary);
}

.status-pending_review,
.status-pending {
    background: rgba(244, 200, 79, 0.14);
    color: #ffe7aa;
    border-color: rgba(244, 200, 79, 0.22);
}

.status-approved,
.status-active,
.status-used {
    background: rgba(65, 212, 156, 0.14);
    color: #9ef1ca;
    border-color: rgba(65, 212, 156, 0.22);
}

.status-rejected,
.status-expired,
.status-suspended {
    background: rgba(249, 115, 115, 0.14);
    color: #ffc6c6;
    border-color: rgba(249, 115, 115, 0.22);
}

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

.text-danger {
    color: var(--destructive);
}

.status-pending-text {
    color: #ffe7aa;
}

.stat-card {
    padding: 20px;
}

.stat-card > span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.9rem;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.empty-state {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.empty-copy {
    margin: 0;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form-grow {
    flex: 1 1 320px;
}

.inline-form-grow .input {
    min-width: 220px;
    flex: 1 1 auto;
}

.btn-inline {
    padding: 0.5rem 0.75rem;
    width: auto;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--foreground);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(176, 92, 255, 0.35);
    background: rgba(255, 255, 255, 0.07);
}

.inline-icon-button {
    width: 24px;
    height: 24px;
    margin-left: 6px;
    vertical-align: middle;
}

.tabs-shell {
    display: grid;
    gap: 16px;
}

.tabs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.dashboard-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
}

.admin-tabs {
    width: fit-content;
    max-width: 100%;
}

.tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tab-trigger:hover {
    color: var(--foreground);
}

.tab-trigger.is-active {
    background: rgba(176, 92, 255, 0.12);
    color: var(--foreground);
    border-color: rgba(176, 92, 255, 0.28);
    box-shadow: 0 10px 24px -18px rgba(176, 92, 255, 0.9);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(249, 115, 115, 0.22);
    color: #ffd7d7;
    font-size: 0.72rem;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.tab-panel-stack {
    display: grid;
    gap: 16px;
}

.info-box {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 9, 20, 0.42);
}

.info-box h3,
.info-box h4 {
    margin: 0 0 8px;
    font-size: 0.98rem;
}

.info-box p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.84rem;
}

.info-box-primary {
    border-color: rgba(176, 92, 255, 0.2);
    background: rgba(176, 92, 255, 0.08);
}

.info-box-success {
    border-color: rgba(65, 212, 156, 0.2);
    background: rgba(65, 212, 156, 0.06);
}

.help-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.help-list li + li {
    margin-top: 6px;
}

.help-list code,
.help-note code {
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
}

.help-note {
    margin: 10px 0 0;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.help-note a {
    color: var(--primary);
}

.top-gap {
    margin-top: 12px;
}

.field-end {
    align-self: end;
}

.cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 9, 20, 0.42);
}

.cred-main {
    min-width: 0;
    flex: 1;
}

.cred-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.cred-value {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.cred-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-shell {
    padding: 0;
    overflow: hidden;
}

.package-shell > .tabs-shell,
.package-shell-header,
.package-shell .tab-panel,
.package-shell .tabs-list {
    padding-right: 24px;
    padding-left: 24px;
}

.package-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(176, 92, 255, 0.12), rgba(114, 231, 255, 0.1));
}

.package-shell-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.package-shell-title h2 {
    margin: 0;
    font-size: 1.5rem;
}

.package-shell-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--muted-foreground);
}

.balance-panel {
    text-align: right;
}

.balance-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.balance-value {
    margin-top: 4px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wallet-sync-chip {
    color: var(--success);
    border-color: rgba(65, 212, 156, 0.22);
}

.alert-banner-stack {
    display: grid;
    gap: 0;
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 600;
}

.alert-banner-warning {
    background: rgba(244, 200, 79, 0.12);
    color: #ffe7aa;
}

.alert-banner-critical {
    background: rgba(249, 115, 115, 0.12);
    color: #ffc6c6;
}

.alert-action {
    margin-left: auto;
}

.admin-package-card {
    gap: 18px;
}

.admin-alert-stack {
    margin: -24px -24px 4px;
}

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

.analytics-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.analytics-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.analytics-value {
    font-size: 1.5rem;
    line-height: 1.1;
}

.analytics-note {
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

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

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

.admin-package-panel h3 {
    margin: 0;
}

.admin-stat-grid {
    margin-bottom: 24px;
}

.admin-tabs-shell {
    gap: 18px;
}

.stat-highlight {
    border-color: rgba(244, 200, 79, 0.25);
    box-shadow: var(--shadow-card), 0 0 40px -18px rgba(244, 200, 79, 0.45);
}

.warning-icon {
    color: var(--warning);
}

.warning-note {
    margin: 24px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(244, 200, 79, 0.2);
    background: rgba(244, 200, 79, 0.08);
    color: #ffe7aa;
    font-size: 0.78rem;
    line-height: 1.5;
}

.admin-warning-note {
    margin: 0;
}

.admin-login-shell {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 180px);
    padding-top: 48px;
    padding-bottom: 48px;
}

.admin-login-shell .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-live {
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: rgba(176, 92, 255, 0.12);
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.16em;
}

.code-expired {
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-foreground);
    text-decoration: line-through;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.clipboard-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(17, 12, 28, 0.92);
    border: 1px solid rgba(176, 92, 255, 0.25);
    color: var(--foreground);
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.clipboard-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.data-table th,
.data-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.compact-data-table th,
.compact-data-table td {
    padding: 10px;
}

.table-subcopy {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.docs-layout {
    display: grid;
    gap: 24px;
}

.code-block {
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(12, 9, 20, 0.7);
    color: #ddd7ff;
    overflow-x: auto;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(21, 17, 36, 0.5);
    padding: 32px 0;
}

.footer-inner {
    min-height: 32px;
}

.footer-inner p,
.footer-links a {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.install-page {
    padding: 32px 0 56px;
}

.install-shell {
    display: grid;
    gap: 24px;
}

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

.install-hero h1 {
    margin: 0;
}

.install-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--muted-foreground);
}

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

.install-step {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(18, 14, 28, 0.62);
}

.install-step span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.install-step strong {
    font-size: 0.95rem;
}

.install-step-current {
    border-color: rgba(114, 231, 255, 0.4);
    box-shadow: 0 0 0 1px rgba(114, 231, 255, 0.15);
}

.install-step-current span {
    background: var(--gradient-primary);
    color: #fff;
}

.install-step-done {
    border-color: rgba(65, 212, 156, 0.28);
}

.install-step-done span {
    background: rgba(65, 212, 156, 0.2);
    color: var(--success);
}

.install-card {
    display: grid;
    gap: 24px;
}

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

.requirement-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(12, 9, 20, 0.48);
}

.requirement-item strong,
.install-summary dt {
    display: block;
    margin-bottom: 4px;
}

.requirement-item p {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    word-break: break-word;
}

.requirement-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.requirement-status.is-pass {
    background: rgba(65, 212, 156, 0.18);
    color: var(--success);
}

.requirement-status.is-fail {
    background: rgba(249, 115, 115, 0.18);
    color: var(--destructive);
}

.install-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(12, 9, 20, 0.42);
}

.install-summary-compact {
    margin-bottom: 4px;
}

.install-summary dt {
    color: var(--muted-foreground);
    font-size: 0.85rem;
}

.install-summary dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.install-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.install-note {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.field-checkbox {
    align-content: start;
}

.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted-foreground);
}

.checkbox-wrap input {
    margin-top: 4px;
}

.input-textarea {
    min-height: 120px;
    resize: vertical;
}

.package-features-input {
    min-height: 150px;
}

@media (max-width: 1080px) {
    .grid-cards.four,
    .grid-cards.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 760px) {
    .main-nav {
        display: none;
    }

    .header-signup {
        display: none;
    }

    .header-inner,
    .footer-inner,
    .header-actions,
    .record-row,
    .record-head,
    .card-topline,
    .balance-block,
    .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .balance-block,
    .record-meta {
        text-align: left;
    }

    .hero-center {
        padding: 72px 0 84px;
    }

    .hero-stats-inline,
    .grid-cards.two,
    .grid-cards.three,
    .grid-cards.four,
    .grid-form.two,
    .grid-form.three,
    .payment-method-grid,
    .install-steps,
    .install-summary,
    .analytics-grid,
    .admin-package-sections,
    .meta-grid,
    .checkout-steps,
    .dashboard-tabs {
        grid-template-columns: 1fr;
    }

    .btn,
    .header-actions .btn {
        width: 100%;
    }

    .admin-tabs {
        width: 100%;
    }

    .package-shell > .tabs-shell,
    .package-shell-header,
    .package-shell .tab-panel,
    .package-shell .tabs-list {
        padding-right: 18px;
        padding-left: 18px;
    }

    .package-shell-header,
    .cred-row,
    .admin-toolbar,
    .requirement-item,
    .reset-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .balance-panel,
    .record-meta {
        text-align: left;
    }

    .auth-links {
        justify-content: center;
    }
}
