/* ═══════════════════════════════════════════════════════════
   VSK NAGPUR CMS — MASTER STYLESHEET
═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: #1a1a2e; background: #f0f2f5; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── CSS VARIABLES ── */
:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #fdecea;
  --secondary: #FF6B00;
  --accent: #f39c12;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --dark3: #0f3460;
  --text: #2c2c2c;
  --muted: #6c757d;
  --bg: #f0f2f5;
  --white: #ffffff;
  --border: #e0e0e0;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 15px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.13);
  --transition: all 0.25s ease;
  --sidebar-w: 260px;
  /* Status colors */
  --pub: #27ae60; --pub-bg: #eafaf1;
  --pen: #e67e22; --pen-bg: #fef5e7;
  --dft: #7f8c8d; --dft-bg: #f5f5f5;
  --rej: #c0392b; --rej-bg: #fdecea;
}

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── UTILITY ── */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ════════════════════════════════════════
   PUBLIC SITE
════════════════════════════════════════ */

/* TOP BAR */
.top-bar { background: var(--dark); color: #bbb; font-size: 0.78rem; padding: 6px 0; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; }
.top-social { display: flex; gap: 12px; }
.top-social a { color: #999; transition: var(--transition); display: flex; align-items: center; }
.top-social a:hover { color: var(--secondary); }

/* SITE HEADER */
.site-header { background: var(--white); padding: 14px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 200; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 48px; height: 48px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; font-weight: 700; font-family: serif; flex-shrink: 0; }
.brand-text-wrap .brand-title { font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.brand-text-wrap .brand-sub { font-size: 0.8rem; color: var(--secondary); font-weight: 600; }
.search-form { display: flex; border: 2px solid var(--border); border-radius: 30px; overflow: hidden; transition: var(--transition); }
.search-form:focus-within { border-color: var(--primary); }
.search-input { border: none; outline: none; padding: 9px 16px; font-size: 0.88rem; min-width: 200px; background: #fafafa; }
.search-btn { border: none; background: var(--primary); color: white; padding: 9px 14px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; }
.search-btn:hover { background: var(--primary-dark); }

/* MAIN NAV */
.main-nav { background: var(--primary); position: relative; z-index: 190; }
.nav-inner { display: flex; align-items: center; }
.nav-list { display: flex; }
.nav-list > li > a { display: block; color: white; padding: 12px 15px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; transition: var(--transition); }
.nav-list > li > a:hover, .nav-list > li > a.active { background: var(--primary-dark); }
.has-dd:hover .dd-menu { display: block; }
.dd-menu { display: none; position: absolute; top: 100%; min-width: 170px; background: white; box-shadow: var(--shadow-hover); border-radius: 0 0 var(--radius) var(--radius); z-index: 300; }
.dd-menu a { display: block; padding: 10px 16px; color: var(--text); font-size: 0.85rem; border-bottom: 1px solid var(--border); transition: var(--transition); }
.dd-menu a:hover { color: var(--primary); background: var(--bg); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

/* TICKER */
.ticker-wrap { background: var(--accent); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; }
.ticker-label { background: var(--primary); color: white; padding: 6px 14px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; }
.ticker-text { display: inline-block; white-space: nowrap; font-size: 0.8rem; font-weight: 600; color: #1a1a1a; padding: 6px 0; animation: scroll-ticker 28s linear infinite; }
@keyframes scroll-ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* PAGE LAYOUT */
.page-body { padding: 28px 0 50px; }
.two-col { display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start; }
.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--primary); padding-bottom: 10px; margin-bottom: 20px; }
.section-title { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; padding-left: 12px; border-left: 4px solid var(--primary); color: var(--dark); }
.view-all { font-size: 0.8rem; color: var(--primary); font-weight: 700; padding: 4px 12px; border: 1.5px solid var(--primary); border-radius: 20px; transition: var(--transition); }
.view-all:hover { background: var(--primary); color: white; }

/* HERO */
.hero { margin-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 3px; border-radius: var(--radius); overflow: hidden; }
.hero-main { position: relative; height: 440px; overflow: hidden; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hero-main:hover img { transform: scale(1.04); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 55%, transparent); }
.hero-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 20px; color: white; }
.hero-info h2 { font-size: 1.3rem; font-weight: 800; line-height: 1.3; margin: 8px 0; }
.hero-info p { font-size: 0.83rem; opacity: 0.85; }
.hero-meta { font-size: 0.75rem; opacity: 0.7; margin-top: 8px; display: flex; gap: 14px; }
.hero-side { display: flex; flex-direction: column; gap: 3px; background: #f5f5f5; }
.side-card { display: flex; gap: 10px; background: white; padding: 12px; flex: 1; transition: var(--transition); }
.side-card:hover { transform: translateX(4px); }
.side-thumb { width: 80px; height: 65px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.side-thumb-placeholder { width: 80px; height: 65px; background: #f0f0f0; border-radius: 4px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.side-body h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--dark); margin: 4px 0; }
.side-body h3:hover { color: var(--primary); }
.hero-no-img { background: linear-gradient(135deg, var(--primary), var(--secondary)); }

/* ARTICLE CARDS */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-bottom: 24px; }
.art-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img { height: 175px; overflow: hidden; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.art-card:hover .card-img img { transform: scale(1.06); }
.card-img-empty { height: 175px; background: linear-gradient(135deg, #f5f5f5, #e8e8e8); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #ccc; }
.card-body { padding: 14px; }
.card-title { font-size: 0.93rem; font-weight: 700; color: var(--dark); line-height: 1.4; margin: 6px 0 8px; }
.art-card:hover .card-title { color: var(--primary); }
.card-excerpt { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.card-meta-row { font-size: 0.73rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.cat-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.cat-news    { background: #e8f4fd; color: #1a6bb5; }
.cat-views   { background: #fef5e7; color: #c0712d; }
.cat-personality { background: #e8f8f5; color: #1a8a6b; }
.cat-interview   { background: #f4ecf7; color: #7d3c98; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sw { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sw-title { background: var(--primary); color: white; padding: 10px 16px; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.sw-body { padding: 14px; }
.recent-list { display: flex; flex-direction: column; gap: 12px; }
.recent-item { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.recent-text a { font-size: 0.8rem; font-weight: 600; color: var(--dark); line-height: 1.3; display: block; margin-bottom: 3px; }
.recent-text a:hover { color: var(--primary); }
.cat-list a { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.85rem; color: var(--text); border-bottom: 1px solid var(--border); transition: var(--transition); }
.cat-list a:last-child { border-bottom: none; }
.cat-list a:hover { color: var(--primary); padding-left: 4px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tg { padding: 4px 10px; background: #f0f0f0; border-radius: 20px; font-size: 0.73rem; font-weight: 600; color: var(--text); border: 1.5px solid var(--border); transition: var(--transition); }
.tg:hover { background: var(--primary); color: white; border-color: var(--primary); }
.sidebar-search { display: flex; flex-direction: column; gap: 8px; }
.sidebar-search input { border: 1.5px solid var(--border); border-radius: 6px; padding: 8px 11px; font-size: 0.87rem; outline: none; width: 100%; transition: var(--transition); }
.sidebar-search input:focus { border-color: var(--primary); }
.sidebar-search button { background: var(--primary); color: white; border: none; border-radius: 6px; padding: 9px; cursor: pointer; font-weight: 700; font-size: 0.85rem; transition: var(--transition); }
.sidebar-search button:hover { background: var(--primary-dark); }

/* SINGLE ARTICLE */
.article-wrap { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 28px; }
.art-title { font-size: 1.65rem; font-weight: 800; line-height: 1.3; color: var(--dark); margin: 10px 0 6px; }
.art-title-hi { font-size: 1rem; color: var(--muted); margin-bottom: 14px; }
.art-meta-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 20px; font-size: 0.8rem; color: var(--muted); }
.share-btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { padding: 4px 11px; border-radius: 4px; font-size: 0.73rem; font-weight: 700; color: white; }
.sh-fb { background: #1877f2; } .sh-tw { background: #1da1f2; } .sh-wa { background: #25d366; }
.art-feat-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.art-feat-img img { width: 100%; max-height: 480px; object-fit: cover; }
.art-body { font-size: 1rem; line-height: 1.9; color: var(--text); }
.art-body p { margin-bottom: 16px; }
.art-body h2, .art-body h3 { font-size: 1.1rem; font-weight: 700; margin: 22px 0 10px; color: var(--dark); }
.art-body ul, .art-body ol { padding-left: 24px; margin-bottom: 16px; }
.art-body li { margin-bottom: 6px; }
.art-tags { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* BREADCRUMB */
.breadcrumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* PAGE HEADER BANNER */
.page-banner { background: linear-gradient(135deg, var(--dark), var(--dark3)); color: white; padding: 22px 0 20px; margin-bottom: 28px; }
.page-banner h1 { font-size: 1.5rem; font-weight: 800; }
.page-banner p { font-size: 0.88rem; opacity: 0.75; margin-top: 4px; }

/* FOOTER */
.site-footer { background: var(--dark); color: #ccc; padding: 44px 0 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 28px; margin-bottom: 32px; }
.footer-brand-title { font-size: 1rem; color: white; font-weight: 700; margin-bottom: 10px; }
.footer-brand-desc { font-size: 0.83rem; color: #aaa; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 0.85rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); color: white; }
.footer-h { color: white; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.footer-links a { display: block; font-size: 0.82rem; color: #aaa; padding: 5px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--secondary); padding-left: 6px; }
.footer-bar { background: rgba(0,0,0,0.3); padding: 12px 0; margin-top: 0; }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-bar p { font-size: 0.78rem; color: #666; }

/* ════════════════════════════════════════
   AUTH (LOGIN PAGE)
════════════════════════════════════════ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 50%, #1a1a2e 100%); padding: 20px; position: relative; overflow: hidden; }
.auth-wrap::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.auth-card { background: white; border-radius: 16px; padding: 44px 40px; width: 100%; max-width: 440px; box-shadow: 0 25px 60px rgba(0,0,0,0.35); position: relative; z-index: 1; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon { width: 68px; height: 68px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: white; margin: 0 auto 12px; font-family: serif; }
.auth-logo h1 { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.auth-logo p { font-size: 0.85rem; color: var(--muted); margin-top: 3px; }
.auth-subtitle { text-align: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; padding-top: 4px; border-top: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control { width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; outline: none; transition: var(--transition); font-family: inherit; background: #fafafa; }
.form-control:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }
.form-control::placeholder { color: #bbb; }
.input-icon-wrap { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #bbb; font-size: 1rem; }
.input-icon-wrap .form-control { padding-left: 38px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 22px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; transition: var(--transition); font-family: inherit; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(192,57,43,0.35); }
.btn-secondary { background: #f0f0f0; color: var(--text); }
.btn-secondary:hover { background: #e0e0e0; }
.btn-success { background: var(--pub); color: white; }
.btn-success:hover { background: #1a8a4a; }
.btn-danger { background: var(--rej); color: white; }
.btn-danger:hover { background: var(--primary-dark); }
.btn-warning { background: var(--pen); color: white; }
.btn-warning:hover { background: #d35400; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 6px 13px; font-size: 0.8rem; }
.btn-xs { padding: 4px 10px; font-size: 0.74rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; width: 34px; height: 34px; }
.alert { padding: 11px 15px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.alert-error { background: var(--rej-bg); color: var(--rej); border: 1px solid rgba(192,57,43,0.25); }
.alert-success { background: var(--pub-bg); color: var(--pub); border: 1px solid rgba(39,174,96,0.25); }
.alert-info { background: #e8f4fd; color: #1a6bb5; border: 1px solid rgba(26,107,181,0.25); }
.alert-warning { background: var(--pen-bg); color: var(--pen); border: 1px solid rgba(230,126,34,0.25); }
.auth-hint { background: #f8f8f8; border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 20px; font-size: 0.78rem; color: var(--muted); border: 1px dashed var(--border); }
.auth-hint strong { color: var(--text); display: block; margin-bottom: 4px; }
.auth-hint code { background: #eee; padding: 1px 5px; border-radius: 3px; font-size: 0.75rem; }

/* ════════════════════════════════════════
   ADMIN / SUPERUSER / WRITER PANEL
════════════════════════════════════════ */

/* PANEL LAYOUT */
.panel-wrap { display: flex; min-height: 100vh; }
.panel-sidebar { width: var(--sidebar-w); background: var(--dark); color: white; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 500; transition: var(--transition); overflow-y: auto; }
.panel-main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.panel-topbar { background: white; padding: 0 24px; height: 62px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 8px rgba(0,0,0,0.07); position: sticky; top: 0; z-index: 100; }
.panel-content { padding: 24px; flex: 1; }

/* SIDEBAR HEADER */
.sb-brand { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sb-logo { display: flex; align-items: center; gap: 10px; }
.sb-logo-icon { width: 38px; height: 38px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; font-family: serif; flex-shrink: 0; }
.sb-logo-text { font-size: 0.9rem; font-weight: 700; line-height: 1.2; }
.sb-logo-sub { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

/* SIDEBAR USER */
.sb-user { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; }
.sb-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.sb-user-name { font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.sb-user-role { font-size: 0.68rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

/* SIDEBAR NAV */
.sb-nav { padding: 12px 0; flex: 1; }
.sb-section { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.3); padding: 12px 18px 6px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 0.85rem; color: rgba(255,255,255,0.75); transition: var(--transition); position: relative; }
.sb-link:hover, .sb-link.active { background: rgba(255,255,255,0.08); color: white; }
.sb-link.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--secondary); border-radius: 0 3px 3px 0; }
.sb-link .icon { font-size: 1rem; width: 20px; text-align: center; }
.sb-badge { margin-left: auto; background: var(--primary); color: white; font-size: 0.68rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.sb-badge.yellow { background: var(--accent); color: var(--dark); }
.sb-footer { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.08); }

/* TOPBAR */
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.notif-btn { position: relative; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; padding: 6px; border-radius: 50%; transition: var(--transition); }
.notif-btn:hover { background: var(--bg); color: var(--dark); }
.notif-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; border: 2px solid white; }
.topbar-user { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 30px; background: var(--bg); font-size: 0.83rem; font-weight: 600; color: var(--text); cursor: pointer; transition: var(--transition); }
.topbar-user:hover { background: #e0e0e0; }
.topbar-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: white; }

/* STAT CARDS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; right: -10px; top: -10px; width: 70px; height: 70px; border-radius: 50%; opacity: 0.08; }
.stat-card.pub::after { background: var(--pub); } .stat-card.pen::after { background: var(--pen); }
.stat-card.dft::after { background: var(--muted); } .stat-card.rej::after { background: var(--rej); }
.stat-card.total::after { background: var(--dark3); } .stat-card.views-stat::after { background: var(--secondary); }
.stat-num { font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.stat-icon { position: absolute; right: 14px; top: 14px; font-size: 1.5rem; opacity: 0.18; }
.stat-card.pub .stat-num { color: var(--pub); }
.stat-card.pen .stat-num { color: var(--pen); }
.stat-card.dft .stat-num { color: var(--muted); }
.stat-card.rej .stat-num { color: var(--rej); }
.stat-card.total .stat-num { color: var(--dark3); }
.stat-card.views-stat .stat-num { color: var(--secondary); }

/* PANEL CARDS */
.panel-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 22px; overflow: hidden; }
.pc-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.pc-title { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.pc-body { padding: 18px 20px; }
.pc-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pc-table th { padding: 10px 14px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); background: var(--bg); border-bottom: 2px solid var(--border); }
.pc-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pc-table tr:last-child td { border-bottom: none; }
.pc-table tr:hover td { background: #fafafa; }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-published { background: var(--pub-bg); color: var(--pub); }
.badge-pending   { background: var(--pen-bg); color: var(--pen); }
.badge-draft     { background: var(--dft-bg); color: var(--dft); }
.badge-rejected  { background: var(--rej-bg); color: var(--rej); }
.badge-superuser { background: #fdecea; color: var(--primary); }
.badge-admin     { background: #e8f4fd; color: #1a6bb5; }
.badge-writer    { background: #e8f8f5; color: var(--pub); }
.badge-active    { background: var(--pub-bg); color: var(--pub); }
.badge-inactive  { background: var(--rej-bg); color: var(--rej); }

/* REVIEW PAGE */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tab { padding: 7px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; border: 2px solid var(--border); color: var(--muted); transition: var(--transition); cursor: pointer; background: white; }
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ARTICLE REVIEW CARD */
.review-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; transition: var(--transition); }
.review-card:hover { box-shadow: var(--shadow-hover); }
.rc-header { padding: 14px 18px; background: var(--bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rc-body { padding: 16px 18px; }
.rc-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.35; }
.rc-excerpt { font-size: 0.83rem; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.rc-footer { padding: 12px 18px; background: var(--bg); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc-note { background: var(--pen-bg); border: 1px solid rgba(230,126,34,0.3); border-radius: 6px; padding: 8px 12px; font-size: 0.82rem; color: #a04000; margin-bottom: 12px; }
.rc-note.rejected-note { background: var(--rej-bg); border-color: rgba(192,57,43,0.3); color: #a00000; }

/* ARTICLE DETAIL REVIEW */
.review-detail { display: grid; grid-template-columns: 1fr 310px; gap: 22px; }
.art-preview { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.art-preview h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.art-preview-body { font-size: 0.93rem; line-height: 1.8; color: var(--text); }
.art-preview-body p { margin-bottom: 12px; }
.review-actions { display: flex; flex-direction: column; gap: 16px; }
.ra-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.ra-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; color: var(--dark); padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ra-info-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #f5f5f5; font-size: 0.83rem; }
.ra-info-item:last-child { border-bottom: none; }
.ra-label { color: var(--muted); font-weight: 600; }
.approve-form textarea, .reject-form textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 6px; padding: 9px 11px; font-size: 0.85rem; outline: none; resize: vertical; font-family: inherit; min-height: 90px; transition: var(--transition); }
.approve-form textarea:focus, .reject-form textarea:focus { border-color: var(--primary); }

/* WRITER EDITOR */
.editor-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.editor-main { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.editor-sidebar { display: flex; flex-direction: column; gap: 16px; }
.editor-section { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.editor-section h4 { font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; padding: 8px; background: var(--bg); border-radius: 6px; border: 1px solid var(--border); }
.tool-btn { padding: 5px 10px; background: white; border: 1px solid var(--border); border-radius: 4px; font-size: 0.8rem; cursor: pointer; transition: var(--transition); font-weight: 700; }
.tool-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.content-editor { width: 100%; min-height: 340px; border: 1.5px solid var(--border); border-radius: 6px; padding: 14px; font-size: 0.92rem; line-height: 1.7; outline: none; resize: vertical; font-family: inherit; transition: var(--transition); }
.content-editor:focus { border-color: var(--primary); }
.img-upload-area { border: 2.5px dashed var(--border); border-radius: var(--radius); padding: 22px; text-align: center; cursor: pointer; transition: var(--transition); }
.img-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.img-preview { margin-top: 10px; border-radius: 6px; overflow: hidden; }
.img-preview img { width: 100%; height: 120px; object-fit: cover; }
.tag-input-wrap { display: flex; flex-wrap: wrap; gap: 5px; border: 1.5px solid var(--border); border-radius: 6px; padding: 7px 10px; min-height: 40px; cursor: text; transition: var(--transition); }
.tag-input-wrap:focus-within { border-color: var(--primary); }
.tag-chip { background: var(--primary); color: white; padding: 2px 8px 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.tag-chip button { background: none; border: none; color: white; cursor: pointer; font-size: 0.9rem; line-height: 1; padding: 0; }
.tag-input { border: none; outline: none; font-size: 0.85rem; min-width: 100px; flex: 1; font-family: inherit; }
.char-count { font-size: 0.72rem; color: var(--muted); text-align: right; margin-top: 3px; }

/* USER MANAGEMENT */
.user-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 12px; transition: var(--transition); }
.user-card:hover { box-shadow: var(--shadow-hover); }
.user-avatar-lg { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; color: white; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.user-email { font-size: 0.8rem; color: var(--muted); }
.user-actions { display: flex; gap: 6px; flex-shrink: 0; }
.modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: white; border-radius: var(--radius); width: 100%; max-width: 500px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); transition: var(--transition); }
.modal-close:hover { color: var(--rej); }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.perm-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; }
.perm-item input[type=checkbox] { accent-color: var(--primary); }

/* ACTIVITY LOG */
.log-list { display: flex; flex-direction: column; gap: 0; }
.log-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.log-item:last-child { border-bottom: none; }
.log-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.log-dot.LOGIN { background: var(--pub); } .log-dot.LOGOUT { background: var(--muted); }
.log-dot.APPROVE { background: var(--pub); } .log-dot.REJECT { background: var(--rej); }
.log-dot.SUBMIT { background: var(--pen); } .log-dot.CREATE_USER { background: var(--dark3); }
.log-dot.DELETE_USER { background: var(--rej); } .log-dot.EDIT { background: #9b59b6; }

/* NOTIFICATION DROPDOWN */
.notif-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; background: white; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.15); z-index: 999; display: none; border: 1px solid var(--border); }
.notif-dropdown.open { display: block; }
.notif-head { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.85rem; font-weight: 700; display: flex; justify-content: space-between; }
.notif-item { padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 0.81rem; line-height: 1.4; transition: var(--transition); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.success { border-left: 3px solid var(--pub); }
.notif-item.warning { border-left: 3px solid var(--pen); }
.notif-item.info { border-left: 3px solid #1a6bb5; }
.notif-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* PAGE HEADER in panel */
.panel-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel-page-title { font-size: 1.3rem; font-weight: 800; color: var(--dark); }
.panel-page-title small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .icon { font-size: 3rem; opacity: 0.3; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }

/* SELECT */
select.form-control { cursor: pointer; }

/* DASHBOARD GRID */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-grid.thirds { grid-template-columns: 2fr 1fr; }

/* WRITER ARTICLE LIST */
.wa-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; display: flex; transition: var(--transition); }
.wa-card:hover { box-shadow: var(--shadow-hover); }
.wa-thumb { width: 110px; height: 90px; flex-shrink: 0; }
.wa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wa-thumb-empty { width: 110px; height: 90px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #ccc; flex-shrink: 0; }
.wa-body { padding: 12px 15px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-title { font-size: 0.92rem; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 8px; }
.wa-note { font-size: 0.78rem; color: var(--pen); background: var(--pen-bg); padding: 4px 9px; border-radius: 4px; margin-bottom: 8px; }
.wa-note.rej { color: var(--rej); background: var(--rej-bg); }
.wa-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }

/* 403 / 404 */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); opacity: 0.15; line-height: 1; }
.error-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.error-desc { color: var(--muted); margin-bottom: 24px; }

/* TOGGLE SWITCH */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background-color: #ccc; border-radius: 22px; transition: var(--transition); }
.toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: var(--transition); }
input:checked + .toggle-slider { background-color: var(--pub); }
input:checked + .toggle-slider:before { transform: translateX(18px); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .panel-sidebar { transform: translateX(-100%); }
  .panel-sidebar.open { transform: translateX(0); }
  .panel-main { margin-left: 0; }
  .review-detail { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .dash-grid, .dash-grid.thirds { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hamburger { display: flex; }
  .nav-list { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: var(--primary); }
  .nav-list.open { display: flex; }
  .article-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-table { font-size: 0.78rem; }
}
