/* ============================================
   ROOT VARIABLES
   ============================================ */
:root.monitor-changes {
    --primary: #1a1a1a;
    --primary-dark: #000000;
    --primary-light: #D4AF37;
    --accent: linear-gradient(135deg, #1a1a1a 0%, #D4AF37 100%);
    --accent-special: linear-gradient(135deg, #1a1a1a 0%, #D4AF37 100%);
    --accent-hover: #000000;
    --gradient-main: linear-gradient(135deg, #1a1a1a 0%, #D4AF37 100%);
    --gradient-2: linear-gradient(135deg, #1a1a1a 0%, #D4AF37 100%);
    --btn-price: var(--global-btn-price);
    --btn-offer: var(--global-btn-offer);
    --btn-check: var(--global-btn-check);
    --primary-bg-1: rgba(26, 26, 26, 0.03);
    --primary-bg-2: rgba(212, 175, 55, 0.03);
    --hero-bg-1: rgba(26, 26, 26, 0.1);
    --hero-bg-2: rgba(212, 175, 55, 0.1);
    --hero-filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.3));
    --focus-shadow: 0 25px 50px rgba(212, 175, 55, 0.2), inset 0 0 0 2px rgba(26, 26, 26, 0.1);
}

/* ============================================
   BASE COMPONENTS
   ============================================ */
.monitor-changes .exclude-input {
    padding: 5px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.monitor-changes .exclude-input:focus {
    border-color: var(--primary);
}

.monitor-changes .dk-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.monitor-changes .dk-list-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.monitor-changes .dk-list-domain {
    flex: 0 0 180px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    word-break: break-all;
    line-height: 1.4;
}

.monitor-changes .dk-list-content {
    flex: 1;
    display: flex;
    gap: 30px;
    padding: 0 10px;
    font-weight: 500;
    color: var(--gray);
    font-size: var(--font-size-base);
    align-items: center;
    justify-content: center;
}

.monitor-changes .dk-list-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    font-weight: 600;
    justify-content: flex-end;
}

/* ============================================
   STATS BAR
   ============================================ */
.monitor-changes .stats-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.monitor-changes .stat-sep {
    margin: 0 15px;
    opacity: .5;
}

.monitor-changes .stat-highlight {
    color: #D4AF37;
    font-weight: 700;
}

/* ============================================
   FILTERS
   ============================================ */
.monitor-changes .filters-bar {
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: sticky;
    top: 60px;
    z-index: 100;
}

.monitor-changes .filters-bar-2 {
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: sticky;
    top: 115px;
    z-index: 99;
}

.monitor-changes .filters-sort-bar {
    background: transparent;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.monitor-changes .filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.monitor-changes .filter-label {
    color: var(--gray);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.monitor-changes .filter-btn {
    padding: 5px 14px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: .2s;
}

.monitor-changes .filter-btn.active {
    background: var(--gradient-main);
    color: #fff;
}

.monitor-changes .filter-btn:hover:not(.active) {
    border-color: var(--primary);
}

.monitor-changes .filter-btn.filter-locked {
    opacity: 0.4;
}

.monitor-changes .control-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.monitor-changes .reset-filters-btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.monitor-changes .reset-filters-btn:hover {
    background: var(--accent-hover);
}

/* ============================================
   CHANGES-SPECIFIC COLUMNS
   ============================================ */
.monitor-changes .dk-list-changes-combine {
    flex: 0 0 180px;
    font-weight: 500;
    color: #374151;
}

.monitor-changes .dk-list-changes-length {
    flex: 0 0 80px;
}

.monitor-changes .dk-list-changes-tlds {
    flex: 0 0 75px;
    font-weight: 700;
    color: #D4AF37;
}

.monitor-changes .dk-list-changes-reason {
    flex: 0 0 80px;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
}

.monitor-changes .dk-list-changes-detail {
    flex: 1;
    font-size: 12px;
    color: #6b7280;
    word-break: break-all;
    line-height: 1.4;
}

.monitor-changes .dk-list-changes-old {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
    word-break: break-all;
}

.monitor-changes .dk-list-changes-new {
    color: #374151;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-all;
}

/* ============================================
   BUTTONS
   ============================================ */
.monitor-changes .btn-action {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    flex: 1;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
    text-align: center;
    line-height: 1.5;
}

.monitor-changes .btn-action.check {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #fff;
    font-weight: 700;
}

.monitor-changes .btn-action.check:hover {
    background: linear-gradient(135deg, #B8860B 0%, #D4AF37 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.monitor-changes .btn-action:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

/* ============================================
   RESULTS
   ============================================ */
.monitor-changes .results-container {
    width: 100%;
    padding: 20px;
}

.monitor-changes .load-more-container {
    text-align: center;
    margin: 40px 0;
}

.monitor-changes .load-more-btn {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.monitor-changes .load-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.monitor-changes .load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.monitor-changes .back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: .3s;
    z-index: 999;
}

.monitor-changes .back-to-top.show {
    display: flex;
}

.monitor-changes .back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

/* ============================================
   STATES
   ============================================ */
.monitor-changes .no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--dark);
    font-size: 24px;
    font-weight: 600;
}

.monitor-changes .no-results-suggestion {
    margin-top: 20px;
    font-size: 16px;
    color: var(--gray);
    font-weight: 400;
    line-height: 1.5;
}

.monitor-changes .loading-initial {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.monitor-changes .rate-limit-error {
    text-align: center;
    padding: 60px 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .monitor-changes .dk-list-changes-reason {
        display: none;
    }
}

@media (max-width: 900px) {
    .monitor-changes .dk-list-changes-tlds {
        display: none;
    }
}

@media (max-width: 800px) {
    .monitor-changes .dk-list-card {
        flex-wrap: wrap;
        padding: 10px;
    }
    .monitor-changes .dk-list-domain {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        font-size: 14px;
    }
    .monitor-changes .dk-list-content {
        flex: 0 0 100%;
        order: 3;
        padding: 6px 0 0;
        gap: 0;
        justify-content: flex-start;
    }
    .monitor-changes .dk-list-changes-combine,
    .monitor-changes .dk-list-changes-length,
    .monitor-changes .dk-list-changes-tlds,
    .monitor-changes .dk-list-changes-reason {
        display: none;
    }
    .monitor-changes .dk-list-changes-detail {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }
    .monitor-changes .dk-list-actions {
        flex: 0 0 auto;
    }
    .monitor-changes .filters-bar,
    .monitor-changes .filters-bar-2 {
        gap: 15px;
        padding: 10px;
    }
    .monitor-changes .filters-sort-bar {
        padding: 8px 15px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .monitor-changes .filters-bar,
    .monitor-changes .filters-bar-2,
    .monitor-changes .filters-sort-bar {
        flex-direction: column;
        align-items: center;
    }
    .monitor-changes .filter-group {
        justify-content: center;
    }
    .monitor-changes .btn-action {
        font-size: 12px;
        padding: 6px 8px;
    }
}

@media (max-width: 500px) {
    .monitor-changes .dk-list-card {
        padding: 8px;
        margin-bottom: 6px;
    }
    .monitor-changes .dk-list-domain {
        font-size: 13px;
    }
    .monitor-changes .dk-list-content {
        display: none;
    }
    .monitor-changes .dk-list-actions {
        gap: 4px;
    }
    .monitor-changes .btn-action {
        font-size: 11px;
        padding: 5px 8px;
    }
}