* {
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
}

:root {
    --bg-main: #0b1020;
    --bg-panel: rgba(255, 255, 255, 0.075);
    --bg-panel-strong: rgba(255, 255, 255, 0.11);
    --border-soft: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-muted: #9ca3af;
    --text-soft: #cbd5e1;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --green: #22c55e;
    --dark-card: rgba(15, 23, 42, 0.72);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
}

a {
    color: inherit;
}

/* Layout */

.app,
.dashboard {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.28), transparent 32%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.13), transparent 28%),
        linear-gradient(135deg, #080d1c 0%, #111827 55%, #0b1020 100%);
}

/* Sidebar */

.sidebar {
    width: 310px;
    padding: 24px;
    background: rgba(8, 13, 28, 0.82);
    border-right: 1px solid var(--border-soft);
    backdrop-filter: blur(22px);
    color: var(--text-main);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 24px;
    background:
        linear-gradient(135deg, #38bdf8, #6366f1 48%, #a855f7);
    box-shadow:
        0 16px 35px rgba(59, 130, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sidebar h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.04em;
}

.sidebar p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin: 9px 0;
    padding: 12px 14px;
    border-radius: 15px;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.2s ease;
}

.sidebar a:hover {
    color: white;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    transform: translateX(4px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.25);
}

.tool-box {
    margin-top: 26px;
}

.tool-box h3 {
    margin: 26px 0 12px;
    color: #93c5fd;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.tool-box button {
    width: 100%;
    margin-bottom: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tool-box button:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.45);
    color: white;
}

/* Chat */

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 28px 38px;
    background: rgba(11, 16, 32, 0.72);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
}

.header h1 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -0.055em;
    line-height: 1.05;
    background: linear-gradient(135deg, #f8fafc 0%, #93c5fd 42%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    max-width: 760px;
    color: var(--text-muted);
    margin: 10px 0 0;
    font-size: 15px;
}

.chat-box {
    flex: 1;
    padding: 34px 38px;
    overflow-y: auto;
}

.message {
    max-width: 820px;
    padding: 17px 19px;
    margin-bottom: 18px;
    border-radius: 20px;
    line-height: 1.65;
    white-space: pre-wrap;
    font-size: 15px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.message.ai {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #e5e7eb;
    border-top-left-radius: 6px;
}

.message.user {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    margin-left: auto;
    border-top-right-radius: 6px;
}

.input-area {
    display: flex;
    padding: 24px 34px;
    background: rgba(11, 16, 32, 0.86);
    border-top: 1px solid var(--border-soft);
    backdrop-filter: blur(18px);
}

.input-area input {
    flex: 1;
    padding: 17px 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.075);
    color: white;
    outline: none;
}

.input-area input::placeholder {
    color: #8b95a7;
}

.input-area input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.13);
}

.input-area button {
    margin-left: 14px;
    padding: 17px 26px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-area button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(59, 130, 246, 0.35);
}

/* Dashboard */

.dashboard-main {
    flex: 1;
    padding: 38px;
}

.dashboard-header {
    padding: 30px;
    margin-bottom: 28px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.14)),
        rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.dashboard-header h1,
.dashboard-main h1 {
    margin: 0;
    font-size: 38px;
    letter-spacing: -0.055em;
    background: linear-gradient(135deg, #ffffff, #93c5fd 45%, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-header p,
.dashboard-main p {
    color: var(--text-muted);
}

.project-form {
    background: var(--dark-card);
    padding: 28px;
    border-radius: 26px;
    margin-bottom: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.project-form h2 {
    margin-top: 0;
    color: white;
    letter-spacing: -0.03em;
}

.project-form label {
    display: block;
    margin-bottom: 8px;
    color: #bfdbfe;
    font-weight: 800;
    font-size: 14px;
}

.project-form input,
.project-form textarea {
    width: 100%;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.62);
    color: white;
    outline: none;
}

.project-form input:focus,
.project-form textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.13);
}

.project-form textarea {
    min-height: 135px;
    resize: vertical;
}

.project-form button,
.card button {
    padding: 14px 22px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-form button:hover,
.card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(59, 130, 246, 0.35);
}

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

.form-notice {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a !important;
}

.success-notice {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.38);
    color: #bbf7d0 !important;
}

.form-help {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.settings-panel {
    max-width: 780px;
}

.settings-panel .form-help {
    margin: -6px 0 18px;
}

.connection-status {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.connection-status.connected {
    color: #bbf7d0 !important;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.38);
}

.connection-status.not-connected {
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.build-status {
    display: inline-flex;
    margin: 0 0 16px !important;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.build-status.completed {
    color: #bbf7d0 !important;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.38);
}

.build-status.in-progress {
    color: #bfdbfe !important;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.38);
}

.build-status.not-started {
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.build-center-grid {
    margin-top: 0;
}

.build-center-card {
    display: flex;
    flex-direction: column;
}

.build-center-card .card-actions {
    margin-top: auto;
    padding-top: 18px;
}

.build-count {
    display: inline-flex;
    align-self: flex-start;
    margin: 4px 0 0 !important;
    padding: 7px 10px;
    border-radius: 999px;
    color: #bfdbfe !important;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.28);
    font-size: 12px;
    font-weight: 900;
}

.next-action-card {
    padding: 28px;
    margin-bottom: 28px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(124, 58, 237, 0.28)),
        rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(147, 197, 253, 0.42);
    box-shadow: var(--shadow);
}

.next-action-card h2 {
    margin: 0 0 10px;
    color: white;
    letter-spacing: -0.03em;
}

.next-action-card p:not(.eyebrow) {
    max-width: 760px;
    color: var(--text-soft);
    line-height: 1.6;
}

.launch-package-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    margin-bottom: 28px;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(147, 197, 253, 0.28);
    box-shadow: var(--shadow);
}

.launch-package-cta h2 {
    margin: 0;
    color: white;
}

.launch-package-cta p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--text-soft);
}

.launch-package-grid,
.asset-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.launch-package-grid {
    margin-bottom: 28px;
}

.launch-package-section,
.asset-summary-list {
    padding: 24px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.17);
    box-shadow: var(--shadow);
}

.launch-package-section {
    margin-bottom: 28px;
}

.launch-package-grid .launch-package-section {
    margin-bottom: 0;
}

.launch-package-section h2,
.asset-summary-list h3 {
    margin-top: 0;
    color: white;
}

.asset-summary-grid {
    margin-top: 18px;
}

.asset-summary-list {
    box-shadow: none;
}

.launch-action-plan {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.18)),
        rgba(15, 23, 42, 0.82);
}

.generator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.approval-warning,
.approval-actions,
.approval-context {
    padding: 24px;
    margin-top: 24px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.17);
    box-shadow: var(--shadow);
}

.approval-warning {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(120, 53, 15, 0.22);
}

.approval-warning h2,
.approval-actions h2,
.approval-context h2,
.approval-card h2,
.approval-context-item h3 {
    margin-top: 0;
    color: white;
}

.approval-warning p,
.approval-actions p,
.approval-context p,
.approval-card li {
    color: var(--text-soft);
    line-height: 1.65;
}

.approval-grid,
.approval-context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

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

.approval-card,
.approval-context-item {
    padding: 20px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.approval-card ul {
    padding-left: 20px;
}

.approval-context-item {
    margin-top: 14px;
}

.approval-context-item p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.approval-actions form {
    display: inline-flex;
}

.summary-actions {
    margin-bottom: 30px;
}

.summary-copy {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.65;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-panel {
    padding: 24px;
    margin-bottom: 28px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.17);
    box-shadow: var(--shadow);
}

.admin-panel h2 {
    margin-top: 0;
    color: white;
}

.usage-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.usage-stat {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.3);
}

.usage-stat span,
.usage-stat small {
    color: var(--text-soft);
}

.usage-stat strong {
    color: white;
    font-size: 22px;
}

.usage-stat small {
    line-height: 1.45;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-soft);
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #93c5fd;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-payment-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
}

.admin-payment-status.success {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.38);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.055));
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
    transition: all 0.22s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.58);
}

.card h3 {
    margin-top: 0;
    color: white;
    letter-spacing: -0.03em;
}

.card p {
    color: var(--text-soft);
}

/* Landing / Pricing */

.landing-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.3), transparent 30%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.22), transparent 28%),
        linear-gradient(135deg, #080d1c 0%, #111827 55%, #0b1020 100%);
}

.landing-nav,
.landing-footer,
.landing-hero,
.landing-section,
.landing-pricing-cta,
.pricing-main {
    width: min(1180px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

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

.landing-brand,
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 900;
    text-decoration: none;
}

.landing-nav-links,
.landing-actions,
.landing-footer div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.landing-nav-links a,
.landing-footer a {
    color: var(--text-soft);
    font-weight: 800;
    text-decoration: none;
}

.landing-nav-links a:not(.primary-button):hover,
.landing-footer a:hover {
    color: white;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 48px;
    min-height: 680px;
    padding: 76px 0;
}

.landing-hero h1,
.pricing-intro h1 {
    max-width: 820px;
    margin: 0;
    color: white;
    font-size: clamp(48px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.075em;
}

.landing-lead,
.pricing-intro p,
.landing-pricing-cta p {
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.landing-actions {
    margin-top: 26px;
}

.landing-trust {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.landing-preview,
.landing-feature-card,
.landing-step-grid > div,
.pricing-card {
    border: 1px solid rgba(148, 163, 184, 0.17);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.landing-preview {
    padding: 28px;
    border-radius: 28px;
}

.landing-preview h2,
.landing-section h2,
.landing-pricing-cta h2,
.pricing-card h2 {
    margin-top: 0;
    color: white;
    letter-spacing: -0.045em;
}

.landing-progress {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--text-soft);
}

.landing-progress strong {
    color: #93c5fd;
    text-align: right;
}

.landing-section {
    padding: 90px 0;
}

.landing-section > h2,
.landing-pricing-cta h2 {
    max-width: 760px;
    font-size: clamp(34px, 5vw, 54px);
}

.landing-feature-grid,
.landing-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.landing-feature-card,
.landing-step-grid > div {
    padding: 24px;
    border-radius: 22px;
}

.landing-feature-card h3,
.landing-step-grid h3,
.pricing-payment-note h3 {
    color: white;
}

.landing-feature-card p,
.landing-step-grid p,
.pricing-copy,
.pricing-payment-note p {
    color: var(--text-soft);
    line-height: 1.65;
}

.feature-number,
.landing-step-grid strong {
    color: #60a5fa;
    font-size: 24px;
    font-weight: 900;
}

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

.landing-pricing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 34px;
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.2)),
        rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 38px 0;
    color: var(--text-muted);
}

.pricing-main {
    padding: 90px 0;
}

.pricing-intro {
    max-width: 850px;
    margin-bottom: 34px;
}

.pricing-card {
    max-width: 820px;
    padding: 34px;
    border-radius: 28px;
}

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

.pricing-grid .pricing-card {
    max-width: none;
}

.pricing-grid .pricing-button {
    width: 100%;
    margin-top: 18px;
}

.pricing-onboarding-notice {
    padding: 22px;
    margin-bottom: 24px;
    border: 1px solid rgba(96, 165, 250, 0.46);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.14)),
        rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow);
}

.pricing-onboarding-notice h2 {
    margin: 0;
    color: white;
}

.pricing-onboarding-notice p:last-child {
    margin-bottom: 0;
    color: var(--text-soft);
}

.pricing-badge {
    display: inline-flex;
    padding: 6px 10px;
    margin: 0 0 16px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.34);
    border: 1px solid rgba(96, 165, 250, 0.5);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-package,
.package-status-card {
    border-color: rgba(96, 165, 250, 0.52);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.16)),
        rgba(15, 23, 42, 0.82);
}

.pricing-checkout-note {
    max-width: 820px;
    margin-top: 24px;
}

.package-status-card {
    padding: 22px;
    margin-bottom: 20px;
    border-style: solid;
    border-width: 1px;
    border-radius: 20px;
}

.package-status-card h2 {
    margin: 0;
    color: white;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 22px 0;
}

.pricing-amount strong {
    color: white;
    font-size: 58px;
    letter-spacing: -0.07em;
}

.pricing-amount span {
    color: var(--text-muted);
}

.pricing-list {
    display: grid;
    gap: 13px;
    padding-left: 22px;
    color: var(--text-soft);
    line-height: 1.5;
}

.pricing-payment-note {
    padding: 18px;
    margin: 24px 0;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 18px;
    background: rgba(59, 130, 246, 0.1);
}

.pricing-payment-note h3,
.pricing-payment-note p {
    margin-top: 0;
}

.pricing-button {
    width: 100%;
}

.onboarding-steps {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.onboarding-step {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.28);
}

.onboarding-step.active {
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(37, 99, 235, 0.12);
}

.onboarding-step strong {
    display: grid;
    flex: 0 0 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.onboarding-step h3,
.onboarding-step p {
    margin: 0;
}

.onboarding-step h3 {
    color: white;
}

.onboarding-step p {
    margin-top: 5px;
}

.readiness-grid {
    margin-bottom: 28px;
}

.readiness-card .connection-status {
    margin-top: 0;
}

.readiness-mode-card {
    padding: 24px;
    margin: 24px 0;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 22px;
    background: rgba(120, 53, 15, 0.22);
    box-shadow: var(--shadow);
}

.readiness-mode-card.live {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(20, 83, 45, 0.24);
}

.readiness-mode-card h2 {
    margin: 0;
    color: white;
}

.readiness-mode-card p:last-child {
    margin-bottom: 0;
    color: var(--text-soft);
}

.readiness-reminders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.readiness-reminders > div {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.28);
}

.readiness-reminders h3 {
    margin-top: 0;
    color: white;
}

.readiness-reminders a {
    color: #93c5fd;
    font-weight: 800;
}

.production-checklist {
    display: grid;
    gap: 12px;
    padding-left: 24px;
    color: var(--text-soft);
    line-height: 1.55;
}

.production-checklist li {
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.28);
}

.admin-readiness-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.admin-readiness-card p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--text-soft);
}

/* Auth Pages */

.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.3), transparent 32%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.22), transparent 34%),
        #0b1020;
}

.auth-card {
    width: 430px;
    background: rgba(15, 23, 42, 0.78);
    padding: 38px;
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 34px 85px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(24px);
}

.auth-card h1 {
    margin-top: 0;
    color: white;
    font-size: 34px;
    letter-spacing: -0.055em;
}

.auth-card h2,
.auth-card h3 {
    color: white;
}

.auth-card p {
    color: var(--text-soft);
}

.auth-card input {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.65);
    color: white;
    outline: none;
}

.auth-card input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.13);
}

.auth-card button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 900;
    cursor: pointer;
}

.auth-card a {
    color: #93c5fd;
    font-weight: 800;
}

.auth-brand {
    margin-bottom: 26px;
    color: white !important;
}

.auth-brand .brand-logo {
    width: 42px;
    height: 42px;
    font-size: 20px;
}

.error-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.3), transparent 32%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.22), transparent 34%),
        #0b1020;
}

.error-card {
    width: min(620px, 100%);
    padding: 36px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 34px 85px rgba(0, 0, 0, 0.34);
}

.error-card .brand-logo {
    margin-bottom: 24px;
}

.error-card h1 {
    margin: 0;
    color: white;
    font-size: 34px;
    letter-spacing: -0.055em;
}

.error-card p:not(.eyebrow) {
    color: var(--text-soft);
    line-height: 1.65;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 197, 253, 0.55);
}

/* Responsive */

@media (max-width: 850px) {
    body {
        font-size: 16px;
    }

    .landing-nav,
    .landing-footer,
    .landing-hero,
    .landing-section,
    .landing-pricing-cta,
    .pricing-main {
        width: min(100% - 32px, 680px);
    }

    .landing-nav,
    .landing-footer,
    .landing-pricing-cta {
        display: block;
    }

    .landing-nav-links {
        gap: 10px;
        margin-top: 18px;
    }

    .landing-nav-links a {
        font-size: 14px;
    }

    .landing-nav-links .primary-button {
        padding: 11px 14px;
    }

    .landing-hero {
        display: block;
        min-height: auto;
        padding: 62px 0 40px;
    }

    .landing-hero h1,
    .pricing-intro h1 {
        font-size: 50px;
    }

    .landing-lead,
    .pricing-intro p,
    .landing-pricing-cta p {
        font-size: 16px;
    }

    .landing-preview {
        margin-top: 34px;
    }

    .landing-section {
        padding: 62px 0;
    }

    .landing-feature-grid,
    .landing-step-grid {
        grid-template-columns: 1fr;
    }

    .landing-pricing-cta .landing-actions {
        margin-top: 22px;
    }

    .landing-footer div {
        margin-top: 12px;
    }

    .admin-readiness-card {
        display: block;
    }

    .admin-readiness-card .primary-button {
        width: 100%;
        margin-top: 16px;
    }

    .pricing-main {
        padding: 58px 0;
    }

    .pricing-card {
        padding: 24px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-amount strong {
        font-size: 50px;
    }

    .app,
    .dashboard {
        flex-direction: column;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        padding: 18px;
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
    }

    .brand {
        margin-bottom: 18px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .sidebar h2 {
        font-size: 22px;
    }

    .sidebar p {
        font-size: 14px;
    }

    .sidebar a {
        padding: 14px 16px;
        font-size: 16px;
    }

    .tool-box h3 {
        font-size: 13px;
    }

    .tool-box button {
        padding: 15px;
        font-size: 16px;
    }

    .header {
        padding: 24px 20px;
    }

    .header h1,
    .dashboard-header h1,
    .dashboard-main h1 {
        font-size: 34px;
        line-height: 1.1;
    }

    .header p,
    .dashboard-header p,
    .dashboard-main p {
        font-size: 16px;
        line-height: 1.6;
    }

    .chat-box {
        padding: 20px;
    }

    .message {
        max-width: 100%;
        font-size: 16px;
        padding: 16px;
        border-radius: 18px;
    }

    .input-area {
        padding: 16px;
        gap: 10px;
    }

    .input-area input {
        font-size: 16px;
        padding: 16px;
    }

    .input-area button {
        margin-left: 0;
        padding: 16px 18px;
        font-size: 16px;
    }

    .dashboard-main {
        padding: 18px;
    }

    .dashboard-header {
        padding: 22px;
        border-radius: 22px;
    }

    .project-form {
        padding: 22px;
        border-radius: 22px;
    }

    .project-form h2 {
        font-size: 24px;
    }

    .project-form label {
        font-size: 15px;
    }

    .project-form input,
    .project-form textarea {
        font-size: 16px;
        padding: 16px;
    }

    .project-form button,
    .card button {
        width: 100%;
        font-size: 16px;
        padding: 16px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 22px;
        border-radius: 22px;
    }

    .card h3 {
        font-size: 22px;
    }

    .auth-card {
        width: calc(100% - 32px);
        padding: 28px;
        border-radius: 24px;
    }

    .auth-card h1 {
        font-size: 32px;
    }

    .auth-card input,
    .auth-card button {
        font-size: 16px;
        padding: 16px;
    }
}

.progress-track {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.business-plan-output {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    margin: 0;
}

.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #60a5fa !important;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.business-plan-document {
    max-width: 980px;
    margin: 0 auto;
    padding: 54px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.3);
}

.business-plan-document-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 26px;
    margin-bottom: 30px;
    border-bottom: 1px solid #cbd5e1;
}

.business-plan-document-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.quote-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    max-width: 980px;
    margin: 0 auto 24px;
}

.quote-summary-card {
    padding: 20px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow);
}

.quote-summary-card p {
    margin: 0 0 8px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.quote-summary-card h3 {
    margin: 0;
    color: white;
    font-size: 17px;
    line-height: 1.45;
}

.quote-total {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.65), rgba(124, 58, 237, 0.65));
}

.plan-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 15px;
    color: white;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.25);
}

.empty-card {
    border-style: dashed;
}

.button-link {
    display: inline-block;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.card-actions .primary-button,
.card-actions .secondary-button {
    padding: 12px 16px;
    font-size: 14px;
}

@media (max-width: 850px) {
    .plan-header {
        display: block;
    }

    .plan-header .secondary-button {
        margin-top: 14px;
    }

    .business-plan-document {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .business-plan-document-header h2 {
        font-size: 25px;
    }

    .business-plan-output {
        font-size: 15px;
        line-height: 1.75;
    }

    .plan-actions {
        display: grid;
    }

    .card-actions {
        display: grid;
    }

    .generator-actions {
        display: grid;
    }

    .approval-grid,
    .approval-context {
        grid-template-columns: 1fr;
    }

    .approval-actions form,
    .approval-actions button {
        width: 100%;
    }

    .launch-package-cta {
        display: block;
    }

    .launch-package-cta .primary-button {
        margin-top: 14px;
        width: 100%;
    }
}
