/* ====== GLOBAL COMPANY THEME (layout.twig) ====== */
:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f8fafc;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #007aff;
  --primary-weak: rgba(0,122,255,.10);
  --danger: #dc3545;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 30px rgba(17,24,39,.08);
  --shadow-sm: 0 6px 16px rgba(17,24,39,.08);
}

/* ===== Select2 MOBILE FIX: prevent overlapping text ===== */




/* ID badge: fixed width so it never pushes text weirdly */
.select2-results__option .select2-selection__id{
  flex: 0 0 auto !important;
  min-width: 52px !important;
  height: 24px !important;
  line-height: 24px !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
}

/* remove nested span issues inside the badge */
.select2-results__option .select2-selection__id span{
  display: inline !important;
}

/* Text: must be block + wrap */
.select2-results__option .select2-selection__text{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.25 !important;
}

/* Ensure nested spans inside text don’t force weird layout */
.select2-results__option .select2-selection__text > span{
  display: inline !important;
  white-space: inherit !important;
}

/* Price part: keep it on the same line if possible, otherwise next line */
.select2-results__option .select2-selection__text > span:last-child{
  display: inline-block !important;
  white-space: nowrap !important;
  opacity: .85;
  font-weight: 700;
}

/* Highlight text should not change line height */
.select2-results__option .text__highlight{
  background: rgba(0,122,255,.12) !important;
  border-radius: 6px !important;
  padding: 1px 4px !important;
}

/* On small screens: force price to new line for clean look */
@media (max-width: 520px){
  .select2-results__option .select2-selection__text > span:last-child{
    display: block !important;
    margin-top: 4px;
  }
}
/* ===== Select2: Service dropdown (pro layout) ===== */

/* dropdown container */
.select2-dropdown{
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 18px 50px rgba(17,24,39,.14) !important;
  overflow: hidden;
}

/* results list */
.select2-results__options{
  max-height: 520px !important;
}

/* each option */
.select2-results__option{
  padding: 0 !important;               /* we style the inner <a> */
  border-bottom: 1px solid rgba(229,231,235,.7);
}
.select2-results__option:last-child{
  border-bottom: 0;
}

/* the clickable area inside your <li> is <a> */
.select2-results__option > a{
  display: block;
  padding: 12px 12px !important;
  text-decoration: none !important;
  color: var(--text) !important;
}

/* hover + active */
.select2-results__option--highlighted[aria-selected] > a{
  background: rgba(0,122,255,.08) !important;
}
.select2-results__option[aria-selected="true"] > a{
  background: rgba(0,122,255,.10) !important;
  box-shadow: inset 0 0 0 1px rgba(0,122,255,.18);
}

/* FIRST LINE: make it a grid: [ID] [text] [$price] */
.select2-results__option > a{
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 6px;
}

/* ID badge */
.select2-selection__id{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 24px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--text) !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

/* title text */
.select2-selection__text{
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

/* price text (the " - $0,2772 per 1000" part) 
   It's not in a span, so we style the whole <a> and hide the hyphen effect by spacing */
.select2-results__option > a{
  font-weight: 700;
}

/* META LINE (Min/Max/Avg) */
.badge-wrapper{
  grid-column: 2 / 4;     /* under text + price */
  margin-top: 0 !important;
}
.badge-meta{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(229,231,235,.9);
  background: rgba(248,250,252,.9);
  font-size: 12px !important;
  opacity: 1 !important;
  color: var(--muted);
  margin: 0 !important;
}

/* make Avg green if it exists */
.badge-meta span{
  font-weight: 900;
}

/* Fix your inline avg span that is empty causing weird spacing */
.badge-meta span:empty{ display:none; }

/* keep the "Min/Max/Avg" labels consistent */
.badge-meta{
  font-family: inherit;
}

/* optional: tighter on small screens */
@media (max-width: 520px){
  .select2-results__option > a{
    grid-template-columns: auto 1fr;
  }
  .badge-wrapper{
    grid-column: 1 / -1;
  }
}
/* ===== PAGE: MASS ORDER (no variables defined) ===== */

/* layout spacing */
.col-lg-12.new > .well,
.col-lg-12.new > ul.list.nav.nav-pills{
  margin-bottom: 16px !important;
}

/* textarea “editor” look */
#links.form-control{
  min-height: 320px;
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  box-shadow: 0 6px 16px rgba(17,24,39,.04) !important;
  padding: 14px 14px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}

#links.form-control:focus{
  border-color: rgba(0,122,255,.35) !important;
  box-shadow: 0 0 0 6px rgba(0,122,255,.12) !important;
}

/* form labels */
.col-lg-12.new .well form .control-label{
  font-weight: 900;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}


/* success + error alerts: more “app” style */
.col-lg-12.new .alert{
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
}

.col-lg-12.new .alert-success{
  border-color: rgba(34,197,94,.25) !important;
  background: rgba(34,197,94,.10) !important;
  color: #166534 !important;
}
.col-lg-12.new .alert-danger{
  border-color: rgba(220,53,69,.25) !important;
  background: rgba(220,53,69,.08) !important;
  color: #991b1b !important;
}
.col-lg-12.new .alert a{
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* right instructions card: make it look like a help panel */
.col-md-4.col-md-offset-2.new .well.success{
  position: sticky;
  top: 88px;            /* below sticky navbar */
  max-height: calc(100vh - 120px);
  overflow: auto;
  border-radius: 16px !important;
}

/* help panel typography */
.col-md-4.col-md-offset-2.new .well.success p{
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}
.col-md-4.col-md-offset-2.new .well.success a{
  display: inline-block;
 
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
  font-weight: 800;
  text-decoration: none !important;
}
.col-md-4.col-md-offset-2.new .well.success a:hover{
  background: rgba(0,122,255,.10);
  border-color: rgba(0,122,255,.25);
  color: var(--primary);
}

.col-md-4.col-md-offset-2.new .well.success ul{
  padding-left: 18px;
  margin: 10px 0 0;
}
.col-md-4.col-md-offset-2.new .well.success li{
  padding: 6px 0;
  color: var(--text);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
}

/* make the bottom optional info block match */
.container .well{
  border-radius: 16px !important;
}

/* RTL */
.rtl-content #links.form-control{
  direction: rtl;
  text-align: right;
}
/* ===== Dropdown: Language & Currency (currencies-list) ===== */

/* menu container */
#currencies-list.dropdown-menu{
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 10px !important;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(17,24,39,.14);
  overflow: hidden;
}

/* remove the ugly long height; keep scroll */
#currencies-list{
  height: auto !important;
  max-height: min(70vh, 560px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* nicer scrollbar (works in most browsers) */
#currencies-list{
  scrollbar-width: thin;
  scrollbar-color: rgba(17,24,39,.25) transparent;
}
#currencies-list::-webkit-scrollbar{ width: 10px; }
#currencies-list::-webkit-scrollbar-track{ background: transparent; }
#currencies-list::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* section headers */
#currencies-list .dropdown-header{
  padding: 10px 10px 6px;
  margin: 2px 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* divider */
#currencies-list .divider{
  margin: 10px 0;
  height: 1px;
  background: var(--border);
}

/* items */
#currencies-list > li > a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.1;
  white-space: nowrap;
}

/* hover */
#currencies-list > li > a:hover{
  background: var(--soft);
}

/* active language */
#currencies-list > li > a.active{
  background: var(--primary-weak);
  color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(0,122,255,.10);
}

/* make flags look aligned */
#currencies-list > li > a{
  font-variant-emoji: emoji;
}

/* currency items — add small “code” badge feel */
#currencies-list a#currencies-item{
  justify-content: space-between;
}
#currencies-list a#currencies-item::before{
  content: attr(data-rate-key);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
#currencies-list a#currencies-item{
  color: var(--text);
}
#currencies-list a#currencies-item:hover::before{
  background: var(--soft);
}

/* last "Add funds" link like a CTA */
#currencies-list > li:last-child > a{
  margin-top: 6px;
  background: var(--primary);
  color: #fff !important;
  justify-content: center;
}
#currencies-list > li:last-child > a:hover{
  filter: brightness(1.04);
}
/* ===== NEW ORDER PAGE POLISH (no variables defined) ===== */

/* spacing between main blocks */
.col-lg-12.new > .well,
.col-lg-12.new > .platform-selection,
.col-lg-12.new > .alert,
.col-lg-12.new > ul.list.nav.nav-pills{
  margin-bottom: 16px !important;
}

/* soften all cards slightly */
.well{
  box-shadow: 0 6px 18px rgba(17,24,39,.06) !important;
}

/* tabs (Create order / Mass order / Orders) slightly tighter */
ul.list.nav.nav-pills{
  padding: 6px !important;
  gap: 6px !important;
}
ul.list.nav.nav-pills > li > a{
  padding: 10px 16px !important;
}

/* stats cards: same height + better typography */
.userDetails{
  min-height: 74px;
  display:flex;
  align-items:center;
}
.userDetails h6{
  font-size: 15px !important;
}
.userDetails span{
  font-size: 12px !important;
  opacity: .9;
}

/* platform icons row */
.platform-buttons{
  gap: 10px !important;
  padding: 2px 2px 6px !important;
}
.platform-buttons button{
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 16px rgba(17,24,39,.06) !important;
}
.platform-buttons button.active{
  box-shadow: 0 0 0 6px rgba(0,122,255,.12) !important;
}
img.social-network{
  height: 22px !important;
  width: 22px !important;
}

/* search input */
#new-order-search .form-control,
#template-input{
  height: 46px !important;
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 6px 16px rgba(17,24,39,.04) !important;
  padding-left: 44px !important;
}
#new-order-search .form-control:focus,
#template-input:focus{
  border-color: rgba(0,122,255,.35) !important;
  box-shadow: 0 0 0 6px rgba(0,122,255,.12) !important;
}

/* select + input consistency */
#order-form .form-control{
  height: 46px !important;
  border-radius: 14px !important;
}

/* Make "Service ID" look like a badge instead of a big blue bar */
#s_id{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--soft);
  font-weight: 800;
  font-size: 12px;
  color: var(--text);
}

/* if you have any huge blue element under Service ID, force it to normal */
#order-form .fav + .neworder-services{
  margin-top: 6px;
}

/* select2 (if used) make it match inputs */
.select2-container .select2-selection--single{
  height: 46px !important;
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 6px 16px rgba(17,24,39,.04) !important;
  display:flex !important;
  align-items:center !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 46px !important;
  padding-left: 14px !important;
  color: var(--text) !important;
  font-weight: 600;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
  height: 46px !important;
  right: 10px !important;
}
.select2-container--open .select2-selection--single{
  border-color: rgba(0,122,255,.35) !important;
  box-shadow: 0 0 0 6px rgba(0,122,255,.12) !important;
}
.select2-dropdown{
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 16px 40px rgba(17,24,39,.12) !important;
  overflow:hidden;
}
.select2-results__option{
  padding: 10px 12px !important;
}
.select2-results__option--highlighted[aria-selected]{
  background: rgba(0,122,255,.10) !important;
  color: var(--text) !important;
}

/* your yellow helper notice under link -> make it look like inline tip */
.alert.alert-warning{
  border-radius: 12px !important;
  border: 1px solid rgba(245,158,11,.25) !important;
  background: rgba(245,158,11,.10) !important;
  color: #8a6d3b !important;
}

/* primary action button */
#order-form .btn.btn-primary{
  
  border-radius: 14px !important;
}

/* RTL small fixes */
.rtl-content #template-input{ padding-left: 14px !important; padding-right: 44px !important; }
.rtl-content .select2-container--default .select2-selection--single .select2-selection__arrow{
  right: auto !important;
  left: 10px !important;
}
/* ===== PRO APP STYLE (PAGE ONLY) ===== */

/* Layout: sidebar + main */
.col-md-4.col-md-offset-2.new{ margin-top: 0 !important; }
.col-lg-12.new{ margin-top: 0 !important; }

@media (min-width: 850px){
  .col-md-4.col-md-offset-2.new{
    width: 26%;
    margin-left: 0 !important;
  }
  .col-lg-12.new{
    width: 74%;
    padding-left: 18px;
  }
}

/* Sidebar menu card */
.bf-side-menu{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.bf-side-title{
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  margin: 2px 6px 8px;
}

.bf-side-link{
  border-radius: 12px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

.bf-side-link:hover{
  background: var(--soft) !important;
  transform: translateY(-1px);
}

.bf-side-item.is-active .bf-side-link{
  background: var(--primary-weak) !important;
  border-color: rgba(0,122,255,.25) !important;
}

.bf-side-item.is-active .bf-side-text{
  color: var(--primary) !important;
  font-weight: 800;
}

/* Profile block at bottom of sidebar */
.bf-profile{
  margin-top: 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,122,255,.06), transparent 35%), #fff;
  box-shadow: var(--shadow-sm);
  text-decoration:none !important;
}

.bf-profile-name{
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.bf-profile-email{
  font-size: 12px;
  color: var(--muted);
}

.bf-profile-arrow{
  font-size: 20px;
  color: var(--muted);
  opacity: .9;
}

/* Top pills (Create order / Mass order / Orders) */
ul.list.nav.nav-pills{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px !important;
  display: inline-flex;
  gap: 6px;
  margin: 0 0 14px !important;
  box-shadow: var(--shadow-sm);
}

ul.list.nav.nav-pills > li{ float:none !important; }
ul.list.nav.nav-pills > li > a{
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-weight: 800;
  color: var(--muted) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  text-decoration:none !important;
}

ul.list.nav.nav-pills > li > a:hover{
  background: var(--soft) !important;
  color: var(--text) !important;
}

ul.list.nav.nav-pills > li.active > a,
ul.list.nav.nav-pills > li.active > a:hover{
  background: var(--primary-weak) !important;
  color: var(--primary) !important;
  border-color: rgba(0,122,255,.25) !important;
}

/* Stats card (username/spending/orders/level) */
.well.user .ud-row{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 14px;
}

@media (min-width: 900px){
  .well.user .ud-row{
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

.userDetails{
  margin: 0 !important;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.userDetails h6{
  font-weight: 900;
  font-size: 14px;
  margin: 0 0 2px !important;
  color: var(--text);
}

.userDetails span{
  color: var(--muted);
  font-size: 12px !important;
}

/* Warning alert */
.alert-warning.below{
  border-radius: 14px;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.10);
  color: #8a6d3b;
}

/* Platform filter bar */
.platform-selection .well.user{
  padding: 12px !important;
}

.platform-buttons{
  display:flex;
  gap: 8px;
  overflow:auto;
  padding-bottom: 4px;
}

.platform-buttons::-webkit-scrollbar{ height: 6px; }
.platform-buttons::-webkit-scrollbar-thumb{
  background: rgba(17,24,39,.15);
  border-radius: 999px;
}

.platform-buttons button{
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

.platform-buttons button:hover{
  background: var(--soft);
  transform: translateY(-1px);
}

.platform-buttons button.active{
  background: var(--primary-weak);
  border-color: rgba(0,122,255,.25);
}

img.social-network{
  height: 20px;
  width: 20px;
  object-fit: contain;
  filter: grayscale(5%) contrast(1.05);
}

/* Form card look */
#order-form .form-group label{
  font-weight: 800;
  color: var(--text);
  font-size: 13px;
}

#order-form .form-control{
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: none;
}

#order-form .form-control:focus{
  border-color: rgba(0,122,255,.35);
  box-shadow: 0 0 0 6px rgba(0,122,255,.12);
}



#order-form .btn.btn-primary:hover{ filter: brightness(1.03); }
#order-form .btn.btn-primary:active{ transform: translateY(1px); }

/* Success alert-modern (already good, just refine) */
.alert-modern{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

/* RTL tweaks */
.rtl-content ul.list.nav.nav-pills{ flex-direction: row-reverse; }
.rtl-content .bf-profile{ flex-direction: row-reverse; }
.rtl-content .platform-buttons{ direction: rtl; }
/* Base */
html, body{ background: var(--bg); color: var(--text); }
body{ font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
a{ color: var(--text); }
a:hover{ color: var(--text); }

/* Container widths */
.container{ max-width: 1200px; width: 100%; }
.container-fluid{ width: 100%; }

/* ====== NAVBAR (top) ====== */
.navbar.navbar-default{
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  margin-bottom: 18px;
}

.navbar-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  min-height: 64px;
}

.navbar-brand{
  display:flex;
  align-items:center;
  height: 64px;
  padding: 0 10px;
}
.navbar-brand img{
  height: 34px;
  width: auto;
  margin: 0;
}

/* Desktop nav links */
.navbar-nav > li > a{
  border-radius: 10px;
  padding: 10px 12px !important;
  margin: 10px 4px !important;
  color: var(--muted) !important;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.navbar-nav > li > a:hover{
  background: var(--soft);
  color: var(--text) !important;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover{
  background: var(--primary-weak);
  color: var(--primary) !important;
  box-shadow: none;
}

/* Logout link special */
a.nav-logout-btn{ color: var(--danger) !important; }
.navbar-right-block a.nav-logout-btn:hover{
  background: rgba(220,53,69,.08);
  border-color: rgba(220,53,69,.25);
}

/* Header badges (balance / globe / menu button) */
ul.app-header-menu{
  display:flex;
  align-items:center;
  gap: 8px;
  margin: 0;
  padding: 0;
  height: 64px;
}

li.navbar-badge{
  display:flex;
  align-items:center;
  padding: 0;
  border-radius: 12px;
}

li.navbar-badge > a,
li.navbar-badge > button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform .08s ease, filter .15s ease, background .15s ease;
  text-decoration:none;
}

li.navbar-badge > a:hover,
li.navbar-badge > button:hover{
  filter: brightness(1.02);
}
li.navbar-badge > a:active,
li.navbar-badge > button:active{
  transform: translateY(1px);
}

/* Make the mobile collapse button look like icon-button */
button.navbar-toggle{
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  height: 42px;
  padding: 0 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

/* ====== DROPDOWNS ====== */
.dropdown-menu{
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 8px;
  background: #fff;
}
.dropdown-menu > li > a{
  border-radius: 10px;
  padding: 10px 10px;
  color: var(--text);
  font-weight: 600;
}
.dropdown-menu > li > a:hover{
  background: var(--soft);
}
.dropdown-header{
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 10px 6px;
}
.dropdown-menu .divider{
  margin: 8px 0;
  background: var(--border);
}

/* ====== CONTENT spacing so sticky nav doesn't overlap ====== */
.navbar-static-top{ position: sticky; top: 0; z-index: 1000; }

/* ====== MOBILE BOTTOM NAV ====== */
.mob-nav{
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(17,24,39,.06);
}
ul.mob-nav-link{
  display:flex;
  padding: 0;
  margin: 0;
  background: transparent;
  border-top: 0;
}
.mob-nav-link li{
  flex:1;
  padding: 10px 6px;
  box-shadow: none;
}
.mob-nav-link li a{
  color: var(--muted) !important;
  text-decoration:none !important;
  font-weight: 700;
  gap: 6px;
}
.mob-nav-link li a svg{
  height: 22px;
}
.mob-nav-link li.active a{
  color: var(--primary) !important;
}
.mob-nav-link li.active{
  background: transparent;
}

/* On mobile, give bottom padding so content doesn't hide behind mob-nav */
@media (max-width: 767px){
  body{ padding-bottom: 74px; }
}

/* ====== FOOTER ====== */
footer{
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-top{
  padding: 28px 0;
}
.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 14px 0;
  background: var(--soft);
}

.footer-logo{
  height: 34px;
  width: auto;
  margin-bottom: 12px;
}

.footer-nav{
  padding: 0;
  margin: 0;
}
.footer-nav li a{
  color: var(--muted);
  text-decoration:none;
  font-weight: 600;
  line-height: 32px;
}
.footer-nav li a:hover{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.follow-us{
  display:flex;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
}
.follow-us li a{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.follow-us li a:hover{
  background: var(--soft);
}

/* Footer text */
.copyright-text{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* ====== RTL ====== */
.rtl-navbar .navbar-brand{ float: right; }
.rtl-navbar .navbar-right{ float: left !important; }
.rtl-content{ direction: rtl; }
/* Only the extra pieces needed for signin */
  .auth-stack{ display:flex; flex-direction:column; gap: 12px; }

  .auth-field{ position: relative; }
  .auth-label{ font-size: 13px; font-weight: 600; margin: 0 0 6px; display:block; color: var(--auth-text, #111827); }
  .auth-rowline{ display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-bottom: 6px; }

  .auth-input.form-control{
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--auth-border, #e5e7eb);
    box-shadow: none;
    padding-left: 40px;
    padding-right: 12px;
  }
  .has-right .auth-input.form-control{ padding-right: 56px; }

  .auth-icon{
    position:absolute;
    left: 12px;
    top: 36px; /* label + spacing */
    font-size: 16px;
    opacity: .75;
    pointer-events:none;
    color: var(--auth-muted, #6b7280);
  }

  .auth-show{
    position:absolute;
    right: 10px;
    top: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--auth-border, #e5e7eb);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-text, #111827);
  }

  /* Checkbox (same style as signup if you added it; keep here as fallback) */
  .auth-check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    cursor:pointer;
    user-select:none;
    margin-top: 2px;
  }
  .auth-check-input{
    position:absolute;
    opacity:0;
    width:1px; height:1px;
    overflow:hidden;
  }
  .auth-check-box{
    width:18px; height:18px;
    margin-top:2px;
    border-radius:6px;
    border:1px solid var(--auth-border, #e5e7eb);
    background:#fff;
    display:inline-grid;
    place-items:center;
    flex: 0 0 18px;
  }
  .auth-check-input:checked + .auth-check-box{
    background: #111827;
    border-color:#111827;
  }
  .auth-check-input:checked + .auth-check-box::after{
    content:"";
    width:9px; height:5px;
    border-left:2px solid #fff;
    border-bottom:2px solid #fff;
    transform: rotate(-45deg);
    margin-top:-1px;
  }
  .auth-check-text{ color: var(--auth-muted, #6b7280); font-size: 13px; line-height: 1.4; }

  /* Make button full width (keeps your .btn.btn-primary too) */
  .auth-btn{ width:100%; height:44px; border-radius:10px; }

  /* RTL tweaks */
  .rtl-content .auth-icon{ left:auto; right:12px; }
  .rtl-content .auth-input.form-control{ padding-left: 12px; padding-right: 40px; }
  .rtl-content .has-right .auth-input.form-control{ padding-left: 56px; padding-right: 40px; }
  .rtl-content .auth-show{ right:auto; left:10px; }


 /* Keep bootstrap grid; we only style inside */
  :root{
    --text:#111827;
    --muted:#6b7280;
    --border:#e5e7eb;
    --soft:#f3f4f6;
    --soft2:#f8fafc;
    --shadow: 0 12px 30px rgba(17,24,39,.10);
    --radius:14px;
    --btn:#111827;
  }

  .auth-shell{
    padding: 26px 0 40px;
  }

  .auth-card{
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
  }

  @media (min-width: 900px){
    .auth-card{ grid-template-columns: 1.08fr .92fr; }
  }

  .auth-left{
    padding: 34px 28px 26px;
  }

  .auth-right{
    display: none;
    background: #ededed;
    position: relative;
  }

  @media (min-width: 900px){
    .auth-right{ display: block; }
  }

  .auth-title{
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.2;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.2px;
    text-align: center;
  }

  .auth-subtitle{
    margin: 0 0 18px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
  }

  /* Tabs (company style) */
  .auth-tabs{
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 6px 0 18px;
  }

  .auth-tab{
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
  }

  .auth-tab:hover{
    background: var(--soft2);
    color: var(--text);
  }

  .auth-tab.is-active{
    color: var(--text);
    border-color: #d1d5db;
    background: var(--soft);
  }

  /* Alerts */
  .auth-alert{
    position: relative;
    border-radius: 12px;
    padding: 12px 40px 12px 12px;
    border: 1px solid var(--border);
    margin: 6px 0 14px;
    font-size: 13px;
    line-height: 1.45;
  }
  .auth-alert.is-danger{ border-color: rgba(239,68,68,.30); background: rgba(239,68,68,.08); }
  .auth-alert.is-success{ border-color: rgba(34,197,94,.30); background: rgba(34,197,94,.08); }

  .auth-alert-close{
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
  }

  /* Grid inputs (like your old .form-row but clean) */
  .auth-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  @media (min-width: 900px){
    .auth-grid{ grid-template-columns: 1fr 1fr; }
  }

  .auth-field{ display: flex; flex-direction: column; gap: 6px; }

  .auth-label{
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }

  .auth-input{
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    outline: none;
    font-size: 14px;
    transition: box-shadow .15s ease, border-color .15s ease;
  }

  .auth-input:focus{
    border-color: #c7cbd1;
    box-shadow: 0 0 0 5px rgba(17,24,39,.08);
  }

  .auth-captcha{ margin: 12px 0 0; }

  /* checkbox */
  .auth-check{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 16px;
    cursor: pointer;
    user-select: none;
  }

  .auth-check-input{
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .auth-check-box{
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
  }

  .auth-check-input:checked + .auth-check-box{
    background: #111827;
    border-color: #111827;
  }

  .auth-check-input:checked + .auth-check-box::after{
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -1px;
  }

  .auth-check-text{
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }

  .auth-link{
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Button */
  .auth-btn{
    margin-top: 6px;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #111827;
    background: var(--btn);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .08s ease, filter .15s ease;
  }
  .auth-btn:hover{ filter: brightness(1.05); }
  .auth-btn:active{ transform: translateY(1px); }

  /* Divider + social */
  .auth-divider{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: var(--muted);
    font-size: 12px;
  }
  .auth-divider::before,
  .auth-divider::after{
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
  }
  .auth-divider span{ white-space: nowrap; }

  .auth-social{ display: flex; justify-content: center; }

  .auth-bottom{
    text-align: center;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 13px;
  }

  /* right illustration */
  .auth-illus{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
  }
  .auth-illus-ring{
    width: 220px; height: 220px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
  }
  .auth-illus-ring2{
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    opacity: .6;
  }
  .auth-illus-center{
    width: 44px; height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.55);
  }

  /* footer terms */
  .auth-terms{
    margin: 14px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
  }
  .auth-terms a{
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* RTL */
  .rtl-content{ direction: rtl; }
  .rtl-content .auth-alert-close{ right: auto; left: 10px; }

/* ===== PAGE: ORDERS (new styles only) ===== */

/* Filters row (status dropdown + search) */
ul.nav.nav-pills.rtl-nav,
ul.nav.nav-pills{
  margin: 10px 0 14px !important;
}

ul.nav.nav-pills .dropdown > .btn.btn-primary{
  border-radius: 14px !important;
  height: 44px;
  padding: 0 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,122,255,.14);
}

ul.dropdown-menu.orders{
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(17,24,39,.14);
  padding: 8px;
}

ul.dropdown-menu.orders > li > a{
  border-radius: 12px;
  padding: 10px 10px;
  font-weight: 700;
  text-decoration: none !important;
}

ul.dropdown-menu.orders > li.active > a{
  background: rgba(0,122,255,.10);
  color: var(--primary) !important;
}

/* Search input group */
#history-search .input-group{
  box-shadow: 0 6px 16px rgba(17,24,39,.06);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

#history-search .form-control{
  height: 44px;
  border: 0 !important;
  box-shadow: none !important;
}

#history-search .btn.btn-default{
  height: 44px;
  border: 0 !important;
  border-left: 1px solid var(--border) !important;
  background: #fff !important;
}
#history-search .btn.btn-default:hover{
  background: rgba(0,0,0,.03) !important;
}

/* Table card */
.well.well-float{
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  overflow: hidden;
}

/* Table base */
.table{
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table thead th{
  background: rgba(248,250,252,.92);
  border-bottom: 1px solid var(--border) !important;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 12px !important;
  vertical-align: middle !important;
}

.table tbody td{
  border-top: 1px solid rgba(229,231,235,.7) !important;
  padding: 12px 12px !important;
  vertical-align: top !important;
  color: var(--text);
}

.table tbody tr:hover td{
  background: rgba(0,0,0,.02);
}

/* First column (checkbox + copy button) */
#selectAll{ transform: scale(1.05); }

#copySelectedBtn{
  border-radius: 10px !important;
  height: 28px !important;
  padding: 0 10px !important;
}

/* Details column layout */
td.width-40 .a1{
  margin-top: 6px;
  font-weight: 800;
  color: var(--text);
  white-space: normal !important;
  word-break: break-word;
}

td.width-40 a{
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
td.width-40 a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Order ID copy */
[id^="order-id-"]{
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.25);
}

/* Status cell */
td[data-status]{
  font-weight: 900;
}

/* Remains column progress (your HTML already) – make it app-like */
.order-progress{
  min-width: 150px;
  margin-top: 8px;
}

.order-progress__track{
  height: 10px;
  border-radius: 999px;
  background: rgba(17,24,39,.08);
}

.order-progress__fill{
  border-radius: 999px;
  background: var(--primary);
}

/* The pulse effect you already have stays; just make it smoother */
.order-progress.is-running .order-progress__fill::after{
  opacity: .85;
}

.order-progress__meta{
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* Actions buttons */
.order-actions .btn{
  border-radius: 12px !important;
  height: 32px;
  padding: 0 10px !important;
  font-weight: 800;
}

a.btn.btn-primary.reorder{
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--primary) !important;
  box-shadow: 0 6px 16px rgba(17,24,39,.06);
}
a.btn.btn-primary.reorder:hover{
  background: rgba(0,122,255,.08) !important;
  border-color: rgba(0,122,255,.25) !important;
}

/* Responsive table */
@media (max-width: 900px){
  .table thead{ display:none; }
  .table tbody tr{
    display: block;
    border-top: 1px solid var(--border);
  }
  .table tbody td{
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .table tbody td.width-40{
    display: block;
  }
  .order-progress{ min-width: 0; }
}

/* Modal polish (order details) */
.modal-content{
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 24px 60px rgba(17,24,39,.18) !important;
}

.modal-header{
  border-bottom: 1px solid var(--border) !important;
}

.modal-title{
  font-weight: 900;
}

.modal-body .form-control{
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: rgba(248,250,252,.7) !important;
}