@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

/* Floky Scripts Brand Lockup */
.nano-logo,
.ftx-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.floky-logo-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.35));
}

.ftx-logo .floky-logo-icon {
    width: 40px;
    height: 40px;
}

.floky-logo-text {
    font-family: 'Chakra Petch', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

.floky-logo-text span {
    color: #ccff00;
}

/* Language Selector Dropdown */
.floky-lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 8px;
}

.floky-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    background: rgba(22, 23, 27, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f3f4f6;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1.2;
}

.floky-lang-trigger:hover {
    background: rgba(38, 40, 48, 0.9);
    border-color: rgba(204, 255, 0, 0.4);
}

.floky-lang-chevron {
    width: 14px;
    height: 14px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.floky-lang-dropdown.open .floky-lang-chevron {
    transform: rotate(180deg);
}

.floky-lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 185px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(20, 21, 26, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
    padding: 4px;
    z-index: 10050;
    display: none;
    animation: flokyFadeIn 0.16s ease-out;
}

.floky-lang-dropdown.open .floky-lang-menu {
    display: block;
}

@keyframes flokyFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floky-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #e5e7eb;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.floky-lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.floky-lang-option.active {
    font-weight: 600;
    color: #ccff00;
    background: rgba(204, 255, 0, 0.08);
}

.floky-lang-option-label {
    flex: 1;
}

.floky-lang-check {
    width: 15px;
    height: 15px;
    color: #ccff00;
    display: none;
}

.floky-lang-option.active .floky-lang-check {
    display: block;
}

/* Arabic RTL Support */
html[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

html[dir="rtl"] .floky-lang-dropdown {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .floky-lang-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .floky-lang-option {
    text-align: right;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .ftx-cta-actions,
html[dir="rtl"] .faqx-card-list li {
    flex-direction: row-reverse;
}

html[dir="rtl"] .faqx-q {
    text-align: right;
}

html[dir="rtl"] .htitle-static,
html[dir="rtl"] .hdesc,
html[dir="rtl"] .studio-prefix {
    text-align: right;
}
