/* 301check.com v2 - Modern AI Style */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent-1: #7c5cff;
    --accent-2: #4d8eff;
    --accent-3: #00d4aa;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    --glass: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
}
[data-theme="light"] {
    --bg-primary: #f5f6fa;
    --bg-secondary: #fafbfc;
    --bg-card: rgba(255,255,255,0.7);
    --bg-card-hover: rgba(255,255,255,0.85);
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.15);
    --text-primary: #1a1a2e;
    --text-secondary: #666680;
    --text-muted: #9999aa;
    --glass: rgba(255,255,255,0.7);
    --glass-border: rgba(0,0,0,0.08);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
.bg-gradient {
    position: fixed; top: 0; left: 0; right: 0; height: 100vh; z-index: -2;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124,92,255,0.15), transparent),
                radial-gradient(ellipse 60% 40% at 80% 50%, rgba(77,142,255,0.08), transparent),
                radial-gradient(ellipse 50% 30% at 20% 80%, rgba(0,212,170,0.06), transparent);
}
[data-theme="light"] .bg-gradient {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124,92,255,0.06), transparent),
                radial-gradient(ellipse 60% 40% at 80% 50%, rgba(77,142,255,0.04), transparent),
                radial-gradient(ellipse 50% 30% at 20% 80%, rgba(0,212,170,0.03), transparent);
}
.bg-grid {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black, transparent);
}
[data-theme="light"] .bg-grid { opacity: 0.15; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    background: rgba(10,10,15,0.8);
    border-bottom: 1px solid var(--border);
}
[data-theme="light"] .site-header { background: rgba(245,246,250,0.9); }
.header-inner { display: flex; align-items: center; height: 60px; }
.logo { margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: 700; }
.logo-sub { font-size: 11px; color: var(--text-muted); }
.nav-desktop { display: flex; align-items: center; gap: 24px; margin-right: 16px; }
.nav-desktop a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color var(--transition); }
.nav-desktop a:hover { color: var(--text-primary); }

/* Header controls group */
.header-controls { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; height: 36px;
}
.theme-toggle:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: scale(1.05); }

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 36px;
}
.lang-btn {
    background: none;
    border: none;
    padding: 0 10px;
    height: 100%;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}
.lang-btn:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.lang-btn.active {
    background: var(--gradient);
    color: #fff;
}
.lang-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
    flex-shrink: 0;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
.nav-mobile { display: none; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.nav-mobile.open { display: flex; flex-direction: column; gap: 12px; }
.nav-mobile a { color: var(--text-secondary); text-decoration: none; font-size: 15px; padding: 8px 0; }
.nav-mobile-controls { display: flex; align-items: center; gap: 12px; padding: 12px 0 4px; border-top: 1px solid var(--border); margin-top: 4px; }
.nav-mobile-controls .theme-toggle { min-width: 44px; height: 36px; font-size: 18px; }
.nav-mobile-controls .lang-dropdown-btn { min-width: 44px; height: 36px; justify-content: center; }
.nav-mobile-controls .lang-dropdown-menu { right: auto; left: 0; min-width: 180px; }

/* Language dropdown switcher */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    height: 36px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-primary);
    transition: all var(--transition);
    white-space: nowrap;
}
.lang-dropdown-btn:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.lang-dropdown-btn .lang-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform var(--transition);
}
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 200;
    overflow: hidden;
    backdrop-filter: blur(20px);
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.lang-dropdown-menu a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.lang-dropdown-menu a.active { color: var(--accent-1); font-weight: 600; }
.lang-dropdown-menu a .lang-flag { margin-right: 6px; }

/* Hero */
.hero { text-align: center; padding: 80px 0 40px; }
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: var(--glass); border: 1px solid var(--glass-border);
    font-size: 13px; color: var(--text-secondary); margin-bottom: 24px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.gradient-text {
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 17px; color: var(--text-secondary); max-width: 700px; margin: 0 auto 32px; line-height: 1.7; }
.check-form { display: flex; gap: 12px; max-width: 700px; margin: 0 auto; }
.input-wrapper {
    flex: 1; position: relative; display: flex; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    transition: all var(--transition);
}
.input-wrapper:focus-within { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(124,92,255,0.15); }
.input-icon { padding: 0 4px 0 14px; font-size: 18px; opacity: 0.5; }
.url-input {
    flex: 1; background: none; border: none; outline: none; padding: 14px 14px 14px 4px;
    font-size: 15px; color: var(--text-primary); font-family: var(--font);
}
.url-input::placeholder { color: var(--text-muted); }
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
    border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 2px 12px rgba(124,92,255,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,92,255,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--glass); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-icon { font-size: 18px; }
.hero-examples { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.example-link {
    background: none; border: none; color: var(--accent-2); cursor: pointer;
    font-size: 13px; text-decoration: underline; text-underline-offset: 2px;
    margin: 0 4px; font-family: var(--font);
}
.example-link:hover { color: var(--accent-1); }

/* Loading */
.loading { text-align: center; padding: 60px 0; }
.spinner {
    width: 40px; height: 40px; margin: 0 auto 16px;
    border: 3px solid var(--border); border-top-color: var(--accent-1);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--text-secondary); font-size: 14px; }

/* Results */
.results { padding: 20px 0; }
.results-summary {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px;
    backdrop-filter: blur(10px);
}
.results-actions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.timeline { display: flex; flex-direction: column; gap: 12px; }
.hop-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; transition: all var(--transition);
}
.hop-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.hop-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.hop-num {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; background: var(--glass); border: 1px solid var(--border);
}
.hop-status { padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.hop-status.s2xx { background: rgba(0,212,170,0.15); color: #00d4aa; }
.hop-status.s3xx { background: rgba(77,142,255,0.15); color: #4d8eff; }
.hop-status.s4xx { background: rgba(255,100,100,0.15); color: #ff6464; }
.hop-status.s5xx { background: rgba(255,160,60,0.15); color: #ffa03c; }
.hop-time { font-size: 13px; color: var(--text-muted); margin-left: auto; }
.hop-url { font-size: 14px; word-break: break-all; color: var(--accent-2); margin-bottom: 8px; }
.hop-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; font-size: 13px; }
.hop-detail { color: var(--text-secondary); }
.hop-detail strong { color: var(--text-primary); font-weight: 500; }
.hop-headers-toggle { background: none; border: none; color: var(--accent-2); cursor: pointer; font-size: 13px; margin-top: 8px; font-family: var(--font); }
.hop-headers { display: none; margin-top: 12px; padding: 12px; background: var(--bg-primary); border-radius: var(--radius-sm); font-size: 12px; font-family: monospace; white-space: pre-wrap; word-break: break-all; color: var(--text-secondary); max-height: 300px; overflow-y: auto; }
.hop-headers.open { display: block; }

/* History */
.history-section { padding: 20px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition);
}
.history-item:hover { border-color: var(--border-hover); }
.history-url { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Content sections */
.content-section { padding: 60px 0; }
.section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 40px; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; text-align: center; transition: all var(--transition);
}
.step-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.step-num {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--gradient); color: #fff; font-size: 18px; font-weight: 700; margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-secondary); }

/* Status codes */
.codes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.code-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: all var(--transition);
}
.code-card:hover { border-color: var(--border-hover); }
.code-badge {
    display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 14px; font-weight: 700;
    margin-bottom: 12px; font-family: monospace;
}
.code-301 { background: rgba(0,212,170,0.15); color: #00d4aa; }
.code-302 { background: rgba(77,142,255,0.15); color: #4d8eff; }
.code-303 { background: rgba(255,200,60,0.15); color: #ffc83c; }
.code-307 { background: rgba(255,140,60,0.15); color: #ff8c3c; }
.code-308 { background: rgba(124,92,255,0.15); color: #7c5cff; }
.code-meta { background: rgba(255,100,100,0.15); color: #ff6464; }
.code-card h3 { font-size: 15px; margin-bottom: 8px; }
.code-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item summary {
    padding: 16px 20px; cursor: pointer; font-weight: 500; font-size: 15px;
    list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--text-muted); transition: transform var(--transition); }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Ad slots */
.ad-slot { min-height: 0; margin: 20px 0; border-radius: var(--radius); }

/* Footer */
.site-footer { margin-top: 60px; padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { text-align: center; }
.footer-brand { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin: 16px 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* Mobile */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .header-inner > .lang-dropdown { display: none; }
    .header-inner > .theme-toggle { display: none; }
    .hamburger { display: flex; margin-left: 8px; }
    .nav-mobile-controls { gap: 12px; }
    .hero { padding: 50px 0 30px; }
    .hero h1 { font-size: 28px; }
    .hero-desc { font-size: 15px; }
    .check-form { flex-direction: column; }
    .btn-primary { justify-content: center; padding: 16px; }
    .steps-grid { grid-template-columns: 1fr; }
    .codes-grid { grid-template-columns: 1fr; }
    .hop-header { flex-direction: column; align-items: flex-start; }
    .hop-time { margin-left: 0; }
    .hop-details { grid-template-columns: 1fr; }
    .content-section { padding: 40px 0; }
    .section-title { font-size: 22px; margin-bottom: 24px; }
    .faq-list { padding: 0 4px; }
    .lang-switcher { height: 32px; }
    .lang-btn { padding: 0 8px; font-size: 11px; }
}
@media (max-width: 375px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 24px; }
    .url-input { font-size: 14px; padding: 12px 12px 12px 4px; }
}

/* Article pages */
.article-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--accent-2); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }
.article-header { margin-bottom: 40px; }
.article-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.article-meta { font-size: 14px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.article-content { font-size: 16px; line-height: 1.8; color: var(--text-primary); }
.article-content h2 { font-size: 26px; font-weight: 700; margin: 48px 0 20px; line-height: 1.3; }
.article-content h3 { font-size: 20px; font-weight: 600; margin: 36px 0 16px; line-height: 1.4; }
.article-content h4 { font-size: 17px; font-weight: 600; margin: 28px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 20px 0; padding-left: 28px; }
.article-content li { margin-bottom: 12px; }
.article-content a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--accent-1); }
.article-content strong { font-weight: 600; color: var(--text-primary); }
.article-content code {
    background: var(--bg-card); padding: 2px 6px; border-radius: 4px;
    font-family: 'Courier New', monospace; font-size: 14px; color: var(--accent-3);
    border: 1px solid var(--border);
}
.article-content pre {
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; overflow-x: auto; margin: 24px 0; line-height: 1.6;
}
.article-content pre code { background: none; padding: 0; border: none; color: var(--text-secondary); font-size: 13px; }
.article-content blockquote {
    border-left: 3px solid var(--accent-1); padding: 12px 20px; margin: 24px 0;
    background: var(--bg-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic; color: var(--text-secondary);
}
.article-toc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; }
.article-toc h3 { font-size: 16px; margin-bottom: 12px; }
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin-bottom: 8px; }
.article-toc a { color: var(--text-secondary); text-decoration: none; font-size: 14px; display: block; padding: 4px 0; }
.article-toc a:hover { color: var(--accent-2); }
.info-box { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.info-box.tip { border-left: 3px solid var(--accent-3); }
.info-box.warning { border-left: 3px solid #ffc83c; }
.info-box.important { border-left: 3px solid #ff6464; }
.info-box h4 { margin-top: 0; margin-bottom: 8px; font-size: 15px; }
.info-box p:last-child { margin-bottom: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 32px 0; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all var(--transition); position: relative; }
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.tool-card h3 { font-size: 18px; margin-bottom: 8px; }
.tool-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.tool-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(255,200,60,0.15); color: #ffc83c; }
.tool-badge.available { background: rgba(0,212,170,0.15); color: #00d4aa; }
.api-endpoint { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 20px 0; font-family: monospace; font-size: 14px; }
.api-method { display: inline-block; padding: 4px 8px; border-radius: 4px; font-weight: 700; font-size: 12px; margin-right: 8px; }
.api-method.post { background: rgba(0,212,170,0.15); color: #00d4aa; }
.api-method.get { background: rgba(77,142,255,0.15); color: #4d8eff; }
.related-links { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 48px; }
.related-links h3 { font-size: 18px; margin-bottom: 16px; }
.related-links ul { list-style: none; padding: 0; margin: 0; }
.related-links li { margin-bottom: 12px; }
.related-links a { color: var(--accent-2); text-decoration: none; font-size: 15px; }
.related-links a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .article-container { padding: 24px 16px; }
    .article-title { font-size: 24px; }
    .article-content { font-size: 15px; }
    .article-content h2 { font-size: 22px; margin: 32px 0 16px; }
    .article-content h3 { font-size: 18px; margin: 24px 0 12px; }
    .tool-grid { grid-template-columns: 1fr; }
}

/* ===== RTL Support (Arabic) ===== */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .logo { margin-right: 0; margin-left: auto; }
[dir="rtl"] .nav-desktop { margin-right: 0; margin-left: 16px; }
[dir="rtl"] .header-controls { flex-direction: row-reverse; }
[dir="rtl"] .check-form { flex-direction: row-reverse; }
[dir="rtl"] .input-icon { padding: 0 14px 0 4px; }
[dir="rtl"] .url-input { padding: 14px 4px 14px 14px; }
[dir="rtl"] .hero-badge { direction: ltr; }
[dir="rtl"] .hop-header { flex-direction: row-reverse; }
[dir="rtl"] .hop-time { margin-left: 0; margin-right: auto; }
[dir="rtl"] .results-actions { flex-direction: row-reverse; }
[dir="rtl"] .section-header { flex-direction: row-reverse; }
[dir="rtl"] .history-item { flex-direction: row-reverse; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
[dir="rtl"] .article-content ul,
[dir="rtl"] .article-content ol { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .article-content blockquote { border-left: none; border-right: 3px solid var(--accent-1); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
[dir="rtl"] .info-box.tip { border-left: none; border-right: 3px solid var(--accent-3); }
[dir="rtl"] .info-box.warning { border-left: none; border-right: 3px solid #ffc83c; }
[dir="rtl"] .info-box.important { border-left: none; border-right: 3px solid #ff6464; }
[dir="rtl"] .breadcrumb { direction: ltr; text-align: left; }
[dir="rtl"] .article-meta { flex-direction: row-reverse; }
[dir="rtl"] .lang-dropdown-menu { right: auto; left: 0; }
[dir="rtl"] .nav-mobile-controls { flex-direction: row-reverse; }
[dir="rtl"] .hop-details { direction: ltr; }
[dir="rtl"] .api-endpoint { direction: ltr; text-align: left; }
[dir="rtl"] .article-content pre { direction: ltr; text-align: left; }
[dir="rtl"] .article-content code { direction: ltr; }
[dir="rtl"] .hop-headers { direction: ltr; text-align: left; }
[dir="rtl"] .faq-item summary { flex-direction: row-reverse; }
[dir="rtl"] .step-card { text-align: center; }
[dir="rtl"] .related-links ul { padding-right: 0; }
[dir="rtl"] .article-toc ul { padding-right: 0; }

/* RTL Support */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .logo { margin-right: 0; margin-left: auto; }
[dir="rtl"] .nav-desktop { margin-right: auto; margin-left: 16px; }
[dir="rtl"] .nav-desktop a, [dir="rtl"] .nav-mobile a { direction: rtl; }
[dir="rtl"] .check-form { flex-direction: row-reverse; }
[dir="rtl"] .input-icon { padding: 0 14px 0 4px; }
[dir="rtl"] .url-input { padding: 14px 4px 14px 14px; text-align: right; }
[dir="rtl"] .hop-time { margin-left: 0; margin-right: auto; }
[dir="rtl"] .article-content ul, [dir="rtl"] .article-content ol { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .article-toc ul { padding: 0; }
[dir="rtl"] .info-box.tip, [dir="rtl"] .info-box.warning, [dir="rtl"] .info-box.important { border-left: none; border-right: 3px solid; }
[dir="rtl"] .info-box.tip { border-right-color: var(--accent-3); }
[dir="rtl"] .info-box.warning { border-right-color: #ffc83c; }
[dir="rtl"] .info-box.important { border-right-color: #ff6464; }
[dir="rtl"] .breadcrumb span { margin: 0 8px; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
[dir="rtl"] .faq-item summary { flex-direction: row-reverse; }
[dir="rtl"] .faq-item summary::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] .btn-icon { transform: rotate(180deg); }
