/* --- SEO FOOTER --- */
.seo-footer {
    background-color: var(--bg-card);
    padding: 60px 0 40px 0;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.footer-col p {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-glow);
    padding-left: 5px;
}

.copyright-row {
    text-align: center;
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #111;
    color: #444;
    font-size: 0.85rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.copyright-row:hover {
    opacity: 1;
}

/* --- ELEMENTI UI GENERICI --- */
.btn-reset-filter {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
}

.btn-reset-filter:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.list-header {
    display: block;
    margin-bottom: 25px;
}

.success-icon-animated {
    width: 80px;
    height: 80px;
    background: rgba(74, 222, 128, 0.1);
    border: 2px solid #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    color: #4ade80;
    font-size: 40px;
    animation: scale-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.2);
}

/* --- FILTRI ORIZZONTALI --- */
.horizontal-mode-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.mode-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #94a3b8;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.mode-pill:hover {
    background: #1e293b;
    color: white;
    transform: translateY(-2px);
    border-color: #475569;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mode-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.mode-pill.active:hover {
    transform: none;
    filter: brightness(1.1);
}

.btn-cta-server {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-cta-server:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    filter: brightness(1.1);
}

.btn-cta-server.manage {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-cta-server.manage:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* --- PAGINAZIONE & DROPDOWN --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a.page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.pagination a.page-link:hover {
    background: #1e293b;
    color: white;
    transform: translateY(-2px);
}

.pagination a.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.custom-dropdown {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.dropdown-btn {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.dropdown-btn:hover {
    border-color: var(--primary);
    background: #15161a;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #15161a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    z-index: 50;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    font-size: 0.95rem;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: white;
    padding-left: 22px;
}

.dropdown-content a.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-glow);
    font-weight: 700;
    border-left: 3px solid var(--primary);
}

.dropdown-content::-webkit-scrollbar { width: 6px; }
.dropdown-content::-webkit-scrollbar-track { background: #000; }
.dropdown-content::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* --- RESPONSIVE LAYOUT & ADS --- */
.ads-left-container { min-height: 200px; }

@media (min-width: 1300px) { 
    .main-layout { grid-template-columns: 200px 1fr 280px !important; gap: 30px; } 
    .ads-left-container { display: block; } 
}

@media (max-width: 1299px) { 
    .ads-left-container { display: none; } 
}

@media (min-width: 1600px) {
    .main-layout { max-width: 1800px !important; gap: 50px; }
}

@media (max-width: 768px) {
    .horizontal-mode-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 15px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .horizontal-mode-filters::-webkit-scrollbar { display: none; }
    .mode-pill { flex-shrink: 0; font-size: 0.9rem; padding: 8px 18px; }
}