:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --card-bg: #111827;
    --accent: #38bdf8;
    --accent-soft: rgba(56,189,248,0.18);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border-subtle: #1f2937;
    --danger: #f97373;
    --success: #22c55e;
    --shadow-soft: 0 18px 45px rgba(15,23,42,0.7);
    --radius-xl: 22px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0b1120, #020617);
    color: var(--text);
    margin: 0;
}

.app-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: linear-gradient(to right, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
    border-bottom: 1px solid rgba(148,163,184,0.2);
}

.app-main {
    flex: 1;
    padding: 2.5rem 0 3rem;
}

.app-footer {
    border-top: 1px solid rgba(148,163,184,0.2);
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--muted);
    background: rgba(15,23,42,0.95);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: fit-content;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-rounded: 50%;
    background: radial-gradient(circle at 30% 0%, var(--accent), #0ea5e9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b1120;
    box-shadow: 0 0 0 1px rgba(148,163,184,0.6);
}

.brand-logo-img {
    height: 50px !important;
    width: 50px !important;
    max-height: 50px !important;
    max-width: 50px !important;
    min-height: 50px !important;
    min-width: 50px !important;
    object-fit: contain;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 150ms ease, opacity 150ms ease;
    display: block;
    flex-shrink: 0;
}

.brand a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    gap: 1rem !important;
    max-width: fit-content !important;
}

.brand a {
    transition: opacity 150ms ease;
}

.brand a:hover {
    opacity: 0.9;
}

.brand a:hover .brand-logo-img {
    transform: scale(1.03);
    opacity: 0.9;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex-shrink: 0;
}

.brand-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.brand-subtitle {
    color: #64b5f6;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    transition: all 150ms ease;
}
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: 1.5rem;
}

.nav-user {
    font-size: 0.85rem;
    color: var(--muted);
}

.nav-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: var(--muted);
}

.nav-link-primary {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
    color: #020617;
    font-weight: 600;
}

    .nav-link-primary:hover {
        color: #020617;
        text-decoration: none;
    }

    .nav-link:hover {
        color: var(--text);
        background: rgba(30,64,175,0.5);
    }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-left h1 {
    font-size: clamp(2.4rem, 3vw, 3.1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}
.hero-highlight {
    color: #38bdf8; /* fallback */
    background: linear-gradient(to right, #22c55e, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}




.hero-subtitle {
    color: var(--muted);
    max-width: 34rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.badge-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    color: var(--muted);
}

    .badge-pill strong {
        color: var(--accent);
    }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-primary {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(to right, var(--accent), #0ea5e9);
    color: #0b1120;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 30px rgba(59,130,246,0.5);
    cursor: pointer;
    text-decoration: none;
}

.btn-ghost {
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    background: transparent;
    border: 1px solid rgba(148,163,184,0.6);
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-card {
    border-radius: 1.5rem;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,0.98));
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,0.3);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.hero-card-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-card-chip {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(22,163,74,0.18);
    color: #4ade80;
}

.hero-card-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.metric {
    padding: 0.6rem 0.75rem;
    border-radius: 1rem;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(31,41,55,0.9);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--muted);
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.card {
    background: rgba(15,23,42,0.9);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--muted);
}

.upload-dropzone {
    border-radius: 1.2rem;
    border: 1.5px dashed rgba(148,163,184,0.7);
    padding: 1.5rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(56,189,248,0.08), rgba(15,23,42,0.9));
}

    .upload-dropzone:hover {
        border-color: var(--accent);
    }

.upload-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .jobs-table th,
    .jobs-table td {
        padding: 0.6rem 0.4rem;
        border-bottom: 1px solid rgba(31,41,55,0.9);
    }

    .jobs-table th {
        text-align: left;
        color: var(--muted);
        font-weight: 500;
    }

.status-pill {
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
}

    .status-pill.queued {
        background: rgba(59,130,246,0.18);
        color: #93c5fd;
    }

    .status-pill.processing {
        background: rgba(234,179,8,0.18);
        color: #facc15;
    }

    .status-pill.completed {
        background: rgba(34,197,94,0.18);
        color: #4ade80;
    }

    .status-pill.failed {
        background: rgba(248,113,113,0.18);
        color: #fecaca;
    }

@media (max-width: 840px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-main {
        padding-top: 1.5rem;
    }
}
/* Identity / auth pages */

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 3rem 1rem;
}

.auth-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.auth-container-wide {
    max-width: 800px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 2.5rem 2.25rem;
    color: var(--text);
}

    .auth-card h1,
    .auth-card h2 {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
    }

    .auth-card p {
        color: var(--muted);
    }

    .auth-card label {
        font-size: 0.9rem;
        color: #a1a5ab;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }

    .auth-card input.form-control,
    .auth-card input[type="email"],
    .auth-card input[type="password"],
    .auth-card input[type="text"] {
        background-color: #0f1729;
        border-radius: 10px;
        border: 1px solid var(--border-subtle);
        color: #f1f5f9;
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }

        .auth-card input.form-control::placeholder,
        .auth-card input[type="email"]::placeholder,
        .auth-card input[type="password"]::placeholder,
        .auth-card input[type="text"]::placeholder {
            color: #94a3b8;
            opacity: 1;
        }

        .auth-card input.form-control:focus,
        .auth-card input[type="email"]:focus,
        .auth-card input[type="password"]:focus,
        .auth-card input[type="text"]:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 1px var(--accent-soft);
            background-color: #131b2e;
        }

    .auth-card .btn-primary {
        background: linear-gradient(to right, #38bdf8, #0ea5e9);
        border: none;
        border-radius: 999px;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        font-size: 1rem;
        box-shadow: var(--shadow-soft);
        line-height: 1.5;
        cursor: pointer;
    }

        .auth-card .btn-primary:hover {
            filter: brightness(1.05);
        }

    .auth-card a {
        color: var(--accent);
        text-decoration: none;
    }

        .auth-card a:hover {
            text-decoration: underline;
        }
/* Login Page Layout */
.login-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
}

.login-left {
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.link-separator {
    color: var(--muted);
}

.login-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-subtle) 10%, var(--border-subtle) 90%, transparent);
    min-height: 400px;
    align-self: stretch;
}

.login-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: center;
}

.register-cta {
    max-width: 380px;
}

.register-cta h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.register-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
}

.benefit-item svg {
    color: var(--success);
    flex-shrink: 0;
}

.btn-register,
.btn-register:link,
.btn-register:visited,
a.btn-register {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: linear-gradient(to right, #22c55e, #16a34a);
    color: #0b1120 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(34,197,94,0.3);
    transition: all 150ms ease;
    line-height: 1.5;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-register:hover,
a.btn-register:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(34,197,94,0.4);
    color: #ffffff !important;
    text-decoration: none;
}

.register-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Register Page Layout */
.register-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
}

.register-left {
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.register-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.register-benefits-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text);
}

.benefit-compact svg {
    color: var(--success);
    flex-shrink: 0;
}

.register-footer {
    margin-top: 1.5rem;
}

.terms-text {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

.terms-text a {
    color: var(--accent);
}

.register-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-subtle) 10%, var(--border-subtle) 90%, transparent);
    min-height: 450px;
    align-self: stretch;
}

.register-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: center;
}

.login-cta {
    max-width: 380px;
}

.login-cta h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.login-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-login {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 150ms ease;
    line-height: 1.5;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-login:hover {
    background: var(--accent);
    color: #020617;
    transform: translateY(-1px);
    text-decoration: none;
}

.security-note {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: 12px;
    max-width: 380px;
}

.security-note svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.security-text strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.security-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Auth Pages */
@media (max-width: 900px) {
    .login-content,
    .register-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .login-divider,
    .register-divider {
        display: none;
    }

    .login-left,
    .register-left,
    .register-cta,
    .login-cta,
    .security-note {
        max-width: 100%;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }
}

.register-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.register-header h1 {
    margin-bottom: 0.75rem;
}

.register-header .register-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.register-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.register-section {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.register-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.register-section .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.register-section .form-row,
.profile-edit-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.register-section .form-group,
.profile-edit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.register-section .form-group label,
.profile-edit-form .form-group label {
    font-size: 0.9rem;
    color: #a1a5ab;
    font-weight: 500;
}

.register-section .form-group .optional,
.profile-edit-form .form-group .optional {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

.register-section .form-group input.form-control,
.register-section .form-group select.form-control,
.profile-edit-form .form-group input.form-control,
.profile-edit-form .form-group select.form-control {
    background-color: #0f1729;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: #f1f5f9;
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    min-height: 44px;
}

.register-section .form-group input.form-control:focus,
.register-section .form-group select.form-control:focus,
.profile-edit-form .form-group input.form-control:focus,
.profile-edit-form .form-group select.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
    background-color: #131b2e;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.required-checkboxes {
    margin-bottom: 2rem;
}

.optional-checkboxes {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148,163,184,0.1);
}

.register-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.register-footer .btn-register-submit {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.login-link {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 1rem;
}

.login-link a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .register-section .form-row,
    .profile-edit-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .register-sections {
        gap: 2rem;
    }
    
    .register-section {
        padding-bottom: 2rem;
    }
}

/* --- Pricing --- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: rgba(15,23,42,0.9);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    min-height: 100%;
    position: relative;
}

.pricing-card-featured {
    border-color: rgba(56,189,248,0.55);
    box-shadow: 0 0 0 1px rgba(56,189,248,0.12), var(--shadow-soft);
}

/* Current Plan Highlight */
.pricing-card-current {
    border-color: rgba(34,197,94,0.6);
    box-shadow: 0 0 0 1px rgba(34,197,94,0.15), var(--shadow-soft);
    background: rgba(15,23,42,0.95);
}

/* Recommended Plan */
.pricing-card-recommended {
    border-color: rgba(245,158,11,0.7);
    box-shadow: 0 0 0 2px rgba(245,158,11,0.2), var(--shadow-soft);
}

.pricing-recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    white-space: nowrap;
}

/* Top section */
.pricing-top {
    margin-bottom: 0.95rem;
}

.pricing-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.pricing-title {
    font-size: 1.05rem;
    font-weight: 650;
}

/* Badge in-flow (no overlap) */
.pricing-badge {
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(56,189,248,0.18);
    color: var(--accent);
    font-size: 0.75rem;
    border: 1px solid rgba(56,189,248,0.25);
    white-space: nowrap;
    line-height: 1.1;
}

.pricing-badge-current {
    background: rgba(34,197,94,0.18);
    color: #4ade80;
    border-color: rgba(34,197,94,0.3);
}

.pricing-badge-muted {
    background: rgba(148,163,184,0.12);
    color: rgba(226,232,240,0.85);
    border-color: rgba(148,163,184,0.18);
}

.pricing-badge-pro {
    background: rgba(34,197,94,0.12);
    color: rgba(187,247,208,0.95);
    border-color: rgba(34,197,94,0.22);
}

.pricing-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-top: 0.6rem;
}

.pricing-price {
    font-size: 1.75rem;
    font-weight: 750;
    line-height: 1;
}

.pricing-per {
    color: var(--muted);
    font-size: 0.9rem;
}

.pricing-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.55rem;
    min-height: 2.4em; /* keeps headers aligned */
}

/* Features */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto; /* push CTA down */
}

    .pricing-features li {
        padding: 0.58rem 0;
        border-bottom: 1px solid rgba(31,41,55,0.85);
        font-size: 0.92rem;
    }

        .pricing-features li:last-child {
            border-bottom: none;
        }

/* CTA pinned bottom and equal button sizes */
.pricing-cta {
    margin-top: 1.25rem;
}

.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px; /* equal button size */
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 1rem !important; /* stop other button styles changing height */
}

.pricing-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pro row */
.pricing-card-pro {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
}

.pricing-pro-left {
    flex: 1 1 auto;
}

.pricing-pro-points {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: rgba(226,232,240,0.9);
}

    .pricing-pro-points li {
        margin: 0.35rem 0;
    }

.pricing-pro-right {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1040px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-card-pro {
        grid-column: 1 / -1;
        flex-direction: column;
    }

    .pricing-pro-right {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pricing-subtitle {
        min-height: auto;
    }
}

/* Profile Page Styles */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(31,41,55,0.9);
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.profile-picture-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b1120;
}

.profile-picture-actions {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--text);
}

.info-value.subscription-tier {
    color: var(--accent);
    font-weight: 600;
}

.info-value.credits {
    color: var(--success);
    font-weight: 600;
    font-size: 1.25rem;
}

.bank-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bank-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bank-form .form-group label {
    font-size: 0.9rem;
    color: #a1a5ab;
    font-weight: 500;
}

.bank-form .form-group input.form-control {
    background-color: #0f1729;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: #f1f5f9;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
}

.bank-form .form-group input.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
    background-color: #131b2e;
}

.bank-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Dropdown Menu Styles */
.nav-user-dropdown {
    position: relative;
}

.nav-user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    transition: all 150ms ease;
}

.nav-user-button:hover {
    color: var(--text);
    background: rgba(30,64,175,0.5);
}

.nav-user-icon {
    transition: transform 150ms ease;
}

.nav-user-button:hover .nav-user-icon {
    transform: translateY(2px);
}

/* Backdrop to capture clicks outside dropdown */
.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: transparent;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 0.5rem;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 150ms ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    font: inherit;
}

.nav-dropdown-item:hover {
    background: rgba(30,64,175,0.5);
    color: var(--accent);
}

.nav-dropdown-item svg {
    flex-shrink: 0;
}

.nav-dropdown-form {
    margin: 0;
    padding: 0;
}

/* Jobs Table Enhancements */
.jobs-table th:first-child,
.jobs-table td:first-child {
    width: 40px;
    text-align: center;
}

.jobs-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.archived-row {
    opacity: 0.7;
}

.archived-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(148,163,184,0.18);
    color: var(--muted);
    margin-left: 0.5rem;
}

.btn-danger {
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    background: linear-gradient(to right, #dc2626, #991b1b);
    color: white;
    font-weight: 500;
    border: none;
    box-shadow: 0 10px 30px rgba(220,38,38,0.3);
    cursor: pointer;
    text-decoration: none;
}

.btn-danger:hover {
    filter: brightness(1.1);
}

.btn-ghost-sm {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(148,163,184,0.6);
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-ghost-sm:hover {
    background: rgba(30,64,175,0.5);
}

/* Confirmation Dialog */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.confirm-dialog-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.confirm-dialog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.confirm-dialog-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.confirm-dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Status Message */
.status-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.status-message.success {
    background: rgba(34,197,94,0.18);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}

.status-message.error {
    background: rgba(248,113,113,0.18);
    color: #fecaca;
    border: 1px solid rgba(248,113,113,0.3);
}

/* Progress bar styles */
.progress-wrap {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(148,163,184,0.18);
    background: rgba(15,23,42,0.7);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.65rem;
}

.progress-title {
    font-weight: 600;
}

.progress-value {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    font-size: 0.9rem;
}

.progress-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(148,163,184,0.15);
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.18);
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
    box-shadow: 0 0 0 1px rgba(2,6,23,0.25) inset;
    transition: width 180ms ease;
}

.progress-subtitle {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 150ms ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.email-confirmation-content {
    text-align: center;
    padding: 2rem 0;
}

.confirmation-loading,
.confirmation-success,
.confirmation-error,
.confirmation-pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.success-icon {
    background: rgba(34,197,94,0.18);
    color: var(--success);
}

.error-icon {
    background: rgba(248,113,113,0.18);
    color: var(--danger);
}

.success-icon svg,
.error-icon svg {
    width: 64px;
    height: 64px;
}

.confirmation-success h1 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

.confirmation-error h1 {
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.confirmation-pending h1 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.confirmation-success p,
.confirmation-error p,
.confirmation-pending p {
    max-width: 500px;
    margin: 0 auto 0.5rem;
    line-height: 1.6;
}

.email-sent-to {
    font-size: 1.1rem;
    color: var(--text);
    margin: 1.5rem 0;
}

.next-steps {
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.next-steps h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin: 0 0 1rem 0;
    text-align: center;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.next-steps li:before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.help-section {
    margin: 2rem 0;
}

.help-text {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.security-note {
    background: rgba(245,158,11,0.08);
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.5rem;
    margin: 2rem auto;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    max-width: 500px;
    text-align: left;
}

.security-note strong {
    color: #f59e0b;
}

.confirmation-success .btn-primary,
.confirmation-error .btn-primary,
.confirmation-pending .btn-primary {
    margin-top: 1rem;
    max-width: 300px;
}

@media (max-width: 600px) {
    .auth-container-wide {
        max-width: 100%;
    }
    
    .register-section .form-row,
    .profile-edit-form .form-row {
        grid-template-columns: 1fr;
    }
}
