/* بيكون — اتجاه "Soft": زوايا مستديرة، أزرار ممتلئة، حدود رمادية هادئة. أحادي اللون، بلا ظلال ولا تدرجات */
:root { --r: 10px; --r-lg: 14px; --r-xl: 18px; --ring: #BDBDBD; --radius: 10px; --radius-lg: 14px; --radius-xl: 14px; }
*:not(.avatar):not(.spinner):not(.dot):not(.sw-dot):not(.toggle-slider):not(.slider):not(.switch):not(.status-dot):not(svg):not(path):not(circle) { border-radius: var(--r) !important; }
.avatar, .status-badge::before, .badge, .pill, .tag, .lp-pill { border-radius: 999px !important; }
.recent-table, .chart-box, .card, .table-container, .panel, .section-card, .settings-card, .form-card, .website-card, .campaign-card, .pricing-card, .plan-card, .lp-plan, .lp-faq details, .lp-code, .lp-shot img, .auth-card, .toast { border-radius: var(--r-lg) !important; }
.recent-table, .table-container, .chart-box { overflow: hidden; }
.lp-toast { border-radius: var(--r-lg) !important; }
.lp-toast-ic { border-radius: 10px !important; }

/* أزرار */
.btn, .btn-new, .btn-sm, button.filter, .btn-primary, .btn-secondary, .lp-btn { border-radius: var(--r) !important; }
.btn:active, .btn-new:active, .btn-primary:active, .lp-btn:active { transform: scale(.98) !important; }
.btn:focus-visible, .btn-new:focus-visible, a:focus-visible, button:focus-visible, .lp-btn:focus-visible { outline: 3px solid var(--ring) !important; outline-offset: 2px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--ring) !important; outline-offset: 0 !important; border-color: #0B0B0B !important; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], select, textarea { border-radius: var(--r) !important; padding: 11px 14px !important; }
.btn-new, .btn-primary, .btn.btn-primary { padding: 10px 18px !important; }

/* لوحة التحكم */
.sidebar .nav-list { padding: 10px 12px !important; display: flex; flex-direction: column; gap: 2px; }
.sidebar .nav-list a { border-radius: var(--r) !important; border-right: 0 !important; padding: 9px 12px !important; }
.sidebar .nav-list a.active { background: #1F1F1F !important; border-right: 0 !important; }
.stats-grid { background: transparent !important; border: 0 !important; gap: 12px !important; }
.stat-card { background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; padding: 18px 20px !important; }
.stat-card:last-child, .stat-card:nth-child(odd), .stat-card:nth-child(2), .stat-card:nth-child(n+3), .stat-card:nth-child(-n+2) { border: 1px solid var(--line) !important; }
.recent-table .table-header, .chart-box .chart-header { border-bottom: 1px solid var(--line-2) !important; }
table th { background: #FAFAFA !important; }
.status-badge { background: #F2F2F2 !important; padding: 3px 10px !important; border-radius: 999px !important; }
.status-badge.success { background: #E8F3EC !important; } .status-badge.warning { background: #FBF1DC !important; } .status-badge.danger { background: #F9E5E3 !important; }
.top-bar { border-bottom: 1px solid var(--line) !important; }
.notif-btn { border-radius: var(--r) !important; }
.client-group-head { border-bottom: 1px solid var(--line) !important; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* صفحة الهبوط */
.lp-nav { border-bottom: 1px solid #E6E6E6; }
.lp-btn { padding: 10px 18px; }
.lp-btn-lg { padding: 13px 24px; }
.lp-btn:hover { background: #2B2B2B; }
.lp-shot img { border: 1px solid #D9D9D9; box-shadow: none; }
.lp-hero { border-bottom: 0; }
.lp-sec { border-bottom: 0; }
.lp-alt { background: #F6F6F6; }
.lp-rows { border-top: 0; display: grid; gap: 12px; }
.lp-row { background: #fff; border: 1px solid #E6E6E6; border-radius: var(--r-lg) !important; padding: 22px 24px; grid-template-columns: 44px 240px 1fr; }
.lp-alt .lp-steps li { border-bottom: 1px solid #E0E0E0; }
.lp-plans { border: 0; gap: 16px; }
.lp-plan { border: 1px solid #E0E0E0 !important; padding: 28px !important; }
.lp-plan:last-child { border: 1px solid #E0E0E0 !important; }
.lp-plan-main { border-color: #0B0B0B !important; }
.lp-plan .lp-btn { text-align: center; }
.lp-faq details { border: 1px solid #E0E0E0; padding: 16px 20px; margin-bottom: 10px; background: #fff; }
.lp-faq details:last-child { border-bottom: 1px solid #E0E0E0; }
.lp-band { border-radius: 0 !important; }
.lp-band-in { }
.lp-foot { border-top: 0; }
@media (max-width: 860px) { .lp-row { grid-template-columns: 32px 1fr; padding: 18px; } }

/* auth pages: solid black panel, mono floating back button */
html { overflow-x: hidden; }
.auth-container { width: 100% !important; max-width: 100%; }
.auth-image { background: #0B0B0B !important; }
.auth-image .overlay { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.auth-image .content .stats { border-top-color: rgba(255,255,255,.14) !important; }
.bp-float-back { background: #fff !important; border: 1px solid var(--line, #E6E6E6) !important; box-shadow: none !important; border-radius: 10px !important; height: 40px !important; padding: 0 14px 0 10px !important; color: #0B0B0B !important; }
.bp-float-back i { background: #0B0B0B !important; border-radius: 8px !important; }
.auth-image .content h2 { color: #fff !important; }
.auth-image .content p { color: rgba(255,255,255,.72) !important; }
.auth-image .content .stats .item .number { color: #fff !important; }
.auth-image .content .stats .item .label { color: rgba(255,255,255,.6) !important; }
.auth-image .content i, .auth-image .content svg { color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 44px !important; width: 44px; height: 44px; }
.auth-form-wrapper .brand i, .auth-form-wrapper .brand svg { background: none !important; color: #0B0B0B !important; -webkit-text-fill-color: #0B0B0B !important; font-size: 32px !important; width: 32px; height: 32px; }
@media (max-width: 768px) {
  .top-bar { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 10px 12px; }
  .top-bar .back-btn { order: 0; flex: 0 0 auto; width: 40px; height: 40px; padding: 0 !important; justify-content: center; }
  .top-bar .back-btn .bp-label { display: none; }
  .top-bar .greeting { order: 1; flex: 1 1 0; min-width: 0; }
  .top-bar .actions { order: 2; flex: 0 0 100%; width: 100%; }
}
@media (max-width: 768px) {
  .bp-float-back { width: 40px !important; padding: 0 !important; justify-content: center; }
  .bp-float-back i { background: transparent !important; color: #0B0B0B !important; }
}
@media (max-width: 768px) {
  .bp-float-back * { color: #0B0B0B !important; background: transparent !important; }
  .bp-float-back svg { stroke: #0B0B0B !important; width: 18px; height: 18px; }
}
@media (max-width: 768px) {
  .bp-float-back .bp-ic-wrap, .bp-float-back i { display: inline-flex !important; }
}

/* verification failed */
.verify-fail { margin: 14px 0 0; padding: 16px 18px; border: 1px solid #0B0B0B; border-radius: 12px; background: #fff; }
.verify-fail .vf-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.verify-fail .vf-why { margin: 6px 0 10px; color: #333; font-size: 14px; line-height: 1.8; }
.verify-fail .vf-steps { margin: 0 0 12px; padding-inline-start: 20px; font-size: 13.5px; line-height: 1.9; color: #333; }
.verify-fail .vf-code { display: block; background: #F6F6F6; border: 1px solid #E6E6E6; border-radius: 8px; padding: 10px 12px; font-size: 12px; overflow-x: auto; white-space: nowrap; }
.verify-fail .vf-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.verify-fail .btn-sm.primary { background: #0B0B0B; color: #fff; border-color: #0B0B0B; }
.page-hero .tag { background: #F2F2F2 !important; border: 1px solid #E0E0E0; border-radius: 8px !important; color: #0B0B0B; }
.navbar-logo .bp-ic-wrap, .navbar-logo svg, .navbar-logo i { width: 28px; height: 28px; font-size: 24px; }
.navbar-logo .bp-ic-wrap { background: none !important; padding: 0 !important; border-radius: 0 !important; color: #0B0B0B !important; font-size: 28px !important; width: 28px; height: 28px; letter-spacing: 0; }
.navbar-logo .bp-ic-wrap svg { width: 28px; height: 28px; }
.navbar-logo > span:not(.bp-ic-wrap) { background: #F2F2F2 !important; color: #333 !important; border: 1px solid #E0E0E0; border-radius: 6px !important; }

/* responsive pass */
@media (max-width: 900px) {
  .subscriber-stats, .site-stats-row, .payment-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .subscriber-stat, .stat-card { padding: 14px 14px !important; }
  .subscriber-stat .stat-number, .stat-card .stat-number { font-size: 24px !important; }
  .subscriber-stat .stat-label, .stat-card .stat-label { font-size: 12.5px !important; }
}
@media (max-width: 600px) {
  .table-wrapper, .table-container, .recent-table, .subscribers-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filters-bar, .toolbar { flex-wrap: wrap; gap: 8px; }
  .filters-bar select, .toolbar select { flex: 1 1 45%; min-width: 0; }
  img, svg, canvas, video { max-width: 100%; }
  .modal, .modal-content { max-width: 94vw !important; }
}
:root { --color-warning: #0B0B0B; --color-warning-bg: #F6F6F6; }

/* navbar responsive: hamburger up to 1080px, auth links inside the menu */
.nav-auth-mobile { display: none; }
@media (max-width: 1080px) {
  .navbar-toggle { display: flex !important; }
  .navbar-links { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 16px 24px 20px; border-bottom: 1px solid #E6E6E6; gap: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.06); z-index: 60; }
  .navbar-links.open { display: flex !important; }
  .navbar-links a { display: block; padding: 10px 4px; font-size: 16px; }
  .navbar-actions .btn { display: none !important; }
  .nav-auth-mobile { display: block; }
  .nav-auth-mobile:nth-last-child(2) { border-top: 1px solid #EEE; margin-top: 8px; padding-top: 8px; }
}
@media (min-width: 1081px) { .navbar-actions .btn { display: inline-flex; } }
