
:root {
    
    --tc-font: 'Poppins', sans-serif;
    
    
    --tc-max-width: 1300px;
    
    
    --tc-bg: #0b1120;
    --tc-glass: rgba(15, 23, 42, 0.6);
    --tc-glass-border: rgba(255, 255, 255, 0.08);
    --tc-text-main: #ffffff;
    --tc-text-sub: #94a3b8;
    
    
    --tc-input-bg: rgba(0, 0, 0, 0.3);
    --tc-primary: #3b82f6; 
    --tc-primary-hover: #2563eb;
    
    
    --tc-color-red: #ef4444;       
    --tc-color-orange: #f59e0b;    
    --tc-color-green: #10b981;     
    --tc-color-teal: #06b6d4;      
    --tc-color-gray: #64748b;      
}


[data-theme="light"] {
    --tc-bg: #f8f9ff;
    --tc-glass: #ffffff;
    --tc-glass-border: #e0e4f8;
    --tc-text-main: #2d3436;
    --tc-text-sub: #636e72;
    --tc-input-bg: #ffffff;
    --tc-primary: #7d89dd;
}


.tc-wrapper {
    font-family: var(--tc-font);
    width: 100%;
    max-width: var(--tc-max-width);
    margin: 0 auto;
    padding: 0;
    color: var(--tc-text-main);
    box-sizing: border-box;
}

.tc-wrapper * {
    box-sizing: border-box;
}


.tc-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
}

.tc-hero-text {
    flex: 1;
}

.tc-hero-text h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.25rem 0;
    line-height: 1.1;
}

.tc-hero-text p {
    font-size: 0.95rem;
    color: var(--tc-text-sub);
    margin: 0;
}


.tc-controls {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
    margin-bottom: 30px;
}


.tc-search-box {
    width: 30%;
    position: relative;
    flex-shrink: 0;
}

.tc-search-box input {
    width: 100%;
    background: var(--tc-input-bg);
    border: 1px solid var(--tc-glass-border);
    border-radius: 8px;
    padding: 12px 16px 12px 42px; 
    font-family: var(--tc-font);
    font-size: 14px;
    color: var(--tc-text-main);
    outline: none;
    transition: all 0.2s ease;
}

.tc-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tc-text-sub);
    pointer-events: none;
}

.tc-search-box input:focus {
    border-color: var(--tc-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}


.tc-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--tc-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tc-glass-border);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
}

.tc-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--tc-glass-border);
}

.tc-autocomplete-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .tc-autocomplete-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tc-autocomplete-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.tc-autocomplete-item .name {
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.tc-autocomplete-item .id {
    font-size: 11px;
    color: var(--tc-text-sub);
    margin-left: auto;
}


.tc-tabs {
    width: 70%;
    display: flex;
    gap: 10px;
}

.tc-tab {
    flex: 1;
    background: var(--tc-glass);
    border: 1px solid var(--tc-glass-border);
    color: var(--tc-text-sub);
    padding: 12px;
    border-radius: 8px;
    font-family: var(--tc-font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tc-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--tc-text-main);
}

[data-theme="light"] .tc-tab:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tc-tab.active {
    background: var(--tc-primary);
    color: #fff;
    border-color: var(--tc-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}


.tc-hero-box {
    display: flex;
    align-items: center;
    background: var(--tc-glass);
    border: 1px solid var(--tc-glass-border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    gap: 30px;
}

.tc-hero-left img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.tc-hero-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text-sub);
}

.tc-hero-name {
    font-size: 32px;
    font-weight: 800;
    margin: 5px 0 15px 0;
    text-transform: capitalize;
}

.tc-hero-types {
    display: flex;
    gap: 10px;
}

.tc-type-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tc-glass-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

[data-theme="light"] .tc-type-badge {
    background: #f1f5f9;
}

.tc-type-badge img {
    width: 16px;
    height: 16px;
}


.tc-custom-box {
    background: var(--tc-glass);
    border: 1px solid var(--tc-glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.tc-custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.tc-clear-btn {
    background: transparent;
    border: 1px solid var(--tc-text-sub);
    color: var(--tc-text-sub);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.tc-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tc-text-main);
}

.tc-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.tc-type-grid-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--tc-glass-border);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--tc-text-main);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s;
}

[data-theme="light"] .tc-type-grid-btn {
    background: #f1f5f9;
}

.tc-type-grid-btn img {
    width: 18px;
    height: 18px;
}

.tc-type-grid-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.tc-type-grid-btn.selected {
    background: var(--tc-primary);
    color: #fff;
    border-color: var(--tc-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.tc-type-grid-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


.tc-results-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


.tc-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--tc-text-sub);
    font-style: italic;
    background: var(--tc-glass);
    border: 1px solid var(--tc-glass-border);
    border-radius: 16px;
}

.tc-result-box {
    background: var(--tc-glass);
    border: 1px solid var(--tc-glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}


.tc-red { box-shadow: inset 0 20px 40px -20px rgba(239, 68, 68, 0.15); }
.tc-orange { box-shadow: inset 0 20px 40px -20px rgba(245, 158, 11, 0.15); }
.tc-green { box-shadow: inset 0 20px 40px -20px rgba(16, 185, 129, 0.15); }
.tc-teal { box-shadow: inset 0 20px 40px -20px rgba(6, 182, 212, 0.15); }
.tc-gray { box-shadow: inset 0 20px 40px -20px rgba(100, 116, 139, 0.15); }

.tc-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--tc-glass-border);
    padding-bottom: 10px;
}

.tc-box-icon {
    font-size: 16px;
}

.tc-box-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tc-text-main);
}

.tc-box-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tc-box-content .tc-type-badge {
    background: rgba(0, 0, 0, 0.3);
}


.ai-analysis-box {
    background: var(--tc-glass);
    border: 1px solid var(--tc-glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.2), 0 0 15px rgba(139, 92, 246, 0.1);
}

.ai-analysis-box .box-header {
    font-size: 16px;
    font-weight: 800;
    color: var(--tc-text-main);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--tc-glass-border);
    padding-bottom: 10px;
}

.ai-analysis-box .analysis-content {
    font-size: 15px;
    color: var(--tc-text-sub);
    line-height: 1.6;
}

.ai-analysis-box .analysis-content p {
    margin: 0 0 10px 0;
}
.ai-analysis-box .analysis-content p:last-child {
    margin: 0;
}


[data-theme="light"] .tc-result-box {
    background: #ffffff;
}

[data-theme="light"] .tc-red { background: #fee2e2; box-shadow: none; border: 1px solid #fca5a5; }
[data-theme="light"] .tc-orange { background: #ffedd5; box-shadow: none; border: 1px solid #fdba74; }
[data-theme="light"] .tc-green { background: #d1fae5; box-shadow: none; border: 1px solid #6ee7b7; }
[data-theme="light"] .tc-teal { background: #cffafe; box-shadow: none; border: 1px solid #67e8f9; }
[data-theme="light"] .tc-gray { background: #f1f5f9; box-shadow: none; border: 1px solid #cbd5e1; }
[data-theme="light"] .ai-analysis-box { background: #faf5ff; box-shadow: none; border: 1px solid #e9d5ff; }

[data-theme="light"] .tc-box-content .tc-type-badge {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}


.hidden { display: none !important; }


@media (max-width: 1000px) {
    .tc-results-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tc-wrapper {
        margin: 20px 5px !important;
        width: auto !important;
    }
    .tc-controls {
        flex-direction: column;
    }
    
    .tc-search-box {
        width: 100%;
    }
    
    .tc-tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .tc-tab {
        flex: 1 1 calc(50% - 5px);
    }
    
    .tc-results-container {
        grid-template-columns: 1fr;
    }
    
    .tc-hero-box {
        flex-direction: column;
        text-align: center;
    }
    
    .tc-hero-types {
        justify-content: center;
    }
}


.tc-guide-box {
    margin-top: 40px;
    background: var(--tc-glass);
    border: 1px solid var(--tc-glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.tc-guide-box details { width: 100%; }

.tc-guide-box details summary {
    padding: 1.25rem 1.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--tc-text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    transition: background .2s;
}

[data-theme="light"] .tc-guide-box details summary {
    background: #f1f5f9;
}

.tc-guide-box details summary:hover {
    background: rgba(0, 0, 0, 0.1);
}

.tc-guide-box details summary::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.tc-guide-box details[open] summary::after { transform: rotate(180deg); }
.tc-guide-box details[open] summary { border-bottom: 1px solid var(--tc-glass-border); }

.tc-guide-content {
    padding: 2rem;
    line-height: 1.8;
    color: var(--tc-text-sub);
    font-size: 1rem;
}

.tc-guide-content h2 { color: var(--tc-text-main); margin: 2.5rem 0 1rem; font-size: 1.5rem; font-weight: 800; }
.tc-guide-content h3 { color: var(--tc-color-red); margin: 2rem 0 1rem; font-size: 1.25rem; font-weight: 800; }
.tc-guide-content h2:first-child, .tc-guide-content h3:first-child { margin-top: 0; }
.tc-guide-content p { margin-bottom: 1.5rem; }
.tc-guide-content p:last-child { margin-bottom: 0; }
.tc-guide-content ul, .tc-guide-content ol { margin: 0 0 1.5rem 1.5rem; padding: 0; }
.tc-guide-content li { margin-bottom: 0.75rem; }
.tc-guide-content li strong { color: var(--tc-text-main); }

