/* ============================================
   BIN CHECKER - PREMIUM UI 2025
   TapSync - High Performance Design
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(16, 16, 24, 0.96);
    --bg-glass: rgba(18, 18, 26, 0.88);
    
    --accent-primary: #00d9ff;
    --accent-secondary: #00ff88;
    --accent-gradient: linear-gradient(135deg, #00d9ff 0%, #00ff88 100%);
    --accent-glow: rgba(0, 217, 255, 0.4);
    
    --special-gradient: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    --special-glow: rgba(121, 40, 202, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 217, 255, 0.3);
    
    --success: #00ff88;
    --error: #ff4757;
    --warning: #ffa502;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

html {
    background: var(--bg-primary);
    color-scheme: dark;
    overflow-x: clip;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    overscroll-behavior-y: none;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    min-height: 100dvh;
    color: var(--text-primary);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-effects {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(121, 40, 202, 0.1) 0%, transparent 50%);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.55;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.9;
}

.glow-1 {
    width: 720px;
    height: 720px;
    top: -240px;
    left: 12%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.22) 0%, transparent 68%);
}

.glow-2 {
    width: 520px;
    height: 520px;
    bottom: -180px;
    right: 4%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.16) 0%, transparent 70%);
}

.glow-3 {
    width: 420px;
    height: 420px;
    top: 46%;
    left: -160px;
    background: radial-gradient(circle, rgba(121, 40, 202, 0.18) 0%, transparent 70%);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HERO HEADER
   ============================================ */
.hero-header {
    text-align: center;
    padding: 40px 20px 50px;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 30px;
    background: rgba(18, 18, 26, 0.92);
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.logo-pulse {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: var(--accent-gradient);
    opacity: 0.5;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

.logo-text h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.hero-subtitle i {
    color: var(--success);
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 16px 30px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: rgba(18, 18, 26, 0.92);
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ============================================
   NAVIGATION TABS
   ============================================ */
.nav-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    padding: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: rgba(18, 18, 26, 0.92);
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.nav-tab.active {
    background: var(--bg-secondary);
    border-color: var(--border-glow);
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
}

.nav-tab.active .nav-tab-icon {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-tab-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-tab-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.nav-tab-title {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-tab-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Special TapSync Tab */
.nav-tab-special {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.15), rgba(255, 0, 128, 0.15));
    border-color: rgba(121, 40, 202, 0.3);
}

.nav-tab-special:hover {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.25), rgba(255, 0, 128, 0.25));
    border-color: rgba(121, 40, 202, 0.5);
}

.nav-tab-special .nav-tab-icon {
    background: var(--special-gradient);
    color: white;
}

.nav-tab-special .nav-tab-title {
    background: var(--special-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tab-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    background: var(--special-gradient);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px var(--special-glow);
}

/* ============================================
   TAB CONTENT
   ============================================ */
.tab-content {
    display: none;
    animation: fadeSlide 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SEARCH PANEL
   ============================================ */
.search-panel,
.batch-panel,
.advanced-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 24px;
}

.search-panel-header,
.batch-panel-header,
.advanced-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.search-icon-wrapper,
.batch-icon-wrapper,
.advanced-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.search-panel-header h2,
.batch-panel-header h2,
.advanced-panel-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-panel-header p,
.batch-panel-header p,
.advanced-panel-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Search Input */
.search-input-wrapper {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.search-input-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0 20px;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
}

.search-prefix {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-right: 12px;
}

.search-input-container input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: 'Poppins', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 18px 0;
    letter-spacing: 4px;
}

/* Avoid the default square focus outline on the inner input.
   The focus styling is handled by .search-input-container:focus-within */
.search-input-container input:focus-visible {
    outline: none;
}

.search-input-container input::placeholder {
    color: var(--text-muted);
    letter-spacing: 4px;
}

.search-input-glow {
    display: none;
}

.search-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.search-hints i {
    color: var(--accent-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 32px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--bg-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--success);
    border-radius: var(--radius-lg);
    color: var(--success);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-success:hover {
    background: rgba(0, 255, 136, 0.25);
}

/* ============================================
   RESULT CONTAINER
   ============================================ */
.result-container {
    margin-top: 24px;
    animation: fadeSlide 0.4s ease;
}

/* ============================================
   RESULT PANEL
   ============================================ */
.result-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    animation: fadeSlide 0.4s ease;
}

.result-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.result-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-title i {
    font-size: 1.4rem;
    color: var(--success);
}

.result-title h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.result-bin-badge {
    padding: 10px 24px;
    background: var(--accent-gradient);
    border-radius: 30px;
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.result-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.result-card-icon.brand-icon { background: rgba(0, 217, 255, 0.15); color: var(--accent-primary); }
.result-card-icon.type-icon { background: rgba(0, 255, 136, 0.15); color: var(--accent-secondary); }
.result-card-icon.category-icon { background: rgba(255, 165, 2, 0.15); color: var(--warning); }
.result-card-icon.issuer-icon { background: rgba(121, 40, 202, 0.15); color: #a855f7; }
.result-card-icon.country-icon { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.result-card-icon.code-icon { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.result-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.result-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Not Found Panel */
.not-found-panel {
    text-align: center;
    padding: 60px 30px;
    background: rgba(255, 71, 87, 0.08);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: var(--radius-xl);
    animation: fadeSlide 0.4s ease;
}

.not-found-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 71, 87, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--error);
}

.not-found-panel h3 {
    font-size: 1.3rem;
    color: var(--error);
    margin-bottom: 8px;
}

.not-found-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   BATCH PANEL
   ============================================ */
.batch-textarea-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.batch-textarea-wrapper textarea {
    width: 100%;
    height: 200px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.batch-textarea-wrapper textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
}

.batch-textarea-wrapper textarea::placeholder {
    color: var(--text-muted);
}

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

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(18, 18, 26, 0.92);
}

.stat-chip.success {
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success);
}

.stat-chip.error {
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--error);
}

.stat-chip.info {
    border: 1px solid var(--border-glow);
    color: var(--accent-primary);
}

/* ============================================
   RESULTS TABLE
   ============================================ */
.results-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    animation: fadeSlide 0.4s ease;
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.data-table th {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-primary);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-glow);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-found { color: var(--success); font-weight: 500; }
.status-not-found { color: var(--error); font-weight: 500; }

/* ============================================
   FILTERS GRID
   ============================================ */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.filter-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.filter-card label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.filter-card label i {
    font-size: 0.9rem;
}

.filter-card select,
.filter-card input {
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-card input {
    cursor: text;
}

.filter-card select:focus,
.filter-card input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.filter-card select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.filter-card input::placeholder {
    color: var(--text-muted);
}

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
    box-shadow: var(--shadow-lg);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(0, 217, 255, 0.1);
    color: var(--text-primary);
}

.suggestion-item .issuer-count {
    float: right;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto;
    padding: 30px 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-brand i {
    color: var(--accent-primary);
}

.footer-brand strong {
    color: var(--text-primary);
}

.footer-links {
    margin-bottom: 16px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   UTILITY
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   RATE LIMIT MODAL
   ============================================ */
.rate-limit-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeSlide 0.3s ease;
}

.rate-limit-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.rate-limit-content i {
    font-size: 4rem;
    color: var(--error);
    margin-bottom: 20px;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.rate-limit-content h3 {
    font-size: 1.5rem;
    color: var(--error);
    margin-bottom: 10px;
}

.rate-limit-content p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rate-limit-content .countdown {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 20px 0;
}

.rate-limit-content .countdown span {
    color: var(--error);
    font-weight: 700;
    font-size: 1.5rem;
}

.rate-limit-progress {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.rate-limit-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--error), #ff6b6b);
    border-radius: 3px;
    transition: width 1s linear;
}
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .nav-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .hero-header {
        padding: 30px 10px 40px;
    }
    
    .hero-logo {
        flex-direction: column;
        gap: 16px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .logo-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .nav-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 6px;
    }
    
    .nav-tab {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .nav-tab-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .nav-tab-title {
        font-size: 0.85rem;
    }
    
    .nav-tab-desc {
        display: none;
    }
    
    .search-panel,
    .batch-panel,
    .advanced-panel {
        padding: 20px;
    }
    
    .search-panel-header,
    .batch-panel-header,
    .advanced-panel-header {
        gap: 12px;
    }
    
    .search-icon-wrapper,
    .batch-icon-wrapper,
    .advanced-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .search-panel-header h2,
    .batch-panel-header h2,
    .advanced-panel-header h2 {
        font-size: 1.2rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-input-container input {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .btn-search,
    .btn-secondary,
    .btn-success {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .result-card {
        padding: 16px;
    }
    
    .result-panel-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .batch-actions-bar {
        flex-direction: column;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-chip {
        width: 100%;
        justify-content: center;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Mobile Table */
    .data-table {
        min-width: 100%;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tr {
        display: block;
        background: var(--bg-glass);
        border-radius: var(--radius-lg);
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid var(--border-color);
    }
    
    .data-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .data-table td:first-child {
        padding-top: 0;
    }
    
    .data-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .data-table td::before {
        content: attr(data-label);
        color: var(--accent-primary);
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-stat .stat-number {
        font-size: 1.2rem;
    }
    
    .nav-tabs {
        grid-template-columns: 1fr;
    }
    
    .nav-tab {
        justify-content: flex-start;
    }
    
    .nav-tab-desc {
        display: block;
    }
    
    .search-input-container input {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.25);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.4);
}

/* ============================================
   ICONS DE BANDEIRAS E PAÍSES
   ============================================ */
.country-flag-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.country-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.country-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    background: var(--bg-glass);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.country-name {
    color: var(--text-primary);
    font-weight: 500;
}

.card-brand-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.card-brand-icon {
    width: 48px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-brand-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    background: var(--bg-glass);
    border-radius: 6px;
    color: var(--text-muted);
}

.card-brand-name {
    color: var(--text-primary);
    font-weight: 500;
}

.card-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-type-badge i {
    font-size: 0.9rem;
}

.result-brand-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.result-brand-display .card-brand-icon {
    width: 80px;
    height: 50px;
}

.result-brand-display .brand-info {
    flex: 1;
}

.result-brand-display .brand-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.result-brand-display .brand-type {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Table Icons */
.data-table .card-brand-icon,
.results-table .card-brand-icon {
    width: 36px;
    height: 24px;
}

.data-table .country-flag,
.results-table .country-flag {
    width: 24px;
    height: 18px;
}

.data-table .card-brand-wrapper,
.data-table .country-flag-wrapper,
.results-table .card-brand-wrapper,
.results-table .country-flag-wrapper {
    gap: 8px;
}

.data-table .card-brand-name,
.data-table .country-name,
.results-table .card-brand-name,
.results-table .country-name {
    font-size: 0.9rem;
}

html.is-scrolling *,
html.is-scrolling *::before,
html.is-scrolling *::after {
    animation-play-state: paused !important;
    transition: none !important;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bg-glow {
        display: none;
    }
    
    .logo-pulse {
        display: none;
    }
}

/* ============================================
   LEGACY COMPATIBILITY (for app.js)
   ============================================ */
.batch-stats { display: none; }
.batch-stats.hidden { display: none !important; }
.batch-results { display: none; }
.batch-results.hidden { display: none !important; }
.not-found { display: none; }
.not-found.hidden { display: none !important; }
.loading { display: none; }
.loading.hidden { display: none !important; }

/* Map old classes to new ones - hiding legacy elements that are no longer used */
.tabs { display: none; }
.search-box { display: none; }
.batch-input-section { display: none; }
.advanced-search-section { display: none; }
/* Note: .result-card is now actively used in the new design - do NOT hide it */

/* Keep results-table working */
.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.results-table th {
    background: rgba(0, 217, 255, 0.1);
    color: var(--accent-primary);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-glow);
}

.results-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.results-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

