.has-tooltip .tooltip {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s;
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-size: 0.75em;
  border-radius: 0.5em;
}

.has-tooltip .tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
  transform: rotate(180deg);
}

.has-tooltip:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(50px);
}

.has-tooltip.relative .tooltip {
  top: -2em;
}

[type=text]:focus,
[type=email]:focus,
[type=url]:focus,
[type=password]:focus,
[type=number]:focus,
[type=date]:focus,
[type=datetime-local]:focus,
[type=month]:focus,
[type=search]:focus,
[type=tel]:focus,
[type=time]:focus,
[type=week]:focus,
[multiple]:focus,
textarea:focus,
select:focus {
  --tw-ring-color: #233d4d;
  border-color: #233d4d;
}

input:checked ~ .dot {
  transform: translateX(100%);
}

input:checked ~ .dot-bg {
  background-color: #b1cc74;
}

.reset * {
  all: revert;
}

.page h1,
.page h2,
.page h3,
.page h4,
.page h5,
.page h6,
.page ul,
.page ol,
.page li {
  all: revert;
}

.ql-toolbar {
  border-radius: 0.375rem 0.375rem 0 0;
}

.ql-container {
  border-radius: 0 0 0.375rem 0.375rem;
}

.striped-img-preview {
  color: white;
  background: repeating-linear-gradient(45deg, #ffffff, #ffffff 5px, #eeeeee 5px, #eeeeee 10px);
}

.toggle-path {
  transition: all 0.3s ease-in-out;
}

.toggle-circle {
  top: 0.2rem;
  left: 0.25rem;
  transition: all 0.3s ease-in-out;
}

input:checked ~ .toggle-circle {
  transform: translateX(100%);
}

input:checked ~ .toggle-path {
  background-color: #233d4d;
}

html :not(h1, h2, h3, h4, h5, h6) {
  font-family: var(--body-font);
}

html h1,
html h2,
html h3,
html h4,
html h5,
html h6 {
  font-family: var(--head-font) !important;
}

html h1 > *,
html h2 > *,
html h3 > *,
html h4 > *,
html h5 > *,
html h6 > * {
  font-family: var(--head-font) !important;
}

.message-content {
  overflow-wrap: break-word;
}

.min-w-4xl {
  min-width: 56rem;
}

body {
  background: #f6f8fb;
  color: #101827;
}

.tsms-shell {
  min-height: 100vh;
}

.tsms-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.tsms-topbar {
  background: #0f172a;
  color: #dbeafe;
  font-size: 0.78rem;
}

.tsms-topbar-inner,
.tsms-header-inner,
.tsms-home,
.tsms-footer-inner,
.tsms-footer-bottom,
.tsms-flashes {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.tsms-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 1rem;
}

.tsms-topbar span,
.tsms-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tsms-topbar a {
  color: #dbeafe;
  margin-left: 0.8rem;
}

.tsms-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 86px;
}

.tsms-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.tsms-brand img {
  max-width: 156px;
  max-height: 54px;
  object-fit: contain;
}

.tsms-nav-wrap {
  flex: 1;
  min-width: 0;
}

.tsms-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.tsms-login,
.tsms-register,
.tsms-wallet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.tsms-login {
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.tsms-register {
  color: #fff;
  background: #0f172a;
}

.tsms-wallet {
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  background: #0f172a;
  line-height: 1.1;
  min-width: 118px;
}

.tsms-wallet span {
  font-size: 0.72rem;
  opacity: 0.72;
}

.tsms-nav {
  display: flex;
  justify-content: flex-end;
}

.tsms-desktop-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.tsms-desktop-menu > a,
.tsms-desktop-menu button,
.tsms-menu-group > button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 0.82rem;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  background: transparent;
  border: 0;
}

.tsms-desktop-menu > a:hover,
.tsms-menu-group > button:hover,
.tsms-desktop-menu > a.active {
  color: #0f172a;
  background: #eef2f7;
}

.tsms-menu-group {
  position: relative;
}

.tsms-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  padding: 0.5rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.tsms-dropdown a,
.tsms-footer-nav a,
.tsms-footer-links a {
  display: block;
  color: #475569;
  font-weight: 600;
  font-size: 0.92rem;
}

.tsms-dropdown a {
  padding: 0.65rem 0.7rem;
  border-radius: 7px;
}

.tsms-dropdown a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.admin-link {
  color: #b91c1c !important;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.logout-link {
  color: #64748b !important;
}

.tsms-locale select {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  font-size: 0.86rem;
}

.tsms-mobile-trigger,
.tsms-mobile-close {
  display: none;
}

.tsms-mobile-panel {
  display: none;
}

.tsms-flashes {
  margin-top: 1rem;
}

.tsms-flash {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.tsms-flash.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.tsms-flash.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.tsms-home {
  padding: 1.4rem 0 5rem;
}

.tsms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 2rem;
  align-items: stretch;
  min-height: 0;
}

.tsms-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.7rem 0;
}

.tsms-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.25);
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.42rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tsms-hero h1 {
  max-width: 790px;
  margin: 1.25rem 0 1rem;
  color: #0f172a;
  font-size: clamp(2.55rem, 4.6vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.tsms-hero-text {
  max-width: 700px;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tsms-hero-text p {
  margin: 0;
}

.tsms-hero-actions,
.tsms-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tsms-hero-actions {
  margin-top: 2rem;
}

.tsms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.92rem;
}

.tsms-btn-primary {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
}

.tsms-btn-secondary {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

.tsms-btn-ghost {
  background: #f8fafc;
  color: #334155;
  border-color: rgba(15, 23, 42, 0.12);
}

.tsms-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 650px;
  margin-top: 2.4rem;
}

.tsms-stats div {
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1rem;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.07);
}

.tsms-stats strong {
  display: block;
  color: #0f172a;
  font-size: 1.65rem;
}

.tsms-stats span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.tsms-hero-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsms-device {
  width: min(100%, 440px);
  border-radius: 8px;
  padding: 1rem;
  background: #101827;
  color: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tsms-device-top {
  display: flex;
  gap: 0.4rem;
  padding: 0.2rem 0 1rem;
}

.tsms-device-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #38bdf8;
}

.tsms-device-top span:nth-child(2) {
  background: #22c55e;
}

.tsms-device-top span:nth-child(3) {
  background: #f59e0b;
}

.tsms-inbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.tsms-inbox-head small,
.tsms-message-card small {
  display: block;
  color: #93c5fd;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.tsms-inbox-head strong {
  font-size: 1.05rem;
}

.tsms-message-card {
  margin: 1rem 0;
  border-radius: 8px;
  padding: 1.2rem;
  background: #fff;
  color: #0f172a;
}

.tsms-message-card span {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
}

.tsms-message-card strong {
  display: block;
  margin: 0.35rem 0;
  font-size: 2.35rem;
  letter-spacing: 0.08em;
}

.tsms-routing {
  display: grid;
  gap: 0.6rem;
}

.tsms-routing div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.85rem;
  color: #dbeafe;
  font-weight: 700;
}

.tsms-section {
  margin-top: 4.5rem;
}

.tsms-section-head {
  max-width: 740px;
  margin-bottom: 1.5rem;
}

.tsms-section-head.compact {
  margin-bottom: 1rem;
}

.tsms-section-head h2,
.tsms-content-split h2,
.tsms-rich-content h2 {
  margin: 0.85rem 0 0.5rem;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.tsms-section-head p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1rem;
}

.tsms-country-grid,
.tsms-number-grid,
.tsms-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tsms-country-card,
.tsms-number-card,
.tsms-feature-card,
.tsms-filter-bar,
.tsms-content-split,
.tsms-rich-content {
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.tsms-country-card {
  overflow: hidden;
  text-align: center;
}

.tsms-country-card img {
  width: 100%;
  height: 138px;
  object-fit: cover;
}

.tsms-country-card strong {
  display: block;
  padding: 1rem 1rem 0.75rem;
  color: #0f172a;
}

.tsms-country-card a,
.tsms-number-card > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.tsms-filter-bar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.tsms-filter-bar.slim {
  align-items: end;
}

.tsms-filter-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0 1rem;
  font-weight: 800;
}

.tsms-field {
  min-width: 180px;
  flex: 1;
}

.tsms-field label {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.tsms-field select {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  background: #fff;
}

.tsms-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tsms-segments label {
  margin: 0;
  text-transform: none;
}

.tsms-segments input {
  position: absolute;
  opacity: 0;
}

.tsms-segments span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #334155;
  background: #f8fafc;
  font-size: 0.86rem;
  font-weight: 800;
}

.tsms-segments input:checked + span {
  color: #fff;
  background: #0f172a;
}

.tsms-number-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tsms-number-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
}

.tsms-number-main img {
  width: 42px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.tsms-number-card h3 {
  margin: 0.65rem 0 0.35rem;
  color: #0f172a;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.tsms-number-card p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.tsms-number-card > a.is-disabled {
  background: #94a3b8;
}

.tsms-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.tsms-pill.is-open {
  background: #dcfce7;
  color: #166534;
}

.tsms-pill.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

.tsms-pill.is-private {
  background: #e0f2fe;
  color: #0369a1;
}

.tsms-ad {
  margin: 1rem 0;
  max-width: 100%;
}

.tsms-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.55rem;
  min-height: 220px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  color: #64748b;
  padding: 2rem;
}

.tsms-empty-state i {
  color: #38bdf8;
  font-size: 2rem;
}

.tsms-empty-state h3 {
  margin: 0.35rem 0 0;
  color: #0f172a;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.tsms-empty-state p {
  max-width: 520px;
  margin: 0;
  line-height: 1.6;
}

.tsms-feature-band {
  padding: 3rem;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
}

.tsms-feature-band .tsms-section-head h2 {
  color: #fff;
}

.tsms-feature-band .tsms-section-head p {
  color: #cbd5e1;
}

.tsms-feature-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  padding: 1.25rem;
}

.tsms-feature-card i {
  color: #38bdf8;
  font-size: 1.85rem;
}

.tsms-feature-card h3 {
  color: #fff;
  margin: 1rem 0 0.5rem;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.tsms-feature-card .reset {
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 0.92rem;
}

.tsms-content-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding: 2rem;
}

.tsms-content-split .reset,
.tsms-rich-content .reset {
  color: #475569;
  line-height: 1.75;
}

.tsms-rich-content {
  padding: 2rem;
}

.tsms-site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
}

.tsms-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
  gap: 2rem;
}

.tsms-footer-brand img {
  max-width: 160px;
  max-height: 58px;
  object-fit: contain;
  filter: brightness(1.12);
}

.tsms-footer-brand p {
  max-width: 430px;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 1rem 0;
}

.tsms-footer-socials {
  display: flex;
  gap: 0.7rem;
}

.tsms-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.tsms-footer-links h3 {
  color: #fff;
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.tsms-footer-links a,
.tsms-footer-nav a {
  color: #cbd5e1;
  margin-bottom: 0.65rem;
}

.tsms-footer-links a:hover,
.tsms-footer-nav a:hover {
  color: #fff;
}

.tsms-footer-nav {
  display: grid;
  gap: 0.35rem;
}

.tsms-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .tsms-header-actions,
  .tsms-desktop-menu {
    display: none;
  }

  .tsms-mobile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
  }

  .tsms-mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    padding: 5rem 1.5rem 2rem;
  }

  .tsms-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .tsms-mobile-links {
    display: grid;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
  }

  .tsms-mobile-links a,
  .tsms-mobile-links button,
  .tsms-mobile-links span {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
  }

  .tsms-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .tsms-hero-copy {
    padding: 3rem 0 1rem;
  }

  .tsms-country-grid,
  .tsms-number-grid,
  .tsms-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tsms-topbar-inner {
    justify-content: center;
  }

  .tsms-topbar-inner > div {
    display: none;
  }

  .tsms-header-inner {
    min-height: 74px;
  }

  .tsms-brand img {
    max-width: 132px;
  }

  .tsms-home {
    width: min(100% - 24px, 1180px);
    padding-top: 1.4rem;
  }

  .tsms-hero h1 {
    font-size: 2.7rem;
  }

  .tsms-stats,
  .tsms-country-grid,
  .tsms-number-grid,
  .tsms-feature-grid,
  .tsms-content-split,
  .tsms-footer-inner {
    grid-template-columns: 1fr;
  }

  .tsms-feature-band,
  .tsms-content-split,
  .tsms-rich-content {
    padding: 1.25rem;
  }

  .tsms-field {
    min-width: 100%;
  }

  .tsms-filter-actions,
  .tsms-filter-actions .tsms-btn {
    width: 100%;
  }
}
