:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --bg: #0b0e14;
    --surface: #171c24;
    --surface-light: #1e252f;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: #2c3440;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(245,158,11,.16), transparent 28%),
        linear-gradient(180deg, #07090d, var(--bg));
    color: var(--text);
}

main { max-width: 1180px; margin: auto; padding: 24px; }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 44px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand strong { font-size: 22px; display: block; }
.brand strong span { color: var(--primary); }
.brand small { color: var(--muted); font-size: 12px; }

.logo-mark {
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center;
    background: #07090d;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 900;
    box-shadow: 0 0 28px rgba(245,158,11,.28);
}

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; }

.nav-cta, button, .bottom-cta a {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #111 !important;
    border: 0;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 900;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 34px;
}

.badge, .section-label, .repo-label {
    display: inline-block;
    color: var(--primary);
    border: 1px solid rgba(245,158,11,.55);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

h1 { font-size: 58px; line-height: 1.04; margin: 0 0 20px; letter-spacing: -1.6px; }
h1 span, h2 span { color: var(--primary); }
h2 { font-size: 31px; margin-top: 0; }

.hero p, .demo p, footer p { color: var(--muted); font-size: 18px; line-height: 1.7; }

.checks { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.checks span {
    background: rgba(245,158,11,.1);
    border: 1px solid rgba(245,158,11,.35);
    color: var(--primary);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
}

form { display: flex; gap: 12px; max-width: 640px; }
input {
    flex: 1;
    background: #0a0d12;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.radar-visual { display: grid; place-items: center; }
.radar-ring {
    width: 340px; height: 340px; border-radius: 50%;
    border: 1px solid rgba(245,158,11,.6);
    background:
        repeating-radial-gradient(circle, transparent 0 42px, rgba(245,158,11,.26) 43px 44px),
        conic-gradient(from 30deg, rgba(245,158,11,.48), transparent 25%);
    display: grid; place-items: center;
    box-shadow: 0 0 70px rgba(245,158,11,.18);
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%,100% { transform: scale(1); opacity: .95; }
    50% { transform: scale(1.03); opacity: 1; }
}

.radar-core {
    width: 150px; height: 150px; border-radius: 50%;
    display: grid; place-items: center;
    background: #080b10;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 38px;
    font-weight: 900;
}
.radar-core span { display: block; color: var(--text); font-size: 17px; }

.workflow, .demo, .features, .card, .roadmap, .pricing, .social-proof, footer {
    background: rgba(23,28,36,.78);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
}

.workflow-grid, .feature-grid, .grid, .roadmap-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.workflow-grid div, .feature-grid div, .grid div, .roadmap-grid div, .pricing-grid div, .issue, .issue-row, .angle {
    background: #10141b;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.workflow-grid div {
    text-align: center;
    color: var(--primary);
    font-weight: 900;
}

.feature-grid strong { display: block; margin-bottom: 8px; }
.feature-grid span, .grid span, .issue p, .issue-row p, .angle, .roadmap p, .pricing p { color: var(--muted); }

.demo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-score, .score {
    min-width: 160px;
    text-align: center;
    background: #0a0d12;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    color: var(--primary);
    font-size: 46px;
    font-weight: 900;
}
.demo-score small, .score small { font-size: 18px; color: var(--text); }
.score span { display: block; color: var(--text); font-size: 12px; margin-top: 8px; }
.score-panel {
    min-width: 280px;
    background: #0a0d12;
    border: 1px solid rgba(245,158,11,.45);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 0 35px rgba(245,158,11,.12);
}

.score-number {
    color: var(--primary);
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}

.score-number small {
    font-size: 18px;
    color: var(--text);
}

.score-label {
    margin-top: 10px;
    color: var(--text);
    font-weight: 900;
    font-size: 18px;
}

.score-action {
    margin-top: 8px;
    display: inline-block;
    color: #111;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}

.score-meter {
    height: 10px;
    background: #151a22;
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0;
    border: 1px solid var(--border);
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: 999px;
}

.score-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.score-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #10141b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
}

.score-meta strong {
    color: var(--primary);
}

.score-meta span {
    color: var(--muted);
    font-size: 12px;
}

.top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-top: 24px;
}

.issue.best { border-left: 4px solid var(--primary); }
.issue a, .issue-row a { color: var(--primary); text-decoration: none; font-weight: 900; }

.issue-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}
.issue-row span {
    color: var(--primary);
    border: 1px solid rgba(245,158,11,.45);
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 900;
}

.pricing .pro {
    border-color: var(--primary);
    box-shadow: 0 0 35px rgba(245,158,11,.12);
}
.price { color: var(--primary) !important; font-size: 26px; font-weight: 900; }

.social-proof { text-align: center; }
.social-proof p { color: var(--primary); font-weight: 900; }

footer { text-align: center; color: var(--muted); }

.error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.45);
    color: #fecaca;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.card,
.workflow,
.demo,
.features,
.roadmap,
.pricing,
.social-proof,
footer,
.reason-grid div,
.feature-grid div,
.grid div,
.issue,
.issue-row,
.angle {
    overflow-wrap: anywhere;
}

button,
.nav-cta,
.issue a,
.issue-row a,
.bottom-cta a {
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

button:hover,
.nav-cta:hover,
.issue a:hover,
.issue-row a:hover,
.bottom-cta a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(245,158,11,.18);
}

@media (max-width: 900px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    main {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        overflow-x: hidden;
    }

    .nav {
        gap: 18px;
    }

    .nav,
    .nav-links,
    .top,
    form {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        width: 100%;
        gap: 10px;
    }

    .nav-links a,
    .nav-cta,
    button {
        width: 100%;
        text-align: center;
    }

    .hero,
    .report-grid,
    .demo {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
    }

    h1 {
        font-size: 38px;
        line-height: 1.08;
    }

    h2 {
        font-size: 26px;
    }

    .hero p,
    .demo p {
        font-size: 15px;
    }

    .checks {
        display: grid;
        grid-template-columns: 1fr;
    }

    .radar-ring {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .radar-core {
        width: 110px;
        height: 110px;
        font-size: 28px;
    }

    .workflow-grid,
    .feature-grid,
    .grid,
    .roadmap-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .workflow,
    .demo,
    .features,
    .card,
    .roadmap,
    .pricing,
    .social-proof,
    footer {
        padding: 22px;
        border-radius: 16px;
    }

    .score-panel,
    .score,
    .demo-score {
        width: 100%;
        min-width: 0;
    }

    .score-number {
        font-size: 44px;
    }

    .score-meta div {
        flex-direction: column;
        gap: 4px;
    }

    .grid div,
    .issue,
    .issue-row,
    .angle {
        width: 100%;
        min-width: 0;
        word-break: break-word;
    }

    .issue-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .issue-row span,
    .issue-row a {
        width: fit-content;
    }

    input,
    button {
        width: 100%;
    }

    .bottom-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
}
/* Final responsive report fix */

.card {
    width: 100%;
    overflow: hidden;
}

.card .top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.score-panel {
    width: 100%;
    max-width: 420px;
}

.card .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.issue-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    align-items: center;
}

.issue-row strong,
.issue strong,
.card h2,
.card p,
.grid div {
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Tablet and mobile */
@media (max-width: 900px) {
    .card .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .score-panel {
        max-width: 100%;
    }

    .issue-row {
        grid-template-columns: 1fr;
    }

    .issue-row span,
    .issue-row a {
        width: fit-content;
    }
}

/* Small phones */
@media (max-width: 520px) {
    .card .grid {
        grid-template-columns: 1fr;
    }

    .card,
    .workflow,
    .demo,
    .features,
    .roadmap,
    .pricing,
    .social-proof,
    footer {
        padding: 18px;
    }

    .card h2 {
        font-size: 26px;
    }

    .score-number {
        font-size: 44px;
    }
}
.next-action-card {
    margin: 26px 0;
    background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(23,28,36,.9));
    border: 1px solid rgba(245,158,11,.45);
    border-radius: 20px;
    padding: 24px;
}

.next-action-card h3 {
    margin: 14px 0 10px;
    font-size: 28px;
}

.next-action-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.action-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.action-pills span {
    background: #0a0d12;
    border: 1px solid rgba(245,158,11,.35);
    color: var(--primary);
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
    font-size: 13px;
}

@media (max-width: 520px) {
    .next-action-card h3 {
        font-size: 22px;
    }

    .action-pills {
        display: grid;
        grid-template-columns: 1fr;
    }
}
/* Mobile hero/nav polish */
@media (max-width: 520px) {
    .nav {
        padding: 22px 0 26px;
        gap: 18px;
    }

    .brand {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .logo-mark {
        width: 64px;
        height: 64px;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    .nav-links a:not(.nav-cta) {
        text-align: center;
        font-size: 14px;
        padding: 8px 0;
    }

    .nav-cta {
        grid-column: 1 / -1;
        padding: 16px;
        font-size: 16px;
    }

    .hero {
        padding-top: 10px;
        margin-bottom: 24px;
    }

    .badge {
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 44px;
        line-height: 1.08;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.7;
    }

    .checks span {
        font-size: 15px;
        padding: 12px 16px;
    }

    .radar-visual {
        display: none;
    }
}
.ai-summary-card {
    margin: 26px 0;
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.35);
    border-radius: 20px;
    padding: 24px;
}

.pipeline-form {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.pipeline-form select {
    background: #0b1118;
    color: #f8fafc;
    border: 1px solid rgba(255, 153, 0, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 180px;
}

.pipeline-form button {
    background: linear-gradient(135deg, #ffb000, #ff7a00);
    color: #090d12;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
}

.progress-wrap {
    width: 100%;
    height: 12px;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 14px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #ffb000, #ff7a00);
    border-radius: 999px;
}

.pitch-box {
    white-space: pre-wrap;
    color: #cbd5e1;
    line-height: 1.7;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 153, 0, 0.25);
    border-radius: 16px;
    padding: 18px;
    margin-top: 14px;
}

@media (max-width: 768px) {
    .pipeline-form {
        flex-direction: column;
    }

    .pipeline-form select,
    .pipeline-form button {
        width: 100%;
    }
}

.ai-summary-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    white-space: pre-line;
}
.pipeline-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 24px 0;
}

.stat-card {
    background: #0b1118;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    padding: 18px;
}

.stat-card span {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-card strong {
    color: #ff9900;
    font-size: 30px;
}

.pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pipeline-card {
    background: linear-gradient(145deg, #0b1118, #111827);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-left: 5px solid #ff9900;
    border-radius: 20px;
    padding: 24px;
}

.pipeline-card-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.pipeline-card h3 {
    margin: 12px 0;
    font-size: 28px;
}

.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 153, 0, 0.45);
    color: #ff9900;
    font-weight: 800;
    font-size: 13px;
}

.score-pill {
    min-width: 95px;
    text-align: center;
    background: #070b10;
    border: 1px solid rgba(255, 153, 0, 0.45);
    color: #ff9900;
    border-radius: 16px;
    padding: 16px;
    font-weight: 900;
}

.progress-wrap {
    width: 100%;
    height: 12px;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #ffb000, #ff7a00);
    border-radius: 999px;
}

.next-action {
    background: rgba(255, 153, 0, 0.06);
    border: 1px solid rgba(255, 153, 0, 0.18);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
}

.next-action strong {
    color: #ff9900;
}

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

.pipeline-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pipeline-form select {
    background: #0b1118;
    color: #f8fafc;
    border: 1px solid rgba(255, 153, 0, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 180px;
}

.pipeline-form button {
    background: linear-gradient(135deg, #ffb000, #ff7a00);
    color: #090d12;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
}

.pitch-panel {
    margin: 28px 0;
}

.pitch-box {
    white-space: pre-wrap;
    color: #cbd5e1;
    line-height: 1.7;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 153, 0, 0.25);
    border-radius: 16px;
    padding: 20px;
}

@media (max-width: 768px) {
    .pipeline-stats {
        grid-template-columns: 1fr 1fr;
    }

    .pipeline-card {
        padding: 20px;
    }

    .pipeline-card-top {
        flex-direction: column;
    }

    .score-pill {
        width: 100%;
    }

    .pipeline-actions,
    .pipeline-form {
        flex-direction: column;
        width: 100%;
    }

    .pipeline-form select,
    .pipeline-form button {
        width: 100%;
    }

    .pipeline-card h3 {
        font-size: 24px;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .pipeline-stats {
        grid-template-columns: 1fr;
    }
}
.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.link-btn,
.copy-btn {
  border: none;
  padding: 9px 14px;
  border-radius: 10px;
  background: #111827;
  color: white;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.link-btn:hover,
.copy-btn:hover {
  background: #2563eb;
}

.pitch-box {
  margin-top: 14px;
}

.pitch-box textarea {
  width: 100%;
  min-height: 110px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 12px;
  font-size: 14px;
  resize: vertical;
}

.copy-btn {
  margin-top: 8px;
  background: #16a34a;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: #111827;
}

.language {
  background: #e0f2fe;
}

.difficulty {
  background: #fef3c7;
}

.probability {
  background: #dcfce7;
}

.time {
  background: #ede9fe;
}
.pitch-panel {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(255, 153, 0, 0.35);
    border-radius: 16px;
    background: rgba(255, 153, 0, 0.04);
}

.mini-pitch {
    display: block;
}

.pitch-textarea {
    width: 100%;
    min-height: 180px;
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 153, 0, 0.4);
    background: #020617;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

.copy-btn {
    display: inline-block;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    background: #00b86b;
    color: #020617;
    font-weight: 700;
    cursor: pointer;
}

.copy-btn:hover {
    background: #22c55e;
}
.repo-link {
    color: #fff;
    text-decoration: none;
}

.repo-link:hover {
    color: #ff9800;
}

.score-high {
    background: #14532d;
    color: #86efac;
}

.score-medium {
    background: #78350f;
    color: #fde68a;
}

.score-low {
    background: #7f1d1d;
    color: #fecaca;
}
.ai-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ai-status,
.pro-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ai-status.available {
    background: #14532d;
    color: #86efac;
}

.ai-status.unavailable {
    background: #7f1d1d;
    color: #fecaca;
}

.pro-badge {
    background: #312e81;
    color: #c4b5fd;
}

.ai-summary-box {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 153, 0, 0.35);
    background: rgba(255, 153, 0, 0.04);
}

.retry-btn {
    margin-top: 14px;
    border: none;
    padding: 11px 16px;
    border-radius: 10px;
    background: #ff9800;
    color: #020617;
    font-weight: 700;
    cursor: pointer;
}

.retry-btn:hover {
    background: #ffb020;
}
.pipeline-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin:25px 0;
    flex-wrap:wrap;
}

.search-box{
    width:320px;
    max-width:100%;
    padding:12px 16px;
    border-radius:10px;
    border:1px solid #2c3e50;
    background:#0b1220;
    color:white;
    font-size:14px;
}

.search-box:focus{
    outline:none;
    border-color:#ff9800;
}
.toolbar-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.sort-box{
    padding:12px 14px;
    border-radius:12px;
    background:#0b1220;
    color:white;
    border:1px solid rgba(255,153,0,.35);
    min-width:190px;
}

.sort-box:focus{
    outline:none;
    border-color:#ff9800;
}
.repo-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 12px;
}

.repo-metrics span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #0b1220;
    border: 1px solid rgba(255, 153, 0, 0.25);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
}

.quick-links button.link-btn {
    font-family: inherit;
}

.upgrade-card {
    margin: 28px 0;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background:
        radial-gradient(circle at top right, rgba(245,158,11,.18), transparent 32%),
        linear-gradient(145deg, #0b1118, #111827);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.upgrade-card h2 {
    margin: 12px 0;
    font-size: 32px;
}

.upgrade-card p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 760px;
}

.upgrade-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.upgrade-features span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(245,158,11,.35);
    color: var(--primary);
    background: rgba(245,158,11,.08);
    font-weight: 800;
    font-size: 13px;
}

.upgrade-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.secondary-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

.success-card {
    margin: 18px 0;
    padding: 16px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
    font-weight: 800;
}

.dashboard-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:20px;

margin-top:25px;

}


.dashboard-box{

padding:24px;

border-radius:18px;

background:#111827;

border:1px solid #2b3442;

text-align:center;

}


.dashboard-box h2{

font-size:42px;

margin:0;

color:#f59e0b;

}


.dashboard-box p{

margin-top:10px;

color:#94a3b8;

}


.quick-actions{

display:flex;

gap:15px;

flex-wrap:wrap;

margin-top:20px;

}


.dashboard-repo{

display:flex;

justify-content:space-between;

align-items:center;

padding:18px;

border-bottom:1px solid #263041;


}

/* Hide old homepage navbar to prevent double navbar */
main > .nav {
    display: none;
}

/* Final SaaS Navbar */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 13, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
}

.nav-inner {
    max-width: 1320px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.nav-logo {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid #f59e0b;
    color: #f59e0b;
    background: #07090d;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.22);
}

.nav-brand strong {
    display: block;
    font-size: 18px;
}

.nav-brand em {
    color: #f59e0b;
    font-style: normal;
}

.nav-brand small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
}

.nav-menu,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-menu {
    gap: 26px;
}

.nav-center,
.nav-right {
    gap: 16px;
}

.nav-center a,
.nav-outline {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: 0.25s ease;
}

.nav-center a:hover,
.nav-outline:hover,
.nav-center a.active {
    color: #f59e0b;
}

.nav-center a.active::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 6px;
    background: #f59e0b;
    border-radius: 999px;
}

.nav-primary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111827;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    transition: 0.25s ease;
}

.nav-primary:hover,
.nav-outline:hover {
    transform: translateY(-2px);
}

.nav-primary:hover {
    box-shadow: 0 12px 28px rgba(255, 153, 0, 0.35);
}

.nav-outline {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 11px 14px;
}

.beta-pill {
    background: #173d22;
    color: #62f0a4;
    border: 1px solid rgba(98, 240, 164, 0.25);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    background: #111827;
    color: #fff !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .nav-inner {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 16px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-center,
    .nav-right {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .nav-center a,
    .nav-outline,
    .nav-primary,
    .beta-pill {
        width: 100%;
        text-align: center;
    }
}

.register-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
    max-width: 760px;
    margin-top: 28px;
}

.register-form input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #283548;
    background: #0d121b;
    color: #fff;
    font-size: 16px;
}

.register-form input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 18px rgba(255, 152, 0, 0.18);
}

.register-form button {
    grid-column: 1 / -1;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffb000, #ff7a00);
    color: #111 !important;
    font-size: 18px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .register-form {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   AUTH PAGES
=========================== */

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 20% 30%, rgba(245,158,11,.13), transparent 28%),
        linear-gradient(145deg, #10141b, #0b1118);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.auth-side {
    padding: 44px;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    position: relative;
    overflow: hidden;
}

.auth-side::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    right: -180px;
    top: 80px;
}

.auth-logo {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #07090d;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 0 34px rgba(245, 158, 11, 0.25);
    margin-bottom: 26px;
}

.auth-side h1 {
    font-size: 52px;
    line-height: 1.05;
    margin-bottom: 18px;
}

.auth-side p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    max-width: 560px;
}

.auth-benefits {
    display: grid;
    gap: 16px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.auth-benefits div {
    padding: 18px;
    border-radius: 16px;
    background: rgba(7, 9, 13, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-benefits strong {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-benefits span {
    color: var(--muted);
    line-height: 1.5;
}

.auth-card {
    padding: 44px;
    background: rgba(7, 9, 13, 0.35);
}

.auth-card h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    margin-top: 24px;
}

.auth-form input {
    width: 100%;
    height: 60px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid #283548;
    background: #0d121b;
    color: #fff;
    font-size: 16px;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 18px rgba(255, 152, 0, 0.18);
}

.auth-form button {
    width: 100%;
    height: 62px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffb000, #ff7a00);
    color: #111 !important;
    font-size: 18px;
    font-weight: 900;
}

.auth-switch {
    margin-top: 22px;
    color: var(--muted);
    text-align: center;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-side {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
        padding: 30px;
    }

    .auth-card {
        padding: 30px;
    }

    .auth-side h1 {
        font-size: 40px;/* Fix navbar menu visibility */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    max-height: none;
    overflow: visible;
}

@media (max-width: 860px) {
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 16px;
        max-height: none;
    }

    .nav-menu.open {
        display: flex;
    }
}
    }
}

.legal-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.legal-card h1 {
  font-size: 34px;
  margin-bottom: 8px;
  color: #0f172a;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 20px;
  color: #111827;
}

.legal-card p {
  color: #374151;
  line-height: 1.7;
  margin-top: 10px;
}

.legal-card .muted {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.legal-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 22px;
  padding: 40px;
  color: #e5e7eb;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.legal-card h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

.legal-card h2 {
  margin-top: 28px;
  color: #ff8a00;
}

.legal-card p {
  line-height: 1.8;
  color: #cbd5e1;
}

.legal-card .muted {
  color: #94a3b8;
  font-size: 14px;
}

.legal-footer {
  text-align: center;
  padding: 30px;
}

.legal-footer a {
  margin: 0 12px;
  color: #ff8a00;
  text-decoration: none;
}
