/* DailyNivex.Com client brand pack — V5.4 */
:root{--dn-navy:#002956;--dn-navy-2:#003d79;--dn-green:#139438;--dn-green-2:#1eaa49;--dn-soft:#f2f7fb;--dn-line:#dce7f2;--dn-text:#10233c}
body.dn-client-theme{background:#f4f7fb;color:var(--dn-text)}
body.dn-client-theme .user-app{background:linear-gradient(180deg,#f7faff 0,#f3f7fb 100%)}
body.dn-client-theme .app-top{background:#fff!important;color:var(--dn-navy)!important;border-bottom:1px solid #e2ebf4;box-shadow:0 8px 24px rgba(5,43,91,.05)}
body.dn-client-theme .app-name{min-width:0}.dn-client-theme .app-name.has-logo{flex:1}.dn-client-theme .top-brand-img{width:180px!important;height:40px!important;border-radius:0!important;object-fit:contain!important;object-position:left center!important}.dn-client-theme .app-name.has-logo .brand-text{display:none!important}
body.dn-client-theme .bell-btn{color:var(--dn-green)!important;background:#effaf4!important;border:1px solid #d5f0e1!important;border-radius:12px!important;width:42px;height:42px}
body.dn-client-theme .hero-brand{background:linear-gradient(135deg,var(--dn-navy) 0%,#07396f 54%,var(--dn-green) 100%)!important;padding:14px 16px 18px!important;border-radius:0 0 28px 28px!important}
body.dn-client-theme .hero-logo{height:240px!important;background:linear-gradient(135deg,#fff 0%,#f4fbf7 100%)!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:24px!important;box-shadow:0 16px 42px rgba(0,0,0,.14)!important}
body.dn-client-theme .hero-logo.has-custom-hero .theme-hero{display:none!important}
body.dn-client-theme .custom-hero-image{width:min(82%,820px)!important;height:auto!important;max-height:165px!important;object-fit:contain!important;border-radius:0!important;padding:0!important}
body.dn-client-theme .shortcut-row{gap:10px!important;padding:16px 0 0!important}.dn-client-theme .shortcut{color:#fff!important}.dn-client-theme .shortcut .ico{background:rgba(255,255,255,.15)!important;border:1px solid rgba(255,255,255,.22)!important;box-shadow:0 8px 20px rgba(0,0,0,.12)!important}.dn-client-theme .shortcut:hover .ico{background:rgba(255,255,255,.24)!important}
body.dn-client-theme .home-strip>div{border-top:3px solid var(--dn-green)!important;background:#fff!important;box-shadow:0 10px 28px rgba(0,41,86,.06)!important}.dn-client-theme .home-strip strong{color:var(--dn-navy)!important}.dn-client-theme .announcement{border-color:#dce9e2!important;background:#f8fffb!important}.dn-client-theme .announcement>span{background:#e5f8ed!important;color:var(--dn-green)!important}
body.dn-client-theme .section-title-row h2,.dn-client-theme .module-head h3{color:var(--dn-navy)!important}.dn-client-theme .section-title-row a{color:var(--dn-green)!important;font-weight:800}
/* Client plan cards */
body.dn-client-theme .plans-wrap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;padding:16px!important;background:transparent!important}
.dn-plan-card{position:relative;background:#fff;border:1px solid var(--dn-line);border-radius:22px;overflow:hidden;box-shadow:0 14px 34px rgba(0,41,86,.08);display:flex;flex-direction:column;min-width:0}
.dn-plan-card::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--dn-navy),var(--dn-green))}.dn-plan-card.invested-card{background:linear-gradient(180deg,#f2fff7,#fff);border-color:#bfe5ce}.dn-plan-card.invested-card::before{background:linear-gradient(90deg,#079247,#20bd69)}
.dn-plan-head{display:flex;align-items:center;gap:12px;padding:20px 18px 14px}.dn-plan-icon{width:64px;height:64px;min-width:64px;border-radius:18px;overflow:hidden;background:#eef5fb;border:1px solid #dce8f5;display:grid;place-items:center}.dn-plan-icon img{width:100%;height:100%;object-fit:contain;display:block}.dn-plan-title-wrap{min-width:0;flex:1}.dn-plan-title{font-size:19px;font-weight:900;color:var(--dn-navy);line-height:1.15}.dn-plan-price{margin-top:5px;font-size:22px;font-weight:950;color:var(--dn-green)}.dn-plan-badge{position:absolute;right:14px;top:14px;padding:6px 9px;border-radius:999px;background:#e8f8ef;color:#057a38;font-size:10px;font-weight:900;letter-spacing:.03em}.dn-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 18px 16px}.dn-plan-stat{padding:10px 11px;border-radius:13px;background:#f6f9fc;border:1px solid #e8eef5}.dn-plan-stat small{display:block;color:#8490a0;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.dn-plan-stat b{font-size:13px;color:#17263a}.dn-plan-stat.highlight{background:#f2fbf6;border-color:#d7f0e1}.dn-plan-stat.highlight b{color:var(--dn-green)}.dn-plan-foot{margin-top:auto;padding:15px 18px 18px;border-top:1px solid #edf1f5;display:flex;align-items:center;justify-content:space-between;gap:12px}.dn-plan-limit{font-size:11px;color:#718096}.dn-plan-limit strong{display:block;color:var(--dn-navy);font-size:13px}.dn-plan-card .invest-btn{white-space:nowrap!important;background:linear-gradient(135deg,var(--dn-navy),var(--dn-green))!important;border-radius:12px!important;padding:12px 18px!important;box-shadow:0 8px 18px rgba(19,148,56,.18)!important}.dn-plan-card .invest-btn.invested-state{background:linear-gradient(135deg,#078642,#15ac59)!important;color:#fff!important}.dn-plan-card .invest-btn.disabled{opacity:1!important}
/* Fund cards follow brand colors while remaining separate demo products */
body.dn-client-theme .fund-head{background:linear-gradient(135deg,var(--dn-navy),var(--dn-green))!important}.dn-client-theme .daily-pill{background:rgba(255,255,255,.1)!important;border-color:rgba(255,255,255,.28)!important}.dn-client-theme .fund-list{background:linear-gradient(180deg,#eef6fb,#f5f8fb)!important}.dn-client-theme .fund-card{border:1px solid var(--dn-line)!important;box-shadow:0 12px 30px rgba(0,41,86,.07)!important}.dn-client-theme .fund-card .plan-rate-badge{background:var(--dn-green)!important;color:#fff!important}.dn-client-theme .fund-card .plan-progress i{background:linear-gradient(90deg,var(--dn-navy),var(--dn-green))!important}.dn-client-theme .money{color:var(--dn-green)!important}
/* Menus / profile / payments */
body.dn-client-theme .profile-head{background:linear-gradient(135deg,var(--dn-navy),var(--dn-green))!important}.dn-client-theme .menu-item .menu-ico{background:#eef6fb!important;color:var(--dn-navy)!important}.dn-client-theme .menu-item{border:1px solid #e6edf5!important}.dn-client-theme .bottom-nav button.active{color:var(--dn-green)!important}.dn-client-theme .bottom-nav button.active::before{background:linear-gradient(90deg,var(--dn-navy),var(--dn-green))!important}.dn-client-theme .primary-btn,.dn-client-theme .wide-btn,.dn-client-theme .blue-btn,.dn-client-theme .auth-submit,.dn-client-theme .sticky-action button{background:linear-gradient(135deg,var(--dn-navy),var(--dn-green))!important}.dn-client-theme .pay-option.selected{border-color:var(--dn-green)!important}.dn-client-theme .pay-option.selected .radio{border-color:var(--dn-green)!important}
/* Login / Register branding */
body.dn-client-theme .auth-page{background:radial-gradient(circle at 15% 10%,rgba(19,148,56,.08),transparent 34%),radial-gradient(circle at 90% 90%,rgba(0,41,86,.1),transparent 38%),#f5f8fb!important}.dn-client-theme .auth-card{border:1px solid #e0e9f2!important;box-shadow:0 24px 70px rgba(0,41,86,.12)!important}.dn-client-theme .auth-logo{margin-bottom:20px!important}.dn-client-theme .auth-brand-img{width:min(310px,86vw)!important;height:78px!important;border-radius:0!important;box-shadow:none!important;object-fit:contain!important}.dn-client-theme .auth-card h1{color:var(--dn-navy)!important}.dn-client-theme .auth-input:focus-within{border-color:#86caa5!important;box-shadow:0 0 0 4px rgba(19,148,56,.08)!important}.dn-client-theme .auth-switch a{color:var(--dn-green)!important}
/* Admin */
body.dn-client-theme .admin-sidebar{background:linear-gradient(180deg,#041f43 0%,#052b5b 55%,#063c57 100%)!important}.dn-client-theme .admin-nav>button.active{background:linear-gradient(135deg,var(--dn-navy-2),var(--dn-green))!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important}.dn-client-theme .admin-nav>button:hover{background:rgba(255,255,255,.09)!important}.dn-client-theme .admin-brand-logo{display:block;width:166px;height:46px;object-fit:contain;background:#fff;border-radius:10px;padding:5px}.dn-client-theme .admin-brand-text{color:#fff;font-weight:900}.dn-client-theme .add-btn,.dn-client-theme .green-btn{background:linear-gradient(135deg,var(--dn-navy),var(--dn-green))!important}.dn-client-theme .admin-card{border-color:#e2eaf3!important}.dn-client-theme .admin-stat-card::before{background:linear-gradient(90deg,var(--dn-navy),var(--dn-green))!important}.dn-client-theme .admin-topbar{border-bottom:1px solid #e2eaf3!important}
@media(max-width:980px){body.dn-client-theme .plans-wrap{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dn-client-theme .top-brand-img{width:150px!important}}
@media(max-width:600px){body.dn-client-theme .hero-logo{height:190px!important}.dn-client-theme .custom-hero-image{width:92%!important;max-height:120px!important}.dn-client-theme .shortcut-row{grid-template-columns:repeat(4,1fr)!important}.dn-client-theme .top-brand-img{width:138px!important;height:34px!important}body.dn-client-theme .plans-wrap{grid-template-columns:1fr!important;padding:10px!important;gap:12px!important}.dn-plan-head{padding:18px 15px 12px}.dn-plan-grid{padding:0 15px 13px}.dn-plan-foot{padding:13px 15px 16px}.dn-plan-card .invest-btn{padding:11px 15px!important}.dn-client-theme .auth-brand-img{height:66px!important}}


/* V5.4 strict DailyNivex brand lock — exact client palette */
body.dn-client-theme{
  --red:#002956;
  --red2:#139438;
  --red-dark:#001d3d;
  --blue:#002956;
  --green:#139438;
  --brand:#002956;
  --accent:#139438;
  --danger:#002956;
}

/* Login / register: logo only, no colored tile or hidden shape behind it */
body.dn-client-theme .auth-logo{
  width:100%!important;
  height:auto!important;
  min-height:78px!important;
  margin:0 auto 20px!important;
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.dn-client-theme .auth-logo::before,body.dn-client-theme .auth-logo::after{display:none!important;content:none!important}
body.dn-client-theme .auth-brand-img{display:block!important;width:min(310px,86vw)!important;height:78px!important;max-width:100%!important;object-fit:contain!important;margin:0 auto!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.dn-client-theme .auth-input .icon{color:#002956!important}
body.dn-client-theme .auth-input .country{color:#139438!important}
body.dn-client-theme .auth-submit{background:linear-gradient(90deg,#002956 0%,#139438 100%)!important;box-shadow:0 12px 28px rgba(0,41,86,.16)!important}
body.dn-client-theme .auth-switch a,body.dn-client-theme .auth-links a{color:#139438!important}
body.dn-client-theme .check-row input{accent-color:#139438!important}

/* Admin login uses same exact logo palette */
body.dn-client-theme .admin-login-wrap{background:radial-gradient(circle at 15% 10%,rgba(19,148,56,.07),transparent 34%),radial-gradient(circle at 90% 90%,rgba(0,41,86,.08),transparent 38%),#f5f8fb!important}
body.dn-client-theme .admin-login-card{border-top:5px solid #139438!important;box-shadow:0 24px 70px rgba(0,41,86,.12)!important}
body.dn-client-theme .admin-login-logo{color:#002956!important;background:transparent!important}
body.dn-client-theme .admin-login-logo .auth-brand-img{width:min(310px,90%)!important;height:82px!important}
body.dn-client-theme .admin-login-card h2{color:#002956!important}
body.dn-client-theme .admin-login-card input:focus{outline:none!important;border-color:#139438!important;box-shadow:0 0 0 4px rgba(19,148,56,.09)!important}
body.dn-client-theme .admin-login-card button{background:linear-gradient(90deg,#002956,#139438)!important;box-shadow:0 10px 24px rgba(0,41,86,.16)!important}

/* Core components: no legacy red/blue palette leaks */
body.dn-client-theme .page-title,body.dn-client-theme .app-top,body.dn-client-theme .deposit-hero{background:#002956!important}
body.dn-client-theme .page-red{background:linear-gradient(180deg,#002956 0 180px,#e9f6ee 420px,#fff 100%)!important}
body.dn-client-theme .team-bg{background:linear-gradient(180deg,#002956 0 190px,#e9f6ee 430px,#fff 100%)!important}
body.dn-client-theme .fund-list{background:linear-gradient(180deg,#eef5fb 0,#f5faf7 100%)!important}
body.dn-client-theme .daily-pill{background:rgba(255,255,255,.12)!important}
body.dn-client-theme .amount-btn.active{border-color:#139438!important;color:#139438!important;background:#f2fbf5!important}
body.dn-client-theme .tips h3,body.dn-client-theme .level-grid strong,body.dn-client-theme .soft-panel strong{color:#139438!important}
body.dn-client-theme .copy-field button{background:#002956!important}
body.dn-client-theme .logout{border-color:#002956!important;color:#002956!important;background:#fff!important}
body.dn-client-theme .logout:hover{background:#f2f7fb!important}
body.dn-client-theme .vip-badge{color:#002956!important}
body.dn-client-theme .field input:focus,body.dn-client-theme .field select:focus,body.dn-client-theme .field textarea:focus{border-color:#80bd93!important;box-shadow:0 0 0 3px rgba(19,148,56,.09)!important}

/* Payment and floating actions */
body.dn-client-theme .v38-chat{background:#002956!important}
body.dn-client-theme .v38-whatsapp{background:#139438!important}
body.dn-client-theme .v38-telegram{background:linear-gradient(135deg,#002956,#139438)!important}
body.dn-client-theme .v38-reward{background:linear-gradient(135deg,#002956,#139438)!important}
body.dn-client-theme .pay-option.selected{border-color:#139438!important;box-shadow:0 10px 28px rgba(0,41,86,.08)!important}
body.dn-client-theme .pay-option.selected .radio{border-color:#139438!important}
body.dn-client-theme .brand-dot{background:#002956!important;color:#fff!important}
body.dn-client-theme .pay-option:nth-child(even) .brand-dot{background:#139438!important}

/* Admin interface strict palette */
body.dn-client-theme .admin-sidebar{background:linear-gradient(180deg,#001d3d 0%,#002956 60%,#073b36 100%)!important}
body.dn-client-theme .admin-nav>button.active{background:linear-gradient(135deg,#002956,#139438)!important}
body.dn-client-theme .admin-nav>button:hover{border-color:rgba(19,148,56,.28)!important;background:rgba(19,148,56,.10)!important}
body.dn-client-theme .nav-count{background:#e8f6ec!important;color:#139438!important}
body.dn-client-theme .admin-logout{background:#eef5fb!important;color:#002956!important;border:1px solid #d6e3ef!important}
body.dn-client-theme .admin-logout:hover{background:#e7f6ec!important;color:#139438!important}
body.dn-client-theme .add-btn,body.dn-client-theme .green-btn,body.dn-client-theme .modal-primary,body.dn-client-theme .report-filters button{background:linear-gradient(135deg,#002956,#139438)!important;color:#fff!important}
body.dn-client-theme .settings-tabs button.active{color:#002956!important;border-color:#dce7f2!important}
body.dn-client-theme .admin-stat-card::before{background:linear-gradient(90deg,#002956,#139438)!important}
body.dn-client-theme .fake-chart span{background:linear-gradient(#2aaa50,#002956)!important}
body.dn-client-theme .attention-list b{background:#e8f6ec!important;color:#139438!important}
body.dn-client-theme .action-btn.view{background:#eaf2f8!important;color:#002956!important}
body.dn-client-theme .action-btn.edit{background:#e8f6ec!important;color:#139438!important}
body.dn-client-theme .action-btn.delete,body.dn-client-theme .danger-outline{background:#f2f7fb!important;color:#002956!important;border-color:#bfd0df!important}

/* Keep every selectable layout/theme inside the DailyNivex palette */
body.dn-client-theme[data-theme-pack="blue"] .theme-hero-blue,body.dn-client-theme[data-theme-pack="red"] .hero-brand,body.dn-client-theme[data-theme-pack="green"] .hero-brand,body.dn-client-theme[data-theme-pack="gold"] .hero-brand{background:linear-gradient(135deg,#002956,#139438)!important}
body.dn-client-theme[data-theme-pack="blue"] .money,body.dn-client-theme[data-theme-pack="red"] .money,body.dn-client-theme[data-theme-pack="green"] .money,body.dn-client-theme[data-theme-pack="gold"] .money{color:#139438!important}
body.dn-client-theme .blue-pack .pack-preview,body.dn-client-theme .red-pack .pack-preview,body.dn-client-theme .green-pack .pack-preview,body.dn-client-theme .gold-pack .pack-preview{background:linear-gradient(135deg,#002956,#139438)!important}

@media(max-width:600px){body.dn-client-theme .auth-logo{min-height:66px!important}body.dn-client-theme .auth-brand-img{height:66px!important}}

/* V5.4 admin dashboard/details palette cleanup */
body.dn-client-theme .dash-card::before,body.dn-client-theme .dash-card.red::before{background:linear-gradient(90deg,#002956,#139438)!important}
body.dn-client-theme .dash-card::after,body.dn-client-theme .dash-card.red::after{background:rgba(19,148,56,.07)!important}
body.dn-client-theme .dash-card .dash-ico,body.dn-client-theme .dash-card.red .dash-ico{background:#edf6f0!important;color:#139438!important}
body.dn-client-theme .dash-value{color:#002956!important}
body.dn-client-theme .export-bar button{background:#002956!important;border-color:rgba(255,255,255,.15)!important}
body.dn-client-theme .export-bar button:hover{background:#139438!important}
body.dn-client-theme .admin-top-search{color:#002956!important;border-color:#dce7f2!important}
body.dn-client-theme .admin-bell{color:#139438!important}
body.dn-client-theme .active-pill,body.dn-client-theme .safe-pill{background:#e8f6ec!important;color:#139438!important}
body.dn-client-theme .pending-pill,body.dn-client-theme .warning-pill{background:#eef5fb!important;color:#002956!important}
body.dn-client-theme .rejected-pill{background:#e7eef5!important;color:#002956!important}
body.dn-client-theme .server-flash.error{background:#eef5fb!important;color:#002956!important;border:1px solid #d6e3ef!important}
body.dn-client-theme .server-flash.success{background:#e8f6ec!important;color:#0d762d!important;border:1px solid #cee8d5!important}
body.dn-client-theme input[type=checkbox],body.dn-client-theme input[type=radio]{accent-color:#139438!important}
