
/* The Cine Bulletin Author Dashboard - visual layer */
:root {
    --tcb-brand: #8b1e3f;
    --tcb-brand-dark: #65142d;
    --tcb-ink: #17202a;
    --tcb-muted: #6f7782;
    --tcb-bg: #f6f7f9;
    --tcb-card: #ffffff;
    --tcb-border: #e7e9ed;
}

body:has(.tcb-author-login-page),
body:has(.tcb-dashboard-marker) {
    background: var(--tcb-bg);
}

.sad-dashboard {
    background: var(--tcb-bg) !important;
}

.sad-sidebar {
    background: linear-gradient(180deg, #171a20 0%, #101217 100%) !important;
    border-right: 0 !important;
    box-shadow: 8px 0 30px rgba(0,0,0,.08);
}

.sad-user {
    padding: 28px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,.09) !important;
}

.sad-user-info h3 { color: #fff !important; }
.sad-user-info p { color: #aeb4bd !important; }

.sad-menu-title {
    color: #8f97a3 !important;
    letter-spacing: .08em !important;
    font-size: 10px !important;
}

.sad-menu-item,
.sad-logout-btn {
    color: #d6d9df !important;
    border-radius: 10px !important;
    margin: 3px 10px !important;
    width: calc(100% - 20px) !important;
}

.sad-menu-item:hover {
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
}

.sad-menu-item.active {
    background: var(--tcb-brand) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(139,30,63,.25);
}

.sad-main {
    background: var(--tcb-bg) !important;
}

.sad-header {
    background: transparent !important;
    border-bottom: 0 !important;
}

.sad-header h1 {
    color: var(--tcb-ink) !important;
    letter-spacing: -.02em;
}

.sad-card,
.sad-analytics,
.sad-news-table-box {
    border: 1px solid var(--tcb-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 7px 25px rgba(23,32,42,.05) !important;
}

.sad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23,32,42,.09) !important;
}

.sad-card-icon,
.sad-news-stat-icon {
    background: #f7eaf0 !important;
    color: var(--tcb-brand) !important;
}

.sad-btn-primary {
    background: var(--tcb-brand) !important;
}

.sad-btn-primary:hover {
    background: var(--tcb-brand-dark) !important;
}

.sad-news-header h1 {
    letter-spacing: -.02em;
}

/* Login */
.tcb-author-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 10% 10%, rgba(139,30,63,.12), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(23,32,42,.08), transparent 30%),
        #f5f6f8;
}

.tcb-author-login-card {
    width: min(440px, 100%);
    background: #fff;
    border: 1px solid #e8e9ed;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 22px 70px rgba(18,24,32,.12);
}

.tcb-author-login-brand {
    text-align: center;
    margin-bottom: 25px;
}

.tcb-author-login-brand .custom-logo {
    max-width: 180px;
    height: auto;
}

.tcb-author-login-logo-text {
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--tcb-brand);
    font-size: 20px;
}

.tcb-author-login-heading { text-align: center; margin-bottom: 24px; }
.tcb-login-kicker {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    color: var(--tcb-brand);
    margin-bottom: 7px;
}
.tcb-author-login-heading h1 {
    margin: 0 0 7px;
    color: #161b22;
    font-size: 30px;
}
.tcb-author-login-heading p {
    margin: 0;
    color: #737b86;
    font-size: 14px;
}

.tcb-login-error {
    background: #fff1f2;
    color: #a11b2f;
    border: 1px solid #f2c4cc;
    border-radius: 10px;
    padding: 11px 13px;
    margin-bottom: 18px;
    font-size: 13px;
}

.tcb-login-field { margin-bottom: 17px; }
.tcb-login-field label {
    display:block;
    font-size: 13px;
    font-weight: 700;
    color:#303640;
    margin-bottom:7px;
}
.tcb-login-field input[type="text"],
.tcb-login-field input[type="password"] {
    width:100%;
    height:48px;
    box-sizing:border-box;
    border:1px solid #dfe2e7;
    border-radius:10px;
    padding:0 13px;
    font-size:14px;
    outline:none;
    background:#fff;
}
.tcb-login-field input:focus {
    border-color: var(--tcb-brand);
    box-shadow: 0 0 0 3px rgba(139,30,63,.08);
}

.tcb-password-wrap { position:relative; }
.tcb-password-wrap input { padding-right:65px !important; }
.tcb-password-toggle {
    position:absolute;
    right:8px;
    top:7px;
    height:34px;
    border:0;
    background:#f4f5f7;
    border-radius:7px;
    padding:0 9px;
    cursor:pointer;
    font-size:12px;
    color:#59616c;
}

.tcb-login-remember {
    display:flex;
    gap:8px;
    align-items:center;
    font-size:13px;
    color:#69717c;
    margin:4px 0 20px;
}

.tcb-login-submit {
    width:100%;
    height:49px;
    border:0;
    border-radius:10px;
    background:var(--tcb-brand);
    color:#fff;
    font-weight:700;
    font-size:14px;
    cursor:pointer;
    transition:.2s ease;
}
.tcb-login-submit:hover { background:var(--tcb-brand-dark); transform:translateY(-1px); }

.tcb-login-forgot {
    display:block;
    text-align:center;
    margin-top:17px;
    color:var(--tcb-brand);
    text-decoration:none;
    font-size:13px;
}

.tcb-login-footer {
    margin-top:25px;
    padding-top:18px;
    border-top:1px solid #edf0f3;
    text-align:center;
    font-size:11px;
    color:#9299a3;
}

.tcb-login-already {
    max-width:650px;
    margin:60px auto;
    padding:25px;
    text-align:center;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
}

/* =========================================================
   TCB STANDALONE PORTAL RESET
   Never allow the active WordPress theme to style the portal.
   ========================================================= */
html.tcb-standalone-html,
html.tcb-standalone-html body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100% !important;
    width: 100% !important;
    background: #f5f7fa !important;
}

body.tcb-standalone-body {
    overflow-x: hidden !important;
}

body.tcb-standalone-body #wpadminbar { display: none !important; }
body.tcb-standalone-body header,
body.tcb-standalone-body footer,
body.tcb-standalone-body .site-header,
body.tcb-standalone-body .site-footer,
body.tcb-standalone-body .page-header,
body.tcb-standalone-body .breadcrumbs,
body.tcb-standalone-body .breadcrumb,
body.tcb-standalone-body .elementor-location-header,
body.tcb-standalone-body .elementor-location-footer {
    display: none !important;
}

#tcb-standalone-root {
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

#tcb-standalone-root .tcb-dashboard {
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

#tcb-standalone-root .tcb-author-login-page {
    width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
}

/* Remove theme max-width/float rules from portal descendants. */
#tcb-standalone-root * {
    box-sizing: border-box;
}

/* ===== v1.4 visual cleanup ===== */
html.tcb-standalone-html, body.tcb-standalone-body { margin:0 !important; padding:0 !important; }
body.tcb-standalone-body { background:#f4f6f8 !important; overflow-x:hidden; }
#tcb-standalone-root { min-height:100vh; }
#tcb-standalone-root img.emoji { width:1.15em !important; height:1.15em !important; max-width:1.15em !important; max-height:1.15em !important; vertical-align:-0.16em !important; }

.tcb-dashboard { min-height:100vh !important; background:#f4f6f8 !important; font-family:Inter,Arial,Helvetica,sans-serif !important; }
.tcb-sidebar { width:248px !important; min-width:248px !important; background:#101827 !important; border-right:0 !important; box-shadow:6px 0 24px rgba(16,24,39,.10); }
.tcb-sidebar-brand { padding:22px 18px 15px; border-bottom:1px solid rgba(255,255,255,.08); background:#0d1522; }
.tcb-sidebar-brand a { display:block; }
.tcb-sidebar-brand img { display:block; width:185px; max-width:100%; height:auto; background:#fff; border-radius:8px; padding:5px 8px; box-sizing:border-box; }
.tcb-user { padding:16px 18px !important; border-bottom:1px solid rgba(255,255,255,.08) !important; }
.tcb-avatar img { width:42px !important; height:42px !important; border-radius:50% !important; border:2px solid rgba(255,255,255,.16); }
.tcb-user-info h3 { color:#fff !important; font-size:13px !important; }
.tcb-user-info p { color:#9ba7b8 !important; }
.tcb-menu { padding:15px 9px 25px !important; }
.tcb-menu-title { color:#778397 !important; font-size:9px !important; letter-spacing:1px !important; margin:0 8px 8px !important; }
.tcb-menu-item, .tcb-logout-btn { min-height:42px !important; border-radius:8px !important; color:#b9c2cf !important; font-size:13px !important; font-weight:600 !important; margin:2px 0 !important; padding:0 12px !important; }
.tcb-menu-item:hover { background:#182438 !important; color:#fff !important; }
.tcb-menu-item.active { background:#d71920 !important; color:#fff !important; box-shadow:none !important; }
.tcb-icon { width:25px !important; min-width:25px !important; font-size:17px !important; }
.tcb-main { width:calc(100% - 248px) !important; padding:34px 38px 50px !important; background:#f4f6f8 !important; }
.tcb-header, .tcb-page-heading { margin-bottom:24px !important; }
.tcb-header h1, .tcb-page-heading h1 { color:#142033 !important; font-size:30px !important; font-weight:750 !important; }
.tcb-header p, .tcb-page-heading p { color:#7a8798 !important; }
.tcb-card, .tcb-analytics, .tcb-news-table-box, .tcb-viral-card, .tcb-id-panel, .tcb-payment-card { border:1px solid #e4e8ee !important; border-radius:16px !important; box-shadow:0 5px 20px rgba(20,32,51,.045) !important; }
.tcb-card:hover { transform:none !important; }
.tcb-no-coin-warning { border-radius:14px !important; margin-bottom:25px !important; }
.tcb-no-coin-warning h3 { font-size:18px !important; }
.tcb-viral-tool img.emoji, .tcb-page-heading img.emoji, .tcb-viral-top img.emoji, .tcb-viral-card img.emoji { width:1.1em !important; height:1.1em !important; max-width:1.1em !important; max-height:1.1em !important; }
.tcb-viral-tool { overflow:hidden !important; }
.tcb-viral-card { overflow:hidden !important; }
.tcb-viral-table-wrap { overflow-x:auto !important; }
.tcb-viral-tool h1, .tcb-viral-tool h2 { line-height:1.2 !important; }
.tcb-id-logo { object-fit:contain !important; background:#fff !important; }
.tcb-certificate-brand { color:#111 !important; }

@media (max-width: 900px) {
  .tcb-sidebar { width:220px !important; min-width:220px !important; }
  .tcb-main { width:calc(100% - 220px) !important; padding:24px 20px 40px !important; }
}
@media (max-width: 700px) {
  .tcb-dashboard { display:block !important; }
  .tcb-sidebar { width:100% !important; min-width:0 !important; height:auto !important; min-height:0 !important; position:relative !important; }
  .tcb-sidebar-brand img { width:175px; }
  .tcb-main { width:100% !important; padding:20px 14px 35px !important; }
  .tcb-menu { display:grid; grid-template-columns:1fr 1fr; gap:4px; }
  .tcb-menu-title { grid-column:1/-1; }
}

/* =========================================================
   TCB 1.6 MODERN AUTHOR DASHBOARD
   ========================================================= */
#tcb-standalone-root .tcb-main {
    background: #f5f7fb;
    padding: 30px 34px 60px;
}
#tcb-standalone-root .tcb-dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    padding: 4px 2px 26px;
    border-bottom: 1px solid #e6eaf0;
}
#tcb-standalone-root .tcb-eyebrow {
    color: #8b1e3f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    margin-bottom: 9px;
}
#tcb-standalone-root .tcb-dashboard-hero h1 {
    margin: 0;
    color: #14212b;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -.035em;
}
#tcb-standalone-root .tcb-hero-copy p {
    margin: 9px 0 0;
    color: #77828d;
    font-size: 14px;
}
#tcb-standalone-root .tcb-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
#tcb-standalone-root .tcb-outline-btn,
#tcb-standalone-root .tcb-primary-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
#tcb-standalone-root .tcb-outline-btn {
    color: #25343f;
    background: #fff;
    border: 1px solid #dfe5eb;
}
#tcb-standalone-root .tcb-primary-btn {
    color: #fff;
    background: #8b1e3f;
    box-shadow: 0 8px 18px rgba(139,30,63,.18);
}
#tcb-standalone-root .tcb-hero-date {
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e7ed;
    color: #687580;
    font-size: 12px;
    font-weight: 700;
}
#tcb-standalone-root .tcb-dashboard-section { margin-top: 28px; }
#tcb-standalone-root .tcb-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
}
#tcb-standalone-root .tcb-section-kicker {
    display: block;
    margin-bottom: 4px;
    color: #8b1e3f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}
#tcb-standalone-root .tcb-section-heading h2 {
    margin: 0;
    color: #1b2a35;
    font-size: 18px;
    letter-spacing: -.015em;
}
#tcb-standalone-root .tcb-section-note {
    color: #8a949d;
    font-size: 11px;
}
#tcb-standalone-root .tcb-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}
#tcb-standalone-root .tcb-summary-card {
    position: relative;
    min-height: 152px;
    padding: 19px 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e9ee;
    border-radius: 15px;
    box-shadow: 0 7px 25px rgba(27,42,53,.045);
}
#tcb-standalone-root .tcb-summary-card::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    right: -25px;
    bottom: -35px;
    border-radius: 50%;
    background: rgba(139,30,63,.045);
}
#tcb-standalone-root .tcb-summary-primary { border-top: 3px solid #8b1e3f; }
#tcb-standalone-root .tcb-summary-blue { border-top: 3px solid #3d7bd9; }
#tcb-standalone-root .tcb-summary-red { border-top: 3px solid #d65353; }
#tcb-standalone-root .tcb-summary-gold { border-top: 3px solid #d59b28; }
#tcb-standalone-root .tcb-summary-top {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    color:#66747e; font-size:12px; font-weight:700;
}
#tcb-standalone-root .tcb-summary-icon {
    width: 34px; height:34px; display:flex; align-items:center; justify-content:center;
    border-radius:10px; background:#f4f7f9; color:#8b1e3f; font-size:15px; font-weight:800;
}
#tcb-standalone-root .tcb-summary-card strong {
    display:block; margin-top:15px; color:#182a35; font-size:30px; line-height:1; letter-spacing:-.03em;
}
#tcb-standalone-root .tcb-summary-card small {
    display:block; margin-top:8px; color:#8a959e; font-size:10px;
}
#tcb-standalone-root .tcb-mini-grid {
    display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:13px;
}
#tcb-standalone-root .tcb-mini-card {
    position:relative; min-height:102px; padding:15px 16px; background:#fff;
    border:1px solid #e5e9ee; border-radius:13px; box-shadow:0 5px 18px rgba(27,42,53,.035);
}
#tcb-standalone-root .tcb-mini-card span { display:block; color:#75818a; font-size:10px; font-weight:700; line-height:1.35; max-width:80%; }
#tcb-standalone-root .tcb-mini-card strong { display:block; margin-top:13px; color:#21323d; font-size:22px; line-height:1; }
#tcb-standalone-root .tcb-mini-card i {
    position:absolute; right:12px; top:12px; width:30px; height:30px; border-radius:9px;
    display:flex; align-items:center; justify-content:center; background:#f1f6f6; color:#0b5d66;
    font-style:normal; font-size:12px; font-weight:800;
}
#tcb-standalone-root .tcb-analytics { margin-top: 30px; }
#tcb-standalone-root .tcb-analytics .tcb-section-header h2 { font-size:18px; }
#tcb-standalone-root .tcb-analytics-table-wrap { background:#fff; border:1px solid #e5e9ee; border-radius:15px; box-shadow:0 7px 25px rgba(27,42,53,.045); overflow:hidden; }
#tcb-standalone-root .tcb-analytics-table { min-width:920px; }
#tcb-standalone-root .tcb-analytics-table th { background:#f8fafb; color:#6f7c86; font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
#tcb-standalone-root .tcb-analytics-table td { font-size:12px; color:#52616b; }
#tcb-standalone-root .tcb-analytics-table .tcb-news-title a { color:#263742; font-weight:700; }
@media (max-width: 1200px) {
    #tcb-standalone-root .tcb-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #tcb-standalone-root .tcb-mini-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    #tcb-standalone-root .tcb-main { padding:20px 16px 45px; }
    #tcb-standalone-root .tcb-dashboard-hero { align-items:flex-start; flex-direction:column; }
    #tcb-standalone-root .tcb-hero-actions { justify-content:flex-start; }
    #tcb-standalone-root .tcb-summary-grid { grid-template-columns:1fr; }
    #tcb-standalone-root .tcb-mini-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #tcb-standalone-root .tcb-section-heading { align-items:flex-start; flex-direction:column; }
}
