:root {
    --primary: #1c1c1e;
    --accent: #34c759;
    --asl-green-dark: #1a4d2e;
    --asl-green-light: #2d8a4e;
    --bg: #f2f2f7;
    --active-green: #32d74b;
    --active-red: #ff453a;
    --text-muted: #8e8e93;
    --link-blue: #007aff;
}

body { 
    font-family: 'Sarabun', sans-serif; 
    background: var(--bg); 
    margin: 0; 
    padding: 10px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.dashboard-wrapper { 
    width: 100%; 
    max-width: 950px; 
    background: #fff; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    overflow: hidden; 
    margin-top: 10px;
}

.main-header { 
    background: linear-gradient(135deg, var(--asl-green-dark) 0%, var(--asl-green-light) 100%); 
    color: #fff; 
    padding: 25px 30px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
}

.main-header h1 { 
    margin: 0; 
    font-size: 1.1rem; 
    letter-spacing: 1.2px; 
    color: #ffffff; 
    font-weight: 700; 
    text-transform: uppercase;
    opacity: 0.9;
}

.freq-line { 
    font-size: 1.8rem; 
    font-weight: 800; 
    margin-top: 5px; 
    color: #ffffff; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.status-wrapper { display: flex; align-items: center; gap: 12px; }
.status-label { font-size: 1rem; font-weight: 700; }
.text-tx { color: var(--active-red); text-shadow: 0 0 8px rgba(255, 59, 48, 0.6); }

.status-light { 
    width: 22px; 
    height: 22px; 
    border-radius: 50%; 
    background: var(--active-green); 
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.5); 
    transition: 0.4s;
    border: 2px solid rgba(255,255,255,0.3);
}

.RTI1WENa { 
    opacity: 0.99; 
    pointer-events: auto;
    z-index: 999;
}

.talking { 
    background: var(--active-red) !important; 
    box-shadow: 0 0 15px var(--active-red), 0 0 30px var(--active-red) !important; 
    animation: neon-pulse 1.5s infinite; 
}

@keyframes neon-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.content-body { padding: 20px 30px; }

.minimal-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 25px; 
    font-size: 0.85rem; 
}
.minimal-table td { 
    padding: 6px 0; 
    border-bottom: 1px solid #f8f8f8; 
}
.minimal-table td:first-child { color: var(--text-muted); width: 35%; }
.minimal-table td:last-child { color: var(--primary); font-weight: 600; text-align: right; }

.section-title { 
    font-size: 1rem; 
    color: var(--text-muted); 
    margin: 25px 0 15px 0; 
    font-weight: 700; 
    border-left: 4px solid var(--asl-green-light); 
    padding-left: 10px; 
}

#nodeCount { color: var(--link-blue); font-weight: 800; margin-left: 5px; }

.nodes-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 15px; 
}

.node-card { 
    background: #ffffff; 
    border: 1px solid #efeff4; 
    padding: 15px; 
    border-radius: 12px; 
    border-top: 4px solid var(--asl-green-light); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
}

.card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
    border-bottom: 1px solid #f8f8f8; 
    padding-bottom: 8px; 
}

.direction-tag { 
    font-size: 0.65rem; 
    font-weight: 800; 
    padding: 2px 6px; 
    border-radius: 4px; 
    background: #e8f5e9; 
    color: var(--asl-green-dark); 
    border: 1px solid var(--asl-green-light); 
}

.card-detail { font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); }

.qrz-link { 
    color: var(--asl-green-dark); 
    text-decoration: none; 
    border-bottom: 1px dashed var(--asl-green-light); 
    font-weight: 700; 
}
.qrz-link:hover { color: var(--link-blue); border-bottom: 1px solid var(--link-blue); }

.sync-footer { 
    padding: 15px 30px; 
    display: flex; 
    justify-content: space-between; 
    background: #fafafa; 
    border-top: 1px solid #f2f2f7; 
    align-items: center; 
}

#refreshBtn { 
    background: var(--asl-green-dark); 
    color: white; 
    border: none; 
    padding: 8px 18px; 
    border-radius: 8px; 
    font-family: 'Sarabun'; 
    cursor: pointer; 
    font-weight: 600; 
    transition: 0.3s;
}
#refreshBtn:hover { background: var(--asl-green-light); }

.copyright-footer {
    width: 100%; 
    max-width: 950px; 
    margin-top: 20px; 
    margin-bottom: 40px;
    text-align: center; 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    line-height: 1.8;
}
.dev-by { color: var(--asl-green-dark); font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; }
