
:root{--theme-accent:#8b5cf6;--theme-accent-2:#06b6d4;--theme-bg:#0f172a;--theme-bg-soft:#111827;--theme-card:rgba(15,23,42,0.72);--theme-border:rgba(255,255,255,0.10);--theme-text:#eef2ff;--theme-muted:#cbd5e1;--theme-shadow:0 20px 60px rgba(2,6,23,0.45);--shell-sidebar-width:310px;--shell-header-offset:96px;}
body.fancy-theme{background:radial-gradient(circle at top left,#1e1b4b 0%,#0f172a 38%,#020617 100%);color:var(--theme-text);font-family:'Nunito',sans-serif;}
.fancy-theme a{transition:all .25s ease;}
.fancy-theme .site-shell, .fancy-theme .auth-shell{position:relative;z-index:2;}
.fancy-theme .glass-card, .fancy-theme .compact-card, .fancy-theme .section-card, .fancy-theme .mini-panel, .fancy-theme .quick-link-card, .fancy-theme .widget, .fancy-theme .tab-content, .fancy-theme .nav-tabs{background:var(--theme-card)!important;border:1px solid var(--theme-border)!important;box-shadow:var(--theme-shadow);backdrop-filter:blur(14px);border-radius:22px;}
.fancy-theme .landing-page, .fancy-theme.landing-page{min-height:100vh;padding:28px;}
.fancy-theme .landing-nav{padding:0 0 18px;border-bottom:1px solid var(--theme-border);margin-bottom:24px;}
.fancy-theme .navbar-brand, .fancy-theme .landing-footer a, .fancy-theme .hero-copy h1, .fancy-theme h1, .fancy-theme h2, .fancy-theme h3, .fancy-theme h4, .fancy-theme h5{color:var(--theme-text)!important;}
.fancy-theme .brand-logo{width:42px;height:42px;object-fit:contain;border-radius:12px;background:rgba(255,255,255,0.12);padding:6px;}
.fancy-theme .nav-link-inline{color:var(--theme-muted);text-decoration:none;}
.fancy-theme .landing-hero{padding:18px 0 20px;}
.fancy-theme .hero-copy, .fancy-theme .auth-panel, .fancy-theme .auth-card, .fancy-theme .auth-side, .fancy-theme .dashboard-hero{padding:32px;}
.fancy-theme .eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,0.08);color:var(--theme-muted);font-size:.9rem;margin-bottom:16px;}
.fancy-theme .hero-lead{font-size:1.05rem;color:var(--theme-muted);max-width:700px;}
.fancy-theme .hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
.fancy-theme .hero-badges span{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,0.07);border:1px solid var(--theme-border);color:var(--theme-text);}
.fancy-theme .metric-card, .fancy-theme .stat-card{padding:18px 18px 16px;height:100%;display:flex;flex-direction:column;gap:8px;}
.fancy-theme .metric-card i, .fancy-theme .stat-card i, .fancy-theme .feature-card i, .fancy-theme .quick-link-card i{font-size:1.2rem;color:var(--theme-accent);}
.fancy-theme .metric-card strong, .fancy-theme .stat-card strong{font-size:1.45rem;line-height:1.1;}
.fancy-theme .metric-card span, .fancy-theme .stat-card span, .fancy-theme .feature-card p, .fancy-theme p, .fancy-theme small{color:var(--theme-muted)!important;}
.fancy-theme .feature-card{padding:22px;height:100%;}
.fancy-theme .feature-card h5{margin-top:14px;}
.fancy-theme .auth-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:center;padding:32px;}
.fancy-theme .auth-shell-single{grid-template-columns:minmax(320px,640px);justify-content:center;}
.fancy-theme .auth-benefits{list-style:none;padding:0;margin:24px 0;display:grid;gap:12px;}
.fancy-theme .auth-benefits li{display:flex;align-items:center;gap:12px;color:var(--theme-text);}
.fancy-theme .input-icon-wrap{position:relative;}
.fancy-theme .input-icon-wrap i{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:var(--theme-muted);z-index:2;}
.fancy-theme .input-icon-wrap .form-control{padding-left:44px;height:52px;border-radius:14px;background:rgba(255,255,255,0.08);border:1px solid var(--theme-border);color:#fff;}
.fancy-theme .form-control, .fancy-theme .custom-select, .fancy-theme select{border-radius:14px;border:1px solid var(--theme-border);background:rgba(255,255,255,0.08);color:#fff;min-height:48px;}
.fancy-theme .form-control::placeholder{color:rgba(255,255,255,.55);}
.fancy-theme .btn-primary{background:linear-gradient(135deg,var(--theme-accent),var(--theme-accent-2));border:none;border-radius:14px;box-shadow:0 14px 35px rgba(0,0,0,.18);}
.fancy-theme .btn-outline-light{border-radius:14px;}
.fancy-theme .main-container{background:transparent;}
.fancy-theme .header-container, .fancy-theme .sub-header-container, .fancy-theme .sidebar-wrapper .shadow-bottom{background:transparent!important;box-shadow:none!important;}
.fancy-theme .header.navbar, .fancy-theme .sub-header-container .header{background:rgba(255,255,255,0.05)!important;border:1px solid var(--theme-border);margin:14px 22px 0;border-radius:18px;backdrop-filter:blur(14px);}
.fancy-theme .sidebar-wrapper{padding:18px;}
.fancy-theme .sidebar-theme{background:transparent!important;}
.fancy-theme #sidebar{background:var(--theme-card)!important;border:1px solid var(--theme-border);border-radius:24px;padding-top:12px;box-shadow:var(--theme-shadow);}
.fancy-theme #sidebar ul.menu-categories li.menu > .dropdown-toggle, .fancy-theme #sidebar ul.menu-categories li.menu > a{border-radius:16px;margin:4px 10px;color:var(--theme-text)!important;}
.fancy-theme #sidebar ul.menu-categories li.menu > .dropdown-toggle:hover, .fancy-theme #sidebar ul.menu-categories li.menu > a:hover{background:rgba(255,255,255,0.08)!important;transform:translateX(4px);}
.fancy-theme #content{padding:18px 22px 26px;}
.fancy-theme .dashboard-redesign .section-heading h4{margin-bottom:10px;}
.fancy-theme .section-card{padding:26px;}
.fancy-theme .quick-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.fancy-theme .quick-link-card{padding:18px;display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--theme-text)!important;}
.fancy-theme .quick-link-card:hover{transform:translateY(-4px);}
.fancy-theme .mini-panel{padding:18px;height:100%;display:flex;flex-direction:column;gap:6px;}
.fancy-theme .mini-panel.center{justify-content:center;align-items:center;text-align:center;}
.fancy-theme .mini-panel strong{font-size:1.2rem;color:var(--theme-text);}
.fancy-theme .ref-link-box{display:flex;gap:10px;align-items:center;}
.fancy-theme .notice-stack{display:grid;gap:12px;}
.fancy-theme .notice-item{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,0.06);border:1px solid var(--theme-border);}
.fancy-theme .mini-stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.fancy-theme .mini-stat{padding:14px;border-radius:16px;background:rgba(255,255,255,0.06);border:1px solid var(--theme-border);text-align:center;}
.fancy-theme .mini-stat strong{display:block;color:var(--theme-text);margin-top:6px;}
.fancy-theme .widget, .fancy-theme .table, .fancy-theme .nav-tabs{color:var(--theme-text)!important;}
.fancy-theme .table td, .fancy-theme .table th{border-color:var(--theme-border)!important;color:var(--theme-text)!important;}
.fancy-theme .tabs .nav-tabs, .fancy-theme .nav-tabs{overflow:auto;padding:6px;}
.fancy-theme .themed-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--theme-accent),var(--theme-accent-2));color:white;box-shadow:0 10px 24px rgba(0,0,0,.2);}
.fancy-theme .footer-wrapper, .fancy-theme .landing-footer{margin-top:18px;padding:18px 0;color:var(--theme-muted);}
.fancy-theme .float-anim{animation:floatY 6s ease-in-out infinite;}
.fancy-theme .pulse-anim{animation:pulseGlow 4.5s ease-in-out infinite;}
@keyframes floatY{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}
@keyframes pulseGlow{0%,100%{box-shadow:var(--theme-shadow);}50%{box-shadow:0 20px 60px rgba(139,92,246,0.30);}}
@media (max-width: 991px){.fancy-theme .auth-shell{grid-template-columns:1fr;padding:18px;} .fancy-theme .landing-page{padding:18px;} .fancy-theme .hero-copy,.fancy-theme .auth-panel,.fancy-theme .auth-card,.fancy-theme .auth-side,.fancy-theme .dashboard-hero,.fancy-theme .section-card{padding:22px;} .fancy-theme .quick-links-grid,.fancy-theme .mini-stats-row{grid-template-columns:1fr 1fr;} }
@media (max-width: 575px){.fancy-theme #content{padding:12px;} .fancy-theme .quick-links-grid,.fancy-theme .mini-stats-row{grid-template-columns:1fr;} .fancy-theme .ref-link-box{flex-direction:column;} .fancy-theme .header.navbar, .fancy-theme .sub-header-container .header{margin:10px 10px 0;} }

/* ===== Phase 2 foundation pass ===== */
.fancy-theme .card{background:var(--theme-card)!important;border:1px solid var(--theme-border)!important;box-shadow:var(--theme-shadow)!important;border-radius:22px!important;color:var(--theme-text)!important;}
.fancy-theme .card .card-header,.fancy-theme .card .card-body,.fancy-theme .card .card-footer{background:transparent!important;color:var(--theme-text)!important;border-color:rgba(255,255,255,.06)!important;}
.fancy-theme .table,.fancy-theme .table th,.fancy-theme .table td,.fancy-theme .table-striped tbody tr:nth-of-type(odd){color:var(--theme-text)!important;background:transparent!important;}
.fancy-theme .table-bordered td,.fancy-theme .table-bordered th,.fancy-theme .table td,.fancy-theme .table th{border-color:rgba(255,255,255,.08)!important;}
.fancy-theme .alert{border-radius:18px;border:1px solid rgba(255,255,255,.08);}
.fancy-theme .link-block,.fancy-theme .page-card,.fancy-theme .summary-card{background:var(--theme-card);border:1px solid var(--theme-border);box-shadow:var(--theme-shadow);border-radius:22px;}
.fancy-theme .bg-soft-primary,.fancy-theme .bg-soft-secondary,.fancy-theme .bg-soft-warning,.fancy-theme .bg-soft-info{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.1)!important;}
.fancy-theme .icon.icon-lg{display:flex;align-items:center;justify-content:center;min-width:56px;min-height:56px;}
.fancy-theme .text-primary,.fancy-theme .text-secondary,.fancy-theme .text-info,.fancy-theme .text-warning,.fancy-theme .text-muted{color:var(--theme-muted)!important;}
.fancy-theme .lh-1,.fancy-theme .link-name,.fancy-theme .link-rmn,.fancy-theme .card-title,strong,.fancy-theme h6,.fancy-theme label{color:var(--theme-text)!important;}
.fancy-theme .form-control,.fancy-theme textarea,.fancy-theme select,.fancy-theme .custom-file-label{background:rgba(15,19,38,.78)!important;border:1px solid rgba(255,255,255,.12)!important;color:var(--theme-text)!important;border-radius:14px!important;}
.fancy-theme .form-control::placeholder{color:rgba(228,233,255,.55)!important;}
.fancy-theme .btn{border-radius:14px;font-weight:700;letter-spacing:.01em;padding:.72rem 1.15rem;box-shadow:none!important;}
.fancy-theme .btn-primary,.fancy-theme .btn-success{background:linear-gradient(135deg,var(--theme-accent),var(--theme-accent-2))!important;border:none!important;color:#fff!important;}
.fancy-theme .btn-warning{background:linear-gradient(135deg,#ffb347,#ff8e53)!important;border:none!important;color:#1d1320!important;}
.fancy-theme .btn-danger{background:linear-gradient(135deg,#ff5f8f,#ff3d71)!important;border:none!important;color:#fff!important;}
.fancy-theme .btn-info{background:linear-gradient(135deg,#4bc0ff,#6f86ff)!important;border:none!important;color:#fff!important;}
.fancy-theme .btn-outline-primary,.fancy-theme .btn-outline-secondary,.fancy-theme .btn-outline-warning{background:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.18)!important;color:var(--theme-text)!important;}
.fancy-theme .btn-outline-primary:hover,.fancy-theme .btn-outline-secondary:hover,.fancy-theme .btn-outline-warning:hover{background:rgba(255,255,255,.1)!important;color:#fff!important;border-color:rgba(255,255,255,.3)!important;}
.fancy-theme .btn-primary:hover,.fancy-theme .btn-success:hover,.fancy-theme .btn-warning:hover,.fancy-theme .btn-danger:hover,.fancy-theme .btn-info:hover{transform:translateY(-1px);filter:brightness(1.03);}
.fancy-theme .btn:focus,.fancy-theme .btn:active{box-shadow:0 0 0 .2rem rgba(136,142,255,.18)!important;}

.fancy-theme .landing-nav{padding:6px 0 22px;border-bottom:1px solid var(--theme-border);margin-bottom:26px;}
.fancy-theme .landing-nav-actions{gap:10px;}
.fancy-theme .nav-link-inline{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid transparent;}
.fancy-theme .nav-link-inline:hover{color:var(--theme-text)!important;border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.08);}
.fancy-theme .nav-register-btn{padding-inline:20px!important;}
.fancy-theme .trust-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.fancy-theme .trust-card{padding:18px;display:flex;flex-direction:column;gap:8px;min-height:100%;}
.fancy-theme .trust-card strong{font-size:1.1rem;}
.fancy-theme .withdrawal-feed-card{padding:22px;}
.fancy-theme .feed-meta{display:flex;flex-wrap:wrap;gap:14px;color:var(--theme-muted);font-size:.92rem;}
.fancy-theme .activity-dot{font-size:1.1rem;color:var(--theme-accent);}
.fancy-theme .roadmap-card{padding:28px;}
.fancy-theme .step-line{display:flex;flex-direction:column;gap:18px;}
.fancy-theme .step-item{display:flex;align-items:flex-start;gap:16px;}
.fancy-theme .step-item span{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--theme-accent),var(--theme-accent-2));color:#fff;font-weight:800;flex:0 0 38px;}
.fancy-theme .faq-list{display:flex;flex-direction:column;gap:16px;}
.fancy-theme .faq-item{padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);}
.fancy-theme .faq-item h5{margin-bottom:8px;}
.fancy-theme .cta-band{padding:36px 22px;}

.fancy-theme .unified-shell-header{display:flex;align-items:center;gap:18px;min-height:78px;padding:0 18px;}
.fancy-theme .unified-header-container .header.navbar{margin:14px 22px 0!important;}
.fancy-theme .brand-and-toggle{min-width:300px;}
.fancy-theme .page-meta-inline{flex:1 1 auto;min-width:0;}
.fancy-theme .page-kicker{display:block;font-size:.76rem;text-transform:uppercase;letter-spacing:.14em;color:var(--theme-muted);margin-bottom:2px;}
.fancy-theme .page-title{font-size:1.2rem;color:var(--theme-text);}
.fancy-theme .header-actions{gap:8px;}
.fancy-theme .guest-pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:var(--theme-text);}
/*.fancy-theme .guest-preview-banner{padding-top:92px;}*/
.fancy-theme .guest-preview-banner{padding-bottom:10px;}
.fancy-theme .guest-preview-banner .alert{background:rgba(67,191,255,.12);color:#dff7ff;border-color:rgba(67,191,255,.24);}
.fancy-theme .main-container{padding:96px 0 0 0;}
.fancy-theme .sidebar-wrapper{padding:18px;padding-top:5px;width:var(--shell-sidebar-width)!important;}
.fancy-theme #content{padding:18px 22px 28px!important;margin-left:var(--shell-sidebar-width)!important;min-height:100vh;}
.fancy-theme .sidebar-wrapper .menu-categories{gap:6px;display:flex;flex-direction:column;}
.fancy-theme .sidebar-wrapper .menu-categories .menu > a{border-radius:16px;padding:14px 16px;min-height:52px;align-items:center;}
.fancy-theme .sidebar-wrapper .menu-categories .menu > a div:first-child{display:flex;align-items:center;gap:12px;}
.fancy-theme .sidebar-wrapper .submenu > li > a{border-radius:12px;}
.fancy-theme .ref-link-box .form-control{background:rgba(255,255,255,.05)!important;}
.fancy-theme .dashboard-redesign .mini-panel,.fancy-theme .dashboard-redesign .mini-stat{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:18px;}
.mini-panel{overflow-wrap: break-word !Important;}
.footer-wrapper{padding:0 !Important;}
.fancy-theme .countdown,.fancy-theme #minute,.fancy-theme #second{color:var(--theme-text)!important;}
.fancy-theme .ads img{max-width:100%;height:auto;}
.fancy-theme .iconcaptcha-widget,.fancy-theme .captcha-wrap{border-radius:18px;}

.admin-auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at top left, rgba(140,96,255,.32), transparent 34%), radial-gradient(circle at right center, rgba(91,200,250,.24), transparent 28%), linear-gradient(180deg,#0a1022 0%,#121933 100%);}
.admin-auth-page .form-form-wrap,.admin-auth-page .form-content{background:rgba(17,23,45,.85)!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:26px!important;box-shadow:0 24px 60px rgba(0,0,0,.35);color:#eef1ff!important;}
.admin-auth-page .field-wrapper svg{color:#b8c4ff!important;}
.admin-auth-page .form-control{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.1)!important;color:#eef1ff!important;}
.admin-auth-page p,.admin-auth-page label,.admin-auth-page h1{color:#eef1ff!important;}

@media (max-width: 991px){
  .fancy-theme .trust-strip{grid-template-columns:1fr;}
  .fancy-theme .sidebar-wrapper{width:280px!important;}
  .fancy-theme #content{margin-left:0!important;padding:16px!important;}
  .fancy-theme .page-meta-inline{display:none!important;}
}
@media (max-width: 767px){
  .fancy-theme .header-actions .breadcrumb-one{display:none!important;}
  .fancy-theme .landing-nav-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end;}
  .fancy-theme .nav-link-inline{padding:9px 12px;}
  .fancy-theme .unified-shell-header{padding:0 14px;min-height:72px;}
  .fancy-theme .brand-and-toggle{min-width:auto;}
  /*.fancy-theme .guest-preview-banner{padding-top:88px;}*/
}


/* ===== Sidebar consistency pass ===== */
body.fancy-theme.dashboard-shell{min-height:100vh;}
.fancy-theme.dashboard-shell .main-container{padding:var(--shell-header-offset) 0 0 0;align-items:stretch;flex-wrap:nowrap;gap:0;}
.fancy-theme.dashboard-shell .sidebar-wrapper{position:sticky;top:var(--shell-header-offset);left:auto;height:auto;min-height:calc(100vh - (var(--shell-header-offset) + 18px));align-self:stretch;padding:5px 18px 18px;width:var(--shell-sidebar-width)!important;max-width:var(--shell-sidebar-width)!important;flex:0 0 var(--shell-sidebar-width);z-index:1020;touch-action:auto;touch-action:pan-y pinch-zoom;}
.fancy-theme.dashboard-shell .sidebar-closed > .sidebar-wrapper{left:auto!important;}
.fancy-theme.dashboard-shell #sidebar{min-height:100%;height:100%;display:flex;flex-direction:column;overflow:hidden!important;touch-action:auto;touch-action:pan-y pinch-zoom;}
.fancy-theme.dashboard-shell #sidebar .sidebar-scroll{display:flex;flex:1 1 auto;flex-direction:column;gap:14px;min-height:0;height:100%;padding-bottom:10px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:auto;touch-action:pan-y pinch-zoom;}
.fancy-theme.dashboard-shell #sidebar ul.menu-categories{height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:8px;}
.fancy-theme.dashboard-shell #sidebar ul.menu-categories.ps{height:auto!important;max-height:none!important;overflow:visible!important;margin-right:0;padding-right:0;border-right:none;}
.fancy-theme.dashboard-shell #content{margin-left:0!important;min-height:calc(100vh - var(--shell-header-offset));width:calc(100% - var(--shell-sidebar-width));max-width:calc(100% - var(--shell-sidebar-width));flex:1 1 calc(100% - var(--shell-sidebar-width));}
.fancy-theme.dashboard-shell .sidebar-profile-card{display:flex;align-items:center;gap:14px;margin:10px 14px 6px;padding:18px;border-radius:20px;background:linear-gradient(135deg,rgba(139,92,246,.22),rgba(6,182,212,.12));border:1px solid rgba(255,255,255,.12);overflow:visible!important;}
.fancy-theme.dashboard-shell .sidebar-profile-card *{overflow:visible!important;white-space:normal!important;}
.fancy-theme.dashboard-shell .sidebar-profile-avatar{width:52px;height:52px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--theme-accent),var(--theme-accent-2));color:#fff;font-size:1.2rem;font-weight:800;flex:0 0 52px;box-shadow:0 14px 28px rgba(0,0,0,.2);}
.fancy-theme.dashboard-shell .sidebar-profile-copy{display:flex;flex-direction:column;gap:3px;min-width:0;}
.fancy-theme.dashboard-shell .sidebar-profile-copy strong{font-size:1rem;line-height:1.2;color:var(--theme-text);}
.fancy-theme.dashboard-shell .sidebar-profile-copy small,.fancy-theme.dashboard-shell .sidebar-kicker{color:var(--theme-muted)!important;}
.fancy-theme.dashboard-shell .sidebar-kicker{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;}
.fancy-theme.dashboard-shell .sidebar-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 14px;}
.fancy-theme.dashboard-shell .sidebar-stat-pill{padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);}
.fancy-theme.dashboard-shell .sidebar-stat-pill span{display:block;font-size:.74rem;text-transform:uppercase;letter-spacing:.1em;color:var(--theme-muted);margin-bottom:4px;}
.fancy-theme.dashboard-shell .sidebar-stat-pill strong{color:var(--theme-text);font-size:1rem;}
.fancy-theme.dashboard-shell .sidebar-meta-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 4px;}
.fancy-theme.dashboard-shell .sidebar-meta-chips span{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);font-size:.78rem;color:var(--theme-text);}
.fancy-theme.dashboard-shell .menu-section-title{margin:14px 18px 4px;padding:0!important;}
.fancy-theme.dashboard-shell .menu-section-title span{display:block;font-size:.72rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(226,232,240,.72);padding:4px 2px;}
.fancy-theme.dashboard-shell .menu-section-title:hover{background:transparent!important;transform:none!important;}
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .menu > a{justify-content:space-between;}
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .menu > a span.badge{margin-left:10px;}
.fancy-theme.dashboard-shell .page-library-card,.fancy-theme.dashboard-shell .content-page-shell{overflow:hidden;}
.fancy-theme.dashboard-shell .content-page-body{line-height:1.75;color:var(--theme-text);}
.fancy-theme.dashboard-shell .content-page-body p,.fancy-theme.dashboard-shell .content-page-body li{color:var(--theme-muted)!important;}
.fancy-theme.dashboard-shell .content-page-body h1,.fancy-theme.dashboard-shell .content-page-body h2,.fancy-theme.dashboard-shell .content-page-body h3,.fancy-theme.dashboard-shell .content-page-body h4,.fancy-theme.dashboard-shell .content-page-body h5,.fancy-theme.dashboard-shell .content-page-body h6{color:var(--theme-text)!important;margin-top:1.2rem;}
.fancy-theme.dashboard-shell .content-page-body table{width:100%;display:block;overflow-x:auto;}

.fancy-theme.dashboard-shell #content > .layout-px-spacing,.fancy-theme.dashboard-shell #content > .container-fluid,.fancy-theme.dashboard-shell #content > .ads,.fancy-theme.dashboard-shell #content > .footer-wrapper{display:block;width:100%;max-width:100%;}
.fancy-theme.dashboard-shell #content > .layout-px-spacing{padding-left:18px!important;padding-right:18px!important;}
.fancy-theme.dashboard-shell .main-container.sidebar-closed #content{width:100%;max-width:100%;flex-basis:100%;}

@media (min-width: 992px){
  .fancy-theme.dashboard-shell .overlay{display:none!important;}
}

@media (max-width: 991px){
  .fancy-theme.dashboard-shell{--shell-header-offset:88px;--shell-mobile-sidebar-height:calc(100svh - var(--shell-header-offset));}
  .fancy-theme.dashboard-shell .header-container{z-index:1040;}
  .fancy-theme.dashboard-shell .main-container{padding-top:var(--shell-header-offset);}
  .fancy-theme.dashboard-shell .overlay{top:var(--shell-header-offset);height:calc(100svh - var(--shell-header-offset));z-index:1048;background:rgba(2,6,23,.58);backdrop-filter:blur(4px);}
  .fancy-theme.dashboard-shell .sidebar-wrapper{position:fixed;top:var(--shell-header-offset);left:0;bottom:auto;height:var(--shell-mobile-sidebar-height);min-height:var(--shell-mobile-sidebar-height);max-height:var(--shell-mobile-sidebar-height);width:min(86vw,320px)!important;max-width:min(86vw,320px)!important;flex-basis:auto;padding:0;z-index:1055;overflow:hidden;pointer-events:none;-webkit-transform:translate3d(-105%,0,0);transform:translate3d(-105%,0,0);transition:transform .3s ease;}
  .fancy-theme.dashboard-shell .main-container.sbar-open .sidebar-wrapper{pointer-events:auto;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);}
  .fancy-theme.dashboard-shell .main-container.sidebar-closed .sidebar-wrapper{pointer-events:none;-webkit-transform:translate3d(-105%,0,0);transform:translate3d(-105%,0,0);}
  .fancy-theme.dashboard-shell #sidebar{height:100%;min-height:100%;max-height:100%;border-radius:0;padding-top:0;overflow:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;}
  .fancy-theme.dashboard-shell #sidebar .sidebar-scroll{display:flex;flex-direction:column;min-height:0;height:100%;max-height:100%;padding:12px 0 calc(env(safe-area-inset-bottom, 0px) + 56px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom !important;scroll-padding-bottom:56px;}
  .fancy-theme.dashboard-shell #sidebar ul.menu-categories{padding-bottom:28px!important;}
  .fancy-theme.dashboard-shell #sidebar ul.menu-categories > li:last-child{margin-bottom:18px!important;}
  .fancy-theme.dashboard-shell #content{width:100%;max-width:100%;min-height:auto;flex-basis:100%;}
  .fancy-theme.dashboard-shell .sidebar-level-card{margin-top:12px;}
  .fancy-theme.dashboard-shell .sidebar-level-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .fancy-theme.dashboard-shell .sidebar-stat-grid{grid-template-columns:1fr;}
}

@media (max-width: 575px){
  .fancy-theme.dashboard-shell{--shell-header-offset:82px;--shell-mobile-sidebar-height:calc(100svh - var(--shell-header-offset));}
  .fancy-theme.dashboard-shell .main-container{padding-top:var(--shell-header-offset);}
  .fancy-theme.dashboard-shell .overlay{top:var(--shell-header-offset);height:calc(100svh - var(--shell-header-offset));}
  .fancy-theme.dashboard-shell .sidebar-wrapper{top:var(--shell-header-offset);height:var(--shell-mobile-sidebar-height);min-height:var(--shell-mobile-sidebar-height);max-height:var(--shell-mobile-sidebar-height);width:min(92vw,320px)!important;max-width:min(92vw,320px)!important;}
  .fancy-theme.dashboard-shell #sidebar{height:100%;min-height:100%;max-height:100%;}
}


.fancy-theme.dashboard-shell #content > .layout-px-spacing{width:100%;max-width:none;}
.fancy-theme.dashboard-shell .dashboard-redesign{display:block;width:100%;max-width:none;}
.fancy-theme.dashboard-shell .sidebar-level-card{margin:10px 14px 0;padding:16px;border-radius:20px;background:linear-gradient(135deg,rgba(6,182,212,.16),rgba(139,92,246,.18));border:1px solid rgba(255,255,255,.12);}
.fancy-theme.dashboard-shell .sidebar-level-kicker{display:block;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(226,232,240,.72);margin-bottom:10px;}
.fancy-theme.dashboard-shell .sidebar-level-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.fancy-theme.dashboard-shell .sidebar-level-item{padding:12px 14px;border-radius:16px;background:rgba(15,23,42,.28);border:1px solid rgba(255,255,255,.08);}
.fancy-theme.dashboard-shell .sidebar-level-item span{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--theme-muted);margin-bottom:4px;}
.fancy-theme.dashboard-shell .sidebar-level-item strong{display:block;color:var(--theme-text);font-size:1rem;line-height:1.25;word-break:break-word;}
.fancy-theme.dashboard-shell .sidebar-level-item-wide{grid-column:1 / -1;}
.fancy-theme.dashboard-shell .sidebar-profile-card{margin-top:0;}
.fancy-theme.dashboard-shell .sidebar-meta-chips{display:none;}



@media (max-width: 991px){
  .fancy-theme.dashboard-shell .sidebar-stat-grid{grid-template-columns:1fr;}
}
@media (max-width: 380px){
  .fancy-theme.dashboard-shell .sidebar-level-grid{grid-template-columns:1fr;}
  .fancy-theme.dashboard-shell .sidebar-level-item-wide{grid-column:auto;}
}


@media (max-width: 991px){
  .fancy-theme.dashboard-shell #sidebar .sidebar-scroll > *{flex:0 0 auto;}
  .fancy-theme.dashboard-shell .sidebar-level-card,.fancy-theme.dashboard-shell .sidebar-profile-card,.fancy-theme.dashboard-shell .sidebar-stat-grid,.fancy-theme.dashboard-shell #sidebar .menu-categories{position:relative;z-index:1;}
  .fancy-theme.dashboard-shell .sidebar-level-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .fancy-theme.dashboard-shell .sidebar-level-item{display:block!important;min-height:76px;}
}


/* ===== Shared footer alignment ===== */
.fancy-theme.dashboard-shell{
  --shell-content-gutter: 18px;
}
.fancy-theme.dashboard-shell #content > .layout-px-spacing,
.fancy-theme.dashboard-shell #content > .container-fluid,
.fancy-theme.dashboard-shell #content > .ads,
.fancy-theme.dashboard-shell #content > .footer-wrapper{
  box-sizing:border-box;
}
.fancy-theme.dashboard-shell .shell-footer-wrapper{
  margin-top:18px;
  padding:0 var(--shell-content-gutter) 24px !important;
  width:100%;
  max-width:100%;
  background:transparent;
}
.fancy-theme.dashboard-shell .footer-shell-inner{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px 24px;
  width:100%;
  max-width:100%;
  padding:18px 20px;
  border:1px solid rgba(67,191,255,.24);
  border-top-color:rgba(67,191,255,.24);
  border-radius:18px;
  background:rgba(67,191,255,.12);
  color:#dff7ff;
  box-sizing:border-box;
}
.fancy-theme.dashboard-shell .footer-shell-inner .footer-section{
  min-width:0;
}
.fancy-theme.dashboard-shell .footer-shell-inner .f-section-1{
  overflow-wrap:anywhere;
}
.fancy-theme.dashboard-shell .footer-shell-inner .f-section-2{
  justify-self:end;
  text-align:right;
  white-space:nowrap;
}
.fancy-theme.dashboard-shell .footer-shell-inner p{
  margin:0;
  line-height:1.6;
}
.fancy-theme.dashboard-shell .footer-shell-inner,
.fancy-theme.dashboard-shell .footer-shell-inner p,
.fancy-theme.dashboard-shell .footer-shell-inner .footer-section{
  color:#dff7ff;
}
.fancy-theme.dashboard-shell .footer-shell-inner a{
  color:#ffffff;
  text-decoration:none;
}
.fancy-theme.dashboard-shell .footer-shell-inner a:hover{
  color:#ffffff;
  text-decoration:underline;
}

@media (max-width: 991px){
  .fancy-theme.dashboard-shell{
    --shell-content-gutter: 16px;
  }
  .fancy-theme.dashboard-shell .shell-footer-wrapper{
    padding:0 var(--shell-content-gutter) 22px !important;
  }
  .fancy-theme.dashboard-shell .footer-shell-inner{
    grid-template-columns:1fr;
    align-items:start;
  }
  .fancy-theme.dashboard-shell .footer-shell-inner .f-section-2{
    justify-self:start;
    text-align:left;
    white-space:normal;
  }
}

@media (max-width: 575px){
  .fancy-theme.dashboard-shell{
    --shell-content-gutter: 14px;
  }
  .fancy-theme.dashboard-shell .footer-shell-inner{
    padding:16px 16px 18px;
  }
}


@supports (height: 100dvh){
  @media (max-width: 991px){
    .fancy-theme.dashboard-shell{--shell-mobile-sidebar-height:calc(100dvh - var(--shell-header-offset));}
    .fancy-theme.dashboard-shell .overlay{height:calc(100dvh - var(--shell-header-offset));}
  }
}

/* ===== Legacy page dark-theme sync pass (achievements, account, history, lottery, auto, deposit) ===== */
.fancy-theme.dashboard-shell .widget.box .widget-header,
.fancy-theme.dashboard-shell .widget-content-area,
.fancy-theme.dashboard-shell .change-password,
.fancy-theme.dashboard-shell .change-password .info,
.fancy-theme.dashboard-shell .change-password .save-info,
.fancy-theme.dashboard-shell .account-settings-container .account-content,
.fancy-theme.dashboard-shell .account-content .section,
.fancy-theme.dashboard-shell .account-content .info{
  background:var(--theme-card)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-border)!important;
}

.fancy-theme.dashboard-shell .widget.box .widget-header{
  border:1px solid var(--theme-border)!important;
  border-bottom:none!important;
  border-top-left-radius:22px!important;
  border-top-right-radius:22px!important;
  box-shadow:var(--theme-shadow)!important;
}

.fancy-theme.dashboard-shell .widget-content-area,
.fancy-theme.dashboard-shell .change-password,
.fancy-theme.dashboard-shell .account-settings-container .account-content{
  border:1px solid var(--theme-border)!important;
  border-radius:22px!important;
  box-shadow:var(--theme-shadow)!important;
}

.fancy-theme.dashboard-shell .widget.box .widget-header + .widget-content-area{
  border-top-left-radius:0!important;
  border-top-right-radius:0!important;
  border-top:none!important;
}

.fancy-theme.dashboard-shell .row [class*="col-"] .widget .widget-header h4,
.fancy-theme.dashboard-shell .change-password .info h5,
.fancy-theme.dashboard-shell .widget-content-area h1,
.fancy-theme.dashboard-shell .widget-content-area h2,
.fancy-theme.dashboard-shell .widget-content-area h3,
.fancy-theme.dashboard-shell .widget-content-area h4,
.fancy-theme.dashboard-shell .widget-content-area h5,
.fancy-theme.dashboard-shell .widget-content-area h6{
  color:var(--theme-text)!important;
}

.fancy-theme.dashboard-shell .change-password .info label,
.fancy-theme.dashboard-shell .widget-content-area label,
.fancy-theme.dashboard-shell .widget-content-area p,
.fancy-theme.dashboard-shell .widget-content-area small,
.fancy-theme.dashboard-shell .widget-content-area span:not(.badge):not(.input-group-text){
  color:var(--theme-muted)!important;
}

.fancy-theme.dashboard-shell .table-light,
.fancy-theme.dashboard-shell .table-light > th,
.fancy-theme.dashboard-shell .table-light > td,
.fancy-theme.dashboard-shell .table-hover .table-light:hover,
.fancy-theme.dashboard-shell .table-hover .table-light:hover > td,
.fancy-theme.dashboard-shell .table-hover .table-light:hover > th,
.fancy-theme.dashboard-shell .table thead th{
  background:rgba(255,255,255,.04)!important;
  color:var(--theme-text)!important;
  border-color:rgba(255,255,255,.08)!important;
}

.fancy-theme.dashboard-shell .table tbody tr:hover td,
.fancy-theme.dashboard-shell .table tbody tr:hover th{
  background:rgba(255,255,255,.05)!important;
}

.fancy-theme.dashboard-shell .progress{
  background:rgba(255,255,255,.08)!important;
  border-radius:999px!important;
}

.fancy-theme.dashboard-shell .progress-bar.bg-secondary,
.fancy-theme.dashboard-shell .progress-bar-striped.bg-secondary{
  background:linear-gradient(135deg,var(--theme-accent),var(--theme-accent-2))!important;
}

.fancy-theme.dashboard-shell .badge-secondary,
.fancy-theme.dashboard-shell .badge-warning,
.fancy-theme.dashboard-shell .badge-success,
.fancy-theme.dashboard-shell .badge-info,
.fancy-theme.dashboard-shell .badge-danger{
  border:none!important;
  color:#fff!important;
}

.fancy-theme.dashboard-shell .badge-secondary{background:linear-gradient(135deg,#64748b,#475569)!important;}
.fancy-theme.dashboard-shell .badge-warning{background:linear-gradient(135deg,#f59e0b,#f97316)!important;color:#1f1300!important;}
.fancy-theme.dashboard-shell .badge-success{background:linear-gradient(135deg,#10b981,#059669)!important;}
.fancy-theme.dashboard-shell .badge-info{background:linear-gradient(135deg,#38bdf8,#6366f1)!important;}
.fancy-theme.dashboard-shell .badge-danger{background:linear-gradient(135deg,#fb7185,#e11d48)!important;}

.fancy-theme.dashboard-shell .alert,
.fancy-theme.dashboard-shell .alert-light-primary,
.fancy-theme.dashboard-shell .alert-light-info,
.fancy-theme.dashboard-shell .alert-light-success,
.fancy-theme.dashboard-shell .alert-info{
  background:rgba(255,255,255,.06)!important;
  color:var(--theme-text)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:none!important;
}

.fancy-theme.dashboard-shell .alert-light-primary{
  background:rgba(99,102,241,.12)!important;
  border-color:rgba(129,140,248,.22)!important;
}

.fancy-theme.dashboard-shell .alert-light-info,
.fancy-theme.dashboard-shell .alert-info{
  background:rgba(56,189,248,.12)!important;
  border-color:rgba(56,189,248,.22)!important;
}

.fancy-theme.dashboard-shell .alert-light-success{
  background:rgba(16,185,129,.12)!important;
  border-color:rgba(16,185,129,.22)!important;
}

.fancy-theme.dashboard-shell .input-group-text{
  background:rgba(255,255,255,.06)!important;
  color:var(--theme-text)!important;
  border:1px solid rgba(255,255,255,.12)!important;
}

.fancy-theme.dashboard-shell .input-group-text i,
.fancy-theme.dashboard-shell .input-group-text svg{
  color:var(--theme-accent)!important;
}

.fancy-theme.dashboard-shell .icon-tab .nav-tabs,
.fancy-theme.dashboard-shell .icon-tab .tab-content{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}

.fancy-theme.dashboard-shell .icon-tab .nav-tabs{
  gap:10px;
  padding:0!important;
}

.fancy-theme.dashboard-shell .icon-tab .nav-tabs .nav-link,
.fancy-theme.dashboard-shell .nav-tabs .nav-link{
  color:var(--theme-muted)!important;
  background:rgba(255,255,255,.04)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:14px!important;
}

.fancy-theme.dashboard-shell .icon-tab .nav-tabs .nav-link.active,
.fancy-theme.dashboard-shell .icon-tab .nav-tabs .nav-item.show .nav-link,
.fancy-theme.dashboard-shell .nav-tabs .nav-link.active,
.fancy-theme.dashboard-shell .nav-tabs .nav-item.show .nav-link{
  color:var(--theme-text)!important;
  background:rgba(139,92,246,.16)!important;
  border-color:rgba(139,92,246,.36)!important;
}

.fancy-theme.dashboard-shell .nav-tabs .nav-link:hover,
.fancy-theme.dashboard-shell .nav-tabs .nav-link:focus{
  border-color:rgba(255,255,255,.16)!important;
}

.fancy-theme.dashboard-shell .btn-dark{
  background:rgba(255,255,255,.08)!important;
  color:var(--theme-text)!important;
  border:1px solid rgba(255,255,255,.14)!important;
}

.fancy-theme.dashboard-shell .btn-dark:hover{
  background:rgba(255,255,255,.14)!important;
}

@media (min-width: 992px){
  .fancy-theme.dashboard-shell #sidebar,
  .fancy-theme.dashboard-shell #sidebar .sidebar-scroll{
    overscroll-behavior-y:auto;
  }
}

/* ===== Phase 2 icon + dashboard refinement ===== */
.fancy-theme .trust-card i{font-size:1.15rem;color:var(--theme-accent);}
.fancy-theme .progress-mini-panel{position:relative;overflow:hidden;}
.fancy-theme .mini-panel-icon,.fancy-theme .mini-stat-icon,.fancy-theme.dashboard-shell .sidebar-level-icon,.fancy-theme.dashboard-shell .sidebar-stat-icon,.fancy-theme .theme-callout-icon{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;box-shadow:none;color:var(--theme-accent);padding:0;}
.fancy-theme .mini-panel-icon{width:auto;height:auto;border-radius:0;margin-bottom:6px;font-size:1.05rem;line-height:1;}
.fancy-theme .mini-stat-icon{width:auto;height:auto;border-radius:0;margin:0 auto 8px;font-size:1rem;line-height:1;}
.fancy-theme .balance-action-panel{position:relative;overflow:hidden;}
.fancy-theme .balance-action-panel:before{content:'';position:absolute;inset:0 0 auto 0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);}
.fancy-theme .theme-callout{display:flex;align-items:flex-start;gap:10px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);}
.fancy-theme .theme-callout strong,.fancy-theme .theme-callout span{display:block;}
.fancy-theme .theme-callout span{color:var(--theme-muted)!important;}
.fancy-theme .theme-callout-icon{width:auto;height:auto;border-radius:0;flex:0 0 auto;font-size:1.05rem;line-height:1;padding-top:2px;}
.fancy-theme .theme-callout.warning{background:rgba(251,191,36,.08);border-color:rgba(251,191,36,.25);}
.fancy-theme .theme-callout.warning .theme-callout-icon{color:#fbbf24;background:transparent;border:0;}
.fancy-theme.dashboard-shell .sidebar-level-item,.fancy-theme.dashboard-shell .sidebar-stat-pill{display:flex;align-items:center;gap:10px;}
.fancy-theme.dashboard-shell .sidebar-level-item > div:last-child,.fancy-theme.dashboard-shell .sidebar-stat-pill > div:last-child{min-width:0;}
.fancy-theme.dashboard-shell .sidebar-level-icon,.fancy-theme.dashboard-shell .sidebar-stat-icon{width:auto;height:auto;border-radius:0;flex:0 0 auto;font-size:.95rem;line-height:1;}
.fancy-theme.dashboard-shell .sidebar-level-item strong,.fancy-theme.dashboard-shell .sidebar-stat-pill strong{margin:0;}
.fancy-theme .history-tabs-wrap .nav-tabs{display:flex;flex-wrap:nowrap;gap:8px;padding:6px;white-space:nowrap;scrollbar-width:thin;}
.fancy-theme .history-tabs-wrap .nav-tabs .nav-link{display:inline-flex;align-items:center;gap:8px;border-radius:999px;border:1px solid rgba(255,255,255,.08);padding:10px 14px;background:rgba(255,255,255,.04);color:var(--theme-muted)!important;}
.fancy-theme .history-tabs-wrap .nav-tabs .nav-link.active{background:linear-gradient(135deg,rgba(139,92,246,.22),rgba(6,182,212,.18));color:var(--theme-text)!important;border-color:rgba(255,255,255,.14);}
.fancy-theme .history-tabs-wrap .nav-tabs .nav-link i{color:var(--theme-accent);}
@media (max-width: 575px){
  .fancy-theme .theme-callout{flex-direction:column;}
}


/* ===== Phase 5 homepage and footer implementation ===== */
.fancy-theme .landing-nav-actions{gap:14px;flex-wrap:wrap;justify-content:flex-end;}
.fancy-theme .landing-nav-actions .nav-link-inline{display:inline-flex;align-items:center;gap:8px;font-size:.95rem;}
.fancy-theme .hero-support-note{color:var(--theme-muted);max-width:720px;}
.fancy-theme .hero-cta-group{display:flex;flex-wrap:wrap;gap:14px;align-items:center;}
.fancy-theme .hero-preview-card{padding:32px;}
.fancy-theme .hero-proof-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.fancy-theme .hero-proof-item{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid var(--theme-border);color:var(--theme-text);}
.fancy-theme .hero-proof-item i{color:var(--theme-accent);}
.fancy-theme .hero-card-actions{display:grid;gap:12px;}
.fancy-theme .section-note{color:var(--theme-muted)!important;font-size:.95rem;}
.fancy-theme .section-note i{margin-right:8px;color:var(--theme-accent);}
.fancy-theme .proof-summary-strip{margin-top:4px;}
.fancy-theme .secondary-feature-card{background:rgba(255,255,255,.04)!important;}
.fancy-theme .faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.fancy-theme .faq-grid .faq-item{padding:18px;}
.fancy-theme .faq-grid .faq-item h5{margin-bottom:10px;}
.fancy-theme .footer-ad-slot{margin-top:4px;}
.fancy-theme .footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:22px;padding:28px;}
.fancy-theme .footer-title{margin-bottom:12px;color:var(--theme-text)!important;}
.fancy-theme .footer-links{display:flex;flex-direction:column;gap:10px;}
.fancy-theme .footer-links a,.fancy-theme .footer-muted-link{color:var(--theme-muted);text-decoration:none;}
.fancy-theme .footer-links a:hover{color:#fff;}
.fancy-theme .footer-muted-link{font-size:.95rem;line-height:1.5;}
.fancy-theme .footer-legal-note{color:var(--theme-muted)!important;}
.fancy-theme .footer-bottom{color:var(--theme-muted);}
.fancy-theme.dashboard-shell .guest-preview-banner{padding:0 18px 10px;}
.fancy-theme.dashboard-shell .guest-preview-strip{display:flex;align-items:center;gap:10px;padding:12px 16px;border-radius:16px;background:rgba(67,191,255,.12);border:1px solid rgba(67,191,255,.24);color:#dff7ff;font-size:.95rem;}
.fancy-theme.dashboard-shell .guest-preview-strip a{color:#fff;text-decoration:underline;}
.fancy-theme.dashboard-shell .footer-link-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
@media (max-width: 991px){
  .fancy-theme .hero-proof-list,.fancy-theme .faq-grid,.fancy-theme .footer-grid{grid-template-columns:1fr 1fr;}
  .fancy-theme .landing-nav-actions{justify-content:flex-start;}
}
@media (max-width: 767px){
  .fancy-theme .hero-proof-list,.fancy-theme .faq-grid,.fancy-theme .footer-grid{grid-template-columns:1fr;}
  .fancy-theme .hero-cta-group .btn{width:100%;}
}
@media (max-width: 575px){
  .fancy-theme .landing-nav{margin-bottom:20px;}
  .fancy-theme .landing-nav-actions .nav-link-inline,.fancy-theme .landing-nav-actions .nav-register-btn{width:100%;justify-content:center;}
  .fancy-theme .hero-preview-card,.fancy-theme .footer-grid{padding:22px;}
  .fancy-theme.dashboard-shell .guest-preview-banner{padding:0 12px 10px;}
}


/* ===== Phase 6 implementation pass ===== */
:root{
  --theme-card:#132036;
  --theme-card-soft:#16243d;
  --theme-border:rgba(255,255,255,0.08);
  --theme-shadow:0 14px 34px rgba(2,6,23,0.22);
  --shell-sidebar-width:286px;
}
body.fancy-theme{background:linear-gradient(180deg,#0f172a 0%,#0b1220 100%);}
.fancy-theme .glass-card,
.fancy-theme .compact-card,
.fancy-theme .section-card,
.fancy-theme .mini-panel,
.fancy-theme .quick-link-card,
.fancy-theme .widget,
.fancy-theme .tab-content,
.fancy-theme .nav-tabs,
.fancy-theme .card,
.fancy-theme .link-block,
.fancy-theme .page-card,
.fancy-theme .summary-card{
  background:var(--theme-card)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  border-radius:18px!important;
  box-shadow:var(--theme-shadow)!important;
}
.fancy-theme .header.navbar,
.fancy-theme .sub-header-container .header{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  background:rgba(19,32,54,.92)!important;
  box-shadow:0 10px 24px rgba(2,6,23,.18)!important;
}
.fancy-theme .btn-primary{box-shadow:0 8px 20px rgba(99,102,241,.22);}
.fancy-theme .hero-copy,
.fancy-theme .auth-panel,
.fancy-theme .auth-card,
.fancy-theme .auth-side,
.fancy-theme .dashboard-hero,
.fancy-theme .section-card{padding:24px;}
.fancy-theme .feature-card{padding:18px;}
.fancy-theme .metric-card,.fancy-theme .stat-card,.fancy-theme .mini-panel,.fancy-theme .quick-link-card{padding:16px;}
.fancy-theme .float-anim,.fancy-theme .pulse-anim{animation:none!important;}
.fancy-theme.dashboard-shell .sidebar-wrapper{padding:14px;}
.fancy-theme.dashboard-shell #sidebar{padding-top:10px;border-radius:20px;}
.fancy-theme.dashboard-shell .sidebar-level-card,
.fancy-theme.dashboard-shell .sidebar-profile-card,
.fancy-theme.dashboard-shell .sidebar-stat-grid,
.fancy-theme.dashboard-shell #sidebar .menu-categories,
.fancy-theme.dashboard-shell .shell-footer-wrapper,
.fancy-theme.dashboard-shell .ad-slot{
  background:var(--theme-card-soft);
  border:1px solid var(--theme-border);
  box-shadow:var(--theme-shadow);
  border-radius:18px;
}
.fancy-theme.dashboard-shell .sidebar-level-card{margin:8px 14px 10px;padding:14px;}
.fancy-theme.dashboard-shell .sidebar-level-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.fancy-theme.dashboard-shell .sidebar-level-item{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);}
.fancy-theme.dashboard-shell .sidebar-level-item strong{font-size:1rem;}
.fancy-theme.dashboard-shell .sidebar-profile-card{margin:0 14px 10px;padding:14px;background:rgba(99,102,241,.12);}
.fancy-theme.dashboard-shell .sidebar-profile-avatar{width:44px;height:44px;border-radius:14px;box-shadow:none;}
.fancy-theme.dashboard-shell .sidebar-stat-grid{margin:0 14px 14px;padding:10px;display:grid;gap:10px;background:transparent;border:0;box-shadow:none;}
.fancy-theme.dashboard-shell .sidebar-stat-pill{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);}
.fancy-theme.dashboard-shell #sidebar ul.menu-categories{margin:0 14px 14px;padding:10px;}
.fancy-theme.dashboard-shell #sidebar ul.menu-categories li.menu > .dropdown-toggle,
.fancy-theme.dashboard-shell #sidebar ul.menu-categories li.menu > a{margin:2px 0;border-radius:12px;padding:10px 12px;transform:none!important;}
.fancy-theme.dashboard-shell #sidebar ul.menu-categories li.menu > .dropdown-toggle:hover,
.fancy-theme.dashboard-shell #sidebar ul.menu-categories li.menu > a:hover{background:rgba(255,255,255,.06)!important;}
.fancy-theme.dashboard-shell #content{padding:16px 18px 24px;}
.fancy-theme.dashboard-shell .dashboard-hero .row{margin-top:18px!important;}
.fancy-theme.dashboard-shell .mini-stats-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.fancy-theme.dashboard-shell .mini-stat{padding:12px;border-radius:14px;}
.fancy-theme.dashboard-shell .notice-item{padding:12px 14px;}
.fancy-theme.dashboard-shell .quick-links-grid{gap:12px;}
.fancy-theme .ad-slot{padding:14px 16px;min-height:86px;display:block;overflow:hidden;}
.fancy-theme .ad-slot > *{max-width:100%;}
.fancy-theme .ad-slot-footer{margin:18px 0 0;}
.fancy-theme .ad-slot-dashboard{margin:0 18px 10px;}
.fancy-theme .auth-shell{max-width:1180px;margin:0 auto;gap:18px;padding:28px 24px;}
.fancy-theme .auth-side{background:var(--theme-card-soft)!important;}
.fancy-theme .auth-benefits{gap:10px;margin:18px 0;}
.fancy-theme .auth-secondary-ad{max-width:1180px;margin-left:auto;margin-right:auto;}
.fancy-theme .guest-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.08);color:var(--theme-text);border:1px solid rgba(255,255,255,.08);font-size:.88rem;}
.fancy-theme .shell-footer-wrapper{padding:18px 20px;margin-top:18px;}
.fancy-theme .footer-shell-inner{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;}
.fancy-theme .footer-link-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.fancy-theme .footer-link-row span{opacity:.5;}
.fancy-theme .hero-actions .btn,.fancy-theme .section-heading .badge{margin-bottom:8px;}
.fancy-theme .balance-action-panel .btn-lg{width:100%;}
.fancy-theme .modern-form .form-row{row-gap:0;}
.fancy-theme .input-icon-wrap .form-control:focus,.fancy-theme .form-control:focus,.fancy-theme select:focus{box-shadow:0 0 0 3px rgba(99,102,241,.16);}
@media (max-width: 991px){
  .fancy-theme .auth-shell{grid-template-columns:1fr;padding:18px 14px;}
  .fancy-theme .footer-shell-inner{flex-direction:column;}
  .fancy-theme.dashboard-shell .sidebar-wrapper{padding:0;}
  .fancy-theme.dashboard-shell #sidebar{border-radius:0;min-height:100vh;}
  .fancy-theme.dashboard-shell .ad-slot-dashboard{margin:0 12px 10px;}
}
@media (max-width: 767px){
  .fancy-theme.dashboard-shell .mini-stats-row,
  .fancy-theme .quick-links-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 575px){
  .fancy-theme .hero-copy,.fancy-theme .auth-panel,.fancy-theme .auth-card,.fancy-theme .auth-side,.fancy-theme .dashboard-hero,.fancy-theme .section-card{padding:18px;}
  .fancy-theme.dashboard-shell #content{padding:12px 12px 20px;}
  .fancy-theme.dashboard-shell .mini-stats-row,
  .fancy-theme .quick-links-grid{grid-template-columns:1fr;}
  .fancy-theme .footer-link-row{gap:6px;}
}


/* Phase 7 public pages, accessibility, and SEO shell */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}
.skip-link:focus{left:16px;top:16px;width:auto;height:auto;z-index:9999;padding:12px 16px;border-radius:12px;background:#fff;color:#111;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.25);}
.public-main{max-width:1200px;margin:0 auto;padding:0 16px 32px;}
.public-shell-header{max-width:1200px;margin:24px auto 0;position:sticky;top:12px;z-index:20;}
.public-page-shell{padding:32px;}
.public-copy h2{margin-top:28px;margin-bottom:12px;font-size:1.35rem;}
.public-copy h3{margin-top:20px;margin-bottom:8px;font-size:1.05rem;}
.public-copy p,.public-copy li{color:#cfd7ea;}
.public-copy ul{padding-left:20px;}
.public-footer{max-width:1200px;margin:24px auto 32px;}
.footer-link-list{list-style:none;padding:0;margin:0;}
.footer-link-list li + li{margin-top:8px;}
@media (max-width: 991.98px){.public-shell-header{position:static;}.public-page-shell{padding:24px;}}


/* Phase 8 consistency pass */
.menu-link-label{margin-left:12px;display:inline-block}
.preview-inline-note{display:flex;align-items:flex-start;gap:10px;margin:18px 0 12px;padding:12px 16px;border-radius:14px;background:rgba(59,130,246,.08);border:1px solid rgba(96,165,250,.25);color:#dbeafe}
.preview-inline-note i{margin-top:2px;color:#93c5fd}
.public-shell-header .landing-links{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.public-shell-header .landing-links a:not(.btn){color:#d6e2ff}
.public-shell-header .landing-links a:not(.btn):hover{color:#fff}
.footer-link-list,.footer-links{display:flex;flex-direction:column;gap:8px}
.footer-link-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.footer-link-row span{opacity:.45}
.auth-secondary-ad{max-width:880px;margin-left:auto;margin-right:auto}
@media (max-width: 767px){
  .preview-inline-note{padding:10px 12px;margin-top:12px}
  .public-shell-header .landing-links{justify-content:flex-start;gap:10px}
}


/* Phase 9 final QA refinements */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:16px;top:16px;width:auto;height:auto;z-index:2000;padding:10px 14px;border-radius:12px;background:#111827;color:#fff}
.home-shell + script{display:block}


/* Phase 10 layout, preview, and responsive fixes */
.fancy-theme .site-shell.public-shell-wrapper{max-width:1200px;margin:0 auto;padding:0 16px 32px;}
.fancy-theme .public-shell-wrapper .landing-nav{margin-top:24px;}
.fancy-theme .public-shell-wrapper .public-main{max-width:none;padding:0;}
.fancy-theme .public-shell-wrapper .public-footer{max-width:none;margin:24px 0 0;}
.fancy-theme .hero-equal-row > [class*="col-"]{margin-bottom:0;}
.fancy-theme .hero-equal-row > [class*="col-"] > .hero-copy{height:100%;}
.fancy-theme.dashboard-shell .main-content{padding:16px 18px 24px;}
.fancy-theme.dashboard-shell #content > .preview-note-shell{padding-bottom:0!important;min-height:auto!important;}
.fancy-theme.dashboard-shell .preview-inline-note{margin:0 0 10px;}
.fancy-theme.dashboard-shell #content > .layout-px-spacing > .ads,
.fancy-theme.dashboard-shell #content > .ads,
.fancy-theme.dashboard-shell #content .page-section-card,
.fancy-theme.dashboard-shell #content .widget,
.fancy-theme.dashboard-shell #content .statbox,
.fancy-theme.dashboard-shell #content .table-responsive,
.fancy-theme.dashboard-shell #content .nav-tabs,
.fancy-theme.dashboard-shell #content .tab-content,
.fancy-theme.dashboard-shell #content .alert,
.fancy-theme.dashboard-shell #content .preview-inline-note{max-width:100%;box-sizing:border-box;}
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .menu > a,
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .menu > .dropdown-toggle{align-items:flex-start;min-height:52px;}
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .menu > a div:first-child,
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .menu > .dropdown-toggle div:first-child{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1 1 auto;}
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .menu > a span,
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .menu > .dropdown-toggle span,
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .submenu li a,
.fancy-theme.dashboard-shell .menu-link-label{white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.35;}
.fancy-theme.dashboard-shell .sidebar-wrapper .menu-categories .submenu li a{padding:10px 12px;display:block;}
.fancy-theme .history-tabs-wrap .nav-tabs{display:flex;flex-wrap:wrap;gap:10px;padding:8px;white-space:normal;overflow:visible;}
.fancy-theme .history-tabs-wrap .nav-tabs .nav-item{display:flex;flex:0 1 auto;min-width:0;}
.fancy-theme .history-tabs-wrap .nav-tabs .nav-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:normal;text-align:center;line-height:1.3;padding:10px 14px;max-width:100%;}
.fancy-theme .history-tabs-wrap .tab-pane{padding-top:4px;}
.fancy-theme .history-tabs-wrap .table-responsive,
.fancy-theme .page-section-card .table-responsive,
.fancy-theme .widget-content-area .table-responsive{border-radius:16px;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.fancy-theme .history-tabs-wrap table{min-width:560px;}
.fancy-theme .table-action-group{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;}
.fancy-theme .table-action-group .btn{margin:0;}
.fancy-theme .page-section-card{padding:20px;}
.fancy-theme .widget-content-area > .btn,
.fancy-theme .widget-content-area .btn,
.fancy-theme .page-section-card .btn,
.fancy-theme .hero-cta-group .btn,
.fancy-theme .hero-card-actions .btn,
.fancy-theme .cta-band .btn{margin-bottom:8px;}
.fancy-theme .widget-header,
.fancy-theme .widget-content-area,
.fancy-theme .content-page-body,
.fancy-theme .public-page-shell,
.fancy-theme .proof-card,
.fancy-theme .page-library-card{overflow-wrap:anywhere;}
.fancy-theme.dashboard-shell .footer-shell-inner .f-section-2{white-space:normal;}
@media (max-width: 991px){
  .fancy-theme .site-shell.public-shell-wrapper{padding:0 14px 24px;}
}
@media (max-width: 767px){
  .fancy-theme .hero-equal-row > [class*="col-"]{display:block;}
  .fancy-theme .history-tabs-wrap .nav-tabs .nav-item{flex:1 1 calc(50% - 10px);}
  .fancy-theme .history-tabs-wrap .nav-tabs .nav-link{width:100%;}
  .fancy-theme.dashboard-shell .main-content{padding:12px 12px 20px;}
}
@media (max-width: 575px){
  .fancy-theme .history-tabs-wrap .nav-tabs .nav-item{flex:1 1 100%;}
  .fancy-theme .page-section-card{padding:16px;}
  .fancy-theme .table-action-group{justify-content:stretch;}
  .fancy-theme .table-action-group .btn{flex:1 1 100%;}
}


/* Phase 10b desktop shell fix + sidebar variants */
body.fancy-theme.dashboard-shell{--shell-scrollbar-thumb:rgba(148,163,184,.45);--shell-scrollbar-thumb-hover:rgba(148,163,184,.65);--shell-scrollbar-track:rgba(15,23,42,.22);}
.fancy-theme.dashboard-shell #content,
.fancy-theme.dashboard-shell .main-content{box-sizing:border-box;min-width:0;}
.fancy-theme.dashboard-shell #sidebar .sidebar-scroll,
.fancy-theme.dashboard-shell .sidebar-wrapper{scrollbar-width:thin;scrollbar-color:var(--shell-scrollbar-thumb) var(--shell-scrollbar-track);}
.fancy-theme.dashboard-shell #sidebar .sidebar-scroll::-webkit-scrollbar,
.fancy-theme.dashboard-shell .sidebar-wrapper::-webkit-scrollbar{width:8px;}
.fancy-theme.dashboard-shell #sidebar .sidebar-scroll::-webkit-scrollbar-track,
.fancy-theme.dashboard-shell .sidebar-wrapper::-webkit-scrollbar-track{background:var(--shell-scrollbar-track);border-radius:999px;}
.fancy-theme.dashboard-shell #sidebar .sidebar-scroll::-webkit-scrollbar-thumb,
.fancy-theme.dashboard-shell .sidebar-wrapper::-webkit-scrollbar-thumb{background:var(--shell-scrollbar-thumb);border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
.fancy-theme.dashboard-shell #sidebar .sidebar-scroll::-webkit-scrollbar-thumb:hover,
.fancy-theme.dashboard-shell .sidebar-wrapper::-webkit-scrollbar-thumb:hover{background:var(--shell-scrollbar-thumb-hover);}

@media (min-width: 992px){
  .fancy-theme.dashboard-shell .main-container{
    display:grid !important;
    grid-template-columns:var(--shell-sidebar-width) minmax(0,1fr);
    align-items:start;
    column-gap:0;
    padding-top:var(--shell-header-offset);
    min-height:100vh;
  }
  .fancy-theme.dashboard-shell .overlay,
  .fancy-theme.dashboard-shell .search-overlay{display:none !important;}
  .fancy-theme.dashboard-shell .sidebar-wrapper{
    grid-column:1;
    position:sticky;
    top:var(--shell-header-offset);
    left:auto !important;
    transform:none !important;
    pointer-events:auto !important;
    width:var(--shell-sidebar-width) !important;
    max-width:var(--shell-sidebar-width) !important;
    min-width:var(--shell-sidebar-width) !important;
    margin:0;
    padding:5px 18px 18px;
    z-index:1020;
  }
  .fancy-theme.dashboard-shell #content{
    grid-column:2;
    width:auto !important;
    max-width:none !important;
    margin-left:0 !important;
    min-height:calc(100vh - var(--shell-header-offset));
    flex:none !important;
  }
  .fancy-theme.dashboard-shell .main-content{padding:16px 18px 24px;}

  body.fancy-theme.dashboard-shell.sidebar-variant-full .main-container{align-items:stretch;}
  body.fancy-theme.dashboard-shell.sidebar-variant-full .sidebar-wrapper{
    align-self:stretch;
    min-height:calc(100vh - var(--shell-header-offset));
    height:auto;
    max-height:none;
  }
  body.fancy-theme.dashboard-shell.sidebar-variant-full #sidebar{
    min-height:100%;
    height:100%;
  }
  body.fancy-theme.dashboard-shell.sidebar-variant-full #sidebar .sidebar-scroll{
    min-height:100%;
    height:100%;
    max-height:none;
    padding-right:4px;
  }

  body.fancy-theme.dashboard-shell.sidebar-variant-compact .main-container{align-items:start;}
  body.fancy-theme.dashboard-shell.sidebar-variant-compact .sidebar-wrapper{
    align-self:start;
    min-height:0;
    height:calc(100vh - var(--shell-header-offset) - 24px);
    max-height:calc(100vh - var(--shell-header-offset) - 24px);
    padding-bottom:12px;
  }
  body.fancy-theme.dashboard-shell.sidebar-variant-compact #sidebar{
    min-height:0;
    height:100%;
    max-height:100%;
    border-radius:28px;
  }
  body.fancy-theme.dashboard-shell.sidebar-variant-compact #sidebar .sidebar-scroll{
    min-height:0;
    height:100%;
    max-height:100%;
    padding-right:6px;
    padding-bottom:14px;
  }
}
