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

:root {
    --primary: #000000;
    --secondary: #6b7280;
    --success: #10b981;
    --error: #ef4444;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --border: #e5e7eb;
    --text: #111827;
    --text-muted: #6b7280;

    /* Company accent colors */
    --color-fnx: #3b82f6;
    --color-harel: #f97316;
    --color-more: #8b5cf6;
    --color-altsholer: #f43f5e;
    --color-menora: #14b8a6;
    --color-migdal: #f59e0b;
    --color-clalbit: #6366f1;
    --color-hcsra: #10b981;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.user-name {
    color: var(--text-muted);
    font-size: 14px;
}

/* Language toggle button */
.btn-lang {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.btn-lang:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Navbar credits badge */
.credits-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-text:hover {
    background: var(--bg-secondary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--text-muted);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 8px;
}

.benefit-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Dashboard Section */
.dashboard {
    padding: 100px 0 80px;
    background: var(--bg-secondary);
}

.dashboard-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Bilingual text helpers -- RTL-first */
.title-he {
    display: block;
    direction: rtl;
    unicode-bidi: bidi-override;
    font-size: 48px;
    text-align: center;
}
.title-en {
    display: block;
    direction: ltr;
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 400;
    text-align: center;
}
.label-he {
    display: block;
    direction: rtl;
    unicode-bidi: bidi-override;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}
.label-en {
    display: block;
    direction: ltr;
    font-size: 0.85em;
    color: var(--text-muted);
    text-align: left;
}
/* Centered context: labels inside centered containers */
.search-label .label-he,
.search-label .label-en,
.dashboard-subtitle .label-he,
.dashboard-subtitle .label-en,
.creds-warning .label-he,
.creds-warning .label-en {
    text-align: center;
}
.btn-he {
    display: block;
    direction: rtl;
    unicode-bidi: bidi-override;
    font-size: 18px;
}
.btn-en {
    display: block;
    direction: ltr;
    font-size: 13px;
    opacity: 0.8;
}

/* ── Dashboard Tabs ── */
.dashboard-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    direction: ltr;
}

.tab-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-label-he {
    font-size: 16px;
    direction: rtl;
}

.tab-label-en {
    font-size: 12px;
    opacity: 0.7;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Search input section */
.search-input-section {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}

.search-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    text-align: center;
}

.search-text-field {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 24px;
    font-family: 'Consolas', 'Courier New', monospace;
    text-align: center;
    letter-spacing: 2px;
    transition: border-color 0.2s;
}

.search-text-field:focus {
    outline: none;
    border-color: var(--primary);
}

/* Companies selection */
.companies-selection {
    max-width: 800px;
    margin: 0 auto 40px;
}

.select-all-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    direction: rtl;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    direction: rtl;
}

.select-all-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.selected-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Credentials warning */
.creds-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Company checkbox grid */
.companies-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* ── Improved company cards ── */
.company-checkbox-card {
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    user-select: none;
    direction: rtl;
    position: relative;
    overflow: hidden;
}

/* Colored top border strip */
.company-checkbox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--company-color, var(--border));
}

.company-checkbox-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.company-checkbox-card.selected {
    border-color: var(--company-color, var(--primary));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Per-company color via data-company attribute */
.company-checkbox-card[data-company="fnx"] { --company-color: var(--color-fnx); }
.company-checkbox-card[data-company="harel"] { --company-color: var(--color-harel); }
.company-checkbox-card[data-company="more"] { --company-color: var(--color-more); }
.company-checkbox-card[data-company="altsholer"] { --company-color: var(--color-altsholer); }
.company-checkbox-card[data-company="menora"] { --company-color: var(--color-menora); }
.company-checkbox-card[data-company="migdal"] { --company-color: var(--color-migdal); }
.company-checkbox-card[data-company="clalbit"] { --company-color: var(--color-clalbit); }
.company-checkbox-card[data-company="hcsra"] { --company-color: var(--color-hcsra); }

.company-checkbox-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--company-color, var(--primary));
    flex-shrink: 0;
}

/* Letter avatar */
.company-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    background: var(--company-color, var(--secondary));
}

.company-card-info {
    flex: 1;
    min-width: 0;
}

.company-name-he {
    font-size: 18px;
    font-weight: 600;
    direction: rtl;
    unicode-bidi: bidi-override;
    text-align: right;
}

.company-name-en {
    font-size: 13px;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
}

/* Status badge (replaces dot indicator) */
.cred-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.cred-status-badge.has-creds {
    background: #d1fae5;
    color: #065f46;
}

.cred-status-badge.no-creds {
    background: #f3f4f6;
    color: #6b7280;
}

/* Submit button */
.dashboard-actions {
    text-align: center;
    margin-bottom: 40px;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.btn-submit:hover {
    background: #333;
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-arrow {
    font-size: 20px;
}

/* Scraper status */
.scraper-status {
    max-width: 800px;
    margin: 0 auto 32px;
}

.scraper-status-header {
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.scraper-status-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.scraper-status-item {
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.scraper-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.scraper-status-dot.running {
    background: #f59e0b;
    animation: pulse 1.5s infinite;
}

.scraper-status-dot.completed {
    background: var(--success);
}

.scraper-status-dot.failed {
    background: var(--error);
}

.scraper-status-dot.skipped {
    background: #d1d5db;
}

.scraper-status-dot.otp_needed {
    background: #8b5cf6;
    animation: pulse 1.5s infinite;
}

.scraper-status-dot.otp_submitted {
    background: #06b6d4;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Execution result */
.execution-result {
    max-width: 800px;
    margin: 0 auto;
}

.execution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
    direction: rtl;
}

.btn-copy {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: var(--bg-secondary);
}

.execution-json {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 12px;
    font-size: 13px;
    font-family: 'Consolas', 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 500px;
    overflow-y: auto;
}

/* ── Profile Tab ── */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    direction: ltr;
}

.profile-info-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.profile-info-row + .profile-info-row {
    border-top: 1px solid var(--border);
}

.profile-info-label {
    color: var(--text-muted);
    font-size: 14px;
}

.profile-info-value {
    font-weight: 600;
    font-size: 16px;
}

.profile-form-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Credits Tab ── */
.credits-balance-card {
    background: linear-gradient(135deg, #1e1e1e, #333);
    color: white;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.credits-balance-label {
    font-size: 14px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.credits-balance-number {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.credits-balance-sub {
    font-size: 16px;
    opacity: 0.6;
}

/* Pack cards */
.credits-packs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 48px;
    direction: ltr;
}

.pack-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.pack-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pack-popular {
    border-color: var(--primary);
}

.pack-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pack-name {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pack-amount {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.pack-amount-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pack-price {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pack-buy-btn {
    padding: 10px 32px;
}

/* Credits history */
.credits-history {
    max-width: 800px;
    margin: 0 auto;
    direction: ltr;
}

.credits-history-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.credits-history-table-wrap {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.credits-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.credits-history-table th {
    background: var(--bg-secondary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-history-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.credits-history-table .empty-row {
    text-align: center;
    color: var(--text-muted);
    padding: 32px;
}

.type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.type-badge.purchase {
    background: #d1fae5;
    color: #065f46;
}

.type-badge.deduction {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Payment Modal ── */
.payment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 16px;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-demo-notice {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    font-style: italic;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary);
}

.modal-form {
    padding: 24px;
}

.modal-description {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fee2e2;
    color: var(--error);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--success);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 3000;
    max-width: 400px;
}

.toast.error {
    background: var(--error);
}

.toast.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .title-he {
        font-size: 36px;
    }

    .title-en {
        font-size: 18px;
    }

    .search-text-field {
        font-size: 20px;
    }

    .features-grid,
    .benefits-list {
        grid-template-columns: 1fr;
    }

    .companies-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .credits-packs {
        grid-template-columns: 1fr;
    }

    .credits-balance-number {
        font-size: 48px;
    }

    .dashboard-tabs {
        flex-wrap: wrap;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* Execution Options */
.execution-options {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.options-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.options-table tr {
    background: transparent;
}

.checkbox-cell {
    width: 40px;
    padding: 8px 0;
    vertical-align: middle;
}

.checkbox-cell input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.label-cell {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    vertical-align: middle;
    white-space: nowrap;
}

.hint-cell {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    vertical-align: middle;
}

.options-table tr:hover .label-cell {
    color: var(--primary);
}

/* ── OTP Modal (Manual OTP Mode) ── */

#otp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#otp-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

#otp-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10001;
}

#otp-modal .modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

#otp-modal .modal-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

#otp-modal .modal-content input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.3rem;
    font-family: monospace;
}

#otp-modal .modal-content input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

#otp-modal .modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

#otp-modal .modal-actions button {
    flex: 1;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--border);
}
