/* ==========================================================
   Lagom Glass - child theme of twenty-one (WHMCS 8.x)
   Dark glassmorphism by default, light mode via toggle.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;700&display=swap');

:root{
  --g-bg:#070b17; --g-bg2:#0d1630; --g-fg:#eaf0ff; --g-muted:#9aa9cc;
  --g-accent:#6f95ff; --g-accent2:#33e0c4; --g-accent3:#b39bff;
  --g-glass:rgba(20,30,60,.45); --g-glass-solid:#101a36; --g-border:rgba(160,190,255,.22); --g-hi:rgba(190,210,255,.35);
  --g-shadow:0 18px 60px rgba(0,0,0,.45);
  --g-obj1:#6f95ff; --g-obj2:#33e0c4; --g-obj3:#b39bff;
  --g-grad:linear-gradient(135deg,#6f95ff,#b39bff);
  --g-font:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif; --g-display:'Unbounded','Manrope',system-ui,sans-serif;
  color-scheme:dark;
}
html[data-glass="light"]{
  --g-bg:#e9eef7; --g-bg2:#d5def0; --g-fg:#0f1830; --g-muted:#4a5878;
  --g-accent:#3b6cff; --g-accent2:#0ea58f; --g-accent3:#7c5cff;
  --g-glass:rgba(255,255,255,.55); --g-glass-solid:#ffffff; --g-border:rgba(255,255,255,.8); --g-hi:rgba(255,255,255,.95);
  --g-shadow:0 18px 50px rgba(40,70,140,.18);
  --g-obj1:#3b6cff; --g-obj2:#12c2a8; --g-obj3:#9b7bff;
  --g-grad:linear-gradient(135deg,#3b6cff,#7c5cff);
  color-scheme:light;
}

/* ---------- base ---------- */
html{background:var(--g-bg);scroll-behavior:smooth}
body{background:transparent!important;color:var(--g-fg);font-family:var(--g-font);-webkit-font-smoothing:antialiased}
/* fallback glow (shown if WebGL is unavailable, sits under the 3D canvas) */
body::before{content:"";position:fixed;inset:-20%;z-index:-2;pointer-events:none;
  background:radial-gradient(40% 40% at 20% 20%,color-mix(in srgb,var(--g-accent) 35%,transparent),transparent 70%),
             radial-gradient(35% 35% at 80% 30%,color-mix(in srgb,var(--g-accent2) 28%,transparent),transparent 70%),
             radial-gradient(40% 40% at 60% 85%,color-mix(in srgb,var(--g-accent3) 30%,transparent),transparent 70%);
  animation:glassDrift 22s ease-in-out infinite alternate}
@keyframes glassDrift{to{transform:translate3d(3%,-2%,0) scale(1.08)}}
#glass-gl{position:fixed;inset:0;width:100%;height:100%;z-index:-1;display:block;pointer-events:none}
#main-body,.primary-content,#wrapper,section#main-body{background:transparent!important}

h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:var(--g-display);color:var(--g-fg);letter-spacing:-.02em}
h1,h2{font-weight:700}
p,li,label,td,th,small,span,.text-muted,.help-block,.form-text{color:inherit}
.text-muted,.help-block,.form-text,small{color:var(--g-muted)!important}
a{color:var(--g-accent2);transition:color .2s}
a:hover{color:var(--g-accent);text-decoration:none}
hr{border-color:var(--g-border)}
::selection{background:var(--g-accent);color:#fff}
:focus-visible{outline:2px solid var(--g-accent2);outline-offset:2px}

/* ---------- glass surface (shared) ---------- */
.card,.panel,.modal-content,.dropdown-menu,.list-group-item,.tile,.domain-checker-container,.well,
.client-home-cards .card,.sidebar .card,.order-summary,.view-cart-items,.pricing-table,#order-standard_cart .product,
#order-standard_cart .summary-container,#order-standard_cart .view-cart-items-header,.popover,.toast,.ticket-reply,.message,.alert,.panel-body{
  background:var(--g-glass)!important;color:var(--g-fg);
  border:1px solid var(--g-border)!important;
  backdrop-filter:blur(22px) saturate(170%);-webkit-backdrop-filter:blur(22px) saturate(170%);
  box-shadow:var(--g-shadow),inset 0 1px 0 var(--g-hi);
}
.card,.panel,.modal-content,.tile,.domain-checker-container,.well,.order-summary,.view-cart-items,#order-standard_cart .product{border-radius:22px!important}
.card-header,.panel-heading,.card-footer,.modal-header,.modal-footer,.panel-footer{
  background:transparent!important;border-color:var(--g-border)!important;color:var(--g-fg)}
.card-title,.panel-title{color:var(--g-fg);font-weight:700}
.card-body,.panel-body{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none}
.list-group-item{border-radius:0!important;box-shadow:none}
.card>.list-group .list-group-item{background:transparent!important;border-color:var(--g-border)!important}
.list-group-item.active,.list-group-item-action:hover,.list-group-item-action:focus{
  background:linear-gradient(135deg,color-mix(in srgb,var(--g-accent) 35%,transparent),color-mix(in srgb,var(--g-accent3) 30%,transparent))!important;color:var(--g-fg)!important}
.card:hover,.tile:hover{border-color:var(--g-accent)!important}
.card,.tile{transition:transform .3s,border-color .3s}
.tile:hover{transform:translateY(-4px)}
.alert{border-radius:16px}
.alert-danger{border-color:#ff6b81!important}.alert-success{border-color:var(--g-accent2)!important}
.alert-warning{border-color:#ffb020!important}.alert-info{border-color:var(--g-accent)!important}

/* ---------- header / navbar ---------- */
.header,#header{background:transparent!important;border:0!important;box-shadow:none!important}
.header .topbar,.topbar{background:transparent!important;color:var(--g-muted);border-bottom:1px solid var(--g-border)}
.topbar a,.topbar .btn{color:var(--g-muted)}
.topbar a:hover{color:var(--g-fg)}
.navbar,.navbar-light,.navbar-main{
  background:var(--g-glass)!important;border:1px solid var(--g-border)!important;
  backdrop-filter:blur(22px) saturate(170%);-webkit-backdrop-filter:blur(22px) saturate(170%);
  box-shadow:var(--g-shadow);border-radius:999px;margin:12px auto;padding:6px 18px}
.navbar-light .navbar-brand,.navbar-brand{color:var(--g-fg)!important;font-family:var(--g-display);font-weight:700}
.navbar-light .navbar-nav .nav-link,.navbar-nav .nav-link{color:var(--g-muted)!important;font-weight:600;border-radius:99px;padding:8px 14px!important;transition:.2s}
.navbar-light .navbar-nav .nav-link:hover,.navbar-light .navbar-nav .active>.nav-link,.navbar-nav .nav-link:hover{color:var(--g-fg)!important;background:var(--g-hi)}
.navbar-toggler{border-color:var(--g-border)!important;color:var(--g-fg)}
.dropdown-menu{border-radius:18px!important;padding:8px}
.dropdown-item{color:var(--g-fg)!important;border-radius:10px}
.dropdown-item:hover,.dropdown-item:focus{background:var(--g-hi)!important;color:var(--g-fg)!important}
.dropdown-divider{border-color:var(--g-border)}
.master-breadcrumb,.breadcrumb{background:transparent!important;color:var(--g-muted)}
.breadcrumb-item+.breadcrumb-item::before{color:var(--g-muted)}
.breadcrumb-item.active{color:var(--g-fg)}
.logo-img{max-height:38px}

/* ---------- buttons ---------- */
.btn{border-radius:99px;font-weight:700;border-width:1px;padding:.55rem 1.3rem;transition:transform .2s,box-shadow .2s,background .2s}
.btn:hover{transform:translateY(-2px)}
.btn-primary,.btn-success,.btn-info,.btn-order-now,.btn-checkout{
  background:var(--g-grad)!important;border:0!important;color:#fff!important;
  box-shadow:0 8px 26px color-mix(in srgb,var(--g-accent) 45%,transparent)}
.btn-primary:hover,.btn-success:hover,.btn-info:hover{filter:brightness(1.1);color:#fff!important}
.btn-default,.btn-secondary,.btn-light,.btn-outline-primary,.btn-outline-secondary,.btn-link.btn-sm{
  background:var(--g-glass)!important;color:var(--g-fg)!important;border:1px solid var(--g-border)!important;backdrop-filter:blur(12px)}
.btn-default:hover,.btn-secondary:hover,.btn-light:hover{border-color:var(--g-accent)!important}
.btn-danger{background:linear-gradient(135deg,#ff6b81,#ff4d6d)!important;border:0!important;color:#fff!important}
.btn-warning{background:linear-gradient(135deg,#ffb020,#ff8a00)!important;border:0!important;color:#1a1200!important}
.btn-link{color:var(--g-accent2)}

/* ---------- forms ---------- */
.form-control,.custom-select,.input-group-text,select,textarea,input[type=text],input[type=email],input[type=password],input[type=number],input[type=tel],input[type=search]{
  background:var(--g-glass)!important;color:var(--g-fg)!important;border:1px solid var(--g-border)!important;border-radius:14px!important;box-shadow:none!important}
.form-control:focus,.custom-select:focus{border-color:var(--g-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--g-accent) 30%,transparent)!important}
.form-control::placeholder{color:var(--g-muted)}
.input-group-text{border-radius:14px}
select option{background:var(--g-glass-solid);color:var(--g-fg)}
.custom-control-label::before,.iCheck-helper{background:var(--g-glass);border-color:var(--g-border)}
label,.control-label{color:var(--g-muted);font-weight:600}
.has-error .form-control,.is-invalid{border-color:#ff6b81!important}

/* ---------- tables ---------- */
.table,table.dataTable,.table-list{color:var(--g-fg)!important;background:transparent!important}
.table thead th,.table-list thead th{background:color-mix(in srgb,var(--g-accent) 14%,transparent)!important;color:var(--g-fg)!important;border-color:var(--g-border)!important;font-weight:700}
.table td,.table th,.table-list td{border-color:var(--g-border)!important;background:transparent!important}
.table-striped tbody tr:nth-of-type(odd),.table-hover tbody tr:hover{background:var(--g-hi)!important}
.dataTables_wrapper,.dataTables_info,.dataTables_length,.dataTables_filter{color:var(--g-muted)}
.page-link{background:var(--g-glass);border-color:var(--g-border);color:var(--g-fg)}
.page-item.active .page-link{background:var(--g-grad);border-color:transparent;color:#fff}

/* ---------- badges / labels ---------- */
.badge,.label,.status{border-radius:99px;font-weight:700;padding:.35em .8em}
.badge-primary,.label-primary{background:var(--g-accent)}
.status-active,.label-success,.badge-success,.status-paid{background:color-mix(in srgb,var(--g-accent2) 25%,transparent)!important;color:var(--g-accent2)!important}
.status-unpaid,.status-pending,.label-warning,.badge-warning{background:color-mix(in srgb,#ffb020 25%,transparent)!important;color:#ffb020!important}
.status-cancelled,.status-terminated,.label-danger,.badge-danger,.status-overdue{background:color-mix(in srgb,#ff6b81 25%,transparent)!important;color:#ff6b81!important}

/* ---------- home page ---------- */
.home-domain-search,.domain-checker-bg{background:transparent!important;border:0!important;padding-block:64px}
.domain-checker-container{padding:clamp(20px,4vw,48px)}
.domain-checker-container .input-group-lg>.form-control{border-radius:99px 0 0 99px!important;padding-left:24px}
.domain-checker-container .btn{border-radius:0 99px 99px 0}
.home-shortcuts,.tiles{margin-top:24px}
.tile{padding:28px 16px;color:var(--g-fg)!important}
.tile i,.tile .fas,.tile .far,.tile .fab{color:var(--g-accent2)!important}
.tile .title{font-weight:700}
.tile .highlight{color:var(--g-accent)}
.client-home-panels .panel{overflow:hidden}
.sidebar .list-group-item i{color:var(--g-accent2)}

/* ---------- order form (standard cart) ---------- */
#order-standard_cart{color:var(--g-fg)}
#order-standard_cart .products .product{padding:24px;margin-bottom:18px}
#order-standard_cart .products .product header{background:transparent!important;color:var(--g-fg)}
#order-standard_cart .products .product .product-pricing,#order-standard_cart .price{color:var(--g-accent2);font-family:var(--g-display)}
#order-standard_cart .cart-sidebar .panel,#order-standard_cart .view-cart-items{overflow:hidden}
#order-standard_cart .header-lined h1,.header-lined h1{color:var(--g-fg);border-color:var(--g-border)}
#order-standard_cart .view-cart-items .item{background:transparent;border-color:var(--g-border)}
#order-standard_cart .field,#order-standard_cart .form-control{background:var(--g-glass)!important}
#order-standard_cart .sub-heading span{background:var(--g-glass-solid);color:var(--g-fg);border-radius:99px;padding:2px 14px}

/* ---------- footer ---------- */
.footer,#footer{background:transparent!important;color:var(--g-muted);border-top:1px solid var(--g-border)!important;margin-top:48px}
.footer a{color:var(--g-muted)}.footer a:hover{color:var(--g-fg)}
.back-to-top{background:var(--g-glass)!important;border:1px solid var(--g-border);border-radius:50%;backdrop-filter:blur(12px)}

/* ---------- login / modal ---------- */
.modal-backdrop.show{background:#000;opacity:.55}
.login-form,.logincontainer{background:var(--g-glass);border:1px solid var(--g-border);border-radius:26px;padding:32px;backdrop-filter:blur(22px)}
.close{color:var(--g-fg);text-shadow:none;opacity:.7}
.progress{background:var(--g-glass);border-radius:99px}.progress-bar{background:var(--g-grad)}
code,pre{background:var(--g-glass);color:var(--g-accent2);border:1px solid var(--g-border);border-radius:10px}

/* ---------- theme toggle button ---------- */
#glass-theme{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:max(16px,env(safe-area-inset-bottom,0px));z-index:1050;width:46px;height:46px;border-radius:50%;
  border:1px solid var(--g-border);background:var(--g-glass);color:var(--g-fg);font-size:18px;cursor:pointer;
  backdrop-filter:blur(16px);box-shadow:var(--g-shadow);transition:transform .2s}
#glass-theme:hover{transform:rotate(25deg) scale(1.08)}

@media (max-width:991px){.navbar,.navbar-light{border-radius:24px}.tile{padding:20px 10px}}
@media (prefers-reduced-motion:reduce){body::before{animation:none}.card,.tile,.btn{transition:none}html{scroll-behavior:auto}}

/* ==========================================================
   Product cards (Glass Cart order form) + description cleanup
   ========================================================== */
.glass-products .row-eq-height{display:flex;flex-wrap:wrap}
.glass-products .row-eq-height>[class*="col-"]{display:flex;margin-bottom:22px}
#order-standard_cart .products .product,.glass-product{
  display:flex;flex-direction:column;width:100%;height:100%;padding:0!important;margin:0!important;overflow:hidden;position:relative}
.glass-product::before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:var(--g-grad)}
#order-standard_cart .products .product header,.glass-product header{
  background:transparent!important;padding:22px 24px 6px!important;border:0!important;display:flex;justify-content:space-between;gap:12px;align-items:center}
#order-standard_cart .products .product header span,.glass-product-name{
  color:var(--g-fg)!important;font-family:var(--g-display);font-size:1.25rem;font-weight:700;letter-spacing:-.02em}
#order-standard_cart .products .product header .qty{font:600 12px var(--g-font);color:var(--g-muted)!important;background:var(--g-hi);padding:3px 10px;border-radius:99px}
#order-standard_cart .products .product div.product-desc,.glass-desc{
  flex:1 1 auto;width:auto!important;float:none!important;padding:8px 24px 16px!important;color:var(--g-muted);font-size:14.5px;line-height:1.65;overflow-wrap:anywhere}
.glass-features{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.glass-features li{display:flex;gap:10px;align-items:baseline;color:var(--g-fg)}
.glass-features li::before{content:"";flex:0 0 8px;height:8px;border-radius:50%;background:var(--g-accent2);transform:translateY(-1px)}
.glass-feature-value{font-weight:800;color:var(--g-fg)!important;font-size:1em!important}
.glass-feature-name{color:var(--g-muted)}

/* description that was written as HTML in the admin: force it into the theme look */
.glass-html,.glass-html *{
  background:transparent!important;color:var(--g-muted)!important;font-family:var(--g-font)!important;
  max-width:100%!important;width:auto!important;margin-left:0!important;margin-right:0!important;
  box-shadow:none!important;text-align:left!important;letter-spacing:normal!important;float:none!important}
.glass-html{display:flex;flex-direction:column;gap:10px}
.glass-html h1,.glass-html h2,.glass-html h3,.glass-html h4,.glass-html strong,.glass-html b{color:var(--g-fg)!important;font-weight:700!important}
.glass-html h1,.glass-html h2,.glass-html h3,.glass-html h4{font-family:var(--g-display)!important;font-size:1.05rem!important;margin:0!important}
.glass-html p,.glass-html div{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;font-size:14.5px!important;line-height:1.65!important}
.glass-html ul,.glass-html ol{padding-left:0!important;margin:0!important;list-style:none!important}
.glass-html li{padding:0 0 0 18px!important;margin:6px 0!important;position:relative;font-size:14.5px!important;border:0!important}
.glass-html li::before{content:"";position:absolute;left:0;top:.7em;width:7px;height:7px;border-radius:50%;background:var(--g-accent2)}
.glass-html img{max-width:100%!important;height:auto!important;border-radius:12px}
.glass-html a{color:var(--g-accent2)!important}

#order-standard_cart .products .product footer,.glass-product footer{
  display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;
  background:color-mix(in srgb,var(--g-accent) 9%,transparent)!important;border-top:1px solid var(--g-border)!important;
  padding:18px 24px!important;margin:0!important;width:auto!important;float:none!important;position:static!important}
#order-standard_cart .products .product footer .product-pricing,.glass-product .product-pricing{
  float:none!important;width:auto!important;text-align:left!important;color:var(--g-muted)!important;font-size:13px;line-height:1.3;padding:0!important}
#order-standard_cart .products .product footer .product-pricing .price,.glass-product .price{
  display:block;font-family:var(--g-display);font-size:1.6rem!important;font-weight:700;color:var(--g-fg)!important;letter-spacing:-.03em}
.glass-product .btn-order-now{float:none!important;margin:0!important;white-space:nowrap}
.product-group-features{margin-top:12px;color:var(--g-muted)}
.product-group-features h2{font-size:1.15rem}
.product-group-features .fa-check{color:var(--g-accent2)}

/* cart layout polish */
#order-standard_cart .cart-sidebar .card,#order-standard_cart .cart-sidebar .panel{margin-bottom:16px}
#order-standard_cart .cart-sidebar .card-title,#order-standard_cart .cart-sidebar .panel-title{font-size:.95rem}
#order-standard_cart .cart-sidebar select,#order-standard_cart .form-control.custom-select{min-height:44px}

/* keep 3D scene calm behind content on small screens */
@media (max-width:767px){
  #glass-gl{opacity:.7}
  .card,.panel,.modal-content,.dropdown-menu,.tile,.glass-product{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
  .glass-product header,.glass-desc,.glass-product footer{padding-left:18px!important;padding-right:18px!important}
}

/* ---------- home: shortcut tiles ("How can we help", "Your Account") + domain search box ---------- */
.home-shortcuts li,.home-shortcuts li a,.home-shortcuts .tile,.home-shortcuts>div>a,.tiles a,.tiles li,.tiles .tile,.home-shortcuts .col-sm-3 a{
  background:var(--g-glass)!important;color:var(--g-fg)!important;
  border-right:1px solid var(--g-border)!important;border-bottom:1px solid var(--g-border)!important;border-left:1px solid var(--g-border)!important;
  backdrop-filter:blur(18px) saturate(160%);-webkit-backdrop-filter:blur(18px) saturate(160%);box-shadow:var(--g-shadow),inset 0 1px 0 var(--g-hi)}
.home-shortcuts li{border-radius:18px;overflow:hidden;transition:transform .3s}
.home-shortcuts li:hover{transform:translateY(-4px)}
.home-shortcuts li a{box-shadow:none;border:0!important;backdrop-filter:none;display:block}
.home-shortcuts p,.home-shortcuts li a p,.home-shortcuts li a span{color:var(--g-muted)!important}
.home-shortcuts i,.home-shortcuts .fas,.home-shortcuts .far{color:var(--g-accent2)!important}
.domain-checker-container .input-group,.domain-checker-container .input-group-box,.home-domain-search .input-group,.domain-checker-container .domainchecker-homepage-input{
  background:var(--g-glass)!important;border:1px solid var(--g-border)!important;border-radius:999px!important;padding:6px!important;box-shadow:var(--g-shadow)}
.domain-checker-container .form-control,.home-domain-search .form-control{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--g-fg)!important}
.domain-checker-container .btn,.home-domain-search .btn{border-radius:999px!important}
.domain-checker-container h2,.home-domain-search h2,.home-shortcuts+h2,.home-shortcuts h2,h2.text-center{color:var(--g-fg)}

/* OPTIONAL: hide the default WHMCS home blocks (domain search, shortcuts, "Your Account").
   Remove the comment markers around the rule below to enable it. */
/*
body.page-homepage .home-domain-search,
body.page-homepage .home-shortcuts,
body.page-homepage .client-home-panels{display:none!important}
*/
