/* ============================================================
   AtashNew v1.3 final hard fix
   - true RTL desktop layout
   - IRANSans-only everywhere
   - clean cards/order forms/invoices/tickets
   - safe icon fallback if FontAwesome webfont is unavailable
   ============================================================ */
:root,
html[data-palette="neon"]{
  --atn-font:'IRANSans',Tahoma,Arial,sans-serif!important;
  --atn-green:#00d27a;
  --atn-green-2:#7df018;
  --atn-lime:#b6f500;
  --atn-text:#071d13;
  --atn-muted:#557064;
  --atn-line:rgba(0,190,110,.16);
  --atn-soft:#f4fff9;
  --atn-card:rgba(255,255,255,.96);
  --atn-shadow:0 22px 65px -38px rgba(0,90,45,.42);
  --atn-radius:22px;
}
html,body,body.atashnew-body{direction:rtl!important;text-align:right!important;font-family:var(--atn-font)!important;background:linear-gradient(180deg,#f9fffb 0%,#f3fbf6 100%)!important;color:var(--atn-text)!important;}
body.atashnew-body *,body.atashnew-body *::before,body.atashnew-body *::after{font-family:var(--atn-font)!important;box-sizing:border-box;}
body.atashnew-body input,body.atashnew-body textarea,body.atashnew-body select,body.atashnew-body button,body.atashnew-body .btn,body.atashnew-body .form-control{font-family:var(--atn-font)!important;}
body.atashnew-body code,body.atashnew-body pre,body.atashnew-body kbd,body.atashnew-body samp{font-family:Tahoma,Arial,sans-serif!important;}

/* Real WHMCS client area: sidebar column must be the RIGHT column on desktop */
@media (min-width:992px){
  body.atashnew-body #main-body .atashnew-main-row{display:flex!important;flex-wrap:wrap!important;flex-direction:row!important;direction:rtl!important;align-items:flex-start!important;margin-right:-15px!important;margin-left:-15px!important;}
  body.atashnew-body #main-body .atashnew-main-row>.atashnew-sidebar-col{order:1!important;float:none!important;direction:rtl!important;text-align:right!important;}
  body.atashnew-body #main-body .atashnew-main-row>.primary-content{order:2!important;float:none!important;direction:rtl!important;text-align:right!important;min-width:0!important;}
}
@media (max-width:991.98px){
  body.atashnew-body #main-body .atashnew-main-row{display:block!important;direction:rtl!important;}
  body.atashnew-body #main-body .atashnew-sidebar-col,body.atashnew-body #main-body .primary-content{width:100%!important;max-width:100%!important;}
}

/* Clean the ugly grey/backplate artifacts */
body.atashnew-body .panel,
body.atashnew-body .card,
body.atashnew-body .tile,
body.atashnew-body .sidebar .panel-sidebar,
body.atashnew-body .panel-sidebar,
body.atashnew-body .client-home-cards .card,
body.atashnew-body .table-container,
body.atashnew-body .logincontainer,
body.atashnew-body .modal-content,
body.atashnew-body .list-group,
body.atashnew-body .domain-search-card,
body.atashnew-body .domain-pricing,
body.atashnew-body .domain-checker-container{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,255,250,.95))!important;
  border:1px solid var(--atn-line)!important;
  border-radius:var(--atn-radius)!important;
  box-shadow:var(--atn-shadow)!important;
  color:var(--atn-text)!important;
  overflow:hidden;
}
body.atashnew-body .panel:before,body.atashnew-body .panel:after,
body.atashnew-body .card:before,body.atashnew-body .card:after,
body.atashnew-body .tile:before,body.atashnew-body .tile:after,
body.atashnew-body .panel-sidebar:before,body.atashnew-body .panel-sidebar:after,
body.atashnew-body .list-group:before,body.atashnew-body .list-group:after,
body.atashnew-body .panel-heading:before,body.atashnew-body .panel-heading:after,
body.atashnew-body .card-header:before,body.atashnew-body .card-header:after{display:none!important;content:none!important;}
body.atashnew-body .panel-heading,
body.atashnew-body .card-header,
body.atashnew-body .panel-sidebar>.panel-heading,
body.atashnew-body .list-group-item:first-child{
  background:linear-gradient(180deg,rgba(245,255,249,.98),rgba(255,255,255,.94))!important;
  border-bottom:1px solid rgba(0,190,110,.13)!important;
  color:#092317!important;
  box-shadow:none!important;
  text-align:right!important;
}
body.atashnew-body .panel-title,
body.atashnew-body .card-title,
body.atashnew-body h1,body.atashnew-body h2,body.atashnew-body h3,body.atashnew-body h4,body.atashnew-body h5,body.atashnew-body h6{color:#092317!important;font-weight:950!important;text-align:right;line-height:1.65;}

/* Sidebar item polish */
body.atashnew-body .sidebar{direction:rtl!important;text-align:right!important;margin-bottom:20px!important;}
body.atashnew-body .sidebar .panel-sidebar{margin-bottom:18px!important;}
body.atashnew-body .sidebar .panel-sidebar>.panel-heading{padding:14px 16px!important;}
body.atashnew-body .sidebar .panel-sidebar>.panel-heading .panel-title{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;margin:0!important;font-size:.95rem!important;}
body.atashnew-body .sidebar .list-group-item,
body.atashnew-body .sidebar a.list-group-item{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  direction:rtl!important;text-align:right!important;border:0!important;border-bottom:1px solid rgba(0,150,85,.09)!important;background:transparent!important;
  padding:12px 16px!important;color:#143527!important;font-weight:800!important;line-height:1.75!important;
}
body.atashnew-body .sidebar .list-group-item:hover,
body.atashnew-body .sidebar .list-group-item.active{background:linear-gradient(135deg,rgba(0,210,122,.13),rgba(182,245,0,.08))!important;color:#007b4b!important;}
body.atashnew-body .sidebar .list-group-item:last-child{border-bottom:0!important;}

/* Forms and tables - full RTL */
body.atashnew-body .form-control,body.atashnew-body .custom-select,body.atashnew-body select,body.atashnew-body textarea,
body.atashnew-body input[type="text"],body.atashnew-body input[type="email"],body.atashnew-body input[type="password"],body.atashnew-body input[type="tel"],body.atashnew-body input[type="number"]{
  direction:rtl!important;text-align:right!important;background:linear-gradient(180deg,#fff,#fbfffd)!important;border:1px solid rgba(0,160,90,.18)!important;border-radius:15px!important;box-shadow:none!important;color:#0b2819!important;min-height:42px;
}
body.atashnew-body .input-group{direction:ltr!important;}
body.atashnew-body .input-group>.form-control{direction:rtl!important;text-align:right!important;}
body.atashnew-body .table,body.atashnew-body table{direction:rtl!important;text-align:right!important;color:#0d2a1b!important;}
body.atashnew-body .table th,body.atashnew-body .table td,body.atashnew-body table th,body.atashnew-body table td{text-align:right!important;vertical-align:middle!important;border-color:rgba(0,150,85,.10)!important;}
body.atashnew-body .table thead th{background:linear-gradient(180deg,rgba(0,210,122,.12),rgba(255,255,255,.93))!important;color:#092317!important;font-weight:950!important;}
body.atashnew-body .text-left{text-align:right!important;}body.atashnew-body .text-right{text-align:left!important;}
body.atashnew-body .float-left{float:right!important;}body.atashnew-body .float-right{float:left!important;}
body.atashnew-body .mr-auto{margin-right:0!important;margin-left:auto!important;}body.atashnew-body .ml-auto{margin-left:0!important;margin-right:auto!important;}

/* Buttons */
body.atashnew-body .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;border-radius:14px!important;font-weight:900!important;line-height:1.45!important;}
body.atashnew-body .btn-primary,body.atashnew-body .btn-success{background:linear-gradient(135deg,var(--atn-green),var(--atn-green-2),var(--atn-lime))!important;border:0!important;color:#fff!important;box-shadow:0 15px 35px -20px rgba(0,185,100,.8)!important;}
body.atashnew-body .btn-default,body.atashnew-body .btn-secondary,body.atashnew-body .btn-light{background:#fff!important;border:1px solid rgba(0,210,122,.18)!important;color:#143527!important;box-shadow:0 12px 30px -26px rgba(0,0,0,.35)!important;}

/* Invoice/ticket/service screens */
body.atashnew-body .invoice-container,body.atashnew-body .view-invoice,body.atashnew-body .ticket-reply,body.atashnew-body .ticket-message,body.atashnew-body .product-status,body.atashnew-body .clientarea-detail,
body.atashnew-body .service-details,body.atashnew-body .domain-details,body.atashnew-body .tab-content{direction:rtl!important;text-align:right!important;font-family:var(--atn-font)!important;}
body.atashnew-body .invoice-container *{font-family:var(--atn-font)!important;}

/* Domain register/transfer mini widgets in client area */
body.atashnew-body .btn-group,body.atashnew-body .nav-tabs{direction:rtl!important;display:flex!important;gap:6px!important;}
body.atashnew-body .btn-group>.btn,body.atashnew-body .nav-tabs .nav-link{border-radius:14px!important;margin:0!important;}
body.atashnew-body .domain-checker-container .input-group{background:#fff!important;border:1px solid rgba(0,210,122,.16)!important;border-radius:18px!important;overflow:hidden!important;box-shadow:none!important;}
body.atashnew-body .domain-checker-container .input-group .form-control{border:0!important;border-radius:0!important;text-align:center!important;direction:ltr!important;font-weight:900!important;}

/* Desktop hover dropdowns */
@media (min-width:992px){
  body.atashnew-body .navbar .dropdown:hover>.dropdown-menu,body.atashnew-body .aa-nav .dropdown:hover>.dropdown-menu{display:block!important;opacity:1!important;visibility:visible!important;margin-top:0!important;}
}

/* Safe icon fallback for common WHMCS icons when FontAwesome font is absent */
body.atashnew-body i.fas,body.atashnew-body i.far,body.atashnew-body i.fa{display:inline-flex;align-items:center;justify-content:center;min-width:1.1em;min-height:1.1em;line-height:1;}
body.atashnew-body i.fa-shopping-cart:before,body.atashnew-body i.fas.fa-shopping-cart:before{content:'🛒'!important;font-family:Tahoma,Arial,sans-serif!important;font-weight:400!important;}
body.atashnew-body i.fa-globe:before,body.atashnew-body i.fas.fa-globe:before{content:'●'!important;font-family:Tahoma,Arial,sans-serif!important;color:var(--atn-green)!important;}
body.atashnew-body i.fa-ticket-alt:before,body.atashnew-body i.fas.fa-ticket-alt:before{content:'◼'!important;font-family:Tahoma,Arial,sans-serif!important;color:var(--atn-green)!important;}
body.atashnew-body i.fa-server:before,body.atashnew-body i.fas.fa-server:before{content:'◆'!important;font-family:Tahoma,Arial,sans-serif!important;color:var(--atn-green)!important;}
body.atashnew-body i.fa-credit-card:before,body.atashnew-body i.fas.fa-credit-card:before{content:'▣'!important;font-family:Tahoma,Arial,sans-serif!important;color:var(--atn-green)!important;}
body.atashnew-body i.fa-user:before,body.atashnew-body i.fas.fa-user:before{content:'●'!important;font-family:Tahoma,Arial,sans-serif!important;color:var(--atn-green)!important;}
body.atashnew-body i.fa-plus:before,body.atashnew-body i.fas.fa-plus:before{content:'+'!important;font-family:Tahoma,Arial,sans-serif!important;}
body.atashnew-body i.fa-chevron-down:before,body.atashnew-body i.fas.fa-chevron-down:before{content:'⌄'!important;font-family:Tahoma,Arial,sans-serif!important;}
