:root{
 --bg:#f5f6fa;
 --white:#fff;
 --text:#182236;
 --muted:#778195;
 --border:#e5e8ef;
 --primary:#253d70;
 --red:#c9213d;
}
*{box-sizing:border-box}
body{
 margin:0;
 background:var(--bg);
 color:var(--text);
 font-family:Inter,Arial,sans-serif;
 font-size:14px;
 line-height:1.6;
}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
.sidebar{
 width:245px;
 position:fixed;
 top:0;bottom:0;left:0;
 background:#fff;
 border-right:1px solid var(--border);
 padding:26px 16px;
 overflow:auto;
 z-index:100;
}
.logo{
 font-size:26px;
 font-weight:900;
 letter-spacing:-1.2px;
 padding:0 10px;
}
.logo span{color:var(--red)}
.workspace{
 color:var(--muted);
 font-size:10px;
 font-weight:700;
 letter-spacing:1.5px;
 margin:28px 10px 14px;
}
nav a{
 display:block;
 padding:10px 15px;
 margin:3px 0;
 color:#596579;
 border-radius:7px;
 font-weight:500;
}
nav a:hover,nav a.active{
 background:#edf1f8;
 color:var(--primary);
 text-decoration:none;
}
nav a.active{font-weight:700}
.logout{margin-top:25px}
.logout button{width:100%}
.workspace-main{margin-left:245px}
.topbar{
 background:white;
 height:72px;
 display:flex;
 align-items:center;
 justify-content:space-between;
 padding:0 30px;
 border-bottom:1px solid var(--border);
}
main{padding:30px;max-width:1600px;margin:auto}
.page-heading{
 display:flex;
 justify-content:space-between;
 align-items:center;
 gap:20px;
 margin-bottom:26px;
}
.eyebrow{
 color:var(--red);
 font-size:10px;
 font-weight:700;
 letter-spacing:2px;
 margin:0;
}
h1{font-size:30px;margin:5px 0;letter-spacing:-.8px}
h2{font-size:17px;margin:0 0 20px}
.muted{color:var(--muted)}
.panel{
 background:white;
 border:1px solid var(--border);
 border-radius:12px;
 padding:24px;
 margin-bottom:20px;
 box-shadow:0 3px 14px rgba(30,45,70,.025);
}
.stats{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:18px;
}
.stat strong{
 display:block;
 font-size:36px;
 margin-top:10px;
 letter-spacing:-1px;
}
.dashboard-grid{
 display:grid;
 grid-template-columns:1.2fr 1fr;
 gap:20px;
}
.detail{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;
 padding:13px 0;
 border-bottom:1px solid var(--border);
}
.detail:last-of-type{margin-bottom:20px}
button,.button{
 display:inline-block;
 background:var(--primary);
 color:white;
 border:1px solid var(--primary);
 padding:10px 18px;
 border-radius:7px;
 font:inherit;
 cursor:pointer;
 text-decoration:none;
}
button:hover,.button:hover{
 opacity:.9;
 text-decoration:none;
}
.secondary{
 background:white;
 color:var(--primary);
 border-color:var(--border);
}
.danger{background:var(--red);border-color:var(--red)}
input,textarea,select{
 font:inherit;
 color:var(--text);
 background:white;
 border:1px solid #dce1eb;
 border-radius:7px;
 padding:11px 13px;
 max-width:100%;
}
input:focus,textarea:focus,select:focus{
 outline:2px solid #b5c6e8;
}
textarea{resize:vertical}
.editor label,.login-card label{
 display:block;
 font-weight:600;
 margin:15px 0 6px;
}
.editor input:not([type=checkbox]),
.editor textarea,.editor select,
.login-card input{width:100%}
.editor h2{margin-top:25px}
.editor button{margin-top:20px}
.check{
 display:flex!important;
 align-items:center;
 gap:10px;
}
.filters{
 display:flex;
 align-items:center;
 gap:10px;
 flex-wrap:wrap;
}
.filters input:not([type=hidden]){flex:1;min-width:180px}
.table-wrap{overflow-x:auto;margin-bottom:20px}
table{
 width:100%;
 border-collapse:collapse;
 text-align:left;
}
th{
 background:#f7f8fb;
 color:#687487;
 font-size:11px;
 text-transform:uppercase;
 letter-spacing:.5px;
}
td,th{padding:14px;border-bottom:1px solid var(--border)}
td{min-width:65px}
td small{display:block;color:var(--muted);margin-top:5px}
.tag{
 display:inline-block;
 background:#eef1f6;
 color:#53617b;
 border-radius:5px;
 padding:4px 9px;
 font-size:11px;
 text-transform:capitalize;
}
.actions{white-space:nowrap}
.actions a{margin-right:12px}
.pagination{
 display:flex;
 justify-content:center;
 align-items:center;
 gap:20px;
}
.pagination a{
 border:1px solid var(--border);
 padding:7px 14px;
 border-radius:6px;
}
.error,.notice{
 padding:14px;
 border-radius:8px;
 margin-bottom:20px;
}
.error{background:#fff0f2;color:#a51d35}
.notice{background:#edf2fc;color:#253d70}
footer{text-align:center;color:var(--muted);padding:20px}
.login-wrap{
 min-height:100vh;
 display:grid;
 place-items:center;
 padding:20px;
}
.login-card{width:420px;max-width:100%;padding:35px}
.login-card button{width:100%;margin-top:20px}
.mobile-toggle{display:none}
@media(max-width:1100px){
 .stats{grid-template-columns:repeat(2,1fr)}
 .dashboard-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
 .sidebar{display:none;width:240px;box-shadow:0 0 40px #0002}
 .menu-open .sidebar{display:block;top:65px}
 .workspace-main{margin-left:0}
 .mobile-toggle{display:inline-block}
 .topbar{padding:0 15px;height:65px}
 main{padding:15px}
 .panel{padding:16px}
 .page-heading{align-items:flex-start}
 h1{font-size:24px}
 .stats{gap:10px}
 .stat strong{font-size:28px}
}

.live-heading{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;
 margin-bottom:20px;
}
.live-heading h2{margin:0}
#live-status{
 font-size:11px;
 color:#53627b;
}
.live-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:15px;
}
.live-card{
 background:#f8faff;
 border:1px solid #e2e7f1;
 border-radius:10px;
 padding:20px;
}
.live-card span{
 font-size:12px;
 color:#65728a;
}
.live-card strong{
 display:block;
 font-size:34px;
 color:#20365c;
 margin-top:8px;
}
.live-details{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:20px;
 margin-top:25px;
}
.live-details>div{
 border:1px solid #e5e8ef;
 padding:18px;
 border-radius:10px;
}
.live-row{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;
 padding:12px 0;
 border-bottom:1px solid #edf0f5;
}
.live-row strong{
 background:#edf1fa;
 padding:5px 12px;
 border-radius:6px;
}
@media(max-width:850px){
 .live-grid{grid-template-columns:repeat(2,1fr)}
 .live-details{grid-template-columns:1fr}
}

/* ==========================================
   NEWSMIND PREMIUM LOGIN DESIGN
========================================== */

body:has(.login-wrap) {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background: #f3f5fa !important;
    color: #14213b;
    font-family: Inter, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", sans-serif;
}

.login-wrap {
    min-height: 100vh !important;
    width: 100%;
    box-sizing: border-box;
    padding: 55px 24px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(ellipse at 10% 10%, #e6edff 0, transparent 38%),
        radial-gradient(ellipse at 90% 90%, #e8eefa 0, transparent 35%),
        #f4f6fb !important;
}

.login-shell {
    width: 100%;
    max-width: 1050px;
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(23, 43, 77, .12),
                0 5px 18px rgba(23, 43, 77, .04);
}

.login-brand {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 48px 46px 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        radial-gradient(ellipse at 80% 75%, rgba(48, 104, 203, .36), transparent 48%),
        linear-gradient(145deg, #101d38 0%, #142b50 55%, #193b68 100%);
}

.login-brand::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 390px;
    height: 390px;
    right: -175px;
    top: 125px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255,255,255,.025),
                0 0 0 75px rgba(255,255,255,.02),
                0 0 0 120px rgba(255,255,255,.015);
}

.brand-logo {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #fff;
}

.brand-logo span {
    color: #ff526f;
}

.brand-logo i {
    color: #ff526f;
    font-style: normal;
}

.brand-content {
    position: relative;
    z-index: 2;
    margin: 35px 0;
}

.brand-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #b9c9e3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 27px;
}

.brand-dot {
    width: 7px;
    height: 7px;
    background: #45d5ad;
    border-radius: 50%;
    box-shadow: 0 0 12px #45d5ad;
}

.brand-content h2 {
    font-size: clamp(36px, 4vw, 53px);
    line-height: 1.13;
    letter-spacing: -2.4px;
    font-weight: 800;
    margin: 0 0 23px;
    color: #fff;
}

.brand-content h2 span {
    color: #ff647e;
}

.brand-content p {
    max-width: 355px;
    color: #bdcbe0;
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

.brand-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #93a9c8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.login-main {
    padding: 43px 55px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.login-top {
    display: flex;
    justify-content: flex-end;
}

.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.secure-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #26b987;
}

.login-form-area {
    width: 100%;
    max-width: 360px;
    margin: 45px auto;
}

.login-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #edf2ff;
    color: #294d91;
    margin-bottom: 26px;
}

.login-icon svg {
    width: 23px;
    height: 23px;
}

.login-heading {
    color: #15243d;
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -1.7px;
    line-height: 1.2;
}

.login-heading span {
    color: #e54867;
}

.login-subtitle {
    margin: 12px 0 38px;
    color: #8290a4;
    font-size: 13px;
    line-height: 1.7;
}

.premium-login-form label {
    display: block;
    margin-bottom: 11px;
    color: #35445c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.password-field {
    height: 55px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #fbfcfe;
    transition: .2s ease;
}

.password-field:focus-within {
    border-color: #5278c3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(64, 105, 184, .10);
}

.password-field svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #8b9bb3;
}

.password-field input {
    width: 100%;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #172943;
    font-size: 13px;
    padding: 0 !important;
}

.password-field input::placeholder {
    color: #a3afc0;
}

.premium-login-form button {
    width: 100%;
    height: 55px;
    margin-top: 22px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(105deg, #203c70, #31599b);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(36, 68, 120, .17);
    transition: .2s ease;
}

.premium-login-form button:hover {
    transform: translateY(-2px);
    background: linear-gradient(105deg, #172f5e, #294d8c);
    box-shadow: 0 12px 24px rgba(36, 68, 120, .25);
}

.login-arrow {
    font-size: 21px;
    font-weight: 400;
}

.login-security {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    color: #8c99aa;
    font-size: 10px;
}

.login-security svg {
    width: 16px;
    height: 16px;
    color: #26a982;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: -18px 0 22px;
    border: 1px solid #ffd9df;
    border-radius: 9px;
    background: #fff3f5;
    color: #bd344d;
    font-size: 12px;
}

.login-error span {
    font-weight: 900;
}

.login-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #a0aaba;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
}

@media (max-width: 760px) {
    .login-wrap {
        padding: 18px !important;
    }

    .login-shell {
        max-width: 440px;
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .login-brand {
        min-height: 235px;
        padding: 27px 27px 22px;
    }

    .brand-content {
        margin: 30px 0 25px;
    }

    .brand-content h2 {
        font-size: 34px;
    }

    .brand-content p {
        font-size: 12px;
    }

    .login-main {
        padding: 27px;
        min-height: 440px;
    }

    .login-form-area {
        margin: 30px auto;
    }

    .login-heading {
        font-size: 30px;
    }
}

@media (max-width: 380px) {
    .login-wrap {
        padding: 10px !important;
    }

    .login-main {
        padding: 22px 19px;
    }

    .brand-footer {
        font-size: 8px;
    }
}

