        /* === TELA DE LOGIN === */
        .login-screen {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
            background-color: var(--bg-cream);
        }

        .login-box {
            background: var(--white);
            padding: 40px;
            border-radius: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 400px;
            text-align: center;
        }

        .logo-container {
            margin-bottom: 30px;
        }

        .logo-text {
            font-size: 48px;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .logo-text .kids {
            color: var(--primary-turquoise);
        }

        .logo-text .tube {
            background: var(--primary-coral);
            color: var(--white);
            padding: 5px 20px;
            border-radius: 20px;
            display: inline-block;
            position: relative;
        }

        .tube-icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 30px;
        }

        input[type="password"], input[type="text"] {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 15px;
            font-size: 16px;
            margin-bottom: 20px;
            transition: border-color 0.3s;
            background: var(--gray-light);
        }

        input[type="password"]:focus, input[type="text"]:focus {
            outline: none;
            border-color: var(--primary-turquoise);
        }

        .btn {
            background: var(--primary-coral);
            color: var(--white);
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255,107,107,0.3);
        }

        .btn-secondary {
            background: var(--primary-turquoise);
            margin-top: 10px;
        }

        .btn-secondary:hover {
            box-shadow: 0 5px 15px rgba(90,186,167,0.3);
        }

        /* === ÁREA DOS PAIS RENOVADA === */
        .admin-container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
            background: white;
            min-height: 100vh;
        }

        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            border-bottom: 2px solid #e9ecef;
            margin-bottom: 0;
        }

        .btn-logout {
            transition: all 0.3s ease;
        }

        .btn-logout:hover {
            background: #c0392b !important;
            transform: translateY(-1px);
        }

        /* Sistema de Abas - Design Profissional */
        .parent-tabs {
            flex-wrap: nowrap;
            background: #f8f9fa;
            padding: 6px;
            border-radius: 12px;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
            margin-bottom: 24px;
        }

        .tab-btn {
            flex: 1;
            min-width: 120px;
            padding: 14px 20px;
            background: transparent;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            color: #6c757d;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            white-space: nowrap;
            font-size: 14px;
            letter-spacing: 0.02em;
            position: relative;
            overflow: hidden;
        }

        .tab-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--primary-turquoise), #4a9d8e);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .tab-btn.active {
            background: white;
            color: var(--primary-turquoise);
            box-shadow: 0 2px 8px rgba(90, 186, 167, 0.15), 0 1px 3px rgba(0,0,0,0.1);
            transform: translateY(-1px);
        }

        .tab-btn.active::before {
            opacity: 0.1;
        }

        .tab-btn:hover:not(.active) {
            background: rgba(255,255,255,0.7);
            color: #495057;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }

        .tab-btn span {
            position: relative;
            z-index: 1;
        }

        /* Cards dos Pais - Design Profissional */
        .parent-card {
            background: white;
            border: 1px solid rgba(0,0,0,0.08);
            border-radius: 16px;
            margin-bottom: 24px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
        }

        .parent-card:hover {
            border-color: rgba(90, 186, 167, 0.3);
            box-shadow: 0 8px 25px rgba(90, 186, 167, 0.12), 0 3px 10px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }

        .card-header {
            padding: 24px 24px 20px 24px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-bottom: 1px solid rgba(0,0,0,0.06);
            position: relative;
        }

        .card-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-turquoise), var(--primary-coral), var(--primary-yellow));
        }

        .card-header h3 {
            margin: 0 0 8px 0;
            color: #2c3e50;
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .card-header p {
            margin: 0;
            color: #6c757d;
            font-size: 15px;
            line-height: 1.5;
            font-weight: 400;
        }

        .card-content {
            padding: 24px;
            background: white;
        }

        /* Seletor de Tempo */
        .time-selector {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .time-selector label {
            font-weight: 600;
            color: #2c3e50;
        }

        .time-info {
            border-left: 4px solid #3498db;
        }

        /* Status Grid */
        .status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .status-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .status-icon {
            font-size: 24px;
        }

        .status-item strong {
            display: block;
            color: #2c3e50;
            margin-bottom: 4px;
        }

        .status-item p {
            margin: 0;
            font-size: 13px;
            color: #6c757d;
        }

        .test-btn {
            padding: 12px 24px;
            background: #17a2b8;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .test-btn:hover {
            background: #138496;
            transform: translateY(-1px);
        }

        /* API Key Manager Styles */
        .api-key-manager {
            background: #fafafa;
            padding: 20px;
            border-radius: 10px;
            border: 1px solid #e0e0e0;
        }

        .api-status-badge {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
            background: #fff3cd;
            color: #856404;
            border: 1px solid #ffeaa7;
        }

        .api-status-badge.success {
            background: #d4edda;
            color: #155724;
            border-color: #c3e6cb;
        }

        .api-status-badge.error {
            background: #f8d7da;
            color: #721c24;
            border-color: #f5c6cb;
        }

        .api-btn {
            padding: 10px 16px;
            border: none;
            border-radius: 6px;
            color: white;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 14px;
        }

        .api-btn:hover {
            transform: translateY(-1px);
            filter: brightness(110%);
        }

        /* Botão de Acesso Kids */
        .kids-access-btn {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .kids-access-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }

        .btn-icon {
            font-size: 32px;
            margin-right: 15px;
        }

        .kids-access-btn div {
            flex: 1;
            text-align: left;
        }

        .kids-access-btn strong {
            display: block;
            font-size: 18px;
            margin-bottom: 4px;
        }

        .kids-access-btn p {
            margin: 0;
            opacity: 0.9;
            font-size: 14px;
        }

        .btn-arrow {
            font-size: 24px;
            font-weight: bold;
        }

        /* Adição de Canais */
        .add-channel-section {
            margin-bottom: 25px;
        }

        .add-channel-section label {
            display: block;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .channel-input-group {
            display: flex;
            gap: 10px;
        }

        .btn-add {
            padding: 12px 20px;
            background: #28a745;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            white-space: nowrap;
        }

        .btn-add:hover {
            background: #218838;
        }

        /* Canais Recomendados */
        .recommended-channels {
            margin: 25px 0;
        }

        .recommended-channels h4 {
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .channel-category {
            margin-bottom: 20px;
        }

        .channel-category h5 {
            color: #495057;
            margin-bottom: 10px;
            font-size: 14px;
            font-weight: 600;
        }

        .channel-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .recommended-channel {
            padding: 12px 16px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            text-align: center;
        }

        .recommended-channel:hover {
            border-color: #007bff;
            background: #f8f9fa;
            transform: translateY(-1px);
        }

        .recommended-channel.educational {
            border-color: #28a745;
            color: #28a745;
        }

        .recommended-channel.educational:hover {
            background: #d4edda;
            border-color: #1e7e34;
        }

        .recommended-channel.entertainment {
            border-color: #ffc107;
            color: #856404;
        }

        .recommended-channel.entertainment:hover {
            background: #fff3cd;
            border-color: #d39e00;
        }

        /* Lista de Canais Ativos */
        .active-channels h4 {
            color: #2c3e50;
            margin-bottom: 15px;
        }

        /* Grid de Categorias Educativas */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .category-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: white;
        }

        .category-item:hover {
            border-color: #007bff;
            background: #f8f9fa;
        }

        .category-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
        }

        .category-icon {
            font-size: 20px;
        }

        .category-name {
            font-weight: 500;
            color: #2c3e50;
        }

        .category-actions {
            display: flex;
            gap: 10px;
        }

        .btn-save {
            padding: 12px 24px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
        }

        .btn-save:hover {
            background: #0056b3;
        }

        .btn-reset {
            padding: 12px 24px;
            background: #6c757d;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
        }

        .btn-reset:hover {
            background: #545b62;
        }

        /* Segurança */
        .password-current {
            margin-bottom: 25px;
        }

        .password-current label {
            display: block;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .password-display {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .password-strength {
            padding: 4px 12px;
            background: #ffc107;
            color: #856404;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .password-change {
            margin-bottom: 25px;
        }

        .password-change label {
            display: block;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .password-input-group {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .password-input-group input {
            flex: 1;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
        }

        .btn-change {
            padding: 12px 20px;
            background: #007bff;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
        }

        .btn-change:hover {
            background: #0056b3;
        }

        .password-tips {
            padding: 15px;
            background: #e7f3ff;
            border-radius: 8px;
            color: #0066cc;
        }

        .password-tips ul {
            margin: 8px 0 0 20px;
            color: #495057;
        }

        .password-emergency {
            padding: 20px;
            background: #fff5f5;
            border: 1px solid #feb2b2;
            border-radius: 8px;
            text-align: center;
        }

        .btn-emergency {
            padding: 12px 24px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            margin-bottom: 10px;
        }

        .btn-emergency:hover {
            background: #c82333;
        }

        .password-emergency p {
            margin: 0;
            color: #721c24;
            font-size: 13px;
        }

        /* Recursos de Segurança */
        .security-features {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .security-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .security-item.active {
            border-color: #28a745;
            background: #d4edda;
        }

        .security-icon {
            font-size: 24px;
        }

        .security-info {
            flex: 1;
        }

        .security-info strong {
            display: block;
            color: #2c3e50;
            margin-bottom: 4px;
        }

        .security-info p {
            margin: 0;
            color: #6c757d;
            font-size: 13px;
        }

        .security-status {
            padding: 6px 12px;
            background: #28a745;
            color: white;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        /* Responsividade */
        @media (max-width: 768px) {
            .admin-container {
                padding: 15px;
            }

            .parent-tabs {
                padding: 4px;
                gap: 4px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                justify-content: flex-start;
            }

            .parent-tabs::-webkit-scrollbar {
                display: none;
            }

            .tab-btn {
                padding: 10px 16px;
                font-size: 13px;
                min-width: auto;
                flex: 0 0 auto;
                white-space: nowrap;
            }

            .card-header, .card-content {
                padding: 15px;
            }

            .status-grid {
                grid-template-columns: 1fr;
            }

            .channel-grid {
                grid-template-columns: 1fr;
            }

            .category-grid {
                grid-template-columns: 1fr;
            }

            .channel-input-group {
                flex-direction: column;
            }

            .password-input-group {
                flex-direction: column;
            }

            .category-actions {
                flex-direction: column;
            }
        }

        /* Estilos para Relatórios */
        .usage-stat-card {
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
            text-align: center;
        }

        .usage-stat-card h4 {
            margin: 0 0 10px 0;
            color: #2c3e50;
            font-size: 16px;
        }

        .stat-number {
            font-size: 24px;
            font-weight: bold;
            color: #007bff;
            margin: 10px 0;
        }

        .stat-label {
            margin: 0;
            color: #6c757d;
            font-size: 12px;
        }

        .no-data-message {
            text-align: center;
            padding: 30px 20px;
            color: #6c757d;
        }

        .no-data-message p {
            margin: 0 0 8px 0;
        }

        .no-data-message .hint {
            font-size: 13px;
            opacity: 0.8;
        }

        .video-history-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .history-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .history-time {
            background: #007bff;
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            min-width: 60px;
            text-align: center;
        }

        .history-info {
            flex: 1;
        }

        .history-info strong {
            display: block;
            color: #2c3e50;
            margin-bottom: 4px;
        }

        .history-info p {
            margin: 0;
            color: #6c757d;
            font-size: 13px;
        }
        .admin-screen {
            display: none;
            padding: 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            min-height: 100vh;
        }

        .admin-container {
            max-width: 720px;
            margin: 0 auto;
            padding: 24px;
        }

        /* Header Premium Redesenhado */
        .header {
            background: white;
            padding: 20px 24px;
            border-radius: 16px;
            margin-bottom: 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
            border: 1px solid rgba(0,0,0,0.04);
        }

        .header-brand {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .header-brand img {
            width: 48px;
            height: auto;
        }

        .header-brand h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
            color: #1a1a2e;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-brand p {
            margin: 4px 0 0 0;
            font-size: 13px;
            color: #6c757d;
        }

        .header-actions {
            display: flex;
            gap: 10px;
        }

        .header-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-btn.primary {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
        }

        .header-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
        }

        .header-btn.danger {
            background: linear-gradient(135deg, #dc3545, #ff6b6b);
            color: white;
        }

        .header-btn.danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
        }

        /* Banner de Onboarding */
        .onboarding-banner {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 16px;
            padding: 28px;
            margin-bottom: 24px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .onboarding-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
            pointer-events: none;
        }

        .onboarding-banner .close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .onboarding-banner .close-btn:hover {
            background: rgba(255,255,255,0.3);
        }

        .onboarding-banner h3 {
            margin: 0 0 12px 0;
            font-size: 22px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .onboarding-banner p {
            margin: 0 0 20px 0;
            opacity: 0.95;
            font-size: 15px;
            line-height: 1.6;
        }

        .onboarding-steps {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .onboarding-step {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            background: rgba(255,255,255,0.1);
            padding: 14px 16px;
            border-radius: 10px;
            backdrop-filter: blur(10px);
        }

        .step-number {
            background: white;
            color: #667eea;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            flex-shrink: 0;
        }

        .step-content {
            flex: 1;
        }

        .step-content strong {
            display: block;
            margin-bottom: 4px;
        }

        .step-content span {
            font-size: 13px;
            opacity: 0.9;
        }

        .onboarding-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .onboarding-btn {
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: none;
        }

        .onboarding-btn.primary {
            background: white;
            color: #667eea;
        }

        .onboarding-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .onboarding-btn.secondary {
            background: rgba(255,255,255,0.2);
            color: white;
        }

        .onboarding-btn.secondary:hover {
            background: rgba(255,255,255,0.3);
        }

        /* Botões de ação uniformizados */
        .action-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            box-sizing: border-box;
        }

        /* Botão dentro de input-row deve ter mesma altura */
        .api-input-row .action-btn {
            height: 48px;
            padding: 0 24px;
        }

        .action-btn.primary {
            background: linear-gradient(135deg, var(--primary-turquoise), #4a9d8e);
            color: white;
        }

        .action-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(90, 186, 167, 0.3);
        }

        .action-btn.secondary {
            background: #f1f3f4;
            color: #5f6368;
        }

        .action-btn.secondary:hover {
            background: #e8eaed;
            transform: translateY(-1px);
        }

        .action-btn.danger {
            background: linear-gradient(135deg, #dc3545, #e74c3c);
            color: white;
        }

        .action-btn.danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
        }

        /* API Card Styles */
        .api-status-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: #f8f9fa;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .api-status-label {
            font-weight: 600;
            color: #5f6368;
            font-size: 14px;
        }

        .api-status-value {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }

        .api-status-value code {
            background: #e8eaed;
            padding: 6px 12px;
            border-radius: 6px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            color: #3c4043;
        }

        .api-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .api-badge.active {
            background: #e6f4ea;
            color: #1e8e3e;
        }

        .api-badge.inactive {
            background: #fce8e6;
            color: #d93025;
        }

        .api-badge.testing {
            background: #fef7e0;
            color: #f9ab00;
        }

        .api-input-section {
            margin-bottom: 20px;
        }

        .api-input-section label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #5f6368;
            margin-bottom: 8px;
        }

        .api-input-row {
            display: flex;
            gap: 8px;
            align-items: stretch;
        }

        .api-input {
            flex: 1;
            padding: 0 16px;
            height: 48px;
            border: 2px solid #e8eaed;
            border-radius: 10px;
            font-size: 14px;
            transition: border-color 0.2s ease;
            box-sizing: border-box;
        }

        .api-input:focus {
            outline: none;
            border-color: var(--primary-turquoise);
        }

        .api-toggle-btn {
            padding: 0 16px;
            height: 48px;
            background: #f1f3f4;
            border: 2px solid #e8eaed;
            border-radius: 10px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }

        .api-toggle-btn:hover {
            background: #e8eaed;
        }

        .api-actions {
            display: flex;
            gap: 10px;
            margin-top: 12px;
        }

        .api-help-links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            padding-top: 16px;
            border-top: 1px solid #e8eaed;
        }

        .help-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: #f8f9fa;
            border: 1px solid #e8eaed;
            border-radius: 8px;
            color: #5f6368;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .help-link:hover {
            background: #e8eaed;
            color: #3c4043;
        }

        .header h2 {
            color: var(--primary-coral);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 24px;
        }

        .section {
            background: var(--white);
            padding: 30px;
            border-radius: 20px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }

        .section h3 {
            color: var(--primary-coral);
            margin-bottom: 20px;
            font-size: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: #666;
            font-size: 14px;
            font-weight: 500;
        }

        select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 16px;
            background: var(--white);
            cursor: pointer;
            transition: border-color 0.3s;
        }

        select:focus {
            outline: none;
            border-color: var(--primary-turquoise);
        }

        .channel-input-group {
            margin-bottom: 20px;
        }

        .channel-input {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .channel-input input {
            flex: 1;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 14px;
            background: var(--white);
        }

        .channel-list {
            max-height: 300px;
            overflow-y: auto;
            margin-top: 20px;
        }

        .channel-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: var(--gray-light);
            border-radius: 12px;
            margin-bottom: 10px;
            transition: all 0.2s;
        }

        .channel-item:hover {
            background: #e8e8e8;
            transform: translateX(5px);
        }

        .channel-info {
            flex: 1;
        }

        .channel-name {
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 4px;
        }

        .channel-id {
            font-size: 12px;
            color: #999;
            font-family: monospace;
        }

        .btn-small {
            padding: 8px 16px;
            font-size: 14px;
            border-radius: 20px;
            background: var(--primary-coral);
            color: white;
            border: none;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-small:hover {
            transform: scale(1.05);
            box-shadow: 0 3px 10px rgba(255,107,107,0.3);
        }

        .tip {
            background: #FFF8DC;
            border-left: 4px solid var(--primary-yellow);
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            font-size: 14px;
            color: #666;
        }

