/* Reset بسيط */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #0f172a; /* slate-900 */
    color: #e5e7eb;           /* gray-200 */
}

/* Body layout */
.fc-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.fc-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.3); /* slate-400 */
    background: radial-gradient(circle at top left, #1d4ed8 0, #020617 55%);
}

.fc-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fc-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fc-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #f9fafb;
    font-size: 0.9rem;
}

.fc-brand-text {
    display: flex;
    flex-direction: column;
}

.fc-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f9fafb;
    letter-spacing: 0.02em;
}

.fc-subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: #cbd5f5;
}

.fc-nav {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.fc-nav-link {
    color: #e5e7eb;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.fc-nav-link:hover {
    background-color: rgba(148, 163, 184, 0.25);
    color: #f9fafb;
}

/* Main container */
.fc-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    flex: 1;
}

/* Hero */
.fc-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.fc-hero-title {
    margin: 0 0 0.5rem;
    font-size: 1.7rem;
    font-weight: 600;
    color: #f9fafb;
}

.fc-hero-text {
    margin: 0;
    font-size: 0.95rem;
    color: #9ca3af;
}

/* Layout for panels */
.fc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .fc-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Panels */
.fc-panel {
    background-color: #020617; /* slate-950 */
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.fc-panel-primary {
    border-color: rgba(59, 130, 246, 0.6); /* blue */
}

.fc-panel-secondary {
    border-style: dashed;
}

.fc-panel-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e5e7eb;
}

/* Form */
.fc-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fc-label {
    font-size: 0.85rem;
    color: #cbd5f5;
}

/* Dropzone */
.fc-dropzone {
    position: relative;
    border-radius: 0.75rem;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    padding: 1.25rem;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.95));
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}

.fc-dropzone:hover {
    border-color: #60a5fa;
    transform: translateY(-1px);
}

.fc-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.fc-dropzone-text {
    margin: 0;
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* Select */
.fc-select {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.5rem 0.75rem;
    background-color: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
    outline: none;
    appearance: none;
}

.fc-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

/* Actions */
.fc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fc-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #f9fafb;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.8);
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}

.fc-button-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
}

.fc-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.8);
}

.fc-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Status */
.fc-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    min-height: 1.2em;
    color: #e5e7eb;
}

/* Result */
.fc-result {
    min-height: 4rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.9rem;
}

.fc-result-placeholder {
    margin: 0;
    color: #6b7280;
}

/* Countdown */
.fc-countdown {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Debug */
.fc-debug-wrapper {
    margin-top: 1rem;
}

.fc-debug-title {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.fc-debug {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: #020617;
    border: 1px solid rgba(75, 85, 99, 0.8);
    font-size: 0.75rem;
    color: #e5e7eb;
    max-height: 220px;
    overflow: auto;
}

/* Footer */
.fc-footer {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    padding: 0.75rem 1rem 1.25rem;
    background-color: #020617;
}

.fc-footer-text {
    max-width: 960px;
    margin: 0 auto;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}
/* Mobile-first tweaks */
@media (max-width: 640px) {
    .fc-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .fc-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .fc-container {
        padding: 1.5rem 1rem 2.5rem;
    }

    .fc-hero {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .fc-hero-title {
        font-size: 1.4rem;
    }

    .fc-hero-text {
        font-size: 0.9rem;
    }

    .fc-panel {
        padding: 1rem 0.9rem 1.2rem;
        border-radius: 0.9rem;
    }

    .fc-button-primary {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .fc-dropzone {
        padding: 1rem;
    }

    .fc-result {
        padding: 0.6rem;
        min-height: 3.2rem;
    }

    .fc-debug-wrapper {
        margin-top: 0.75rem;
    }
}

/* قفل الـ select بهالصفحة (شكلياً بس) */
.fc-select-locked {
    pointer-events: none;
    opacity: 0.85;
}

/* نص صغير */
.fc-small-note {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Home / tools section */
.fc-hero-home {
    margin-bottom: 2.5rem;
}

.fc-tools-section {
    margin-bottom: 2.5rem;
}

.fc-section-title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f9fafb;
}

.fc-section-subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Tools grid */
.fc-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.fc-tool-card {
    background-color: #020617;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 1rem 1.2rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fc-tool-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
}

.fc-tool-text {
    margin: 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Secondary button (links لكروت الأدوات) */
.fc-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background-color: transparent;
    color: #e5e7eb;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.fc-button-secondary:hover {
    background-color: rgba(37, 99, 235, 0.18);
    border-color: #60a5fa;
    color: #f9fafb;
    transform: translateY(-1px);
}

/* Security section */
.fc-security-section {
    margin-bottom: 2rem;
}

.fc-security-list {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.fc-security-list li + li {
    margin-top: 0.3rem;
}

/* Mobile tweaks للهوم بيج */
@media (max-width: 640px) {
    .fc-tools-section {
        margin-bottom: 2rem;
    }

    .fc-tool-card {
        padding: 0.9rem 0.85rem 1.1rem;
        border-radius: 0.8rem;
    }

    .fc-button-secondary {
        width: 100%;
        justify-content: center;
    }
}
/* Share section on home */
.fc-share-section {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 16px;
    background: #0f172a;
    color: #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

.fc-share-buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.9);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, border-color 0.12s ease-out;
}

.fc-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
    border-color: rgba(248, 250, 252, 0.6);
}

.fc-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* لكل منصة لون خفيف */
.fc-share-x .fc-share-icon {
    background: #020617;
    color: #f9fafb;
}

.fc-share-linkedin .fc-share-icon {
    background: #0a66c2;
    color: #f9fafb;
}

.fc-share-whatsapp .fc-share-icon {
    background: #22c55e;
    color: #022c22;
}

.fc-share-reddit .fc-share-icon {
    background: #f97316;
    color: #111827;
}

/* Footer share icons */
.fc-footer-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.fc-footer-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none;
    border: 1px solid rgba(156, 163, 175, 0.5);
    color: #e5e7eb;
    transition: background 0.12s ease-out, transform 0.12s ease-out, border-color 0.12s ease-out;
}

.fc-footer-share-icon:hover {
    transform: translateY(-1px);
    border-color: #ffffff;
}
.fc-section.fc-legal {
    max-width: 900px;
    margin: 2.5rem auto 3rem auto;
}

.fc-legal-updated {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.fc-legal-contact a {
    color: #38bdf8;
    text-decoration: none;
}

.fc-legal-contact a:hover {
    text-decoration: underline;
}

/* قائمة الشروط */
.fc-terms-list {
    margin-top: 1.5rem;
    margin-left: 1.5rem;
    padding-left: 0;
    list-style: decimal;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fc-terms-item {
    padding-left: 0.25rem;
}

.fc-terms-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #e5e7eb;
}

.fc-terms-sublist {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
    color: #cbd5f5;
    font-size: 0.95rem;
}

.fc-terms-sublist li + li {
    margin-top: 0.2rem;
}

.fc-hero.fc-hero-faq {
    margin-bottom: 1.5rem;
}

.fc-faq-section {
    margin-top: 0;
}

.fc-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .fc-faq-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.fc-faq-sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.fc-faq-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.fc-faq-sidebar-list a {
    color: #9ca3af;
    text-decoration: none;
    padding: 0.25rem 0;
    border-radius: 4px;
    transition: color 0.12s ease-out, background 0.12s ease-out;
}

.fc-faq-sidebar-list a:hover {
    color: #e5e7eb;
    background: rgba(148, 163, 184, 0.08);
}

/* FAQ items */
.fc-faq-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fc-faq-item {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.8);
    padding: 0.6rem 0.9rem;
}

.fc-faq-item[open] {
    border-color: rgba(248, 250, 252, 0.6);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
}

.fc-faq-question {
    list-style: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fc-faq-question::marker {
    display: none;
}

.fc-faq-question::-webkit-details-marker {
    display: none;
}

.fc-faq-question::after {
    content: "▾";
    font-size: 0.8rem;
    color: #9ca3af;
    margin-left: 0.5rem;
    transition: transform 0.12s ease-out;
}

.fc-faq-item[open] .fc-faq-question::after {
    transform: rotate(-180deg);
}

.fc-faq-answer {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5f5;
}

.fc-faq-answer p {
    margin: 0.2rem 0 0.4rem 0;
}

.fc-faq-answer ul {
    margin: 0.2rem 0 0.5rem 1.2rem;
    padding: 0;
    list-style: disc;
}

.fc-faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.fc-faq-card {
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.75);
}

.fc-faq-card-title a {
    color: #e5e7eb;
    text-decoration: none;
}

.fc-faq-card-title a:hover {
    text-decoration: underline;
}

.fc-faq-card-text {
    font-size: 0.9rem;
    color: #9ca3af;
}

.fc-faq-card-link {
    margin-top: 0.4rem;
    align-self: flex-start;
    font-size: 0.85rem;
}
.fc-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.fc-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
}

.fc-breadcrumb a:hover {
    color: #e5e7eb;
}

.fc-faq-answer-detail p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}
.fc-faq-index {
    margin-top: 1.5rem;
}

.fc-faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 بكل صف */
    gap: 1.25rem 1.5rem;
}
/* شاشات أصغر شوي – 3 بكل صف */
@media (max-width: 1200px) {
    .fc-faq-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* تابلت – 2 بكل صف */
@media (max-width: 900px) {
    .fc-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* موبايل – 1 بكل صف */
@media (max-width: 640px) {
    .fc-faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.fc-faq-card {
    background-color: #020617;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.9rem 1rem 1.1rem;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.fc-faq-question {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.fc-faq-question a {
    color: #e5e7eb;
    text-decoration: none;
}

.fc-faq-question a:hover {
    text-decoration: underline;
}

.fc-faq-summary {
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* موبايل: عمود واحد */
@media (max-width: 640px) {
    .fc-faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* FAQ detail page */

.fc-breadcrumb {
    margin-bottom: 1rem;
}

.fc-breadcrumb-link {
    color: #93c5fd; /* blue-300 */
    text-decoration: none;
    font-size: 0.9rem;
}

.fc-breadcrumb-link:hover {
    text-decoration: underline;
}

.fc-faq-detail-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.fc-faq-answer-detail {
    max-width: 760px;       /* يطلع شكل كتابي مرتب */
    margin-top: 1rem;
    margin-bottom: 3rem;
    padding-left: 0.2rem;
}

.fc-faq-paragraph {
    font-size: 1rem;
    line-height: 1.7;
    color: #e5e7eb;
    margin-bottom: 1.1rem;
    text-align: left;
}

/* مظهر نص ناعم */
.fc-faq-paragraph + .fc-faq-paragraph {
    margin-top: 0.7rem;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .fc-faq-detail-title {
        font-size: 1.3rem;
        line-height: 1.35;
    }

    .fc-faq-paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .fc-faq-answer-detail {
        padding-left: 0;
    }
}
