/* ==========================================================================
   greenmc-hosting-v2 · Panel del cliente (diseño "Panel.html" / "Movil-Panel.html")
   Alcance: body.gm-panel-page (solo el panel), .gm-side (menú lateral) y la barra inferior.
   ========================================================================== */

/* ---------- Página ---------- */
body.gm-panel-page {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(124, 58, 237, .16), transparent 60%), #0a0a0f !important;
  background-attachment: fixed !important;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', Inter, 'Helvetica Neue', sans-serif;
  font-size: 15px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
body.gm-panel-page .page-wrapper,
body.gm-panel-page .gm-page-body { background: transparent !important; padding: 0 !important; margin: 0 !important; }
body.gm-panel-page a { text-decoration: none; }
.gm-panel-wrap { padding: 12px 16px 28px; }
.gm-panel { max-width: 1180px; margin: 0 auto; }
@media (min-width: 992px) { .gm-panel-wrap { padding: 22px 44px 64px; } }

.gm-ico { display: block; flex-shrink: 0; }
.gm-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex-shrink: 0; }
.gm-text-ok { color: #30d158 !important; }
.gm-text-bad { color: #ff453a !important; }
.gm-tone-ok { color: #30d158; }
.gm-tone-bad { color: #ff6961; }
.gm-tone-warn { color: #ffb340; }
.gm-tone-idle { color: #8e8e93; }

/* ---------- Menú lateral ---------- */
.apple-sidebar.gm-side {
  width: 256px !important; min-width: 256px !important; max-width: 256px !important;
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px 14px 18px;
  background: rgba(22, 22, 28, .97) !important;
  border-right: 1px solid rgba(255, 255, 255, .06) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, 'Helvetica Neue', sans-serif;
  letter-spacing: -0.01em;
}
@media (min-width: 992px) {
  .apple-sidebar.gm-side {
    background: rgba(28, 28, 34, .72) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    box-shadow: none;
  }
}
.gm-side__brand { display: block; padding: 0 10px; }
.gm-side__brand img { display: block; height: 24px; width: auto; }
.gm-side__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.gm-side__group { display: flex; flex-direction: column; gap: 2px; }
.gm-side__heading { padding: 0 12px 6px; font-size: 11px; font-weight: 600; color: #8e8e93; letter-spacing: .02em; }
.gm-side__link {
  display: flex; align-items: center; gap: 11px;
  min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: #d1d1d6 !important; font-size: 14px; text-decoration: none;
  transition: background .15s ease;
}
.gm-side__link .gm-ico { color: #a1a1aa; }
.gm-side__link--violet .gm-ico { color: #a78bfa; }
.gm-side__link--amber .gm-ico { color: #ffb340; }
.gm-side__link:hover, .gm-side__link:focus-visible { background: rgba(255, 255, 255, .06); color: #fff !important; }
.gm-side__link.is-active { background: linear-gradient(135deg, #7c3aed, #9f67ff); color: #fff !important; font-weight: 600; }
.gm-side__link.is-active .gm-ico { color: #fff; }
.gm-side__link > span:first-of-type { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-side__tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(255, 179, 64, .14); color: #ffb340; font-size: 11px; font-weight: 600; flex: 0 0 auto !important; }
.gm-side__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto !important; }
.gm-side__count--danger { background: #ff453a; }
.gm-side__ext { margin-left: auto; color: #8e8e93; font-size: 12px; flex: 0 0 auto !important; }
.gm-side__user { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.gm-side__user-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; color: #f5f5f7 !important; border-radius: 10px; }
.gm-side__user-meta { min-width: 0; display: flex; flex-direction: column; }
.gm-side__user-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-side__user-mail { font-size: 12px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-side__logout { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #8e8e93 !important; flex-shrink: 0; }
.gm-side__logout:hover, .gm-side__logout:focus-visible { background: rgba(255, 69, 58, .14); color: #ff6961 !important; }

.gm-avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #c084fc); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0;
}
.gm-avatar--lg { width: 44px; height: 44px; font-size: 15px; cursor: pointer; }

/* ---------- Barra superior ---------- */
.gm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.gm-top__brand img { display: block; height: 20px; width: auto; }
.gm-search {
  flex: 0 1 340px; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border-radius: 10px; background: rgba(255, 255, 255, .07); color: #8e8e93; margin: 0; cursor: text;
}
.gm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #f5f5f7; font-size: 15px; padding: 0; }
.gm-search input::placeholder { color: #8e8e93; }
.gm-search:focus-within { box-shadow: 0 0 0 2px rgba(167, 139, 250, .45); }
.gm-top__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.gm-circle-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .07); color: #f5f5f7 !important;
}
.gm-circle-btn:hover { background: rgba(255, 255, 255, .12); }
.gm-circle-btn__badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ff453a; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Botones ---------- */
.gm-pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 600; color: #fff !important; white-space: nowrap; cursor: pointer;
  transition: filter .15s ease, background .15s ease;
}
.gm-pill-btn--primary { background: #7c3aed; }
.gm-top .gm-pill-btn--primary { padding: 0 18px; }
.gm-pill-btn--primary:hover { filter: brightness(1.12); }
.gm-pill-btn--soft { background: rgba(255, 255, 255, .08); }
.gm-pill-btn--soft:hover { background: rgba(255, 255, 255, .14); }
.gm-pill-btn--amber { background: #ffb340; color: #241500 !important; font-weight: 700; }
.gm-pill-btn--amber:hover { filter: brightness(1.08); }
.gm-pill-btn:disabled { opacity: .5; cursor: default; }
.gm-soft-btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .08); color: #f5f5f7; font-size: 13px; font-weight: 600; cursor: pointer;
}
.gm-soft-btn:hover { background: rgba(255, 255, 255, .14); }
.gm-soft-btn:disabled { opacity: .45; cursor: default; }

/* ---------- Saludo ---------- */
.gm-hello { margin-top: 28px; }
.gm-hello__date { font-size: 13px; font-weight: 600; color: #a1a1aa; text-transform: uppercase; letter-spacing: .04em; }
.gm-hello__row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 6px; }
@media (min-width: 768px) { .gm-hello__row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; } }
.gm-hello__title { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #f5f5f7; }
.gm-status-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(48, 209, 88, .12); color: #30d158 !important; font-size: 13px; font-weight: 600;
}
.gm-status-pill--bad { background: rgba(255, 69, 58, .14); color: #ff6961 !important; }
.gm-status-pill--warn { background: rgba(255, 179, 64, .14); color: #ffb340 !important; }
.gm-status-pill--idle { background: rgba(255, 255, 255, .07); color: #a1a1aa !important; }
@media (min-width: 992px) {
  .gm-hello { margin-top: 40px; }
  .gm-hello__title { font-size: 40px; }
}

/* ---------- Tarjeta principal ---------- */
.gm-hero-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.gm-hero {
  position: relative; overflow: hidden; flex: 2 1 520px; min-width: 0;
  background: linear-gradient(160deg, #1d1730 0%, #15151c 55%);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 26px; padding: 20px;
}
.gm-hero > * { position: relative; }
.gm-hero > .gm-hero__mark { position: absolute; right: -40px; top: -30px; width: 260px; opacity: .05; pointer-events: none; }
.gm-mc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gm-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #8e8e93; }
.gm-state[data-tone="ok"] { color: #30d158; }
.gm-state[data-tone="warn"] { color: #ffb340; }
.gm-state[data-tone="bad"] { color: #ff6961; }
.gm-state[data-tone="off"] { color: #a1a1aa; }
.gm-state[data-tone="idle"] .gm-dot, .gm-state[data-tone="off"] .gm-dot { box-shadow: none; }
.gm-mc__picker {
  max-width: 55%; min-height: 36px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #f5f5f7; font-size: 13px; appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
}
.gm-mc__name { margin: 10px 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.gm-mc__name a { color: #f5f5f7 !important; }
.gm-mc__name a:hover { color: #c4b5fd !important; }
.gm-mc__sub { margin: 0; font-size: 14px; color: #a1a1aa; }
.gm-mc__top { display: flex; flex-direction: column; }
.gm-mc__info { min-width: 0; flex: 1 1 auto; }
@media (min-width: 768px) {
  .gm-mc__top { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .gm-mc__top .gm-addr { margin-top: 0; flex: 0 1 auto; max-width: 52%; }
}
.gm-addr {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px;
  padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08);
}
.gm-addr code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; color: #f5f5f7; background: none; padding: 0; }

.gm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.gm-metric {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  padding: 14px 4px; border-radius: 18px; background: rgba(255, 255, 255, .04); text-align: center; min-width: 0;
}
.gm-ring { width: 50px; height: 50px; transform: rotate(-90deg); display: block; }
.gm-ring circle { fill: none; stroke-width: 8; }
.gm-ring__bar { stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transition: stroke-dashoffset .6s ease; }
.gm-metric--cpu .gm-ring__track { stroke: rgba(167, 139, 250, .18); }
.gm-metric--cpu .gm-ring__bar { stroke: #a78bfa; }
.gm-metric--memory .gm-ring__track { stroke: rgba(48, 209, 88, .18); }
.gm-metric--memory .gm-ring__bar { stroke: #30d158; }
.gm-metric--disk .gm-ring__track { stroke: rgba(100, 210, 255, .18); }
.gm-metric--disk .gm-ring__bar { stroke: #64d2ff; }
.gm-metric__val { position: absolute; top: 14px; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.gm-metric__val .gm-pct { display: none; font-size: inherit; }
.gm-metric__cap { font-size: 12px; color: #a1a1aa; line-height: 1.3; overflow-wrap: anywhere; }
.gm-players { height: 50px; display: flex; align-items: center; justify-content: center; }
.gm-players__on { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.gm-players__max { font-size: 14px; color: #8e8e93; font-weight: 600; margin-left: 1px; }

.gm-mc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gm-mc .gm-mc__actions .gm-pill-btn { flex: 1 1 0; }
.gm-mc .gm-mc__actions .gm-mc__restart { flex: 0 0 44px; padding: 0; }
.gm-mc__restart[hidden] { display: none !important; }

.gm-svc__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.gm-svc__info > div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); display: flex; flex-direction: column; gap: 4px; }
.gm-svc__info span { font-size: 13px; color: #a1a1aa; }
.gm-svc__info strong { font-size: 16px; font-weight: 700; }
.gm-svc__note { margin: 14px 0 0; font-size: 13px; color: #8e8e93; }

@media (min-width: 768px) {
  .gm-hero { border-radius: 28px; padding: 28px; }
  .gm-mc__name { font-size: 28px; }
  .gm-metrics { gap: 12px; margin-top: 28px; }
  .gm-metric { padding: 18px 8px; border-radius: 20px; gap: 10px; }
  .gm-ring { width: 64px; height: 64px; }
  .gm-ring circle { stroke-width: 7; }
  .gm-metric__val { top: 18px; height: 64px; font-size: 14px; }
  .gm-metric__val .gm-pct { display: inline; }
  .gm-metric__cap { font-size: 13px; }
  .gm-players { height: 64px; }
  .gm-players__on { font-size: 30px; }
  .gm-players__max { font-size: 16px; }
  .gm-mc__actions { margin-top: 20px; }
  .gm-mc .gm-mc__actions .gm-pill-btn,
  .gm-mc .gm-mc__actions .gm-mc__restart { flex: 0 0 auto; padding: 0 20px; }
}

/* ---------- Saldo ---------- */
.gm-balance {
  flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 22px; border-radius: 26px; color: #fff;
  background: linear-gradient(145deg, #5b21b6 0%, #7c3aed 50%, #a855f7 100%);
  box-shadow: 0 20px 60px rgba(124, 58, 237, .28);
}
.gm-balance__top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.gm-balance__top img { width: 30px; height: auto; opacity: .9; }
.gm-balance__amount { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.gm-balance__amount span { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.gm-balance__hint { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.gm-balance__actions { display: flex; gap: 10px; }
.gm-balance__btn { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff !important; font-size: 14px; font-weight: 600; }
.gm-balance__btn:hover { background: rgba(255, 255, 255, .26); }
.gm-balance__btn--main { background: #fff; color: #3b0764 !important; font-weight: 700; }
.gm-balance__btn--main:hover { background: #f3e8ff; }
@media (min-width: 768px) {
  .gm-balance { padding: 28px; border-radius: 28px; }
  .gm-balance__amount { font-size: 46px; }
}

/* ---------- Resumen ---------- */
.gm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.gm-stat {
  display: flex; flex-direction: column; min-width: 0; padding: 16px; border-radius: 20px;
  background: #16161c; border: 1px solid rgba(255, 255, 255, .06); color: #f5f5f7 !important;
  transition: background .15s ease;
}
.gm-stat:hover { background: #1b1b22; }
.gm-stat__label { font-size: 13px; color: #a1a1aa; font-weight: 500; }
.gm-stat__value { margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.gm-stat__value small { font-size: 14px; color: #8e8e93; font-weight: 600; letter-spacing: 0; }
.gm-stat__hint { margin-top: 4px; font-size: 13px; color: #8e8e93; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 992px) {
  .gm-stats { display: flex; gap: 18px; }
  .gm-stat { flex: 1 1 200px; padding: 20px 22px; border-radius: 22px; }
  .gm-stat__value { margin-top: 8px; font-size: 26px; }
}

/* ---------- Servicios y lateral ---------- */
.gm-bottom { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.gm-bottom__main { flex: 2 1 520px; min-width: 0; }
.gm-bottom__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.gm-panel .gm-section-head { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.gm-section-head h2, .gm-section-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #f5f5f7; }
.gm-section-head a { font-size: 15px; color: #a78bfa !important; font-weight: 500; }
.gm-section-title { margin: 28px 0 12px; }
@media (min-width: 992px) {
  .gm-bottom { margin-top: 36px; }
  .gm-bottom__aside { padding-top: 46px; }
  .gm-section-head h2, .gm-section-title { font-size: 22px; }
  .gm-section-title { margin-top: 32px; }
}

.gm-list, .gm-card { background: #16161c; border: 1px solid rgba(255, 255, 255, .06); border-radius: 22px; overflow: hidden; }
.gm-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; color: #f5f5f7 !important; }
.gm-row + .gm-row::before { content: ""; position: absolute; top: 0; right: 0; left: 72px; height: 1px; background: rgba(255, 255, 255, .06); }
.gm-row:hover { background: rgba(255, 255, 255, .04); }
.gm-row__icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gm-row__icon--ok { background: linear-gradient(135deg, #1f3d24, #2b6b39); color: #7ee787; }
.gm-row__icon--bad { background: linear-gradient(135deg, #3d1f1f, #7a2e2e); color: #ff8a80; }
.gm-row__icon--warn { background: linear-gradient(135deg, #3d2f12, #7a5a1c); color: #ffd28a; }
.gm-row__icon--idle { background: rgba(255, 255, 255, .07); color: #a1a1aa; }
.gm-row__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gm-row__title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-row__sub { font-size: 13px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-row__status { font-size: 13px; font-weight: 600; flex-shrink: 0; }
.gm-row__price { min-width: 92px; text-align: right; font-size: 14px; color: #a1a1aa; flex-shrink: 0; }
.gm-row__chev { color: #5a5a62; font-size: 20px; line-height: 1; flex-shrink: 0; }
@media (min-width: 768px) {
  .gm-row { min-height: 72px; padding: 14px 18px; gap: 14px; }
  .gm-row + .gm-row::before { left: 76px; }
}
.gm-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 20px; text-align: center; color: #8e8e93; font-size: 14px; }
.gm-empty strong { color: #f5f5f7; font-size: 16px; }
.gm-empty .gm-pill-btn { margin-top: 10px; }
.gm-empty__icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .07); color: #a1a1aa; margin-bottom: 4px; }

.gm-activity { display: flex; flex-wrap: wrap; gap: 18px; }
.gm-act { flex: 1 1 240px; min-width: 0; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 14px; color: #8e8e93; }
.gm-act > strong { color: #f5f5f7; font-size: 16px; font-weight: 600; }
.gm-act a { color: #a78bfa !important; }
.gm-act__icon { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .07); color: #a1a1aa; margin-bottom: 6px; }
.gm-act__icon--ok { background: rgba(48, 209, 88, .12); color: #30d158; }
.gm-act:has(.gm-act__head) { align-items: stretch; justify-content: flex-start; text-align: left; padding: 18px 20px; gap: 4px; }
.gm-act__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.gm-act__head strong { color: #f5f5f7; font-size: 15px; }
.gm-act__head a { font-size: 13px; }
.gm-act__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 6px 10px; margin: 0 -10px; border-radius: 12px; color: #f5f5f7 !important; }
.gm-act__item:hover { background: rgba(255, 255, 255, .04); }
.gm-act__item > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.gm-act__item strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-act__item small { font-size: 12px; color: #8e8e93; }
.gm-act__amount { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.gm-act__amount em { font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #7c3aed; border-radius: 999px; padding: 4px 10px; }
@media (min-width: 768px) { .gm-act { padding: 28px; } }

.gm-minepass { position: relative; overflow: hidden; padding: 24px; border-radius: 22px; background: linear-gradient(150deg, #3a2608 0%, #1a1510 60%); border: 1px solid rgba(255, 179, 64, .22); }
.gm-minepass__tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #ffb340; }
.gm-minepass h2 { margin: 8px 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #f5f5f7; }
.gm-minepass p { margin: 0; font-size: 14px; line-height: 1.5; color: #c7c7cc; }
.gm-minepass__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.gm-minepass__price { font-size: 24px; font-weight: 700; }
.gm-minepass__price span { font-size: 13px; color: #a1a1aa; font-weight: 500; }

.gm-links a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 18px; font-size: 15px; color: #f5f5f7 !important; }
.gm-links a + a::before { content: ""; position: absolute; top: 0; right: 0; left: 18px; height: 1px; background: rgba(255, 255, 255, .06); }
.gm-links a:hover { background: rgba(255, 255, 255, .04); }

.gm-pin { padding: 20px 22px; }
.gm-pin__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.gm-pin__value { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 20px; letter-spacing: .1em; white-space: nowrap; }
.gm-pin__btns { display: flex; gap: 6px; }
.gm-pin__btns .gm-soft-btn { border-radius: 999px; }
.gm-pin__note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #8e8e93; }

/* ---------- Barra inferior (iconos del diseño) ---------- */
.gm-bottombar { background: rgba(22, 22, 28, .82); }
.gm-bottombar__item { color: #8e8e93; font-size: 10px; }
.gm-bottombar__item .gm-ico { width: 24px; height: 24px; }
.gm-bottombar__item.active,
.gm-bottombar__item[aria-current="page"] { color: #a78bfa; }

/* ==========================================================================
   Mercado (/order) · diseño "Mercado.html" / "Movil-Mercado.html" · prefijo gm-mk
   ========================================================================== */
.gm-mk-cart {
  align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: #f5f5f7 !important; font-size: 14px; font-weight: 500;
}
.gm-mk-cart:hover { background: rgba(255, 255, 255, .12); }
.gm-mk-cart__count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #7c3aed; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.gm-mk-cart-round { background: rgba(255, 255, 255, .08); }
.gm-mk-cart-round .gm-circle-btn__badge { background: #7c3aed; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }

/* Título y pestañas */
.gm-mk-head { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.gm-mk-head__text { max-width: 620px; }
.gm-mk-eyebrow { font-size: 13px; font-weight: 600; color: #a78bfa; text-transform: uppercase; letter-spacing: .04em; }
.gm-mk-title { margin: 6px 0 0; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: #f5f5f7; }
.gm-mk-lead { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: #a1a1aa; }
.gm-mk-tabs {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
  background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 3px;
}
.gm-mk-tab {
  border: 0; background: transparent; color: #c7c7cc; border-radius: 9px; min-height: 44px; padding: 0 10px;
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.gm-mk-tab.is-active { background: #3a3a44; color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.gm-mk-tab:focus-visible { outline: 2px solid #a78bfa; outline-offset: 1px; }
.gm-mk-tab__count { opacity: .6; font-weight: 500; }

/* Incluido en todos */
.gm-mk-included {
  margin-top: 24px; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  background: #16161c; border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; padding: 14px 20px;
  font-size: 14px; color: #c7c7cc;
}
.gm-mk-included__title { color: #f5f5f7; font-weight: 600; }
.gm-mk-included__item { display: inline-flex; align-items: center; gap: 6px; }
.gm-mk-ok { color: #30d158; }
.gm-mk-chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.gm-mk-chips span { background: rgba(48, 209, 88, .1); color: #7ee6a0; border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 600; }

/* Rejilla de planes */
.gm-mk-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gm-mk-card {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: #16161c; border: 1px solid rgba(255, 255, 255, .07); border-radius: 26px; padding: 8px;
}
.gm-mk-card[hidden] { display: none; }
.gm-mk-well {
  --gm-tint: 124, 58, 237;
  position: relative; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(70% 70% at 50% 62%, rgba(var(--gm-tint), .32), rgba(var(--gm-tint), .06) 60%, transparent 80%), #1c1c24;
}
.gm-mk-well img { width: 60%; height: 80%; object-fit: contain; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .55)); }
.gm-mk-pixel { image-rendering: pixelated; }
.gm-mk-noimg {
  width: 50%; height: 64%; padding: 8px; border: 1.5px dashed rgba(255, 255, 255, .22); border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: rgba(255, 255, 255, .6); text-align: center; font-size: 12px;
}
.gm-mk-badge {
  position: absolute; top: 12px; align-items: center; gap: 6px; display: inline-flex;
  background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 500; color: #f5f5f7;
}
.gm-mk-badge--cat { left: 12px; }
.gm-mk-badge--live { right: 12px; }
.gm-mk-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #30d158; }
.gm-mk-card__body { padding: 14px 10px 8px; display: flex; flex-direction: column; flex-grow: 1; }
.gm-mk-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gm-mk-card__name { margin: 0; min-width: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #f5f5f7; }
.gm-mk-card__ram { font-size: 14px; color: #a1a1aa; white-space: nowrap; }
.gm-mk-card__price-sm { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; color: #f5f5f7; }
.gm-mk-card__price-sm small { font-size: 12px; font-weight: 500; color: #8e8e93; }
.gm-mk-card__price { margin-top: 14px; align-items: baseline; gap: 6px; }
.gm-mk-card__from { font-size: 13px; color: #8e8e93; }
.gm-mk-card__amount { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: #f5f5f7; }
.gm-mk-card__per { font-size: 14px; color: #8e8e93; }
.gm-mk-specs { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gm-mk-spec { min-width: 0; background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 8px 10px; }
.gm-mk-spec__k { font-size: 11px; color: #8e8e93; }
.gm-mk-spec__v { font-size: 14px; font-weight: 600; color: #f5f5f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-mk-cta {
  margin-top: 14px; min-height: 48px; border-radius: 999px; background: #7c3aed; color: #fff !important;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
  transition: filter .15s ease;
}
.gm-mk-cta:hover { filter: brightness(1.12); }
.gm-mk-cta:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.gm-mk-empty { margin: 24px 0 0; text-align: center; font-size: 15px; color: #8e8e93; }

/* MinePass y dominio */
.gm-mk-extras { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.gm-mk-prime {
  position: relative; overflow: hidden; padding: 20px; border-radius: 22px;
  background: linear-gradient(150deg, #3a2608 0%, #1a1510 65%); border: 1px solid rgba(255, 179, 64, .22);
}
.gm-mk-prime__text { max-width: 460px; }
.gm-mk-prime__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #ffb340; }
.gm-mk-prime__title { margin: 6px 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #f5f5f7; }
.gm-mk-prime__desc { margin: 0; font-size: 14px; line-height: 1.45; color: #c7c7cc; }
.gm-mk-prime__buy { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gm-mk-prime__price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #f5f5f7; white-space: nowrap; }
.gm-mk-prime__price span { font-size: 12px; font-weight: 500; color: #a1a1aa; }
.gm-mk-prime__btn { padding: 0 20px; }
.gm-mk-domain {
  flex-direction: column; justify-content: space-between; gap: 18px;
  background: #16161c; border: 1px solid rgba(255, 255, 255, .07); border-radius: 28px; padding: 28px;
}
.gm-mk-domain .gm-pill-btn { align-self: flex-start; }
.gm-mk-domain__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(100, 210, 255, .12); color: #64d2ff; display: flex; align-items: center; justify-content: center;
}
.gm-mk-domain__icon--sm { width: 40px; height: 40px; border-radius: 11px; }
.gm-mk-domain__title { margin: 14px 0 6px; font-size: 20px; font-weight: 700; color: #f5f5f7; }
.gm-mk-domain__desc { margin: 0; font-size: 14px; line-height: 1.5; color: #a1a1aa; }
.gm-mk-domain-row {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px;
  background: #16161c; border: 1px solid rgba(255, 255, 255, .06); border-radius: 20px; color: #f5f5f7 !important;
}
.gm-mk-domain-row__text { flex: 1; min-width: 0; }
.gm-mk-domain-row__title { display: block; font-weight: 600; }
.gm-mk-domain-row__sub { display: block; font-size: 13px; color: #8e8e93; }
.gm-mk-domain-row__chev { color: #5a5a62; font-size: 20px; line-height: 1; }

@media (min-width: 576px) {
  .gm-mk-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
}
@media (min-width: 992px) {
  .gm-mk-head { margin-top: 40px; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .gm-mk-title { font-size: 40px; }
  .gm-mk-lead { margin-top: 8px; font-size: 17px; }
  .gm-mk-tabs { display: flex; background: rgba(255, 255, 255, .07); }
  .gm-mk-tab { padding: 0 18px; }
  .gm-mk-grid { margin-top: 24px; }
  .gm-mk-card { border-radius: 28px; padding: 10px; }
  .gm-mk-well { aspect-ratio: 4 / 3; }
  .gm-mk-well img { width: 62%; height: 82%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
  .gm-mk-card__body { padding: 18px 14px 12px; }
  .gm-mk-card__name { font-size: 22px; }
  .gm-mk-specs { margin: 16px 0 20px; gap: 8px; flex-grow: 1; align-content: start; }
  .gm-mk-spec { border-radius: 14px; padding: 10px 12px; }
  .gm-mk-spec__v { margin-top: 2px; font-size: 15px; }
  .gm-mk-cta { margin-top: auto; }
  .gm-mk-extras { margin-top: 28px; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .gm-mk-prime { flex: 2 1 460px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: 28px; }
  .gm-mk-prime__title { margin: 8px 0 6px; font-size: 26px; }
  .gm-mk-prime__desc { font-size: 15px; line-height: 1.5; }
  .gm-mk-prime__buy { margin-top: 0; flex-direction: column; align-items: flex-start; }
  .gm-mk-prime__price { font-size: 30px; }
  .gm-mk-prime__price span { font-size: 14px; }
  .gm-mk-prime__btn { padding: 0 22px; }
  .gm-mk-domain { flex: 1 1 280px; }
}
.gm-mk-well img[src*="/textures/"] { image-rendering: pixelated; }

/* =====================================================================
   Soporte (/support y /support/ticket) · prefijo gm-tk · bocetos asd2
   ===================================================================== */
body.gm-tk-page {
  background: radial-gradient(800px 420px at 12% -4%, rgba(124,58,237,.22), transparent 70%) no-repeat, #07070b;
}
.gm-tk { max-width: 1120px; margin: 0 auto; padding: 20px 0 40px; color: #f5f5f7; }
.gm-tk-hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.gm-tk-title { margin: 0; font-size: 34px; line-height: 38px; font-weight: 700; letter-spacing: -.03em; color: #f5f5f7; }
.gm-tk-lead { margin: 6px 0 0; font-size: 15px; line-height: 22px; color: #a1a1aa; }

.gm-tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 600 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.gm-tk-btn--primary { background: linear-gradient(135deg,#9f67ff,#7c3aed); color: #fff; box-shadow: 0 8px 24px rgba(124,58,237,.4); }
.gm-tk-btn--primary:hover, .gm-tk-btn--primary:focus-visible { filter: brightness(1.1); color: #fff; }
.gm-tk-btn--soft { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #f5f5f7; }
.gm-tk-btn--soft:hover, .gm-tk-btn--soft:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.gm-tk-btn:disabled { opacity: .7; cursor: default; }

/* Estado vacío */
.gm-tk-empty {
  margin-top: 24px; padding: 40px 20px 24px; border-radius: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg,#15151c,#101016); border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.gm-tk-empty__icon {
  width: 80px; height: 80px; border-radius: 26px; display: flex; align-items: center; justify-content: center; color: #c4a5ff;
  background: linear-gradient(135deg,rgba(159,103,255,.25),rgba(124,58,237,.08));
  border: 1px solid rgba(159,103,255,.3); box-shadow: 0 0 50px rgba(124,58,237,.3);
}
.gm-tk-empty__icon svg { width: 36px; height: 36px; }
.gm-tk-empty h2 { margin: 22px 0 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; color: #f5f5f7; }
.gm-tk-empty p { margin: 8px 0 0; max-width: 420px; font-size: 15px; line-height: 22px; color: #a1a1aa; }
.gm-tk-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; width: 100%; }
.gm-tk-empty__actions a { width: 100%; }

/* Lista: tarjetas en móvil, tabla desde 768px */
.gm-tk-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.gm-tk-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "id status" "main main";
  column-gap: 12px; row-gap: 8px; align-items: center; padding: 16px; border-radius: 18px; text-decoration: none; color: #f5f5f7;
  background: linear-gradient(180deg,#15151c,#101016); border: 1px solid rgba(255,255,255,.08);
}
.gm-tk-row:hover { color: #fff; border-color: rgba(159,103,255,.3); }
.gm-tk-row--head, .gm-tk-row__when, .gm-tk-row__go { display: none; }
.gm-tk-row__id { grid-area: id; font-size: 13px; color: #8e8e93; font-variant-numeric: tabular-nums; }
.gm-tk-row__main { grid-area: main; min-width: 0; }
.gm-tk-row__status { grid-area: status; }
.gm-tk-row__subject { display: block; font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.gm-tk-row__dept { display: block; margin-top: 2px; font-size: 13px; color: #a1a1aa; }
.gm-tk-status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.08); color: #b4b4bb; }
.gm-tk-status--open { background: rgba(48,209,88,.16); color: #5fe07f; }
.gm-tk-status--on_hold { background: rgba(159,103,255,.2); color: #c4a5ff; }
.gm-tk-pager { margin-top: 16px; }

/* Nuevo ticket · hoja inferior (móvil) */
.gm-tk-modal { --bs-modal-bg: transparent; }
.modal-backdrop.show { opacity: .65; }
.gm-tk-modal .modal-content {
  background: linear-gradient(180deg,#17171f,#121218); color: #f5f5f7; border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 40px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden;
}
.gm-tk-modal__grab { width: 40px; height: 5px; flex: none; border-radius: 3px; background: rgba(255,255,255,.2); margin: 10px auto 0; }
.gm-tk-modal__head { display: flex; flex: none; align-items: center; gap: 12px; padding: 14px 20px 0; }
.gm-tk-modal__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg,#9f67ff,#7c3aed); box-shadow: 0 8px 24px rgba(124,58,237,.4); }
.gm-tk-modal__icon svg { width: 20px; height: 20px; }
.gm-tk-modal__title { margin: 0; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.02em; color: #f5f5f7; }
.gm-tk-modal__sub { margin: 1px 0 0; font-size: 13px; line-height: 18px; color: #a1a1aa; }
.gm-tk-modal__close { width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); color: #c7c7cc; display: flex; align-items: center; justify-content: center; }
.gm-tk-modal__close:hover { background: rgba(255,255,255,.12); color: #fff; }
.gm-tk-modal .gm-tk-modal__body { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
.gm-tk-form { display: flex; flex-direction: column; gap: 16px; }
.gm-tk-form__cols { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.gm-tk-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #d1d1d6; }
.gm-tk-modal .gm-tk-field {
  height: 52px; padding-left: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1);
  background-color: #1b1b23; color: #f5f5f7; font-size: 16px; font-weight: 500;
}
.gm-tk-modal .gm-tk-field::placeholder { color: #8e8e93; }
.gm-tk-modal .gm-tk-field:focus { border-color: #9f67ff; box-shadow: 0 0 0 4px rgba(124,58,237,.22); }
.gm-tk-modal select.gm-tk-field option { background: #1b1b23; }
.gm-tk-form__foot { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 4px; }
.gm-tk-form__note { display: none; margin: 0; }

/* Editor (CKEditor) en oscuro */
.gm-tk-editor {
  --ck-color-base-background: #1b1b23; --ck-color-base-foreground: #20202a; --ck-color-base-border: transparent;
  --ck-color-toolbar-background: #20202a; --ck-color-toolbar-border: transparent; --ck-color-text: #f5f5f7;
  --ck-color-button-default-hover-background: rgba(255,255,255,.08); --ck-color-button-default-active-background: rgba(255,255,255,.12);
  --ck-color-button-on-background: rgba(124,58,237,.3); --ck-color-button-on-hover-background: rgba(124,58,237,.4);
  --ck-color-button-on-color: #fff; --ck-color-focus-border: transparent; --ck-focus-ring: 1px solid transparent;
  --ck-color-panel-background: #20202a; --ck-color-panel-border: rgba(255,255,255,.12);
  --ck-color-dropdown-panel-background: #20202a; --ck-color-input-background: #1b1b23; --ck-color-input-text: #f5f5f7;
  --ck-color-input-border: rgba(255,255,255,.14); --ck-color-list-background: #20202a;
  --ck-color-button-on-disabled-background: transparent; --ck-color-engine-placeholder-text: #8e8e93;
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #1b1b23; overflow: hidden;
}
.gm-tk-editor:focus-within { border-color: #9f67ff; box-shadow: 0 0 0 4px rgba(124,58,237,.22); }
.gm-tk-editor .ck.ck-toolbar { border: 0; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; padding: 2px 4px; }
.gm-tk-editor .ck.ck-toolbar .ck-button { color: #c7c7cc; cursor: pointer; }
.gm-tk-editor .ck.ck-editor__main > .ck-editor__editable {
  min-height: 132px; max-height: 300px; padding: 0 16px; border: 0 !important; box-shadow: none !important;
  border-radius: 0; background: transparent !important; color: #f5f5f7 !important; font-size: 16px; line-height: 22px;
}
.gm-tk-editor .ck-editor__main { color: #f5f5f7 !important; }
.gm-tk-editor > textarea { border: 0; background: transparent; color: #f5f5f7; }

@media (max-width: 575.98px) {
  .gm-tk-modal .modal-dialog { margin: 0; max-width: none; height: 100%; min-height: 100%; align-items: flex-end; }
  .gm-tk-modal.fade .modal-dialog { transform: translateY(40px); }
  .gm-tk-modal.show .modal-dialog { transform: none; }
  .gm-tk-modal .modal-content { border-radius: 28px 28px 0 0; border-width: 1px 0 0; max-height: calc(100% - 16px); }
}
@media (min-width: 576px) {
  .gm-tk-modal .modal-dialog { max-width: 640px; margin-left: auto; margin-right: auto; padding: 0 12px; }
  .gm-tk-modal .modal-content { border-radius: 28px; }
  .gm-tk-modal__grab { display: none; }
  .gm-tk-modal__head { gap: 16px; padding: 28px 28px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .gm-tk-modal__icon { width: 48px; height: 48px; border-radius: 14px; }
  .gm-tk-modal__icon svg { width: 24px; height: 24px; }
  .gm-tk-modal__title { font-size: 22px; line-height: 28px; }
  .gm-tk-modal__sub { margin-top: 2px; font-size: 14px; line-height: 20px; }
  .gm-tk-modal .gm-tk-modal__body { padding: 24px 28px 28px; }
  .gm-tk-form { gap: 20px; }
  .gm-tk-form__cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gm-tk-modal .gm-tk-field { height: 48px; border-radius: 12px; font-size: 15px; }
  .gm-tk-editor .ck.ck-editor__main > .ck-editor__editable { min-height: 168px; font-size: 15px; }
  .gm-tk-form__foot { flex-direction: row; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); }
  .gm-tk-form__foot .gm-tk-btn { min-height: 48px; border-radius: 12px; }
  .gm-tk-form__note { display: flex; flex: 1; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: #a1a1aa; }
  .gm-tk-form__note svg { flex: none; color: #30d158; }
  .gm-tk-form__foot .gm-tk-btn:first-of-type { margin-left: auto; }
}
@media (min-width: 768px) {
  .gm-tk { padding: 40px 0 72px; }
  .gm-tk-hero { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .gm-tk-title { font-size: 44px; line-height: 48px; }
  .gm-tk-lead { margin-top: 10px; font-size: 17px; line-height: 24px; }
  .gm-tk-hero .gm-tk-btn { min-height: 48px; }
  .gm-tk-empty { margin-top: 40px; padding: 72px 24px; border-radius: 28px; }
  .gm-tk-empty__icon { width: 96px; height: 96px; border-radius: 30px; box-shadow: 0 0 60px rgba(124,58,237,.3); }
  .gm-tk-empty__icon svg { width: 42px; height: 42px; }
  .gm-tk-empty h2 { margin-top: 28px; font-size: 26px; line-height: 32px; }
  .gm-tk-empty p { margin-top: 10px; font-size: 16px; line-height: 24px; }
  .gm-tk-empty__actions { margin-top: 32px; }
  .gm-tk-empty__actions a { width: auto; }
  .gm-tk-empty__actions .gm-tk-btn { min-height: 48px; }
  .gm-tk-list { margin-top: 40px; gap: 0; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg,#15151c,#101016); border: 1px solid rgba(255,255,255,.08); }
  .gm-tk-row { grid-template-columns: 72px minmax(0,1fr) 120px 110px 24px; grid-template-areas: "id main status when go"; column-gap: 16px; padding: 18px 24px; border: 0; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0; background: transparent; }
  .gm-tk-row:hover { background: rgba(255,255,255,.035); }
  .gm-tk-row--head { display: grid; padding: 16px 24px; border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8e8e93; }
  .gm-tk-row--head:hover { background: transparent; }
  .gm-tk-row--head span:nth-child(1) { grid-area: id; }
  .gm-tk-row--head span:nth-child(2) { grid-area: main; }
  .gm-tk-row--head span:nth-child(3) { grid-area: status; }
  .gm-tk-row--head span:nth-child(4) { grid-area: when; }
  .gm-tk-row__idwhen { display: none; }
  .gm-tk-row__id { font-size: 14px; color: #a1a1aa; }
  .gm-tk-row__subject { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gm-tk-row__when { display: block; grid-area: when; font-size: 14px; color: #a1a1aa; }
  .gm-tk-row__go { display: block; grid-area: go; color: #8e8e93; }
  .gm-tk-status { font-size: 13px; }
}

/* Móvil: cabecera con saldo y barra de 5 accesos (bocetos de Soporte) */
@media (max-width: 991.98px) {
  body.gm-tk-page .gm-announcement { display: none; }
  body.gm-tk-page .gm-topbar .gm-actions { display: flex; margin-left: auto; margin-right: 10px; }
  body.gm-tk-page .gm-topbar .gm-actions .dropdown,
  body.gm-tk-page .gm-topbar .gm-actions .btn { display: none; }
  body.gm-tk-page .gm-topbar .gm-menu-btn { border-radius: 50%; margin-left: 0; }
  .gm-bottombar.gm-bottombar--five { grid-template-columns: repeat(5, 1fr); }
  .gm-bottombar--five button.gm-bottombar__item { border: 0; padding: 0; background: transparent; }
}
.gm-tk-editor .ck.ck-editor__editable > .ck-placeholder::before { white-space: normal; }
.gm-tk-modal input.gm-tk-field { padding-right: 12px; text-overflow: ellipsis; }

/* Conversación de un ticket */
.gm-tk--view { max-width: 880px; padding-top: 16px; }
.gm-tk-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: #c4a5ff; text-decoration: none; }
.gm-tk-back:hover { color: #fff; }
.gm-tk-card { padding: 18px; border-radius: 24px; background: linear-gradient(180deg,#15151c,#101016); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.gm-tk-vhead__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gm-tk-vhead__meta { font-size: 13px; color: #8e8e93; }
.gm-tk-vhead__subject { margin: 10px 0 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; color: #f5f5f7; overflow-wrap: anywhere; }
.gm-tk-vhead__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gm-tk-vhead__actions .gm-tk-btn { min-height: 46px; flex: 1 1 140px; }
.gm-tk-thread { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.gm-tk-msg { display: flex; align-items: flex-start; gap: 10px; }
.gm-tk-msg--me { flex-direction: row-reverse; }
.gm-tk-msg__avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: #c4a5ff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.gm-tk-msg--me .gm-tk-msg__avatar { color: #fff; border: 0; background: linear-gradient(135deg,#9f67ff,#7c3aed); }
.gm-tk-msg__bubble { min-width: 0; max-width: 88%; padding: 14px 16px; border-radius: 6px 18px 18px 18px; background: #16161c; border: 1px solid rgba(255,255,255,.08); }
.gm-tk-msg--me .gm-tk-msg__bubble { border-radius: 18px 6px 18px 18px; background: rgba(124,58,237,.18); border-color: rgba(159,103,255,.3); }
.gm-tk-msg__meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-bottom: 6px; }
.gm-tk-msg__author { font-size: 14px; font-weight: 700; color: #f5f5f7; }
.gm-tk-msg__role { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c4a5ff; }
.gm-tk-msg__time { font-size: 12px; color: #8e8e93; }
.gm-tk-msg .markdown-body { background: transparent !important; color: #e4e4e7 !important; font-family: Inter, system-ui, sans-serif !important; font-size: 15px !important; line-height: 1.6 !important; overflow-wrap: anywhere; }
.gm-tk-msg .markdown-body > :last-child { margin-bottom: 0; }
.gm-tk-msg .markdown-body a { color: #c4a5ff !important; text-decoration: underline; }
.gm-tk-msg .markdown-body pre, .gm-tk-msg .markdown-body code { background: rgba(0,0,0,.35) !important; color: #d9c7ff !important; border-radius: 8px; }
.gm-tk-msg .markdown-body blockquote { border-left: 3px solid #7c3aed; color: #a1a1aa; padding-left: 12px; }
.gm-tk-quote { display: flex; align-items: center; gap: 6px; min-height: 36px; margin: 8px 0 -6px auto; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: #a1a1aa; font-size: 12px; font-weight: 600; }
.gm-tk-quote:hover, .gm-tk-quote:focus-visible { background: rgba(255,255,255,.07); color: #fff; }
.gm-tk-reply h2 { margin: 0 0 14px; font-size: 17px; font-weight: 700; color: #f5f5f7; }
.gm-tk-reply__foot { display: flex; flex-direction: column; margin-top: 14px; }
.gm-tk-closed { padding: 24px 16px; text-align: center; font-size: 14px; color: #a1a1aa; }
@media (min-width: 768px) {
  .gm-tk--view { padding-top: 28px; }
  .gm-tk-card { padding: 26px 28px; border-radius: 28px; }
  .gm-tk-vhead__subject { font-size: 28px; line-height: 34px; }
  .gm-tk-vhead__actions .gm-tk-btn { flex: 0 0 auto; }
  .gm-tk-msg__bubble { max-width: 76%; }
  .gm-tk-reply__foot { flex-direction: row; justify-content: flex-end; }
  .gm-tk-reply__foot .gm-tk-btn { min-height: 48px; }
}
