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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header with Logo and X Link */
.header {
    padding: 20px 30px;
    border-bottom: 1px solid #1a1a1a;
    background: #0a0a0a;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #333;
    transition: all 0.2s;
}

.header-logo:hover {
    border-color: #4ade80;
    transform: scale(1.05);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* X Account Link Styles */
.x-account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.x-account-link:hover {
    color: #ffffff;
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.x-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.x-account-link:hover .x-icon {
    transform: scale(1.1);
}

.x-handle {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1a1a1a;
}

.nav-tabs {
    display: flex;
    gap: 0;
    background: #111;
    border-radius: 8px;
    padding: 4px;
    width: 100%;
    max-width: 600px;
}

.nav-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 14px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.nav-tab:hover {
    color: #aaa;
}

.nav-tab.active {
    background: #1a1a1a;
    color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

/* Clickable Headers */
.clickable-header {
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.clickable-header:hover {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.clickable-header.filtered {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.filter-icon {
    opacity: 0.6;
    font-size: 10px;
    margin-left: 4px;
}

.clickable-header:hover .filter-icon {
    opacity: 1;
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    padding: 20px;
    margin-top: 16px;
}

.load-more-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #000;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.load-more-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-left: 2px solid #000;
    border-radius: 50%;
    animation: loadMoreSpin 1s linear infinite;
    margin-right: 4px;
}

@keyframes loadMoreSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.modal-content {
    background: #111;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 400px;
    border: 1px solid #333;
}

.convergence-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.convergence-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* Convergence Modal Content Styles */
.traders-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
}

.traders-summary p {
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
}

.traders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trader-detail-card {
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
    padding: 16px;
    transition: all 0.2s;
}

.trader-detail-card:hover {
    background: #111;
    border-color: #333;
}

.trader-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a1a1a;
}

.trader-name {
    font-weight: 600;
    color: #4ade80;
    font-size: 16px;
}

.trader-last-activity {
    font-size: 11px;
    color: #666;
    font-family: monospace;
}

.trader-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.trader-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trader-stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.trader-stat-value {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
}

.trader-stat-value.positive {
    color: #4ade80;
}

.trader-stat-value.negative {
    color: #ef4444;
}

.trader-stat-value .positive {
    color: #4ade80;
}

.trader-stat-value .negative {
    color: #ef4444;
}

.filter-input-group {
    margin-bottom: 16px;
}

.filter-input-group label {
    display: block;
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.filter-input-group input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-input-group input:hover {
    border-color: #4ade80;
}

.filter-input-group input:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.filter-input-group input::placeholder {
    color: #666;
    font-style: italic;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .apply-btn,
.modal-actions .clear-btn {
    flex: 1;
    height: 40px;
    font-size: 14px;
}

.apply-btn {
    background: #4ade80;
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-btn:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

.clear-btn {
    background: #374151;
    color: #e0e0e0;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #4b5563;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #111;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    color: #aaa;
    font-size: 13px;
    white-space: nowrap;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    min-width: 28px;
    text-align: center;
    white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
    background: #333;
    border-color: #4ade80;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #4ade80;
    color: #000;
    border-color: #4ade80;
}

.pagination-pages {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

/* Desktop Table Styles */
.table-container {
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    background: #1a1a1a;
    color: #aaa;
    padding: 16px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #222;
    white-space: nowrap;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 13px;
    vertical-align: middle;
}

.table tr:hover {
    background: #141414;
}

/* Mobile Card Styles - Hidden by default */
.card-container {
    display: none;
    width: 100%;
}

.card {
    background: #111;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #1a1a1a;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1a1a1a;
    position: relative;
    min-height: 24px;
}

.card-time {
    color: #666;
    font-size: 10px;
    font-family: monospace;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-trader {
    font-size: 14px;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.card-badge.buy {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.card-badge.sell {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.card-main {
    margin-bottom: 8px;
    width: 100%;
    overflow: hidden;
}

.card-token {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    width: 100%;
    overflow: hidden;
}

.card-token-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.card-token-icon-placeholder {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(45deg, #333, #555);
    flex-shrink: 0;
}

.card-token-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.card-token-buttons {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.card-copy-btn,
.card-external-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    cursor: pointer;
    padding: 3px;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 9px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
}

.card-copy-btn:hover,
.card-external-link:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: #22d3ee;
    color: #22d3ee;
}

.card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
    width: 100%;
}

.card-detail {
    background: #0a0a0a;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
    min-width: 0;
    overflow: hidden;
}

.card-detail-label {
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-detail-value {
    font-size: 11px;
    font-weight: 500;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.card-pnl {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid #1a1a1a;
    gap: 6px;
}

.card-tx-link {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-tx-link:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #67e8f9;
}

/* Common Styles */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

.badge.buy {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.badge.sell {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.trader {
    font-weight: 600;
    color: #4ade80;
    white-space: nowrap;
}

.token {
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
}

.token-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.token-icon-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #333, #555);
    flex-shrink: 0;
}

.token-name {
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    min-width: 40px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s;
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: #22d3ee;
    color: #22d3ee;
    transform: scale(1.1);
}

.external-link {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-size: 10px;
    line-height: 1;
    flex-shrink: 0;
}

.external-link:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #67e8f9;
    transform: scale(1.1);
}

.market-cap {
    font-weight: 600;
    color: #fbbf24;
    white-space: nowrap;
}

.amount {
    font-weight: 500;
    font-family: monospace;
    white-space: nowrap;
}

.positive {
    color: #4ade80;
}

.negative {
    color: #ef4444;
}

.time {
    color: #666;
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
}

.time-display {
    color: #666;
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
}

.avg-hold {
    color: #9ca3af;
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
}

.sold-all {
    color: #ef4444;
    font-style: italic;
    font-size: 11px;
}

.traders-count {
    cursor: pointer;
    color: #22d3ee;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.traders-count:hover {
    color: #67e8f9;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid #4ade80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

.status {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
    z-index: 1001;
}

.status-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #4ade80;
    transition: background-color 0.3s;
}

.status.disconnected .status-dot {
    background: #ef4444;
}

.tx-link {
    color: #22d3ee;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 211, 238, 0.3);
    font-size: 12px;
}

.tx-link:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #67e8f9;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header-content {
        gap: 12px;
    }
    
    .header-left {
        gap: 12px;
        min-width: 0;
        flex: 1;
    }
    
    .header h1 {
        font-size: 1.8rem;
        min-width: 0;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .x-account-link {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }
    
    .nav {
        padding: 15px 12px;
    }
    
    .nav-tabs {
        padding: 3px;
    }
    
    .nav-tab {
        padding: 12px 8px;
        font-size: 12px;
        min-width: 0;
    }
    
    .container {
        padding: 15px 12px;
    }
    
    /* Hide table, show cards */
    .table-container {
        display: none;
    }
    
    .card-container {
        display: block;
    }
    
    .card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .card-trader {
        font-size: 16px;
    }
    
    .card-time {
        font-size: 12px;
    }
    
    .card-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .card-token-icon,
    .card-token-icon-placeholder {
        width: 20px;
        height: 20px;
    }
    
    .card-token-name {
        font-size: 14px;
    }
    
    .card-copy-btn,
    .card-external-link {
        min-width: 28px;
        min-height: 28px;
        padding: 6px;
        font-size: 11px;
    }
    
    .card-details {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .card-detail {
        padding: 10px;
    }
    
    .card-detail-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .card-detail-value {
        font-size: 14px;
    }
    
    .card-tx-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px 12px;
        margin: 15px 0;
    }
    
    .pagination-info {
        font-size: 13px;
        order: 2;
    }
    
    .pagination-controls {
        order: 1;
        gap: 6px;
    }
    
    .pagination-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 32px;
    }
    
    .pagination-pages {
        gap: 4px;
    }
    
    .modal {
        padding: 20px;
    }

    .convergence-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .trader-detail-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .load-more-container {
        padding: 16px 12px;
    }
    
    .load-more-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .header-logo {
        width: 28px;
        height: 28px;
    }
    
    .x-account-link {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .x-handle {
        display: none;
    }
    
    .nav-tab {
        padding: 6px 4px;
        font-size: 9px;
    }
    
    .container {
        padding: 8px;
    }
    
    .card {
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .card-trader {
        font-size: 12px;
    }
    
    .card-detail-value {
        font-size: 10px;
    }
    
    .pagination-btn {
        padding: 3px 5px;
        font-size: 9px;
        min-width: 20px;
    }
    
    .convergence-modal-content {
        max-width: 98%;
        max-height: 90vh;
    }

    .trader-detail-stats {
        grid-template-columns: 1fr 1fr;
    }

    .load-more-btn {
        padding: 6px 12px;
        font-size: 10px;
        min-width: 80px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .card-details { 
        grid-template-columns: 1fr; 
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 6px;
    }
    
    .pagination-pages {
        order: 1;
    }
    
    .pagination-btn {
        min-width: 32px;
    }
}