/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ===== PAGE ===== */
body {
    background: #f7f8fa;
    color: #111;
    line-height: 1.7;
    direction: rtl;
    margin: 0;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== HEADINGS ===== */
h1 { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }

.subtitle { color: #666; margin-bottom: 25px; font-size: 14px; }
.muted    { color: #6b7280; font-size: 13px; }

/* ===== CARD ===== */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* ===== FORM ===== */
label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    margin-top: 18px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111;
    transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ===== BUTTONS ===== */
button {
    margin-top: 25px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #1b263b;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover { opacity: 0.85; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn:hover { background: #f3f4f6; }

.btn.primary {
    background: #1b263b;
    color: #fff;
    border-color: transparent;
}

.btn.primary:hover { opacity: 0.85; }

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cta-btn.primary {
    background: #2563eb;
    color: #fff;
}

.cta-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.cta-btn.secondary {
    background: #fff;
    color: #1b263b;
    border: 1.5px solid #d1d5db;
}

.cta-btn.secondary:hover { background: #f3f4f6; }
.cta-btn.large { padding: 14px 32px; font-size: 16px; }

/* ===== APPLY BTN ===== */
.apply-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #111;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.apply-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ===== CAREER RESULTS ===== */
.path-item {
    border-right: 3px solid #2563eb;
    padding-right: 12px;
    margin-bottom: 20px;
}

.stage {
    margin-right: 15px;
    margin-top: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 14px;
}

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

/* ===== BANNER (app pages) ===== */
.banner {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.banner-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-logo {
    font-size: 17px;
    font-weight: 800;
    color: #1b263b;
    text-decoration: none;
}

.banner-nav { display: flex; align-items: center; gap: 8px; }

.banner-nav-link {
    font-size: 14px;
    color: #374151;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}

.banner-nav-link:hover { background: #f3f4f6; }
.banner-nav-link.logout { color: #dc2626; }
.banner-nav-link.logout:hover { background: #fef2f2; }

.banner-nav-btn {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    padding: 7px 14px;
    border-radius: 8px;
    transition: background 0.15s;
}

.banner-nav-btn:hover { background: #1d4ed8; }

/* ===== LANDING PAGE ===== */
.landing-body {
    background: #fff;
    direction: rtl;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}

.landing-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    font-size: 20px;
    font-weight: 800;
    color: #1b263b;
}

.landing-nav-links { display: flex; align-items: center; gap: 12px; }

.nav-link {
    font-size: 14px;
    color: #374151;
    padding: 7px 14px;
    border-radius: 8px;
    transition: background 0.15s;
}

.nav-link:hover { background: #f3f4f6; }

.nav-btn {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    padding: 8px 18px;
    border-radius: 8px;
    transition: background 0.15s;
}

.nav-btn:hover { background: #1d4ed8; }

/* HERO */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 32px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
    margin-bottom: 18px;
}

.hero-accent { color: #2563eb; }

.hero-subtitle {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 480px;
}

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

/* Hero mockup card */
.hero-graphic { display: flex; justify-content: center; }

.hero-card-mockup {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 28px;
    width: 300px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.mockup-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.mockup-path {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
    margin-top: 14px;
}

.mockup-score { color: #2563eb; }

.mockup-bar {
    background: #f3f4f6;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.mockup-fill {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

/* STATS STRIP */
.stats-strip {
    background: #1b263b;
    padding: 40px 0;
}

.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-item { text-align: center; color: #fff; }

.stat-num {
    font-size: 36px;
    font-weight: 800;
    color: #60a5fa;
    line-height: 1;
}

.stat-lbl {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 6px;
}

/* HOW SECTION / FEATURES */
.how-section, .features-section {
    padding: 72px 0;
}

.how-section { background: #f9fafb; }
.features-section { background: #fff; }

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.step-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: #6b7280; line-height: 1.7; }

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}

.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; }

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #1b263b 0%, #2563eb 100%);
    padding: 72px 0;
}

.cta-inner {
    text-align: center;
    color: #fff;
}

.cta-inner h2 { font-size: 32px; margin-bottom: 12px; }
.cta-inner p  { font-size: 16px; color: #93c5fd; margin-bottom: 28px; }

.cta-btn.primary.on-dark {
    background: #fff;
    color: #1b263b;
}

/* LANDING FOOTER */
.landing-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.landing-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ===== AUTH PAGES ===== */
.auth-wrap {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.auth-logo {
    font-size: 18px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 20px;
}

.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: #6b7280; margin-bottom: 24px; }

.auth-submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-submit-btn:hover { background: #1d4ed8; }

.auth-switch {
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

.auth-switch a { color: #2563eb; font-weight: 600; }

.verify-icon { font-size: 52px; margin-bottom: 12px; }

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ===== DASHBOARD ===== */
.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.dash-greeting { font-size: 24px; font-weight: 700; }
.dash-sub { font-size: 14px; color: #6b7280; margin-top: 2px; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.dash-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.dash-stat-num { font-size: 32px; font-weight: 800; color: #2563eb; }
.dash-stat-lbl { font-size: 13px; color: #6b7280; margin-top: 4px; }

.dash-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}

.dash-entry:last-child { border-bottom: none; }

.dash-entry-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.dash-entry-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 3px;
    direction: ltr;
    text-align: right;
}

.dash-view-btn {
    display: inline-block;
    padding: 7px 14px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.dash-view-btn:hover { background: #dbeafe; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-icon { font-size: 40px; margin-bottom: 10px; }

/* ===== LIMIT / PAYWALL PAGE ===== */
.limit-wrap {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.limit-icon { font-size: 56px; margin-bottom: 16px; }

.limit-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.limit-sub {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 32px;
}

.pricing-card {
    background: #fff;
    border: 2px solid #2563eb;
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 8px 32px rgba(37,99,235,0.12);
    margin-bottom: 28px;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
}

.price-currency {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
}

.price-period {
    font-size: 14px;
    color: #9ca3af;
    margin-right: 4px;
}

.pricing-features {
    list-style: none;
    text-align: right;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 14px;
    color: #374151;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-features li:last-child { border-bottom: none; }

.buy-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 16px;
}

.limit-back {
    font-size: 14px;
    color: #6b7280;
    display: inline-block;
    margin-top: 4px;
}

.limit-back:hover { color: #111827; }

/* ===== COMING SOON PAGE ===== */
.coming-soon-wrap {
    max-width: 480px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px;
}

.coming-soon-icon { font-size: 64px; margin-bottom: 20px; }

.coming-soon-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
}

.coming-soon-sub {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 24px;
}

.coming-soon-price-hint {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.processing {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge.failed {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Spinning dot for "processing" */
.spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid #d97706;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== COMPLETION TOAST ===== */
.completion-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #d1fae5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #065f46;
    z-index: 9999;
    cursor: pointer;
    max-width: 420px;
    width: calc(100% - 40px);
    animation: slideUp 0.3s ease;
}

.completion-toast.hidden { display: none; }

.toast-icon { font-size: 20px; flex-shrink: 0; }

.toast-close {
    margin-right: auto;
    margin-top: 0;
    margin-left: 4px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    padding: 0 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.toast-close:hover { color: #374151; opacity: 1; }

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== FADE IN ===== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 50px 20px 40px;
    }

    .hero-graphic { display: none; }
    .hero-title { font-size: 30px; }

    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-inner { gap: 32px; }

    .dash-stats { grid-template-columns: 1fr 1fr; }
}
