* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    min-height: 100vh;
}

a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    border-bottom: 1px solid #1e1e1e;
    padding: 1rem 2rem;
    background: #111;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.logo:hover {
    text-decoration: none;
}

.tagline {
    color: #666;
    font-size: 0.875rem;
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: #bbb;
}

.nav-links a:hover {
    color: #fff;
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

footer {
    border-top: 1px solid #1e1e1e;
    padding: 2rem;
    text-align: center;
    color: #555;
    font-size: 0.875rem;
    margin-top: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #60a5fa;
    border: 1px solid #333;
}

.btn-small {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
}

.btn-tiny {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger {
    background: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #991b1b;
}

.btn-nav {
    background: #3b82f6;
    color: #fff !important;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
}

.btn.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #1e1e1e;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero p {
    color: #999;
    max-width: 600px;
    margin: 0 auto 0.5rem;
}

.hero .count {
    color: #60a5fa;
    font-weight: 600;
}

.hero-cta {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-tiers {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tier-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}

.tier-pill.free {
    background: #1a2e1a;
    color: #4ade80;
    border: 1px solid #166534;
}

.tier-pill.pro {
    background: #1e3a5f;
    color: #60a5fa;
    border: 1px solid #1e40af;
}

.tier-pill.bundle {
    background: #3b1f4b;
    color: #c084fc;
    border: 1px solid #6b21a8;
}

/* Tool Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: #151515;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.tool-card:hover {
    border-color: #333;
}

.tool-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 0.5rem;
}

.tool-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tool-card h2 a {
    color: #fff;
}

.problem {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.status.live {
    background: #052e16;
    color: #4ade80;
    border: 1px solid #166534;
}

.docs-link {
    font-size: 0.85rem;
    font-weight: 500;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state h2 {
    color: #999;
    margin-bottom: 0.5rem;
}

/* Product Page */
.breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.product-header {
    margin-bottom: 2rem;
}

.category-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #60a5fa;
    background: #1e3a5f;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.product-header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.live-badge {
    display: inline-block;
    background: #052e16;
    color: #4ade80;
    border: 1px solid #166534;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-overview,
.product-api,
.product-docs,
.product-meta,
.product-pricing {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1e1e1e;
}

.product-overview h2,
.product-api h2,
.product-docs h2,
.product-pricing h2 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.product-overview p {
    color: #bbb;
    margin-bottom: 1rem;
}

.api-info {
    background: #151515;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1rem;
}

.api-field {
    margin-bottom: 0.5rem;
}

.api-field:last-child {
    margin-bottom: 0;
}

.api-field strong {
    color: #999;
    font-size: 0.85rem;
}

.api-field code {
    background: #1a1a1a;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
    color: #4ade80;
}

.endpoint-url {
    user-select: all;
    cursor: text;
}

.readme-content {
    background: #151515;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.5rem;
}

.readme-content pre {
    white-space: pre-wrap;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.deployed-at {
    color: #666;
    font-size: 0.85rem;
}

/* Product Pricing Mini */
.pricing-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mini-plan {
    background: #151515;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.mini-plan.highlighted {
    border-color: #3b82f6;
}

.mini-plan strong {
    color: #fff;
    font-size: 0.95rem;
}

.mini-plan span {
    color: #888;
    font-size: 0.8rem;
}

/* Auth Pages */
.auth-page {
    max-width: 400px;
    margin: 3rem auto;
}

.auth-page h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #888;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #999;
}

.form-group input {
    background: #151515;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-error {
    background: #7f1d1d;
    border: 1px solid #991b1b;
    color: #fca5a5;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #fff;
    font-size: 1.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-email {
    color: #888;
    font-size: 0.9rem;
}

.tier-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-free {
    background: #1a2e1a;
    color: #4ade80;
    border: 1px solid #166534;
}

.tier-pro {
    background: #1e3a5f;
    color: #60a5fa;
    border: 1px solid #1e40af;
}

.tier-bundle {
    background: #3b1f4b;
    color: #c084fc;
    border: 1px solid #6b21a8;
}

.dash-section {
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.dash-section h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.keys-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.keys-table th {
    text-align: left;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem;
    border-bottom: 1px solid #222;
}

.keys-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
}

.keys-table code {
    background: #1a1a1a;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
    color: #4ade80;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.status-dot.active {
    background: #4ade80;
}

.status-dot.revoked {
    background: #666;
}

.empty-row {
    color: #666;
    text-align: center;
    padding: 2rem 0;
}

.empty-section {
    background: #151515;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.empty-section p {
    color: #888;
    margin-bottom: 1rem;
}

.key-alert {
    background: #1a2e1a;
    border: 1px solid #166534;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.key-alert strong {
    color: #4ade80;
    font-size: 0.85rem;
}

.key-alert code {
    background: #0a0a0a;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: #4ade80;
    font-size: 0.8rem;
    word-break: break-all;
}

/* Pricing Page */
.pricing-page {
    text-align: center;
}

.pricing-page h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    color: #888;
    margin-bottom: 2.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.price-card {
    background: #151515;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.price-card.featured {
    border-color: #3b82f6;
}

.price-badge {
    position: absolute;
    top: -0.75rem;
    background: #3b82f6;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-tier {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.price-amount span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
}

.price-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.price-features li {
    color: #bbb;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.price-features li::before {
    content: "\2713 ";
    color: #4ade80;
    font-weight: 700;
}

.available-tools {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.available-tools h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #151515;
    border: 1px solid #222;
    border-radius: 6px;
}

.tool-category-sm {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-end;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}
