/* =========================================================
   GES + Tehran Ghate Account
   ========================================================= */
:root {
  --ges-red: #ef232d;
  --ges-red-dark: #c8121b;
  --ges-line: rgba(255, 255, 255, 0.09);
  --ges-txt: rgba(255, 255, 255, 0.72);
  --ges-dim: rgba(255, 255, 255, 0.48);
  --ges-bg: rgba(255, 255, 255, 0.04);
}

/* ---- Layout account ---- */
.tg-account-page .tg-account-hero {
  padding-bottom: 1.25rem;
  margin-top: 2.5rem;
}
.tg-account {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 992px) {
  .tg-account {
    grid-template-columns: 16.5rem minmax(0, 1fr);
    gap: 1.75rem;
  }
}

.tg-account__nav {
  border: 1px solid var(--ges-line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  backdrop-filter: blur(16px);
  padding: 1.1rem;
  position: sticky;
  top: 6rem;
}
.tg-account__nav-head {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--ges-line);
}
.tg-account__avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(239, 35, 45, .45);
  display: block;
}
.tg-account__name {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
}
.tg-account__badge {
  display: inline-flex;
  margin-top: .25rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(239, 35, 45, .18);
  border: 1px solid rgba(239, 35, 45, .35);
  color: #ff8a90;
  font-size: .68rem;
  font-weight: 800;
}
.tg-account__role {
  display: block;
  margin-top: .2rem;
  color: var(--ges-dim);
  font-size: .72rem;
}

.tg-account-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tg-account-menu li {
  margin: 0 0 .35rem !important;
  padding: 0 !important;
}
.tg-account-menu li::before { display: none !important; content: none !important; }

.tg-account-menu a {
  display: flex !important;
  align-items: center;
  gap: .55rem;
  padding: .7rem .8rem !important;
  border-radius: 12px;
  color: var(--ges-txt) !important;
  text-decoration: none !important;
  border: 0 !important;
  font-size: .86rem !important;
  font-weight: 700 !important;
  transition: .2s ease;
}
.tg-account-menu__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.tg-account-menu a:hover {
  background: rgba(239, 35, 45, .12) !important;
  color: #fff !important;
}
.tg-account-menu .is-active a,
.tg-account-menu li.is-active a {
  background: linear-gradient(180deg, rgba(239,35,45,.22), rgba(239,35,45,.1)) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(239, 35, 45, .3);
}
.tg-account-menu .is-active .tg-account-menu__dot,
.tg-account-menu li.is-active .tg-account-menu__dot {
  background: var(--ges-red);
  box-shadow: 0 0 10px rgba(239, 35, 45, .7);
}

.tg-account__panel {
  border: 1px solid var(--ges-line);
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 320px;
}
.tg-account__panel.page-prose {
  color: var(--ges-txt);
}
.tg-account__panel h2,
.tg-account__panel h3 {
  color: #fff;
}

/* مخفی کردن navigation پیش‌فرض ووکامرس اگر دوبار چاپ شد */
.tg-account .woocommerce-MyAccount-navigation + .woocommerce-MyAccount-navigation { display: none; }
.tg-account .woocommerce-MyAccount-content { width: 100% !important; float: none !important; }

/* ---- GES Panel ---- */
.tg-ges { color: var(--ges-txt); }

.tg-ges-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(239, 35, 45, .22);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(239,35,45,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  margin-bottom: 1.25rem;
}
.tg-ges-kicker {
  display: inline-block;
  color: #ff8a90;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .35rem;
}
.tg-ges-title {
  margin: 0 0 .45rem !important;
  color: #fff !important;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem) !important;
  font-weight: 900 !important;
  padding: 0 !important;
}
.tg-ges-title::before { display: none !important; }
.tg-ges-desc {
  margin: 0;
  max-width: 34rem;
  color: var(--ges-txt);
  font-size: .9rem;
  line-height: 1.9;
}

.tg-ges-token {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px dashed rgba(239, 35, 45, .4);
  background: rgba(0,0,0,.35);
}
.tg-ges-token__label {
  font-size: .72rem;
  color: var(--ges-dim);
  font-weight: 700;
}
.tg-ges-token__code {
  direction: ltr;
  text-align: left;
  color: #ffb4b8 !important;
  background: rgba(239, 35, 45, .1) !important;
  border: 1px solid rgba(239, 35, 45, .25) !important;
  border-radius: 10px !important;
  padding: .45rem .6rem !important;
  font-size: .9rem !important;
  word-break: break-all;
}

.tg-ges-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.tg-ges-stat {
  text-align: center;
  padding: 1rem .85rem;
  border-radius: 16px;
  border: 1px solid var(--ges-line);
  background: var(--ges-bg);
}
.tg-ges-stat__num {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: .25rem;
  line-height: 1.4;
}
.tg-ges-stat__lbl {
  font-size: .72rem;
  color: var(--ges-dim);
  font-weight: 700;
}
.tg-ges-stat--hot {
  border-color: rgba(239, 35, 45, .4);
  background: linear-gradient(180deg, rgba(239,35,45,.28), rgba(239,35,45,.1));
}
.tg-ges-stat--hot .tg-ges-stat__lbl { color: rgba(255,255,255,.75); }

.tg-ges-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.tg-ges-section-title {
  display: flex !important;
  align-items: center;
  gap: .5rem;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
}
.tg-ges-section-title::before { display: none !important; }

.tg-ges-search {
  min-width: min(100%, 220px);
  padding: .65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ges-line);
  background: rgba(0,0,0,.35);
  color: #fff;
  outline: none;
  font-family: inherit;
  font-size: .85rem;
}
.tg-ges-search:focus {
  border-color: rgba(239, 35, 45, .55);
  box-shadow: 0 0 0 3px rgba(239, 35, 45, .15);
}

.tg-ges-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ges-line);
  border-radius: 16px;
  background: rgba(0,0,0,.25);
}
.tg-ges-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  white-space: nowrap;
}
.tg-ges-table th {
  text-align: right;
  padding: .85rem 1rem;
  background: rgba(239, 35, 45, .12);
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid var(--ges-line);
}
.tg-ges-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
  color: var(--ges-txt);
}
.tg-ges-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.tg-ges-table tr:last-child td { border-bottom: 0; }
.tg-ges-empty { text-align: center; color: var(--ges-dim) !important; white-space: normal; }

.tg-ges-prod {
  display: flex;
  align-items: center;
  gap: .75rem;
  white-space: normal;
  min-width: 180px;
}
.tg-ges-prod strong {
  display: block;
  color: #fff;
  font-weight: 800;
  line-height: 1.5;
}
.tg-ges-prod small {
  color: var(--ges-dim);
  font-size: .72rem;
}
.tg-ges-prod__img,
.tg-ges-prod img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(255,255,255,.1) !important;
  flex-shrink: 0;
}

.tg-ges-link {
  width: 100%;
  min-width: 190px;
  max-width: 320px;
  direction: ltr;
  text-align: left;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--ges-line);
  background: rgba(255,255,255,.04);
  color: #ff8a90;
  font-size: .75rem;
  font-family: ui-monospace, monospace;
}

.tg-ges-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 800;
  transition: .2s ease;
  white-space: nowrap;
}
.tg-ges-btn--primary {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, var(--ges-red), var(--ges-red-dark));
  box-shadow: 0 8px 24px -12px rgba(239, 35, 45, .8);
}
.tg-ges-btn--primary:hover { filter: brightness(1.08); color: #fff; }
.tg-ges-btn--ghost {
  border-color: var(--ges-line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
}
.tg-ges-btn--ghost:hover {
  border-color: rgba(239, 35, 45, .45);
  background: rgba(239, 35, 45, .14);
  color: #fff;
}
.tg-ges-btn.copied {
  background: #1b5e20 !important;
  border-color: #2e7d32 !important;
  color: #fff !important;
}

.tg-ges-orders { margin-top: 1.75rem; }
.tg-ges-orders .tg-ges-section-title { margin-bottom: .85rem !important; }

.tg-ges-price .amount,
.tg-ges-price bdi { color: #fff; font-weight: 800; }
.tg-ges-price del { color: var(--ges-dim); opacity: .8; }
.tg-ges-price del .amount { color: var(--ges-dim); font-weight: 600; font-size: .85em; }
.tg-ges-price ins { background: none; text-decoration: none; }

/* ووکامرس فرم‌ها داخل account */
.tg-account .woocommerce-form-row input.input-text,
.tg-account .woocommerce-Input,
.tg-account select,
.tg-account textarea {
  border: 1px solid var(--ges-line) !important;
  background: rgba(0,0,0,.35) !important;
  color: #fff !important;
  border-radius: 12px !important;
  min-height: 2.6rem;
}
.tg-account .button,
.tg-account .woocommerce-button {
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--ges-red), var(--ges-red-dark)) !important;
  color: #fff !important;
  border: 0 !important;
  font-weight: 800 !important;
  padding: .7rem 1.25rem !important;
}
.tg-account .woocommerce-orders-table { width: 100%; }
.tg-account-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ges-dim);
}

@media (max-width: 720px) {
  .tg-account__nav { position: static; }
  .tg-ges-table th:nth-child(2),
  .tg-ges-table td:nth-child(2) { display: none; }
  .tg-account__panel { padding: 1rem; }
}

.tg-ges-search-form{display: block ruby;margin-left: 25px;}

/* =========================================================
   پنل واحد فروش — دیزاین tg-ges (بدون تغییر ظاهر اصلی)
   ========================================================= */

/* اگر استایل‌های اصلی hero/stats/table/btn از قبل در فایل دیگری هست،
   فقط بخش‌های Tabs / Search / Panel / Pager / Loading را اضافه کنید.
   در غیر این صورت همین فایل را کامل بگذارید. */

/* ---- Tabs ---- */
.tg-ges-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
  padding: .35rem;
  border: 1px solid var(--ges-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
}
.tg-ges-tab {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  min-height: 2.35rem;
  padding: 0 1.1rem !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: transparent;
  color: var(--ges-dim) !important;
  text-decoration: none !important;
  font-family: inherit;
  font-size: .84rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: .2s ease;
}
.tg-ges-tab:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .05);
}
.tg-ges-tab.is-active {
  color: #fff !important;
  background: linear-gradient(180deg, var(--ges-red), var(--ges-red-dark)) !important;
  box-shadow: 0 8px 22px -12px rgba(239, 35, 45, .85);
}
.tg-ges-tab__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: .7rem;
  font-weight: 800;
}
.tg-ges-tab.is-active .tg-ges-tab__count {
  background: rgba(0, 0, 0, .22);
}

/* ---- Live panels ---- */
.tg-ges-panel { display: none; }
.tg-ges-panel.is-active { display: block; }

/* ---- Search (بدون دکمه) ---- */
.tg-ges-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.tg-ges-search-wrap {
  position: relative;
  min-width: min(100%, 220px);
}
.tg-ges-search-wrap .tg-ges-search {
  width: 100%;
  box-sizing: border-box;
  padding-left: 2.2rem;
}
.tg-ges-search-spin {
  position: absolute;
  left: .7rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-top-color: var(--ges-red, #ef232d);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.tg-ges-search-wrap.is-loading .tg-ges-search-spin {
  opacity: 1;
  animation: ges-spin .7s linear infinite;
}
@keyframes ges-spin {
  to { transform: rotate(360deg); }
}

.tg-ges-table-wrap {
  position: relative;
}
.tg-ges-table-wrap.is-loading {
  pointer-events: none;
}
.tg-ges-table-wrap.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .22);
  border-radius: inherit;
  z-index: 2;
}

/* ---- Pager ---- */
.tg-ges-pager {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ges-line);
  font-size: .82rem;
}
.tg-ges-pager .tg-pager__label {
  width: 100%;
  text-align: center;
  margin-bottom: .35rem;
  color: var(--ges-dim);
  font-weight: 700;
}
.tg-ges-pager a {
  color: var(--ges-txt);
  text-decoration: none;
  border: 0 !important;
}
.tg-ges-pager a span,
.tg-ges-pager > span[aria-current="page"],
.tg-ges-pager button {
  display: inline-grid;
  place-items: center;
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 .35rem;
  border: 1px solid var(--ges-line);
  border-radius: 9999px;
  background: transparent;
  color: var(--ges-txt);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.tg-ges-pager > span[aria-current="page"] {
  border-color: rgba(239, 35, 45, .45);
  background: linear-gradient(180deg, var(--ges-red), var(--ges-red-dark));
  color: #fff;
  cursor: default;
}
.tg-ges-pager a:hover span,
.tg-ges-pager button:hover:not(:disabled) {
  border-color: rgba(239, 35, 45, .4);
  background: rgba(239, 35, 45, .14);
  color: #fff;
}
.tg-ges-pager button:disabled {
  opacity: .35;
  cursor: default;
}

.tg-ges-page-meta {
  margin: .85rem 0 0;
  color: var(--ges-dim);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.ges-btn.copied,
.tg-ges-btn.copied {
  background: #2e7d32 !important;
  color: #fff !important;
  border-color: #2e7d32 !important;
}

@media (max-width: 720px) {
  .tg-ges-tabs { border-radius: 16px; }
  .tg-ges-tab {
    flex: 1 1 auto;
    justify-content: center;
  }
}