.result-item .status-badge { margin-right: 4px; }
.result-item .card-number { margin-right: 4px; }
/* ========================================
   PTChecker - Optimized CSS
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */

.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 2px solid #000000;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
    padding-bottom: 160px; /* Reduced padding for compact footer */
}

.sidebar-header {
    padding: 40px 20px;
    border-bottom: 2px solid #000000;
    background: #ffffff;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 16px;
    border: 3px solid #000000;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000 0%, #333333 50%, #000000 100%);
}

.logo-container:hover {
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: #000000;
}

.logo-image {
    width: 180px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.logo-container:hover .logo-image {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: #f8f9fa;
    border-left-color: #000000;
    transform: translateX(4px);
}

.nav-item.active {
    background: #000000;
    color: #ffffff;
    border-left-color: #000000;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-item span {
    font-size: 14px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 2px solid #000000;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Rainbow separator between logout and footer */
.rainbow-separator {
    height: 3px;
    background: linear-gradient(90deg, 
        #ff0000 0%, 
        #ff8000 12.5%, 
        #ffff00 25%, 
        #80ff00 37.5%, 
        #00ff00 50%, 
        #00ff80 62.5%, 
        #00ffff 75%, 
        #0080ff 87.5%, 
        #8000ff 100%
    );
    border-radius: 2px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.rainbow-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.6) 50%, 
        transparent 100%
    );
    animation: rainbow-shine 3s ease-in-out infinite;
}

@keyframes rainbow-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.logout-btn {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    flex: 1;
    margin-left: 280px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-area {
    flex: 1;
    padding: 32px;
    overflow: hidden;
    height: auto;
}

/* ========================================
   DASHBOARD STYLES
   ======================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #000000;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
    background: #000000;
    color: #ffffff;
}

.card-icon i {
    font-size: 24px;
    color: #000000;
    transition: color 0.3s ease;
}

.dashboard-card:hover .card-icon i {
    color: #ffffff;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.card-content p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border: 2px solid #000000;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateX(4px);
}

/* Quick Stats - removed */

/* ========================================
   CHECKER STYLES
   ======================================== */

.checker-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #000000;
    background: #ffffff;
}

.tab-btn {
    padding: 16px 24px;
    background: #ffffff;
    border: 2px solid #000000;
    border-bottom: none;
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: -2px;
    position: relative;
}

.tab-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #000000;
    color: #ffffff;
    z-index: 2;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000000;
}

/* Input Section */
.input-section {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    height: fintent;
}

.input-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Smart Textarea */
textarea {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    padding: 16px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    overflow-y: auto;
    overflow-x: auto;
    white-space: nowrap;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Horizontal scrollbar styling */
textarea::-webkit-scrollbar:horizontal {
    height: 8px;
}

textarea::-webkit-scrollbar-track:horizontal {
    background: #f1f1f1;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:horizontal {
    background: #000000;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:horizontal:hover {
    background: #333333;
}

/* Check Controls - Compact Layout */
.check-controls {
    margin: 20px 0;
}

/* ========================================
   INLINE BRAINTREE AUTH STYLES
   ======================================== */

.radio-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.braintree-inline-options {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.braintree-inline-options.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
}

.braintree-label {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
}

.braintree-inline-options .braintree-dropdown {
    position: relative;
    display: inline-block;
}

.braintree-inline-options .braintree-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.braintree-inline-options .braintree-dropdown-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-color: #333333;
}

.braintree-inline-options .braintree-dropdown-btn.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.braintree-inline-options .braintree-dropdown-btn i:first-child {
    color: inherit;
    font-size: 11px;
}

.braintree-inline-options .braintree-dropdown-btn i:last-child {
    font-size: 8px;
    transition: transform 0.3s ease;
}

.braintree-inline-options .braintree-dropdown-btn.active i:last-child {
    transform: rotate(180deg);
}

.braintree-inline-options .braintree-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 3px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-width: 180px;
}

.braintree-inline-options .braintree-dropdown-content.show {
    max-height: 280px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.braintree-inline-options .braintree-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.braintree-inline-options .braintree-option:last-child {
    border-bottom: none;
}

.braintree-inline-options .braintree-option:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.braintree-inline-options .braintree-option i {
    width: 16px;
    text-align: center;
    font-size: 11px;
    color: #666;
    transition: color 0.2s ease;
}

.braintree-inline-options .braintree-option:hover i {
    color: #000000;
}

.braintree-inline-options .braintree-option span {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   CHECK TYPE SEPARATOR
   ======================================== */

.check-type-separator {
    width: 1px;
    height: 24px;
    background: #d0d0d0;
    margin: 0 16px;
    border-radius: 1px;
}

/* Update check-type-row to accommodate new layout */
.check-type-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.check-type-row h4 {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    min-width: 80px;
}

.check-options-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* ========================================
   TIME DISPLAY STYLES
   ======================================== */

.time-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 12px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #000000 0%, #504d55 100%);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    position: relative;
    z-index: 10;
    min-height: 50px;
}

/* Removed conflicting CSS rule that was forcing timer to always show */

.time-display.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.time-item i {
    font-size: 14px;
    opacity: 0.9;
}

.time-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

.time-value {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Progress Item Styles */
.progress-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.progress-bar-compact {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    min-width: 100px;
}

.progress-indicator-compact {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-indicator-compact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.9;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

@media (max-width: 768px) {
    .time-display {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .progress-item {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .progress-text {
        text-align: center;
        min-width: auto;
    }
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.radio-option:hover, .checkbox-option:hover {
    background: #e8e8e8;
}

.checkbox-option:hover .checkbox-custom {
    border-color: #333333;
    background: #f8f9fa;
}

.radio-option input[type="radio"], .checkbox-option input[type="checkbox"] {
    display: none;
}

.radio-custom, .checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #000000;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 3px;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #000000;
    border-radius: 50%;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.radio-option i, .checkbox-option i {
    color: #000000;
    font-size: 12px;
    width: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    min-width: 120px;
    justify-content: center;
}

.action-btn.primary {
    background: #000000;
    color: #ffffff;
}

.action-btn.primary:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.action-btn.stop {
    background: #dc2626;
    color: #ffffff;
}

.action-btn.stop:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

.action-btn:disabled {
    background: #000000;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

/* Loading State */
.action-btn.loading {
    position: relative;
    overflow: hidden;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 109, 133, 0.514), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Unique artistic loading effects per button type */

/* Start Check: shimmer sweep + subtle pulse glow */
.btn-start.loading {
    position: relative;
    background: #000000;
    box-shadow: 0 0 0 0 rgba(0,0,0,0.35);
    animation: start-pulse 1.2s ease-in-out infinite;
}

.btn-start.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.25), rgba(255,255,255,0.0));
    animation: loading-shimmer 1.1s infinite;
}

@keyframes start-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.35); transform: translateY(0); }
    50% { box-shadow: 0 0 0 6px rgba(0,0,0,0.05); transform: translateY(-0.5px); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0.35); transform: translateY(0); }
}

/* 2) BIN Check: striped barberpole sweep in brand red */
.btn-bin.loading {
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 8px, transparent 8px, transparent 16px);
}

.btn-bin.loading::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.0), rgba(255,255,255,0.35), rgba(255,255,255,0.0));
    animation-duration: 0.9s;
}

/* 3) Normalize: gear spin ring with subtle glow */
.btn-normalize.loading {
    position: relative;
}

.btn-normalize.loading::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 6px;
    border: 2px dashed rgba(255,255,255,0.35);
    animation: dash-rotate 1.2s linear infinite;
}

.btn-normalize.loading::after {
    animation-duration: 1.2s;
}

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

/* ========================================
   RESULTS SECTION
   ======================================== */

.results-section {
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 24px;
    height: 95%;
    display: flex;
    flex-direction: column;
}

.results-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Results Stats - Compact */
.results-stats-compact {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-width: 70px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #6b7280;
}

.stat-item.total::before {
    background: #6b7280;
}

.stat-item.live::before {
    background: #15803d;
}

.stat-item.declined::before {
    background: #b91c1c;
}

.stat-item.error::before {
    background: #b45309;
}

.stat-item.ccn::before {
    background: #2563eb;
}

.stat-item.success::before {
    background: #16a34a;
}

.stat-number {
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: none;
    letter-spacing: 0;
}

.stat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #000000;
}

/* Legacy stats for backward compatibility */
.results-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat {
    padding: 8px 16px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    transition: all 0.3s ease;
}

.stat:hover {
    background: #000000;
    color: #ffffff;
    transform: scale(1.05);
}

/* Results Tabs Compact */
.results-tabs-compact {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.result-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 13px;
    position: relative;
    min-width: 80px;
    justify-content: center;
}

.result-tab:hover {
    background: #f8f9fa;
    border-color: #000000;
    color: #000000;
    transform: translateY(-1px);
}

.result-tab.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.result-tab[data-tab="live"] {
    border-color: #15803d;
    color: #15803d;
}

.result-tab[data-tab="live"]:hover,
.result-tab[data-tab="live"].active {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

.result-tab[data-tab="declined"] {
    border-color: #b91c1c;
    color: #b91c1c;
}

.result-tab[data-tab="declined"]:hover,
.result-tab[data-tab="declined"].active {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}

.result-tab[data-tab="ccn"] {
    border-color: #18419b;
    color: #1455e2;
}

.result-tab[data-tab="ccn"]:hover,
.result-tab[data-tab="ccn"].active {
    background: #2052be;
    border-color: #254fac;
    color: #ffffff;
}

.result-tab[data-tab="error"] {
    border-color: #b45309;
    color: #b45309;
}

.result-tab[data-tab="error"]:hover,
.result-tab[data-tab="error"].active {
    background: #b45309;
    border-color: #b45309;
    color: #ffffff;
}

.tab-label {
    font-weight: 600;
}

.tab-count {
    background: rgba(255,255,255,0.2);
    color: inherit;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.result-tab.active .tab-count {
    background: rgba(255,255,255,0.3);
}

.copy-all {
    margin-left: auto;
    padding: 8px 12px;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.copy-all:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}

.clear-all {
    margin-left: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.clear-all:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Results Display */
.results-display {
    position: relative;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    max-height: 65vh; /* single scroll area */
}

.results-container {
    display: none;
    height: auto;
    overflow: visible;
    padding: 12px;
    font-size: 12px;
}

.results-container.active {
    display: block;
}

.results-container::-webkit-scrollbar {
    width: 6px;
}

.results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.results-container::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 3px;
}

.results-container::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Result Items */
.result-item {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto auto;
    align-items: center;
    gap: 4px 8px;
    padding: 3px 8px;
    border: 2px solid #000000;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #000000;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.result-item:hover::before {
    transform: scaleY(1);
}

.result-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.result-item.live {
    border-left-color: #22c55e;
}

.result-item.ccn {
    border-left-color: #2563eb;
}

.result-item.declined {
    border-left-color: #ef4444;
}

.result-item.error {
    border-left-color: #f59e0b;
}

.card-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    grid-column: 1;
    min-width: 0;
    color: #000000;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    grid-column: 2;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    line-height: 1;
    height: 18px;
    min-width: 48px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.status-badge.live {
    background: #22c55e;
    color: #ffffff;
}

.status-badge.ccn {
    background: #2563eb;
    color: #ffffff;
}

.status-badge.declined {
    background: #ef4444;
    color: #ffffff;
}

.status-badge.error {
    background: #f59e0b;
    color: #ffffff;
}

.response {
    grid-column: 3;
    color: #000000;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compact BIN info next to response */
.bin-info {
    grid-column: 1 / 4;
    grid-row: 2;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Ensure the copy button stays at the end without breaking layout */
.result-item .copy-single-btn { grid-column: 4; }

/* Improve spacing when items wrap to new lines */
.result-item .status-badge,
.result-item .card-number {
    flex: 0 0 auto;
}

/* Wider layout adapts nicely; on narrow viewports, stack text blocks */
@media (max-width: 768px) {
    .result-item {
        grid-template-columns: 1fr auto;
        align-items: flex-start;
        gap: 2px 6px;
    }
    .card-number { grid-column: 1 / 3; white-space: normal; overflow: visible; }
    .status-badge { grid-column: 1; }
    .response { grid-column: 2; white-space: nowrap; }
    .bin-info { grid-column: 1 / 3; grid-row: auto; }
    .result-item .copy-single-btn { grid-column: 2; }
}



/* Detailed Stats */
.detailed-stats {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-detail {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    padding: 4px 8px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Copy Single Button */
.copy-single-btn {
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.copy-single-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: scale(1.05);
}

.copy-single-btn.copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

.copy-single-btn i {
    font-size: 11px;
}

/* ========================================
   SMART FOOTER (DEPRECATED - MOVED TO SIDEBAR)
   ======================================== */

/* Old fixed footer styles - now moved to sidebar */
.smart-footer {
    display: none; /* Hidden since footer is now in sidebar */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
}

.footer-text {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {

    

    

    

    

    

}

@media (max-width: 480px) {
    .content-area {
        padding: 16px;
    }
    
    .input-section,
    .results-section {
        padding: 16px;
    }
    

    

    

    

}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden { display: none !important; }
.visible { display: block !important; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   PROGRESS BAR STYLES - REMOVED OLD PROGRESS
   ======================================== */

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */

.admin-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-section h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.status-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.status-card h4 {
    margin: 0 0 8px 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.status-number {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.key-list {
    margin-bottom: 20px;
}

.key-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.key-info {
    flex: 1;
}

.key-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.key-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.key-status.available {
    background: #dcfce7;
    color: #166534;
}

.key-status.busy {
    background: #fef3c7;
    color: #92400e;
}

.key-status.expired {
    background: #fee2e2;
    color: #dc2626;
}

.key-status.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.key-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
}

.key-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.key-actions {
    display: flex;
    gap: 8px;
}

.action-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

.action-btn.danger {
    background: #dc2626;
    color: white;
}

.action-btn.danger:hover {
    background: #b91c1c;
}

.action-btn.warning {
    background: #f59e0b;
    color: white;
}

.action-btn.warning:hover {
    background: #d97706;
}

.key-item.expired {
    opacity: 0.7;
    background: #fef2f2;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
}

.close:hover {
    color: #1f2937;
}

.modal-body {
    padding: 20px 24px 24px 24px;
}

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

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

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ========================================
   BRAINTREE AUTH DROPDOWN STYLES
   ======================================== */

.braintree-options-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.braintree-options-row:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.braintree-options-row h4 {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.braintree-options-row h4::before {
    content: '🔐';
    font-size: 12px;
}





/* Scrollbar styling for dropdown */
.braintree-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.braintree-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.braintree-dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.braintree-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}





/* Braintree Dropdown: compact two-column layout */
.braintree-inline-options .braintree-dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    column-gap: 8px;
    row-gap: 6px;
    padding: 8px;
    min-width: 340px;
    max-width: 420px;
    /* Open to the right of the button */
    left: 100%;
    right: auto;
    top: 0;
    margin-left: 8px;
    margin-top: 0;
}

.braintree-inline-options .braintree-option {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    border-bottom: none;
    margin: 0;
    padding: 8px 10px;
    background: #ffffff;
    white-space: nowrap;
    overflow: hidden; /* keep one line clipped for marquee */
}

.braintree-inline-options .braintree-option span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block; /* enable horizontal translate for marquee */
    will-change: transform;
}

/* Hover marquee: scroll long text to reveal full content */
.braintree-inline-options .braintree-option:hover span {
    animation: braintree-marquee 10s linear infinite;
    text-overflow: clip; /* remove ellipsis during scroll */
    max-width: none; /* let span be as wide as its content */
}

@keyframes braintree-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (max-width: 480px) {
    .braintree-inline-options .braintree-dropdown-content {
        grid-template-columns: 1fr;
        min-width: auto;
        width: 90vw;
        max-width: 90vw;
    }
}

/* ========================================
   ENHANCED CHECKER LAYOUT STYLES
   ======================================== */

/* Page Header */
.page-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header .page-description {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Checker Layout */
.checker-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    height: 100%;
    overflow: hidden;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: none;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-actions {
    display: flex;
    gap: 6px;
}

.btn-secondary {
    padding: 6px 10px;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}



/* Textarea Container */
.textarea-container {
    position: relative;
    margin-bottom: 16px;
    flex: 1;
    min-height: 0;
}

.textarea-container textarea {
    width: 100%;
    height: 100%;
    min-height: 120px;
    max-height: 150px;
    padding: 12px;
    border: 2px solid #000000;
    border-radius: 8px;
    background: #ffffff;
    color: #000000;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    resize: none;
    overflow-y: auto;
    overflow-x: auto;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.textarea-container textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.textarea-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding: 0 2px;
}

.card-count {
    font-size: 11px;
    font-weight: 600;
    color: #000000;
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.format-hint {
    font-size: 10px;
    color: #6c757d;
    font-style: italic;
}

/* Check Type Section */
.check-type-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.check-type-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.check-type-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* VBV Info */
.vbv-info {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 6px;
    padding: 4px 8px;
    background: #e8f4fd;
    border-radius: 4px;
    border-left: 3px solid #0066cc;
}

.vbv-info i {
    color: #0066cc;
    font-size: 10px;
}

/* Tab Actions */
.tab-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}





/* Results Tabs Compact */
.results-tabs-compact {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.result-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    color: #6c7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 11px;
    position: relative;
    min-width: 70px;
    justify-content: center;
}

.tab-label {
    font-weight: 600;
}

.tab-count {
    background: rgba(255,255,255,0.2);
    color: inherit;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.result-tab.active .tab-count {
    background: rgba(255,255,255,0.3);
}

.copy-all {
    margin-left: auto;
    padding: 6px 10px;
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.copy-all:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}

.clear-all {
    margin-left: 6px;
    padding: 6px 10px;
    background: #ffffff;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.clear-all:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Results Display */
.results-display {
    position: relative;
    border: 2px solid #000000;
    border-radius: 12px;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    max-height: 65vh; /* single scroll area */
}

.results-container {
    display: none;
    height: auto;
    overflow: visible;
    padding: 12px;
    font-size: 12px;
    max-height: none;
}

.results-container.active {
    display: block;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
}



/* Responsive Design for Checker */
@media (max-width: 1200px) {
    .checker-layout {
        grid-template-columns: 1fr;
        gap: 16px;
        height: 100%;
        overflow: hidden;
    }
    
    .input-section,
    .results-section {
        order: unset;
        height: auto;
    }
    
    .results-display {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .page-header h2 {
        font-size: 20px;
    }
    
    .page-header .page-description {
        font-size: 12px;
    }
    
    .section-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .textarea-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* ========================================
   SIDEBAR SMART FOOTER
   ======================================== */

.sidebar-smart-footer {
    margin-top: 0;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #000000;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-smart-footer:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-smart-footer .footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.sidebar-smart-footer .footer-text {
    font-size: 10px;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.sidebar-smart-footer .telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #000000;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    border: 2px solid #000000;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.sidebar-smart-footer .telegram-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sidebar-smart-footer .telegram-btn i {
    font-size: 11px;
}

.sidebar-smart-footer .footer-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.sidebar-smart-footer .status-dot {
    width: 5px;
    height: 5px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.sidebar-smart-footer .status-text {
    font-size: 9px;
    color: #00ff00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive adjustments for sidebar footer */
@media (max-width: 768px) {
    .sidebar-smart-footer {
        padding: 10px;
        margin-top: 0;
    }
    
    .sidebar-smart-footer .footer-text {
        font-size: 9px;
    }
    
    .sidebar-smart-footer .telegram-btn {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 100px;
    }
    
    .sidebar-smart-footer .status-text {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .sidebar-smart-footer {
        padding: 8px;
        margin-top: 0;
    }
    
    .sidebar-smart-footer .footer-text {
        font-size: 8px;
    }
    
    .sidebar-smart-footer .telegram-btn {
        padding: 4px 6px;
        font-size: 9px;
        min-width: 90px;
    }
    
    .sidebar-smart-footer .status-text {
        font-size: 7px;
    }
}

/* ========================================
   CARD NORMALIZER STYLES
   ======================================== */

/* Card Normalizer Layout */
#card-normalizer-content { 
    max-width: 1000px; 
    margin: 0 auto; 
}

/* Two-column grid for Input and Cleaned sections */
.normalizer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 900px) {
    .normalizer-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure each card displays on its own line inside textareas */
#cleanedCards,
#inputCards {
    white-space: pre; /* honor \n as line breaks, no soft wrap */
    overflow-x: auto;
}

/* Settings Panel */
.settings-panel { 
    background: #ffffff; 
    border: 2px solid #000000; 
    border-radius: 12px; 
    padding: 15px; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

.settings-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 10px; 
    margin-bottom: 10px; 
}

.setting-group { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.setting-label { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    cursor: pointer; 
    font-weight: 500; 
    color: #333; 
    font-size: 0.9rem; 
}

.setting-label input[type="checkbox"] { 
    display: none; 
}

.checkmark { 
    width: 16px; 
    height: 16px; 
    border: 2px solid #000000; 
    border-radius: 3px; 
    position: relative; 
    transition: all 0.2s ease; 
}

.setting-label input[type="checkbox"]:checked + .checkmark { 
    background: #000000; 
}

.setting-label input[type="checkbox"]:checked + .checkmark::after { 
    content: '✓'; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: #ffffff; 
    font-size: 10px; 
    font-weight: bold; 
}

.format-selector { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding-top: 10px; 
    border-top: 1px solid #eee; 
}

.format-selector label { 
    font-weight: 500; 
    color: #333; 
    font-size: 0.9rem; 
}

/* Processing Container */
.processing-container { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

/* Input/Output Sections */
.input-section, .result-section, .debug-section { 
    background: #ffffff; 
    border: none; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

.input-actions, .result-actions { 
    display: flex; 
    gap: 6px; 
}

/* Processing Controls */
.processing-controls { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    padding: 12px; 
    background: #ffffff; 
    border: 2px solid #000000; 
    border-radius: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

/* Buttons */
.btn { 
    padding: 8px 14px; 
    border: 2px solid #000000; 
    border-radius: 6px; 
    background: #ffffff; 
    color: #000000; 
    font-weight: 600; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
    text-decoration: none; 
    font-size: 12px; 
    transition: all 0.2s ease; 
}

.btn:hover { 
    background: #000000; 
    color: #ffffff; 
    transform: translateY(-1px); 
}

.btn-primary { 
    background: #000000; 
    color: #ffffff; 
}

.btn-primary:hover { 
    background: #333333; 
    border-color: #333333; 
}

.btn-secondary { 
    background: #ffffff; 
    color: #000000; 
}

.btn-small { 
    padding: 6px 10px; 
    font-size: 11px; 
}

.btn-large { 
    padding: 10px 18px; 
    font-size: 13px; 
}

/* Status */
.processing-status { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.status-indicator { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: #28a745; 
    transition: all 0.3s ease; 
}

.status-indicator.processing { 
    background: #ffc107; 
    animation: pulse 1s infinite; 
}

.status-indicator.error { 
    background: #dc3545; 
}

/* Results Section */
.results-section .result-section { 
    width: 100%; 
    margin: 0; 
    flex: 1; 
    min-height: 200px; 
}

/* Debug Section */
#debugInfo { 
    min-height: 100px; 
    background: #f8f9fa; 
    color: #666; 
}

/* Statistics Panel */
.stats-panel { 
    background: #ffffff; 
    border: 2px solid #000000; 
    border-radius: 12px; 
    padding: 15px; 
}

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

.stat-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px; 
    background: #f8f9fa; 
    border-radius: 8px; 
    border: 1px solid #eee; 
}

.stat-icon { 
    width: 35px; 
    height: 35px; 
    background: #000000; 
    color: #ffffff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px; 
}

.stat-number { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: #000000; 
}

.stat-label { 
    font-size: 11px; 
    color: #666; 
    font-weight: 500; 
}

/* Responsive Design for Card Normalizer */
@media (max-width: 1200px) { 
    .results-section { 
        max-width: 100%; 
        width: 100%; 
    } 
}

@media (max-width: 768px) { 
    .processing-controls { 
        flex-direction: column; 
        gap: 10px; 
    } 
    
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
    
    .input-actions, .result-actions { 
        flex-direction: column; 
        gap: 4px; 
    } 
}

@media (max-width: 480px) { 
    .stats-grid { 
        grid-template-columns: 1fr; 
    } 
    
    .settings-grid { 
        grid-template-columns: 1fr; 
    } 
}