/* ===== Altcurrencyhelp Widgets (ach-*) ===== */
/* Loads AFTER bootstrap/site CSS — cascade order wins */

/* -- Social buttons fix -- */
.footer-social-icons {
    float: none;
    text-align: left;
    width: auto;
    margin: 0;
}
.footer-social-icons h4,
.footer-social-icons ._14 {
    color: #333;
}
.social-icons {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 10px;
}
.social-icons li {
    display: inline-block;
}

/* -- Tracker Widget -- */
.ach-tracker {
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1.25rem;
    margin: 1rem auto;
    max-width: 1200px;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.ach-tracker > .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.ach-tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.ach-tracker-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}
.ach-accent { color: #f7931a; }
.ach-tracker-updated {
    font-size: 1.1rem;
    color: #888;
}

.ach-tracker-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ach-tracker-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
    color: #000;
}
.ach-tracker-table thead {
    border-bottom: 1px solid rgba(0,0,0,0.15);
}
.ach-tracker-table th {
    text-align: left;
    padding: 0.5rem 0.6rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    white-space: nowrap;
}
.ach-tracker-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
    vertical-align: middle;
    color: #000;
}
.ach-tracker-table tbody tr:hover { background: rgba(0,0,0,0.03); }
.ach-tracker-table tbody tr:last-child td { border-bottom: none; }

.ach-col-rank { width: 30px; text-align: center; }
.ach-col-name { min-width: 130px; }
.ach-col-price { min-width: 90px; color: #000; }
th.ach-col-change, td.ach-col-change { min-width: 70px; text-align: right; }
th.ach-col-mcap, td.ach-col-mcap { min-width: 100px; text-align: right; color: #000; }
.ach-col-chart { width: 120px; text-align: center; }

.ach-coin-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.ach-coin-icon { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.ach-coin-symbol {
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    font-size: 1.1rem;
    width: 55px;
    flex-shrink: 0;
    margin-right: 0.25rem;
}
.ach-coin-name {
    font-weight: 400;
    color: #666;
    font-size: 1.1rem;
    text-decoration: none;
}
.ach-coin-name:hover {
    color: #f7931a;
    text-decoration: underline;
}

.ach-change-up { color: #00a86b; font-weight: 600; }
.ach-change-down { color: #e0342e; font-weight: 600; }

.ach-sparkline-canvas { display: block; }

.ach-loading-cell {
    text-align: center;
    padding: 2rem;
    color: #888;
}
.ach-error-msg { color: #e0342e; }

.ach-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid #ccc;
    border-top-color: #f7931a;
    border-radius: 50%;
    animation: ach-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.35rem;
}
@keyframes ach-spin { to { transform: rotate(360deg); } }

/* -- RSS Feeds -- */
.ach-feeds-wrap {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}
.ach-feeds-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ach-feed-card {
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ach-feed-header {
    border-bottom: 1px solid #333;
    color: #000;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 700;
}
.ach-feed-header a {
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}
.ach-feed-header a:hover { color: #555; }

.ach-feed-body {
    flex: 1;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.ach-feed-body::-webkit-scrollbar { width: 4px; }
.ach-feed-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.ach-feed-loading {
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9375rem;
}

.ach-feed-item {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.ach-feed-item:last-child { border-bottom: none; }
.ach-feed-item:hover { background: rgba(0,0,0,0.03); }

.ach-feed-item-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    margin-bottom: 0.15rem;
    line-height: 1.4;
    text-decoration: none;
}
.ach-feed-item-title:hover { color: #f7931a; }

.ach-feed-item-date {
    font-size: 0.7rem;
    color: #999;
    margin-bottom: 0.2rem;
}

.ach-feed-item-desc {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.5;
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .ach-feeds-row { grid-template-columns: 1fr; }
    .ach-tracker-header h2 { font-size: 1.1rem; }
    .ach-tracker { padding: 0.75rem; }
}

/* -- Dark Mode Toggle Button -- */

