/* Modern Dashboard CSS for XRPL NFT Burn Tracker */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f0f url('/static/images/noise_bg.png') repeat;
    background-attachment: fixed;
    color: #e4e4e7;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    border-bottom: 1px solid #3f3f46;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-icon {
    width: 66px;
    height: 66px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.brand-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.brand-text p {
    font-size: 0.9rem;
    color: #a1a1aa;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b35;
}

.stat-label {
    font-size: 0.8rem;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== MAIN CONTENT ===== */
.main {
    padding: 3rem 0;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    margin-bottom: 3rem;
}

.search-card {
    background: rgba(39, 39, 42, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid #3f3f46;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-header h2 i {
    color: #ff6b35;
    margin-right: 0.5rem;
}

.card-header p {
    color: #a1a1aa;
    font-size: 1rem;
}

/* ===== FORM STYLES ===== */
.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.flex-2 {
    grid-column: span 1;
}

.form-group label {
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #ff6b35;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 1rem 1.25rem;
    border: 2px solid #3f3f46;
    border-radius: 12px;
    background: rgba(39, 39, 42, 0.8);
    color: #e4e4e7;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: rgba(39, 39, 42, 0.95);
}

.form-group small {
    color: #71717a;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.validation-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #71717a 0%, #52525b 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(113, 113, 122, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(113, 113, 122, 0.3);
}

.btn-outline {
    border: 2px solid #3f3f46;
    color: #e4e4e7;
    background: rgba(39, 39, 42, 0.5);
}

.btn-outline:hover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
}

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    gap: 3rem;
}

/* ===== STATISTICS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(39, 39, 42, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #3f3f46;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.stat-card.primary::before {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
}

.stat-card.secondary::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.stat-card.accent::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.stat-card.secondary .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-card.accent .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-content {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #e4e4e7;
    margin: 0.5rem 0 0.25rem 0;
}

.stat-description {
    font-size: 0.85rem;
    color: #a1a1aa;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #22c55e;
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
}

/* ===== FILTERS PANEL ===== */
.filters-panel {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.panel-card {
    background: rgba(39, 39, 42, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #3f3f46;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.panel-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-card h3 i {
    color: #ff6b35;
}

.panel-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 1rem;
}

.filter-section,
.export-section,
.quick-stats {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #3f3f46;
}

.filter-section:last-child,
.export-section:last-child,
.quick-stats:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    background: rgba(39, 39, 42, 0.8);
    color: #e4e4e7;
    margin-bottom: 1rem;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.export-options {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e4e4e7;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #3f3f46;
    border-radius: 4px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #ff6b35;
    border-color: #ff6b35;
}

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

.quick-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.quick-stat-item .label {
    font-size: 0.85rem;
    color: #a1a1aa;
}

.quick-stat-item .value {
    font-weight: 600;
    color: #ff6b35;
}

/* ===== DATA SECTION ===== */
.data-section {
    min-height: 400px;
}

.table-card {
    background: rgba(39, 39, 42, 0.8);
    border-radius: 20px;
    border: 1px solid #3f3f46;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.table-header {
    padding: 2rem 2rem 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3f3f46;
}

.table-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-header h3 i {
    color: #ff6b35;
}

.record-count {
    font-size: 0.85rem;
    color: #a1a1aa;
    font-weight: 400;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid #3f3f46;
    border-radius: 8px;
    overflow: hidden;
}

.toggle-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #ff6b35;
    color: white;
}

/* ===== TABLE STYLES ===== */
.table-container {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #3f3f46;
}

.data-table th {
    background: rgba(39, 39, 42, 0.5);
    font-weight: 600;
    color: #e4e4e7;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.data-table th.sortable:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.data-table th i {
    margin-right: 0.5rem;
}

.sort-icon {
    float: right;
    opacity: 0.5;
}

.data-table td {
    color: #e4e4e7;
    font-size: 0.9rem;
}

.data-table tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

.actions-col {
    width: 120px;
}

/* ===== NFT ID CELL STYLING ===== */
.nft-id-cell {
    min-width: 200px;
}

.nft-id-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.nft-id-short {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    color: #e4e4e7;
    flex: 1;
}

.nft-id-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nft-id-container:hover .nft-id-actions {
    opacity: 1;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.icon-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    transform: scale(1.1);
}

.copy-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.bithomp-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    width: 90%;
    margin: 0 auto;
}

.loading-spinner {
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

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

.loading-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: #a1a1aa;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: rgba(39, 39, 42, 0.95);
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #e4e4e7;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* ===== ERROR SECTION ===== */
.error-section {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(39, 39, 42, 0.95);
    border: 2px solid #dc2626;
    border-radius: 16px;
    padding: 2rem;
    z-index: 8888;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
    min-width: 300px;
    max-width: 500px;
}

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

.error-content i {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-content p {
    color: #e4e4e7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

/* Tablet Landscape - Large tablets and small laptops */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 280px 1fr;
    }
}

/* Tablet Portrait - Standard tablets */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-panel {
        position: static;
        order: 2;
        margin-top: 2rem;
    }
    
    .data-section {
        order: 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .brand {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brand-text h1 {
        font-size: 1.8rem;
    }
    
    .brand-text p {
        font-size: 0.85rem;
    }
}

/* Mobile Landscape - Large phones in landscape */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .brand-icon {
        width: 56px;
        height: 56px;
    }
    
    .brand-text h1 {
        font-size: 1.6rem;
    }
    
    .search-card {
        padding: 2rem 1.5rem;
    }
    
    .card-header h2 {
        font-size: 1.6rem;
    }
    
    /* Mobile-optimized filter panel */
    .filters-panel {
        background: rgba(39, 39, 42, 0.95);
        border-radius: 16px;
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .panel-card {
        padding: 1rem;
    }
    
    .panel-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .panel-card h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .filter-section {
        margin-bottom: 1.5rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    /* Better table responsiveness */
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .table-actions {
        justify-content: space-between;
    }
    
    .view-toggle {
        order: -1;
        align-self: center;
    }
}

/* Mobile Portrait - Standard phones */
@media (max-width: 640px) {
    .main {
        padding: 2rem 0;
    }
    
    .search-card,
    .panel-card,
    .table-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .stat-icon {
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .toast {
        max-width: none;
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Hide complex table on mobile, force cards view */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .data-table {
        min-width: 640px;
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem 0.3rem;
    }
    
    /* Make NFT IDs and addresses more readable on mobile */
    .nft-id-container,
    .owner-address {
        font-size: 0.75rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Mobile-optimized cards view */
    .burn-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Small Mobile - Small phones and narrow screens */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .search-card,
    .panel-card,
    .table-card {
        padding: 1rem;
        margin: 0;
        border-radius: 16px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .brand {
        gap: 0.75rem;
    }
    
    .brand-icon {
        width: 48px;
        height: 48px;
    }
    
    .brand-text h1 {
        font-size: 1.4rem;
    }
    
    .brand-text p {
        font-size: 0.8rem;
    }
    
    .card-header h2 {
        font-size: 1.4rem;
    }
    
    .card-header p {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Force table to be scrollable horizontally */
    .data-table {
        min-width: 600px;
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.4rem 0.25rem;
    }
    
    /* Better mobile stats cards */
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-title {
        font-size: 0.85rem;
    }
    
    /* Mobile filter improvements */
    .filter-select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .quick-stat-item {
        padding: 0.75rem 0;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile - Very small screens */
@media (max-width: 360px) {
    .main {
        padding: 1.5rem 0;
    }
    
    .search-card,
    .panel-card,
    .table-card {
        padding: 0.875rem;
    }
    
    .brand-text h1 {
        font-size: 1.25rem;
    }
    
    .card-header h2 {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .data-table {
        min-width: 560px;
        font-size: 0.7rem;
    }
}

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

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

.text-success {
    color: #22c55e !important;
}

.text-error {
    color: #ef4444 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* ===== NEW TABLE & FILTER STYLES ===== */

/* Table improvements */
.taxon-cell {
    text-align: center;
}

.taxon-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.taxon-unknown {
    background: rgba(163, 163, 163, 0.1);
    color: #a3a3a3;
    border-color: rgba(163, 163, 163, 0.2);
}

.owner-cell {
    max-width: 120px;
}

.owner-address {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    background: rgba(39, 39, 42, 0.6);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #3f3f46;
}

.date-cell {
    font-size: 0.9rem;
    color: #a1a1aa;
}

.actions-cell {
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.btn-icon {
    padding: 0.4rem;
    border: none;
    background: rgba(39, 39, 42, 0.8);
    color: #a1a1aa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}

.btn-icon:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    transform: translateY(-1px);
}

/* Filter indicator */
.filter-indicator {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.filter-indicator i {
    margin-right: 0.5rem;
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal styles for NFT details */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #18181b;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #3f3f46;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #3f3f46;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
}

.close {
    background: none;
    border: none;
    color: #a1a1aa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #ff6b35;
}

.modal-body {
    padding: 1.5rem;
}

.burn-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-group label {
    font-weight: 600;
    color: #e4e4e7;
    font-size: 0.9rem;
}

.copyable-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyable-field code {
    background: rgba(39, 39, 42, 0.8);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
    flex: 1;
    word-break: break-all;
}

.uri-display,
.metadata-display {
    background: rgba(39, 39, 42, 0.8);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #3f3f46;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: #e4e4e7;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.external-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #3f3f46;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Enhanced table and modal responsiveness */
@media (max-width: 968px) {
    .data-table {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }
    
    .external-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Mobile-specific modal improvements */
@media (max-width: 640px) {
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 100%;
        max-height: 95vh;
        margin: 0;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-width: none;
        transform: none;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-body {
        padding: 1rem 1.5rem;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
    
    .copyable-field {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .copyable-field code {
        word-break: break-all;
        white-space: pre-wrap;
    }
    
    .external-links .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Grouped table styles */
.wallet-group-header {
    background: rgba(255, 107, 53, 0.1) !important;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.wallet-group-header:hover {
    background: rgba(255, 107, 53, 0.15) !important;
}

.wallet-group-title {
    padding: 1rem !important;
    color: #ff6b35;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.wallet-group-title i {
    color: #ff6b35;
}

.group-stats {
    color: #a1a1aa;
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: 0.5rem;
}

.wallet-toggle {
    background: rgba(255, 107, 53, 0.2) !important;
    color: #ff6b35 !important;
    border: 1px solid rgba(255, 107, 53, 0.4) !important;
    margin-left: auto;
}

.wallet-toggle:hover {
    background: rgba(255, 107, 53, 0.3) !important;
    transform: scale(1.1);
}

.wallet-group-item {
    border-left: 3px solid rgba(255, 107, 53, 0.3);
    background: rgba(39, 39, 42, 0.3);
}

.wallet-group-item:hover {
    background: rgba(39, 39, 42, 0.5);
    border-left-color: #ff6b35;
}

/* Footer styles */
.footer {
    background: rgba(24, 24, 27, 0.95);
    border-top: 1px solid #3f3f46;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer p {
    margin: 0;
    color: #a1a1aa;
    font-size: 0.9rem;
}

.footer strong {
    color: #ff6b35;
    font-weight: 600;
}

.footer .fas.fa-heart {
    color: #ff6b35;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== MOBILE CARDS VIEW ===== */
.burn-card {
    background: rgba(39, 39, 42, 0.8);
    border: 1px solid #3f3f46;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.burn-card:hover {
    background: rgba(39, 39, 42, 0.9);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.burn-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.burn-card-title {
    flex: 1;
}

.burn-card-nft-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    color: #e4e4e7;
    font-weight: 600;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.burn-card-taxon {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.burn-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.burn-card-body {
    margin-bottom: 1rem;
}

.burn-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.burn-card-row:last-child {
    margin-bottom: 0;
}

.burn-card-label {
    font-size: 0.85rem;
    color: #a1a1aa;
    font-weight: 500;
    white-space: nowrap;
}

.burn-card-value {
    font-size: 0.9rem;
    color: #e4e4e7;
    text-align: right;
    word-break: break-word;
}

.burn-card-address {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    background: rgba(39, 39, 42, 0.6);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #3f3f46;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.burn-card-date {
    font-size: 0.85rem;
    color: #a1a1aa;
}

.burn-card-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.burn-card-footer .btn-icon {
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    font-size: 0.8rem;
    height: auto;
    width: auto;
}

/* Mobile cards grid */
.burn-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .burn-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .burn-card {
        padding: 1.25rem;
    }
    
    .burn-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .burn-card-actions {
        order: -1;
        justify-content: flex-end;
    }
    
    .burn-card-footer {
        gap: 0.75rem;
    }
    
    .burn-card-footer .btn-icon {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .burn-card {
        padding: 1rem;
    }
    
    .burn-card-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .burn-card-label {
        font-size: 0.8rem;
    }
    
    .burn-card-value {
        text-align: left;
        font-size: 0.85rem;
    }
    
    .burn-card-address {
        max-width: none;
        word-break: break-all;
        white-space: pre-wrap;
    }
    
    .burn-card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .burn-card-footer .btn-icon {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}

/* ===== MOBILE TOUCH IMPROVEMENTS ===== */

/* Larger touch targets for mobile */
@media (max-width: 768px) {
    .btn, .btn-icon, .toggle-btn {
        min-height: 44px; /* iOS recommended minimum */
        min-width: 44px;
        touch-action: manipulation; /* Prevent double-tap zoom */
    }
    
    .form-group input,
    .form-group select,
    .filter-select {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better button spacing on mobile */
    .action-buttons {
        gap: 0.75rem;
    }
    
    .form-actions {
        gap: 1rem;
    }
    
    .filter-actions {
        gap: 0.75rem;
    }
    
    /* Optimize scrolling for mobile */
    .table-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .modal-body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Better hover states for touch devices */
    .btn:active,
    .btn-icon:active,
    .toggle-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Prevent text selection on interactive elements */
    .btn,
    .btn-icon,
    .toggle-btn,
    .stat-card,
    .burn-card {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Improve focus states for accessibility */
    .btn:focus,
    .btn-icon:focus,
    .toggle-btn:focus,
    input:focus,
    select:focus {
        outline: 2px solid #ff6b35;
        outline-offset: 2px;
    }
    
    /* Better card interactions on mobile */
    .burn-card {
        transition: all 0.2s ease;
    }
    
    .burn-card:active {
        transform: scale(0.98);
        background: rgba(39, 39, 42, 0.95);
    }
    
    /* Optimize loading overlay for mobile */
    .loading-overlay {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .loading-content {
        padding: 1.5rem;
        max-width: 90%;
    }
}

/* Very small screens optimization */
@media (max-width: 480px) {
    /* Ensure minimum touch target size */
    .btn, .btn-icon, .toggle-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 0.75rem;
    }
    
    /* Larger input fields */
    .form-group input,
    .form-group select {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing */
    .action-buttons {
        gap: 1rem;
    }
    
    /* Optimize text sizes for readability */
    .burn-card-label,
    .burn-card-value {
        font-size: 0.9rem;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    /* Better modal positioning */
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 1rem 0;
    }
    
    .brand {
        flex-direction: row;
        gap: 1rem;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .brand-text h1 {
        font-size: 1.4rem;
    }
    
    .search-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: #a1a1aa; }
.mb-1 { margin-bottom: 0.5rem; }

/* Mobile Filters Button */
.mobile-filters-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: none;
}

.mobile-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.mobile-filters-btn:active {
    transform: scale(0.95);
}

/* Show mobile button only on mobile when data is present */
@media (max-width: 768px) {
    .mobile-filters-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mobile-filters-btn {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
} 