/* ===================================================================
   LeadRadar B2B | Modern Responsive SaaS Stylesheet
   Dual Language: Cairo (Arabic RTL) & Plus Jakarta Sans (English LTR)
   =================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --success: #10b981;
    --success-hover: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0284c7;
    --pro-gold: #fbbf24;
    --pro-gold-dark: #d97706;

    /* Theme: Dark (Default) */
    --bg-body: #0b0f19;
    --bg-card: #111827;
    --bg-card-subtle: #1f2937;
    --bg-input: #1e293b;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(79, 70, 229, 0.4);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
body.light-theme {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --bg-input: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(79, 70, 229, 0.35);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[dir="ltr"] {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* TOP PROMOTIONAL BANNER */
.top-promo-bar {
    background: linear-gradient(90deg, #1e1b4b, #312e81, #1e1b4b);
    color: #e0e7ff;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.device-quota-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--pro-gold);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.promo-upgrade-link {
    color: var(--pro-gold);
    text-decoration: underline;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* NAVBAR */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.brand-name span {
    color: var(--accent);
}

.brand-tag {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: -2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.free-limit-pill {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.25);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-switch-btn, .btn-icon {
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.lang-switch-btn:hover, .btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
}

.btn-pro-nav {
    background: linear-gradient(135deg, var(--pro-gold), var(--pro-gold-dark));
    color: #111827;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    transition: var(--transition);
}

.btn-pro-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

/* HERO SECTION */
.hero-section {
    padding: 3.5rem 0 2rem;
    text-align: center;
    position: relative;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: var(--primary-light);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 780px;
    margin: 0 auto 2.5rem;
}

/* EXTRACTOR CARD */
.extractor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    max-width: 980px;
    margin: 0 auto;
    text-align: right;
}

body[dir="ltr"] .extractor-card {
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-label .req {
    color: var(--danger);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

body[dir="ltr"] .form-input, 
body[dir="ltr"] .form-select {
    padding: 0.75rem 2.6rem 0.75rem 1rem;
}

.form-input:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.95rem;
}

body[dir="ltr"] .input-icon {
    left: auto;
    right: 1rem;
}

/* DATA TYPE CHIPS */
.data-type-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.5rem;
}

.type-chip input {
    display: none;
}

.type-chip .chip-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.type-chip input:checked + .chip-label {
    background: rgba(79, 70, 229, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
}

/* SOURCES CHECKBOX ROW */
.sources-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.source-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

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

/* EXTRACT BUTTON */
.btn-extract {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transition: var(--transition);
}

.btn-extract:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.55);
}

/* PROGRESS ANIMATION BOX */
.extract-progress-box {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    margin: 2rem auto 0;
    max-width: 700px;
    text-align: center;
}

.radar-scan-anim {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    border: 3px solid rgba(79, 70, 229, 0.2);
    border-top-color: var(--accent);
    animation: spin 1s infinite linear;
}

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

.scan-status-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.scan-status-detail {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-card-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.live-scan-log {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* RESULTS SECTION */
.results-section {
    display: none;
    padding: 2.5rem 0 4rem;
}

/* STATS OVERVIEW CARDS */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-card);
}

.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-val {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pro-card-highlight {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), var(--bg-card));
}

/* ACTION BAR */
.table-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.table-title-area h3 {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-title-area p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.table-actions-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.btn-action {
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-excel {
    background: #107c41;
    color: #fff;
    border: 1px solid #107c41;
}

.btn-excel:hover {
    background: #0b5a2f;
}

.btn-csv {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-csv:hover {
    border-color: var(--text-main);
}

.btn-unlock-gold {
    background: linear-gradient(135deg, var(--pro-gold), var(--pro-gold-dark));
    color: #111827;
    border: none;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.btn-unlock-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

.lock-pro-tag {
    color: var(--pro-gold);
    font-size: 0.85rem;
    margin-right: 0.25rem;
}

body[dir="ltr"] .lock-pro-tag {
    margin-right: 0;
    margin-left: 0.25rem;
}

/* TABLE CARD WRAPPER & PAYWALL */
.table-card-wrapper {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 2rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.92rem;
}

body[dir="ltr"] .leads-table {
    text-align: left;
}

.leads-table th {
    background: var(--bg-card-subtle);
    padding: 1rem 1.15rem;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.leads-table td {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.leads-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Masked & Blurred Row Styling for Free Tier */
.tr-masked td.td-phone, 
.tr-masked td.td-email {
    filter: blur(4px);
    user-select: none;
    cursor: not-allowed;
}

.tr-masked td.td-actions {
    opacity: 0.4;
    pointer-events: none;
}

.masked-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--pro-gold);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.4rem;
}

body[dir="ltr"] .masked-badge {
    margin-right: 0;
    margin-left: 0.4rem;
}

/* Direct Action Buttons in Table */
.btn-table-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-whatsapp-cell {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-cell:hover {
    background: #25d366;
    color: #fff;
}

.btn-copy-cell {
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-copy-cell:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

/* PAYWALL CURTAIN (Covers rows after 5 in Free Mode) */
.pro-paywall-curtain {
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.5) 0%, rgba(11, 15, 25, 0.96) 30%, #0b0f19 100%);
    backdrop-filter: blur(6px);
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px dashed rgba(245, 158, 11, 0.4);
}

body.light-theme .pro-paywall-curtain {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(248, 250, 252, 0.96) 30%, #f8fafc 100%);
}

.paywall-lock-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: var(--pro-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.25rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.pro-paywall-curtain h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.pro-paywall-curtain p {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 680px;
    margin: 0 auto 1.75rem;
}

.btn-paywall-upgrade {
    background: linear-gradient(135deg, var(--pro-gold), var(--pro-gold-dark));
    color: #111827;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
}

.btn-paywall-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

.paywall-guarantee {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* WHEN PRO IS UNLOCKED */
body.pro-unlocked .pro-paywall-curtain {
    display: none !important;
}

body.pro-unlocked .tr-masked td.td-phone, 
body.pro-unlocked .tr-masked td.td-email {
    filter: none !important;
    user-select: auto !important;
    cursor: auto !important;
}

body.pro-unlocked .tr-masked td.td-actions {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.pro-unlocked .lock-pro-tag {
    display: none !important;
}

body.pro-unlocked .adsense-slot-wrap {
    display: none !important;
}

/* DORK TOOLS CARD */
.dork-tools-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

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

.dork-header h4 {
    font-size: 1.1rem;
    font-weight: 800;
}

.dork-tools-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.dork-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dork-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.dork-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ADSENSE PLACES */
.adsense-slot-wrap {
    margin: 2rem 0;
}

.adsense-box {
    background: var(--bg-card-subtle);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    position: relative;
}

.adsense-tag {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

body[dir="ltr"] .adsense-tag {
    right: auto;
    left: 12px;
}

.adsense-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* FAQ SECTION */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3rem;
}

.faq-header h3 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.faq-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.faq-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.faq-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.faq-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.faq-card h4 i {
    color: var(--accent);
}

.faq-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FOOTER */
.footer {
    background: var(--bg-body);
    padding: 3.5rem 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 0.85rem;
    max-width: 360px;
}

.footer-links h4, .footer-subdomain-info h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

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

.footer-subdomain-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* MODAL OVERLAY & CARD */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-card {
    max-width: 780px;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

body[dir="ltr"] .modal-close-btn {
    left: auto;
    right: 1.25rem;
}

.modal-close-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.modal-crown-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: var(--pro-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.modal-header p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* PRO COMPARISON TABLE */
.pro-features-compare {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.compare-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    align-items: center;
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row.header-row {
    background: var(--bg-card-subtle);
    font-weight: 800;
    color: var(--text-muted);
}

.pro-col {
    color: var(--pro-gold);
}

.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.modal-pricing-box {
    text-align: center;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--pro-gold);
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.btn-checkout-pro {
    width: 100%;
    background: linear-gradient(135deg, var(--pro-gold), var(--pro-gold-dark));
    color: #111827;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
}

.btn-checkout-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6);
}

.btn-test-sandbox {
    background: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-test-sandbox:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

/* LEGAL MODAL BODY */
.legal-content-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-content-body h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 1.25rem 0 0.5rem;
}

.legal-content-body ul {
    padding-right: 1.25rem;
    margin-bottom: 1rem;
}

body[dir="ltr"] .legal-content-body ul {
    padding-right: 0;
    padding-left: 1.25rem;
}

/* TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #111827;
    color: #fff;
    border: 1px solid var(--primary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body[dir="ltr"] .toast-notification {
    right: auto;
    left: 2rem;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .promo-container {
        justify-content: center;
    }

    .nav-container {
        height: auto;
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .extractor-card {
        padding: 1.25rem;
    }

    .sources-checkbox-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .table-actions-buttons {
        width: 100%;
    }

    .btn-action {
        flex: 1;
        justify-content: center;
    }
}
