/* Scoped for .itx-informers-gallery - Currency informers gallery */
/* Critical CSS - inline for performance */
.itx-informers-gallery *,
.itx-informers-gallery *::before,
.itx-informers-gallery *::after { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
        }
        
        /* Skip-to-content for accessibility */
        .skip-link {
            position: absolute;
            top: -100px;
            left: 20px;
            padding: 12px 20px;
            background: #f6c343;
            color: #1a1a2e;
            font-weight: 700;
            text-decoration: none;
            border-radius: 8px;
            z-index: 10000;
            transition: top 0.2s;
        }
        .skip-link:focus {
            top: 20px;
        }
        
        .itx-informers-gallery {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #f5f7fa;
            line-height: 1.6;
            color: #334155;
        }
        
        /* Semantic header */
        .itx-inf-page-header {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            color: white;
            padding: 48px 20px 40px;
            text-align: center;
            position: relative;
        }
        
        .itx-inf-page-header h1 {
            font-size: clamp(28px, 5vw, 40px);
            margin-bottom: 16px;
            font-weight: 800;
            line-height: 1.2;
        }
        
        .itx-inf-page-header p {
            font-size: 18px;
            opacity: 0.9;
            max-width: 680px;
            margin: 0 auto;
        }
        
        /* Language switcher */
        .lang-switcher {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 8px;
            background: rgba(255,255,255,0.1);
            padding: 4px;
            border-radius: 8px;
        }
        
        .lang-btn {
            padding: 6px 12px;
            border: none;
            background: transparent;
            color: rgba(255,255,255,0.7);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s;
            text-transform: uppercase;
        }
        
        .lang-btn:hover {
            color: white;
            background: rgba(255,255,255,0.1);
        }
        
        .lang-btn.active {
            background: #f6c343;
            color: #1a1a2e;
        }

        /* Source navigator */
        .source-nav {
            position: absolute;
            top: 20px;
            left: 20px;
            display: flex;
            gap: 4px;
            background: rgba(255,255,255,0.1);
            padding: 4px;
            border-radius: 10px;
        }

        .source-nav-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: all 0.2s;
        }

        .source-nav-btn:hover {
            color: white;
            background: rgba(255,255,255,0.1);
        }

        .source-nav-btn.active {
            background: #f6c343;
            color: #1a1a2e;
        }

        .source-nav-btn .flag-icon {
            font-size: 16px;
        }

        @media (max-width: 640px) {
            .source-nav {
                position: static;
                margin: 16px auto 0;
                justify-content: center;
            }
            .lang-switcher {
                position: static;
                margin: 12px auto;
                justify-content: center;
            }
        }

        /* Main content */
        main {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        /* Screen reader only */
        .screen-reader-text {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0,0,0,0);
            white-space: nowrap;
            border: 0;
        }
        
        /* Intro section */
        .intro-section {
            background: white;
            border-radius: 16px;
            padding: 24px 28px;
            margin-bottom: 24px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }
        .intro-section p {
            margin-bottom: 12px;
            color: #334155;
            font-size: 15px;
        }
        .intro-section p:last-child {
            margin-bottom: 0;
        }
        
        /* FAQ section */
        .faq-section {
            background: white;
            border-radius: 16px;
            padding: 28px;
            margin-top: 40px;
            margin-bottom: 40px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }
        .faq-section h2 {
            font-size: 22px;
            color: #1a1a2e;
            margin-bottom: 20px;
        }
        .faq-item {
            margin-bottom: 16px;
        }
        .faq-item:last-child {
            margin-bottom: 0;
        }
        .faq-item dt {
            font-weight: 700;
            color: #1a1a2e;
            font-size: 15px;
            margin-bottom: 6px;
        }
        .faq-item dd {
            margin: 0;
            color: #64748b;
            font-size: 14px;
            line-height: 1.6;
        }
        
        /* Settings section */
        .settings-section {
            background: white;
            border-radius: 16px;
            padding: 28px;
            margin-bottom: 40px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }
        
        .settings-section h2 {
            font-size: 20px;
            color: #1a1a2e;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .settings-row {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
            align-items: flex-start;
        }
        
        /* Source toggle */
        .source-toggle {
            display: flex;
            background: #f1f5f9;
            border-radius: 10px;
            padding: 4px;
            gap: 4px;
        }
        
        .source-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            background: transparent;
            color: #64748b;
            display: flex;
            align-items: center;
            text-decoration: none;
            white-space: nowrap;
        }
        
        .source-btn:hover {
            color: #1a1a2e;
            text-decoration: none;
        }
        
        .source-btn.active {
            background: white;
            color: #1a1a2e;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .source-btn .flag-icon {
            margin-right: 8px;
            font-size: 18px;
        }
        
        /* Currency dropdown */
        .currency-dropdown {
            position: relative;
            min-width: 300px;
        }
        
        .dropdown-trigger {
            width: 100%;
            padding: 14px 18px;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.2s;
            font-size: 15px;
        }
        
        .dropdown-trigger:hover, .dropdown-trigger:focus {
            border-color: #f6c343;
            outline: none;
        }
        
        .dropdown-trigger-badge {
            background: #f6c343;
            color: #1a1a2e;
            font-size: 13px;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px;
            margin-left: 10px;
        }
        
        .dropdown-arrow {
            transition: transform 0.2s;
            color: #64748b;
        }
        
        .dropdown-trigger[aria-expanded="true"] .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            max-height: 360px;
            overflow-y: auto;
            display: none;
            z-index: 100;
        }
        
        .dropdown-menu.open {
            display: block;
        }
        
        .dropdown-item {
            padding: 14px 18px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: background 0.15s;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .dropdown-item:last-child {
            border-bottom: none;
        }
        
        .dropdown-item:hover, .dropdown-item:focus {
            background: #f8fafc;
        }
        
        .dropdown-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
            accent-color: #f6c343;
        }
        
        .dropdown-item-flag {
            font-size: 22px;
        }
        
        .dropdown-item-info {
            flex: 1;
        }
        
        .dropdown-item-code {
            font-weight: 700;
            color: #1a1a2e;
            font-size: 15px;
        }
        
        .dropdown-item-name {
            font-size: 13px;
            color: #64748b;
        }
        
        .dropdown-actions {
            padding: 14px 18px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            gap: 10px;
            background: #f8fafc;
            border-radius: 0 0 12px 12px;
            position: sticky;
            bottom: 0;
        }
        
        .dropdown-btn {
            flex: 1;
            padding: 10px 14px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .dropdown-btn-primary {
            background: #f6c343;
            color: #1a1a2e;
        }
        
        .dropdown-btn-primary:hover {
            background: #e5b232;
        }
        
        .dropdown-btn-secondary {
            background: white;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }
        
        .dropdown-btn-secondary:hover {
            background: #f1f5f9;
        }
        
        /* Selected chips */
        .selected-currencies {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 16px;
        }
        
        .currency-chip {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            background: #f1f5f9;
            border-radius: 24px;
            font-size: 14px;
            font-weight: 500;
            color: #475569;
        }
        
        .currency-chip-remove {
            width: 18px;
            height: 18px;
            border: none;
            background: #cbd5e1;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: white;
            transition: background 0.2s;
        }
        
        .currency-chip-remove:hover {
            background: #f04438;
        }
        
        /* Informers section */
        .informers-section {
            margin-bottom: 40px;
        }
        
        .informers-section h2 {
            font-size: 28px;
            color: #1a1a2e;
            margin-bottom: 24px;
            padding-bottom: 12px;
            border-bottom: 3px solid #f6c343;
        }
        
        /* Informer card */
        .informer-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            margin-bottom: 32px;
        }
        
        .informer-header {
            padding: 24px 28px;
            border-bottom: 1px solid #e8ecf1;
        }
        
        .informer-header h3 {
            font-size: 20px;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 6px;
        }
        
        .informer-header p {
            font-size: 15px;
            color: #64748b;
        }
        
        .informer-features {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }
        
        .feature-tag {
            font-size: 12px;
            padding: 5px 12px;
            background: #f1f5f9;
            color: #475569;
            border-radius: 20px;
            font-weight: 500;
        }
        
        .informer-preview {
            padding: 48px 32px;
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 220px;
        }
        
        /* Code section */
        .code-section {
            border-top: 1px solid #e8ecf1;
            background: #f8fafc;
        }
        
        .code-tabs {
            display: flex;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .code-tab {
            padding: 14px 28px;
            border: none;
            background: transparent;
            font-size: 14px;
            font-weight: 600;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
        }
        
        .code-tab:hover {
            color: #1a1a2e;
        }
        
        .code-tab.active {
            color: #f6c343;
            border-bottom-color: #f6c343;
            background: white;
        }
        
        .code-content {
            padding: 24px 28px;
            display: none;
        }
        
        .code-content.active {
            display: block;
        }
        
        .code-block {
            position: relative;
            background: #1e293b;
            border-radius: 12px;
            padding: 24px;
        }
        
        .code-block pre {
            color: #e2e8f0;
            font-family: 'SF Mono', Monaco, 'Courier New', monospace;
            font-size: 14px;
            line-height: 1.7;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-all;
            padding-right: 120px;
            margin: 0;
        }
        
        .copy-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            padding: 10px 18px;
            background: #f6c343;
            border: none;
            border-radius: 8px;
            color: #1a1a2e;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        
        .copy-btn:hover {
            background: #ff8c00;
            color: white;
            transform: translateY(-1px);
        }
        
        .copy-btn.copied {
            background: #16c784;
            color: white;
        }
        
        /* Informer styles previews */
        .style-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            width: 100%;
            max-width: 900px;
        }
        
        .rate-card {
            background: white;
            border: 1px solid #e8ecf1;
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .rate-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.1);
        }
        
        .rate-card .flag {
            font-size: 36px;
            margin-bottom: 10px;
        }
        
        .rate-card .code {
            font-size: 15px;
            font-weight: 700;
            color: #1a1a2e;
            margin-bottom: 6px;
        }
        
        .rate-card .value {
            font-size: 26px;
            font-weight: 800;
            color: #1a1a2e;
            margin-bottom: 6px;
        }
        
        .rate-card .change {
            font-size: 14px;
            font-weight: 600;
        }
        
        .rate-card .change.up { color: #16c784; }
        .rate-card .change.down { color: #f04438; }
        
        .style-list {
            background: white;
            border: 1px solid #e8ecf1;
            border-radius: 12px;
            overflow: hidden;
            width: 100%;
            max-width: 420px;
        }
        
        .list-row {
            display: flex;
            align-items: center;
            padding: 16px 24px;
            border-bottom: 1px solid #f0f2f5;
        }
        
        .list-row:last-child { border-bottom: none; }
        
        .list-flag { font-size: 26px; margin-right: 14px; }
        
        .list-code {
            font-size: 16px;
            font-weight: 700;
            color: #1a1a2e;
            flex: 1;
        }
        
        .list-value {
            font-size: 17px;
            font-weight: 700;
            color: #1a1a2e;
        }
        
        .list-change {
            font-size: 14px;
            margin-left: 14px;
            font-weight: 600;
        }
        
        .list-change.up { color: #16c784; }
        .list-change.down { color: #f04438; }
        
        .style-ticker {
            background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 10px;
            padding: 16px 0;
            overflow: hidden;
            width: 100%;
            max-width: 900px;
        }
        
        .ticker-content {
            display: flex;
            animation: ticker 25s linear infinite;
            white-space: nowrap;
        }
        
        @keyframes ticker {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }
        
        .ticker-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 28px;
            color: white;
            font-size: 16px;
            font-weight: 600;
        }
        
        .ticker-item .code { color: #94a3b8; }
        .ticker-item .value { color: #f6c343; font-weight: 700; }
        .ticker-item .change.up { color: #16c784; }
        .ticker-item .change.down { color: #f04438; }
        
        .style-dark {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            width: 100%;
            max-width: 900px;
        }
        
        .dark-card {
            background: linear-gradient(145deg, #1a2332 0%, #151d29 100%);
            border: 1px solid #2a3441;
            border-radius: 12px;
            padding: 24px;
            position: relative;
            text-align: center;
        }
        
        .dark-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, #f6c343, #ff8c00);
            border-radius: 12px 12px 0 0;
        }
        
        .dark-card .code {
            font-size: 15px;
            font-weight: 700;
            color: #e2e8f0;
            margin-bottom: 14px;
        }
        
        .dark-card .value {
            font-size: 28px;
            font-weight: 800;
            color: #f6c343;
        }
        
        .style-glass {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 16px;
            width: 100%;
            max-width: 900px;
        }
        
        .glass-card {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 16px;
            padding: 24px;
            color: #1a1a2e;
            text-align: center;
        }
        
        .glass-card .code {
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 10px;
        }
        
        .glass-card .value {
            font-size: 26px;
            font-weight: 800;
            margin-bottom: 6px;
        }
        
        .glass-card .change.up { color: #16c784; }
        .glass-card .change.down { color: #f04438; }
        
        .style-neo {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            width: 100%;
            max-width: 900px;
        }
        
        .neo-card {
            background: #e0e5ec;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 8px 8px 16px #a3b1c6, -8px -8px 16px #ffffff;
            text-align: center;
        }
        
        .neo-card .code {
            font-size: 15px;
            font-weight: 700;
            color: #4a5568;
            margin-bottom: 14px;
        }
        
        .neo-card .value {
            font-size: 26px;
            font-weight: 800;
            color: #1a1a2e;
        }
        
        .style-minimal {
            display: flex;
            justify-content: center;
            gap: 48px;
            width: 100%;
            flex-wrap: wrap;
        }
        
        .minimal-item {
            text-align: center;
        }
        
        .minimal-item .code {
            font-size: 14px;
            font-weight: 600;
            color: #64748b;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .minimal-item .value {
            font-size: 36px;
            font-weight: 300;
            color: #1a1a2e;
            letter-spacing: -1px;
        }
        
        .minimal-item .change {
            font-size: 15px;
            margin-top: 6px;
            font-weight: 500;
        }
        
        .minimal-item .change.up { color: #16c784; }
        .minimal-item .change.down { color: #f04438; }
        
        
        
        /* Responsive */
        @media (max-width: 768px) {
            .itx-inf-page-header {
                padding: 36px 20px 32px;
            }
            
            .lang-switcher {
                position: static;
                margin-bottom: 20px;
                justify-content: center;
                background: rgba(255,255,255,0.15);
            }
            
            .itx-inf-page-header h1 {
                font-size: 26px;
            }
            
            .settings-section {
                padding: 22px;
            }
            
            .settings-row {
                flex-direction: column;
            }
            
            .currency-dropdown {
                width: 100%;
            }
            
            .informer-header {
                padding: 20px 22px;
            }
            
            .informer-preview {
                padding: 36px 20px;
            }
            
            .style-cards, .style-dark, .style-glass, .style-neo {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .style-minimal {
                gap: 28px;
            }
            
            .minimal-item .value {
                font-size: 28px;
            }
            
            .code-block {
                padding: 20px;
            }
            
            .code-block pre {
                font-size: 13px;
                padding-right: 0;
            }
            
            .copy-btn {
                position: static;
                display: block;
                width: 100%;
                margin-top: 16px;
            }
        }