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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e6edf3;
    background-color: #0d1117;
    min-height: 100vh;
    overflow-x: hidden;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(13, 17, 23, 0.90), rgba(13, 17, 23, 0.97)), url('bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.code, .code-input {
    font-family: 'IBM Plex Mono', monospace;
}

.topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-inner {
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.logo-svg {
    width: 22px;
    height: 22px;
}

.logo-text .title {
    font-size: 1.15rem;
    font-weight: 700;
    display: block;
    letter-spacing: -0.01em;
}

.logo-text .sub {
    font-size: 0.7rem;
    color: #38bdf8;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.cluster-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    color: #38bdf8;
}

.pulse-beacon {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    animation: flash 1.6s infinite ease-in-out;
}

@keyframes flash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.content {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.banner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.banner-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.banner h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.banner p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.6;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.metric-card {
    background: rgba(22, 27, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.4rem;
    backdrop-filter: blur(10px);
}

.metric-head {
    font-size: 0.8rem;
    color: #8b949e;
    text-transform: uppercase;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 0.5rem;
}

.metric-num {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 0.4rem;
}

.metric-num .unit {
    font-size: 0.9rem;
    color: #38bdf8;
}

.metric-foot {
    font-size: 0.78rem;
    color: #64748b;
}

.panel-section {
    background: rgba(22, 27, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header h2 {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 600;
}

.panel-filter input {
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.55rem 1rem;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    width: 250px;
}

.panel-filter input:focus {
    border-color: #38bdf8;
}

.table-wrap {
    overflow-x: auto;
}

.stream-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stream-table th {
    text-align: left;
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #8b949e;
    font-family: 'IBM Plex Mono', monospace;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tag-ok {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
}

.auth-wrap {
    display: flex;
    justify-content: center;
}

.login-box {
    background: rgba(22, 27, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.2rem;
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(14px);
}

.login-header h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.login-header p {
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 1.5rem;
}

.notice-msg {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.notice-msg.alert-err {
    display: block;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.field-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.field-block label {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
}

.code-input {
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

.code-input:focus {
    border-color: #38bdf8;
}

.action-btn {
    width: 100%;
    padding: 0.8rem;
    background: #0284c7;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.action-btn:hover {
    background: #0369a1;
}

.bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 17, 23, 0.85);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.quick-links {
    display: flex;
    gap: 1.5rem;
}

.quick-links a {
    color: #64748b;
    text-decoration: none;
}

.quick-links a:hover {
    color: #94a3b8;
}