:root {
    /* Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);

    /* Neutral Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Section */
.header-section {
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.brand-text {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-image {
    height: 48px;
    width: 48px;
    margin-right: 0.75rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-image {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.7));
    transform: scale(1.08);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(99, 102, 241, 0.1);
}

.btn-nav-cta {
    background: var(--gradient-primary);
    color: var(--text-primary) !important;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

/* Advertisement Section */
.advertisement-section {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.ad-container {
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ad-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.ad-icon {
    font-size: 3rem;
    color: white;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.ad-text h3 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.ad-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

.btn-ad {
    background: white;
    color: #ec4899;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.main-content {
    padding: 0;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.main-content .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.main-content .row {
    flex: 1;
    margin: 0;
}

.section-header h1 {
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
}

/* List Cards */
.list-card {
    background: var(--bg-card);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    border-right: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.list-card:hover {
    background: rgba(99, 102, 241, 0.02);
}

.list-card-header {
    background: var(--gradient-primary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-card-header i {
    font-size: 1.25rem;
    color: white;
}

.list-card-header h3 {
    color: white;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
}

.search-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.75rem;
    width: 100%;
    max-width: 200px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* List Container */
.list-container {
    padding: 0.5rem;
    overflow-y: auto;
    height: calc(100vh - 200px);
    flex: 1;
    transition: opacity 0.3s ease;
}

.list-container.refreshing {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.list-container::-webkit-scrollbar {
    width: 8px;
}

.list-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.list-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.list-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* List Item */
.list-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.6rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.list-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.list-item.hidden {
    display: none;
}

/* Item Image */
.item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

/* Item Content */
.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.item-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.3rem;
}

.item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.item-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

.item-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

/* Item Data Columns */
.item-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.data-column {
    display: flex;
    flex-direction: column;
}

.data-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.15rem;
}

.data-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Custom Badges */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1e293b;
}

.bg-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #1e293b;
}

.bg-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a157 100%);
    color: white;
}

/* Footer */
.footer-section {
    background: var(--bg-secondary);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 2px solid rgba(99, 102, 241, 0.3);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 28px;
    width: 28px;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.3));
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .ad-content {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .table-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-header h1 {
        font-size: 2rem;
    }

    .ad-text h3 {
        font-size: 1.25rem;
    }

    .table-card-header h3 {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-card {
    animation: fadeIn 0.6s ease-out;
}

.list-card:nth-child(1) {
    animation-delay: 0.1s;
}

.list-card:nth-child(2) {
    animation-delay: 0.2s;
}

.list-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Item Actions (Top Right) */
.list-item {
    position: relative;
    /* Ensure absolute positioning works */
    padding-right: 80px;
    /* Make space for buttons so text doesn't overlap excessively if needed, though buttons are small */
}

.item-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.btn-action {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

.btn-action:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-copy-ca:active {
    transform: scale(0.95);
}

.btn-copy-ca i,
.btn-dex i {
    font-size: 0.7rem;
}

/* Toast Notification for Copy */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}