* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,140,255,0.22), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(170,0,255,0.18), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(0,180,255,0.14), transparent 30%),
        linear-gradient(180deg, #050816 0%, #090f25 45%, #050816 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 50px;
}

.screen {
    background: rgba(10, 18, 40, 0.72);
    border: 1px solid rgba(90, 160, 255, 0.35);
    border-radius: 22px;
    padding: 22px;
    box-shadow:
        0 0 0 1px rgba(80, 180, 255, 0.08) inset,
        0 0 22px rgba(0, 120, 255, 0.18),
        0 0 55px rgba(150, 0, 255, 0.10);
    backdrop-filter: blur(10px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.brand {
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(0,170,255,0.4);
}

.top-actions {
    display: flex;
    gap: 10px;
}

.panel-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0,170,255,0.4);
}

.panel-subtitle {
    color: #a8b7e0;
    margin-bottom: 22px;
    line-height: 1.5;
}

.monitor-form label {
    display: block;
    font-size: 14px;
    color: #b5c8ff;
    margin-bottom: 8px;
}

.monitor-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    border: 1px solid rgba(96, 147, 255, 0.35);
    background: rgba(6, 12, 30, 0.78);
    color: #fff;
    outline: none;
}

.btn-primary {
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(90deg, #1697ff, #6f46ff);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn-small {
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
}

.btn-red {
    background: linear-gradient(90deg, #ff4b5f, #d93030);
}

.feed-link {
    color: #67c6ff;
    text-decoration: none;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 460px;
}

.error-box {
    background: rgba(255, 60, 60, 0.12);
    color: #ff9a9a;
    border: 1px solid rgba(255, 90, 90, 0.3);
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.monitor-select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
    border: 1px solid rgba(96, 147, 255, 0.35);
    background: rgba(6, 12, 30, 0.78);
    color: #fff;
    outline: none;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(90, 120, 220, 0.18);
}

.status-on,
.status-off {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-on {
    background: rgba(0, 255, 163, 0.12);
    color: #58ffc2;
    border: 1px solid rgba(0, 255, 163, 0.28);
}

.status-off {
    background: rgba(255, 90, 90, 0.12);
    color: #ff8d8d;
    border: 1px solid rgba(255, 90, 90, 0.28);
}

.empty-row {
    text-align: center;
    color: #9fb2e9;
    padding: 26px 10px;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feed-item {
    background: rgba(7, 14, 33, 0.72);
    border: 1px solid rgba(89, 145, 255, 0.18);
    border-radius: 16px;
    padding: 16px;
}

.offer-card {
    display: flex;
    gap: 15px;
    align-items: center;
}

.offer-img {
    width: 120px;
    min-width: 120px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f1730;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-noimg {
    font-size: 12px;
    color: #7fa4ff;
}

.offer-content {
    flex: 1;
}

.offer-price {
    color: #6dffb3;
    font-weight: 700;
    margin-top: 6px;
    margin-bottom: 6px;
}