/*
 * TagMe Website v2.2 — Official Brand Kit v2.1 Design System + Inlay/Linktree Creative Energy
 * Primary Blue: #2545F5 | Accent Lime: #F1F77A | Secondary Dark Navy: #171C2E | Pure White: #FFFFFF
 * Fonts: IBM Plex Sans Arabic (AR) & Montserrat (EN) — Local Self-Hosted
 */

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/ibm-plex-sans-arabic-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/ibm-plex-sans-arabic-700.woff2") format("woff2");
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/montserrat-variable.woff2") format("woff2"),
         url("../fonts/Montserrat-Variable.ttf") format("truetype");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --tm-blue: #2545F5;
    --tm-blue-dark: #1934CC;
    --tm-blue-deep: #10239E;
    --tm-blue-soft: #EEF2FF;
    --tm-lime: #F1F77A;
    --tm-lime-dark: #DFEA4B;
    --tm-lime-soft: #FAFCE0;
    --tm-navy: #171C2E;
    --tm-navy-elevated: #222942;
    --tm-white: #FFFFFF;
    --tm-surface: #F5F7FC;
    --tm-surface-alt: #EAEFF8;
    --tm-border: #DCE3F2;
    --tm-text: #171C2E;
    --tm-text-muted: #45506E;
    --tm-success: #0D7A4E;
    --tm-success-bg: #E6F8F0;
    --tm-danger: #C92A2A;
    --tm-danger-bg: #FFF0F0;
    --tm-warning: #B45309;
    --tm-warning-bg: #FEF3C7;
    --tm-radius-sm: 12px;
    --tm-radius-md: 18px;
    --tm-radius-lg: 24px;
    --tm-radius-xl: 32px;
    --tm-radius-pill: 9999px;
    --tm-shadow-sm: 0 4px 16px rgba(23, 28, 46, 0.06);
    --tm-shadow-md: 0 16px 40px rgba(23, 28, 46, 0.11);
    --tm-shadow-lg: 0 28px 68px rgba(23, 28, 46, 0.20);
    --tm-shadow-blue: 0 18px 42px rgba(37, 69, 245, 0.26);
    --tm-font-ar: "IBM Plex Sans Arabic", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --tm-font-en: "Montserrat", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
}

body.tm-body {
    margin: 0;
    padding: 0;
    background-color: var(--tm-white);
    color: var(--tm-text);
    font-family: var(--tm-font-en);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main#main-content,
.tm-section,
.tm-hero,
.tm-marquee-stage,
.tm-giant-claim-section,
.tm-footer {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
}

/* Strong, Connected, Crisp Arabic RTL Typography */
html[lang="ar"] body.tm-body,
html[dir="rtl"] body.tm-body,
body.tm-rtl {
    font-family: var(--tm-font-ar);
    font-weight: 500;
    line-height: 1.78;
    letter-spacing: 0 !important;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .tm-hero-title,
html[dir="rtl"] .tm-section-title,
html[dir="rtl"] .tm-btn,
html[dir="rtl"] .tm-nav-link,
html[dir="rtl"] .tm-faq-trigger,
html[dir="rtl"] .tm-price-name,
html[dir="rtl"] .tm-theme-title {
    font-family: var(--tm-font-ar);
    font-weight: 700;
    letter-spacing: 0 !important;
    text-shadow: 0 0 0.25px currentColor;
}

/* Bidirectional Isolation so Latin/URLs inside Arabic never flip sentences */
.tm-ltr,
bdi[dir="ltr"] {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-family: var(--tm-font-en);
    letter-spacing: -0.01em;
}

.tm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--tm-blue);
    outline-offset: 2px;
}

/* Accessibility Skip Link */
.tm-skip-link {
    position: absolute;
    top: -100px;
    inset-inline-start: 16px;
    z-index: 9999;
    background: var(--tm-navy);
    color: var(--tm-lime);
    padding: 10px 18px;
    border-radius: var(--tm-radius-sm);
    font-weight: 700;
}

.tm-skip-link:focus {
    top: 12px;
}

/* Container */
.tm-container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 20px;
}

@media (min-width: 768px) {
    .tm-container {
        padding-inline: 32px;
    }
}

/* SuperAdmin Preview Banner */
.tm-preview-bar {
    background: var(--tm-lime);
    color: var(--tm-navy);
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 2px solid var(--tm-navy);
}

/* Inlay-Inspired Floating Pill Header / Navbar (Transparent Wrapper — No Full-Width Frosted Bar Behind Pill) */
.tm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 120;
    padding: 12px 0 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.tm-header-pill {
    pointer-events: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 6px 14px 6px 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(220, 227, 242, 0.95);
    border-radius: var(--tm-radius-pill);
    box-shadow: 0 12px 34px rgba(23, 28, 46, 0.08), 0 2px 6px rgba(23, 28, 46, 0.04);
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.tm-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding-inline: 2px;
    flex-shrink: 0;
}

.tm-brand-logo {
    height: 32px;
    width: auto;
    max-width: 128px;
    aspect-ratio: 934 / 326;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .tm-brand-logo {
        height: 36px;
        width: auto;
        max-width: 150px;
    }
}

.tm-nav-desktop {
    display: none;
    align-items: center;
    gap: 2px;
    flex-shrink: 1;
}

@media (min-width: 992px) {
    .tm-nav-desktop {
        display: flex;
    }
}

.tm-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 6px 11px;
    border-radius: var(--tm-radius-pill);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--tm-navy);
    white-space: nowrap;
    flex-shrink: 0;
}

.tm-nav-link:hover,
.tm-nav-link.is-active {
    background: var(--tm-blue-soft);
    color: var(--tm-blue);
}

.tm-nav-lang-pill {
    background: var(--tm-surface);
    border: 1.5px solid var(--tm-border);
    font-weight: 800;
    padding: 5px 11px;
    font-size: 0.86rem;
}

.tm-nav-lang-pill:hover {
    background: var(--tm-lime);
    color: var(--tm-navy);
    border-color: var(--tm-navy);
}

.tm-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tm-header-cta {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 992px) and (max-width: 1180px) {
    .tm-header-pill {
        padding: 6px 10px 6px 14px;
        gap: 6px;
    }
    .tm-nav-desktop {
        gap: 1px;
    }
    .tm-nav-link {
        padding: 5px 7px;
        font-size: 0.82rem;
        gap: 4px;
    }
    .tm-nav-lang-pill {
        padding: 4px 7px;
        font-size: 0.8rem;
    }
    .tm-header-cta {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
}

.tm-desktop-only {
    display: none;
}

@media (min-width: 640px) {
    .tm-desktop-only {
        display: inline-flex;
    }
}

/* Buttons */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: var(--tm-radius-pill);
    font-weight: 800;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.tm-btn-primary {
    background: var(--tm-blue);
    color: var(--tm-white);
    box-shadow: 0 8px 22px rgba(37, 69, 245, 0.28);
}

.tm-btn-primary:hover {
    background: var(--tm-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 69, 245, 0.36);
}

.tm-btn-lime {
    background: var(--tm-lime);
    color: var(--tm-navy);
    border-color: var(--tm-navy);
    box-shadow: 0 8px 20px rgba(23, 28, 46, 0.12);
}

.tm-btn-lime:hover {
    background: var(--tm-lime-dark);
    transform: translateY(-2px);
}

.tm-btn-navy {
    background: var(--tm-navy);
    color: var(--tm-white);
}

.tm-btn-navy:hover {
    background: var(--tm-blue);
    transform: translateY(-2px);
}

.tm-btn-outline {
    background: var(--tm-white);
    color: var(--tm-navy);
    border-color: var(--tm-border);
}

.tm-btn-outline:hover {
    border-color: var(--tm-blue);
    color: var(--tm-blue);
    background: var(--tm-blue-soft);
}

.tm-btn-lg {
    min-height: 54px;
    padding: 13px 28px;
    font-size: 1.04rem;
}

/* Mobile Menu Button & Drawer */
.tm-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--tm-border);
    background: var(--tm-surface);
    color: var(--tm-navy);
    cursor: pointer;
}

@media (min-width: 992px) {
    .tm-mobile-toggle {
        display: none;
    }
}

.tm-mobile-drawer {
    pointer-events: auto;
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--tm-border);
    border-radius: 24px;
    padding: 16px 20px 22px;
    margin: 10px 16px 0;
    box-shadow: var(--tm-shadow-md);
}

.tm-mobile-drawer.is-open {
    display: block;
}

.tm-mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

/* Hero Section — Vibrant Blue + Lime + Floating Interactive Stage */
.tm-hero {
    position: relative;
    padding: 104px 0 72px;
    background:
        radial-gradient(circle at 86% 18%, rgba(241, 247, 122, 0.55) 0%, rgba(241, 247, 122, 0) 44%),
        radial-gradient(circle at 12% 82%, rgba(37, 69, 245, 0.14) 0%, rgba(37, 69, 245, 0) 48%),
        linear-gradient(180deg, #FFFFFF 0%, #F4F7FF 100%);
    overflow: hidden;
}

/* Ensure First Section on Any Page Starts Below Fixed Pill Header with Zero White Strip */
main > .tm-section:first-child,
main > section:first-child {
    padding-top: 104px !important;
}

.tm-hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.tm-hero-bg-orb--blue {
    width: 360px;
    height: 360px;
    background: rgba(37, 69, 245, 0.15);
    top: -80px;
    inset-inline-start: -100px;
}

.tm-hero-bg-orb--lime {
    width: 340px;
    height: 340px;
    background: rgba(241, 247, 122, 0.48);
    bottom: -60px;
    inset-inline-end: -60px;
}

.tm-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 992px) {
    .tm-hero {
        padding: 56px 0 88px;
    }
    .tm-hero-grid {
        grid-template-columns: 1.12fr 0.88fr;
        gap: 52px;
    }
}

.tm-eyebrow,
.tm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--tm-radius-pill);
    background: var(--tm-lime);
    color: var(--tm-navy);
    font-weight: 800;
    font-size: 0.92rem;
    margin-bottom: 20px;
    border: 2px solid var(--tm-navy);
    box-shadow: 0 4px 0 var(--tm-navy);
}

.tm-eyebrow-dot,
.tm-hero-eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--tm-blue);
}

.tm-hero-title {
    margin: 0 0 20px;
    font-size: clamp(2.25rem, 4.4vw, 3.65rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--tm-navy);
}

html[dir="rtl"] .tm-hero-title {
    line-height: 1.38;
    font-weight: 800;
}

.tm-hero-title > span {
    display: block;
}

/* Inlay-Style Bold Highlight Pill on Second Line */
.tm-hero-title-highlight {
    display: inline-block !important;
    background: var(--tm-blue);
    color: var(--tm-white);
    padding: 2px 18px 6px;
    border-radius: 20px;
    margin-top: 8px;
    box-shadow: 0 10px 26px rgba(37, 69, 245, 0.28);
}

.tm-hero-desc {
    margin: 0 0 24px;
    font-size: clamp(1.06rem, 1.5vw, 1.22rem);
    color: var(--tm-text-muted);
    max-width: 600px;
    font-weight: 500;
}

/* Inlay-Style Inline Hero Slug Claim Box */
.tm-hero-inline-slug {
    margin-bottom: 22px;
    max-width: 560px;
}

.tm-hero-inline-slug-box {
    display: flex;
    align-items: center;
    background: var(--tm-white);
    border: 2.5px solid var(--tm-navy);
    border-radius: var(--tm-radius-pill);
    padding: 6px 6px 6px 20px;
    box-shadow: 0 8px 0 var(--tm-navy);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.tm-hero-inline-slug-box:focus-within {
    border-color: var(--tm-blue);
    box-shadow: 0 8px 0 var(--tm-blue);
}

.tm-hero-inline-prefix {
    font-family: var(--tm-font-en);
    font-weight: 800;
    font-size: 1.04rem;
    color: var(--tm-text-muted);
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.tm-hero-inline-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--tm-font-en);
    font-weight: 800;
    font-size: 1.06rem;
    color: var(--tm-blue);
    padding: 8px 6px;
    min-width: 0;
    outline: none;
}

.tm-hero-inline-btn {
    min-height: 46px;
    padding: 8px 20px;
    font-size: 0.92rem;
    flex-shrink: 0;
}

/* Native Typewriter Placeholder Styling */
.tm-hero-inline-input::placeholder,
.tm-giant-url-input::placeholder {
    color: rgba(37, 69, 245, 0.52);
    font-weight: 800;
    opacity: 1;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.tm-hero-inline-input:focus::placeholder,
.tm-giant-url-input:focus::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

@media (max-width: 540px) {
    .tm-hero-inline-slug-box {
        flex-wrap: wrap;
        border-radius: 22px;
        padding: 10px 14px;
        gap: 8px;
    }
    .tm-hero-inline-btn {
        width: 100%;
    }
}

.tm-slug-feedback--hero {
    margin-top: 14px;
    border: 1.5px solid var(--tm-border);
}

.tm-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tm-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tm-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--tm-radius-pill);
    background: var(--tm-white);
    border: 1.5px solid var(--tm-border);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tm-navy);
    box-shadow: var(--tm-shadow-sm);
}

.tm-pill-badge svg {
    color: var(--tm-blue);
    flex-shrink: 0;
}

/* Interactive Hero Phone Mockup & Floating Angled Cards */
.tm-hero-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.tm-float-card {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 18px;
    padding: 10px 16px;
    box-shadow: 0 16px 36px rgba(23, 28, 46, 0.18);
    animation: tmFloatBob 4.5s ease-in-out infinite;
}

.tm-float-card--qr {
    top: 24px;
    inset-inline-start: -10px;
    background: var(--tm-lime);
    border: 2px solid var(--tm-navy);
    transform: rotate(-4deg);
}

.tm-float-qr-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--tm-navy);
    color: var(--tm-lime);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-float-card--handle {
    bottom: 42px;
    inset-inline-end: -8px;
    background: var(--tm-navy);
    border: 2px solid var(--tm-lime);
    transform: rotate(3deg);
    animation-delay: 1.6s;
}

@media (max-width: 640px) {
    .tm-float-card--qr {
        inset-inline-start: 4px;
        top: 6px;
        transform: scale(0.9) rotate(-3deg);
    }
    .tm-float-card--handle {
        inset-inline-end: 4px;
        bottom: 14px;
        transform: scale(0.9) rotate(2deg);
    }
}

@keyframes tmFloatBob {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.tm-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    display: inline-block;
}

.tm-hero-phone-device {
    width: 100%;
    max-width: 350px;
    background: linear-gradient(145deg, var(--tm-blue) 0%, var(--tm-navy) 100%);
    padding: 14px;
    border-radius: 44px;
    box-shadow:
        0 30px 70px rgba(23, 28, 46, 0.28),
        0 0 0 3px var(--tm-lime);
}

.tm-hero-phone-bezel {
    background: var(--tm-navy);
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tm-hero-phone-notch {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0D111D;
}

.tm-notch-speaker {
    width: 48px;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
}

.tm-notch-cam {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2545F5;
}

.tm-hero-phone-screen {
    position: relative;
    height: 460px;
    overflow: hidden;
    background: var(--tm-surface);
    cursor: pointer;
}

.tm-scrolling-card-img {
    width: 100%;
    height: 138%;
    object-fit: cover;
    object-position: top center;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    animation: tmAutoScrollCard 12s ease-in-out infinite alternate;
    display: block;
}

.tm-hero-phone-screen:hover .tm-scrolling-card-img {
    animation-play-state: paused;
}

@keyframes tmAutoScrollCard {
    0%, 12% {
        transform: translate3d(0, 0, 0);
    }
    88%, 100% {
        transform: translate3d(0, -26%, 0);
    }
}

.tm-hero-phone-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23,28,46,0) 55%, rgba(23,28,46,0.78) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tm-hero-phone-screen:hover .tm-hero-phone-overlay,
.tm-hero-phone-screen:focus-visible .tm-hero-phone-overlay {
    opacity: 1;
}

.tm-hero-phone-footer {
    padding: 14px 16px;
    background: #111626;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Live Slug Availability Checker Section */
.tm-slug-section {
    padding: 20px 0 56px;
}

.tm-slug-card {
    background: linear-gradient(135deg, var(--tm-navy) 0%, #1E2B58 55%, var(--tm-blue) 100%);
    color: var(--tm-white);
    border-radius: var(--tm-radius-xl);
    padding: 36px 26px;
    box-shadow: var(--tm-shadow-lg);
    border: 2px solid var(--tm-lime);
}

@media (min-width: 768px) {
    .tm-slug-card {
        padding: 48px 52px;
    }
}

.tm-slug-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

@media (min-width: 768px) {
    .tm-slug-form {
        flex-direction: row;
        align-items: stretch;
    }
}

.tm-slug-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--tm-white);
    border-radius: var(--tm-radius-pill);
    padding: 6px 20px;
    border: 3px solid transparent;
    direction: ltr;
}

.tm-slug-input-group:focus-within {
    border-color: var(--tm-lime);
}

.tm-slug-prefix {
    color: var(--tm-blue);
    font-weight: 800;
    font-family: var(--tm-font-en);
    font-size: 1.05rem;
    user-select: none;
    white-space: nowrap;
}

.tm-slug-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--tm-navy);
    font-family: var(--tm-font-en);
    font-weight: 800;
    font-size: 1.08rem;
    padding: 10px 8px;
    min-width: 0;
    outline: none;
}

.tm-slug-feedback {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: var(--tm-radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tm-slug-feedback[hidden] {
    display: none !important;
}

.tm-slug-feedback.is-available {
    background: var(--tm-success-bg);
    color: var(--tm-success);
}

.tm-slug-feedback.is-error {
    background: var(--tm-danger-bg);
    color: var(--tm-danger);
}

.tm-slug-feedback.is-neutral {
    background: rgba(255, 255, 255, 0.14);
    color: var(--tm-white);
}

/* Generic Sections */
.tm-section {
    padding: 72px 0;
}

.tm-section--surface {
    background: var(--tm-surface);
}

.tm-section--blue {
    background: var(--tm-blue);
    color: var(--tm-white);
}

.tm-section--navy {
    background: var(--tm-navy);
    color: var(--tm-white);
}

.tm-section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 48px;
}

.tm-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px;
    border-radius: var(--tm-radius-pill);
    background: var(--tm-blue-soft);
    color: var(--tm-blue);
    font-weight: 800;
    font-size: 0.86rem;
    margin-bottom: 14px;
}

.tm-section-title {
    margin: 0 0 14px;
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
    font-weight: 800;
    color: inherit;
    line-height: 1.28;
}

html[dir="rtl"] .tm-section-title {
    line-height: 1.38;
}

.tm-section-subtitle {
    margin: 0;
    font-size: 1.08rem;
    color: var(--tm-text-muted);
    font-weight: 500;
}

/* 3-Step Cards */
.tm-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .tm-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tm-step-card {
    background: var(--tm-white);
    border: 2px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    padding: 32px 26px;
    box-shadow: var(--tm-shadow-sm);
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tm-step-card--accent {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--tm-blue-soft) 100%);
    border-color: var(--tm-blue);
}

.tm-step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tm-shadow-md);
    border-color: var(--tm-blue);
}

.tm-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--tm-lime);
    color: var(--tm-navy);
    border: 2px solid var(--tm-navy);
    font-family: var(--tm-font-en);
    font-weight: 800;
    font-size: 1.18rem;
    margin-bottom: 18px;
    box-shadow: 0 4px 0 var(--tm-navy);
}

.tm-step-title {
    margin: 0 0 10px;
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--tm-navy);
}

.tm-step-desc {
    margin: 0;
    color: var(--tm-text-muted);
    font-size: 0.98rem;
    font-weight: 500;
}

/* Inlay-Inspired Connected Hub & Use Cases Section */
.tm-section--blue-hub {
    position: relative;
    background:
        radial-gradient(circle at 80% 20%, rgba(241, 247, 122, 0.24) 0%, rgba(241, 247, 122, 0) 45%),
        linear-gradient(145deg, var(--tm-navy) 0%, #1B2C7A 45%, var(--tm-blue) 100%);
    color: var(--tm-white);
    overflow: hidden;
}

.tm-hub-showcase {
    position: relative;
    padding: 12px 0;
}

.tm-hub-nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.tm-hub-node {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--tm-radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(241, 247, 122, 0.45);
    color: var(--tm-white);
    font-family: var(--tm-font-en);
    font-weight: 800;
    font-size: 0.84rem;
    backdrop-filter: blur(6px);
    animation: tmPulseNode 3.6s ease-in-out infinite;
}

.tm-hub-node:nth-child(even) {
    background: rgba(241, 247, 122, 0.18);
    color: var(--tm-lime);
    animation-delay: 1.2s;
}

@keyframes tmPulseNode {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.tm-lime-pill-inline {
    display: inline-block;
    background: var(--tm-lime);
    color: var(--tm-navy);
    padding: 2px 16px;
    border-radius: 16px;
    margin-inline: 4px;
}

.tm-usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 20px;
}

.tm-usecase-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--tm-radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(8px);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.tm-usecase-card:hover {
    transform: translateY(-5px);
    border-color: var(--tm-lime);
    background: rgba(255, 255, 255, 0.14);
}

.tm-usecase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--tm-lime);
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.tm-usecase-title {
    margin: 0 0 10px;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--tm-white);
}

.tm-usecase-desc {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

.tm-usecase-link {
    color: var(--tm-lime);
    font-weight: 800;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Auto-Scrolling Live Demo Phone Carousel (Marquee) */
.tm-marquee-stage {
    position: relative;
    background: linear-gradient(135deg, var(--tm-blue) 0%, #1B33B8 55%, var(--tm-navy) 100%);
    padding: 36px 0;
    overflow: hidden;
    border-top: 3px solid var(--tm-navy);
    border-bottom: 3px solid var(--tm-navy);
}

.tm-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: tmMarqueeScroll 46s linear infinite;
    padding-inline: 12px;
}

.tm-marquee-stage:hover .tm-marquee-track {
    animation-play-state: paused;
}

@keyframes tmMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tm-marquee-phone-item {
    width: 215px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-marquee-phone-frame {
    position: relative;
    height: 360px;
    border-radius: 28px;
    border: 4px solid var(--tm-navy);
    background: var(--tm-surface);
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.tm-marquee-phone-frame:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--tm-lime);
}

.tm-marquee-phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 12px;
    border-radius: 99px;
    background: #0D111D;
    z-index: 3;
}

.tm-marquee-phone-frame img {
    width: 100%;
    height: 136%;
    object-fit: cover;
    object-position: top center;
    transform: translate3d(0, 0, 0);
    transition: transform 3.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    display: block;
}

.tm-marquee-phone-frame:hover img {
    transform: translate3d(0, -25%, 0);
}

.tm-marquee-phone-hover {
    position: absolute;
    inset: 0;
    background: rgba(23, 28, 46, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 4;
}

.tm-marquee-phone-frame:hover .tm-marquee-phone-hover {
    opacity: 1;
}

.tm-marquee-phone-meta {
    display: flex;
    flex-direction: column;
    padding: 0 6px;
    color: var(--tm-white);
    gap: 3px;
}

.tm-marquee-phone-meta strong {
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-marquee-phone-meta span {
    font-size: 0.76rem;
    color: var(--tm-lime);
    font-weight: 700;
}

.tm-marquee-phone-meta .tm-meta-cat-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tm-marquee-phone-meta .tm-meta-cat-line span {
    font-size: 0.76rem;
    color: var(--tm-lime);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Templates & Demos Page Hero & Cards with Vertical Phone Stage */
.tm-themes-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(241, 247, 122, 0.26) 0%, rgba(241, 247, 122, 0) 45%),
        linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-blue) 100%);
    padding: 108px 0 36px;
    color: var(--tm-white);
}

.tm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--tm-white);
    padding: 18px 22px;
    border-radius: var(--tm-radius-lg);
    border: 2px solid var(--tm-border);
    color: var(--tm-navy);
}

.tm-filter-bar--elevated {
    box-shadow: 0 20px 44px rgba(13, 17, 29, 0.25);
    border-color: var(--tm-lime);
}

.tm-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    max-width: 100%;
}

.tm-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px;
    border-radius: var(--tm-radius-pill);
    background: var(--tm-surface);
    border: 1.5px solid var(--tm-border);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tm-navy);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.tm-cat-pill:hover {
    background: #eef2ff;
    border-color: var(--tm-blue);
    color: var(--tm-blue);
    transform: translateY(-1px);
}

.tm-cat-pill.is-active {
    background: var(--tm-blue);
    color: var(--tm-white);
    border-color: var(--tm-blue);
    box-shadow: 0 4px 14px rgba(37, 69, 245, 0.35);
}

.tm-color-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 1.5px rgba(23, 28, 46, 0.2), 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tm-cat-pill:hover .tm-color-dot {
    transform: scale(1.1);
}

.tm-cat-pill.is-active .tm-color-dot {
    box-shadow: 0 0 0 2px var(--tm-lime), 0 2px 4px rgba(0, 0, 0, 0.25);
    transform: scale(1.08);
}

.tm-cat-pill .tm-cat-count {
    opacity: 0.82;
    font-size: 0.78rem;
    font-weight: 800;
}

.tm-cat-pill.is-active .tm-cat-count {
    color: var(--tm-lime);
    opacity: 1;
}

.tm-swatch-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    vertical-align: middle;
}

.tm-swatch-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 1.2px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.tm-themes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 640px) {
    .tm-themes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tm-themes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tm-theme-card {
    background: var(--tm-white);
    border: 2px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--tm-shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.tm-theme-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tm-shadow-md);
    border-color: var(--tm-blue);
}

/* Vibrant Stage Holding Vertical Phone Screen */
.tm-theme-stage {
    position: relative;
    height: 360px;
    padding: 26px 24px 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    cursor: pointer;
}

.tm-theme-stage--blue {
    background:
        radial-gradient(circle at 85% 15%, rgba(241, 247, 122, 0.45) 0%, rgba(241, 247, 122, 0) 45%),
        linear-gradient(145deg, #2545F5 0%, #172794 100%);
}

.tm-theme-stage--lime {
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 69, 245, 0.22) 0%, rgba(37, 69, 245, 0) 50%),
        linear-gradient(145deg, #F1F77A 0%, #D9E83A 100%);
}

.tm-theme-stage--navy {
    background:
        radial-gradient(circle at 80% 20%, rgba(37, 69, 245, 0.55) 0%, rgba(37, 69, 245, 0) 50%),
        linear-gradient(145deg, #171C2E 0%, #2545F5 100%);
}

.tm-theme-phone-mockup {
    width: 216px;
    height: 324px;
    background: var(--tm-navy);
    border-radius: 28px 28px 0 0;
    padding: 10px 8px 0;
    box-shadow: 0 -10px 32px rgba(13, 17, 29, 0.32);
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease;
}

.tm-theme-card:hover .tm-theme-phone-mockup {
    transform: translateY(-6px);
}

.tm-theme-phone-Speaker {
    width: 44px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    margin: 0 auto 8px;
}

.tm-theme-phone-viewport {
    flex: 1;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    background: var(--tm-surface);
}

.tm-theme-phone-viewport img {
    width: 100%;
    height: 136%;
    object-fit: cover;
    object-position: top center;
    transform: translate3d(0, 0, 0);
    transition: transform 3.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    display: block;
}

/* Smooth GPU-Composited Vertical Screenshot Pan Inside the Card on Hover */
.tm-theme-card:hover .tm-theme-phone-viewport img {
    transform: translate3d(0, -25%, 0);
}

.tm-theme-cat-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 3;
    background: rgba(23, 28, 46, 0.94);
    color: var(--tm-white);
    padding: 6px 12px;
    border-radius: var(--tm-radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(23, 28, 46, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: calc(100% - 70px);
}

.tm-theme-cat-badge .tm-cat-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--tm-lime);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tm-theme-ext-btn {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--tm-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: var(--tm-shadow-sm);
}

.tm-theme-ext-btn:hover {
    background: var(--tm-lime);
}

.tm-theme-stage-hint {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 4;
    background: linear-gradient(180deg, rgba(23,28,46,0) 0%, rgba(23,28,46,0.88) 100%);
    color: var(--tm-lime);
    text-align: center;
    padding: 18px 12px 10px;
    font-size: 0.82rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.tm-theme-card:hover .tm-theme-stage-hint {
    opacity: 1;
}

.tm-theme-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 2px solid var(--tm-border);
}

.tm-theme-title {
    margin: 0 0 6px;
    font-size: 1.16rem;
    font-weight: 800;
    color: var(--tm-navy);
}

.tm-demo-slug-pill {
    font-size: 0.75rem;
    font-family: var(--tm-font-en);
    font-weight: 800;
    color: var(--tm-blue);
    background: var(--tm-blue-soft);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.tm-theme-desc {
    margin: 0 0 18px;
    font-size: 0.93rem;
    color: var(--tm-text-muted);
    font-weight: 500;
    flex: 1;
}

.tm-theme-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Browse All Templates Action Bar (Sleek, Responsive & Contained) */
.tm-browse-themes-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
    padding: 0 16px;
    position: relative;
    z-index: 5;
    width: 100%;
    box-sizing: border-box;
}

.tm-browse-themes-btn {
    white-space: normal !important;
    text-align: center;
    max-width: 440px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 32px;
    border-radius: var(--tm-radius-pill);
    box-shadow: 0 10px 28px rgba(37, 69, 245, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    font-weight: 800;
}

.tm-browse-themes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(37, 69, 245, 0.42);
}

.tm-browse-arrow {
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.tm-browse-themes-btn:hover .tm-browse-arrow {
    transform: translateX(4px);
}

[dir="rtl"] .tm-browse-themes-btn:hover .tm-browse-arrow {
    transform: translateX(-4px);
}

@media (max-width: 639px) {
    .tm-browse-themes-wrap {
        margin-top: 32px;
        padding: 0 12px;
    }

    .tm-browse-themes-btn {
        width: 100%;
        max-width: 320px;
        min-height: 48px;
        padding: 10px 18px;
        font-size: 0.94rem;
        box-sizing: border-box;
    }
}

/* Pricing Section */
.tm-billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tm-billing-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--tm-white);
    padding: 6px;
    border-radius: var(--tm-radius-pill);
    border: 2px solid var(--tm-navy);
    box-shadow: 0 6px 0 var(--tm-navy);
    gap: 6px;
}

.tm-billing-btn {
    min-height: 44px;
    padding: 8px 22px;
    border-radius: var(--tm-radius-pill);
    border: none;
    background: transparent;
    color: var(--tm-navy);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tm-billing-btn.is-active {
    background: var(--tm-blue);
    color: var(--tm-white);
}

.tm-billing-save-pill {
    background: var(--tm-lime);
    color: var(--tm-navy);
    padding: 2px 10px;
    border-radius: var(--tm-radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
}

.tm-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: stretch;
}

@media (min-width: 992px) {
    .tm-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tm-price-card {
    background: var(--tm-white);
    border: 2px solid var(--tm-border);
    border-radius: var(--tm-radius-xl);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--tm-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tm-price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tm-shadow-md);
}

.tm-price-card.is-featured {
    background: linear-gradient(160deg, var(--tm-navy) 0%, #1B2956 100%);
    color: var(--tm-white);
    border-color: var(--tm-blue);
    box-shadow: var(--tm-shadow-lg);
}

.tm-price-badge {
    position: absolute;
    top: -14px;
    inset-inline-start: 28px;
    background: var(--tm-lime);
    color: var(--tm-navy);
    padding: 5px 16px;
    border-radius: var(--tm-radius-pill);
    font-weight: 800;
    font-size: 0.82rem;
    border: 2px solid var(--tm-navy);
}

.tm-price-name {
    font-size: 1.42rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.tm-price-desc {
    font-size: 0.94rem;
    opacity: 0.88;
    margin: 0 0 24px;
    min-height: 44px;
    font-weight: 500;
}

.tm-price-amount-box {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(128, 138, 168, 0.24);
}

.tm-price-amount {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--tm-font-en);
}

.tm-price-period {
    font-size: 0.92rem;
    opacity: 0.82;
    margin-top: 6px;
    font-weight: 600;
}

.tm-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.tm-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.tm-price-features li svg {
    color: var(--tm-blue);
    flex-shrink: 0;
    margin-top: 3px;
}

.tm-price-card.is-featured .tm-price-features li svg {
    color: var(--tm-lime);
}

/* Directory Teaser Banner */
.tm-directory-banner {
    background:
        radial-gradient(circle at 88% 20%, rgba(241, 247, 122, 0.35) 0%, rgba(241, 247, 122, 0) 45%),
        linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-blue) 100%);
    color: var(--tm-white);
    border-radius: var(--tm-radius-xl);
    padding: 44px 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    box-shadow: var(--tm-shadow-lg);
    border: 2px solid var(--tm-lime);
}

.tm-directory-banner-badge {
    display: inline-block;
    background: var(--tm-lime);
    color: var(--tm-navy);
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 12px;
}

/* FAQ Accordion */
.tm-faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tm-faq-item {
    background: var(--tm-white);
    border: 2px solid var(--tm-border);
    border-radius: var(--tm-radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-faq-item.is-open {
    border-color: var(--tm-blue);
    box-shadow: var(--tm-shadow-sm);
}

.tm-faq-trigger {
    width: 100%;
    min-height: 62px;
    padding: 18px 24px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: start;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--tm-navy);
    cursor: pointer;
}

.tm-faq-trigger:hover {
    color: var(--tm-blue);
}

.tm-faq-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--tm-blue-soft);
    color: var(--tm-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.tm-faq-item.is-open .tm-faq-icon {
    transform: rotate(180deg);
    background: var(--tm-lime);
    color: var(--tm-navy);
}

.tm-faq-panel {
    padding: 0 24px 22px;
    color: var(--tm-text-muted);
    font-size: 1rem;
}

/* Inlay-Inspired Giant Bottom Claim CTA (Your page is waiting at tagme.me/test) */
.tm-giant-claim-section {
    padding: 84px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(241, 247, 122, 0.45) 0%, rgba(241, 247, 122, 0) 60%),
        linear-gradient(180deg, #F5F7FC 0%, #FFFFFF 100%);
    border-top: 2px solid var(--tm-border);
    text-align: center;
}

.tm-giant-claim-box {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px;
    background: var(--tm-white);
    border: 2.5px solid var(--tm-navy);
    border-radius: var(--tm-radius-xl);
    box-shadow: 0 16px 0 var(--tm-navy);
}

.tm-giant-claim-eyebrow {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tm-text-muted);
}

.tm-giant-url-display {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    font-family: var(--tm-font-en);
    font-weight: 900;
    font-size: clamp(2.1rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 8px 0 18px;
    max-width: 100%;
}

.tm-giant-url-domain {
    color: var(--tm-navy);
    user-select: none;
}

.tm-giant-url-input {
    border: none;
    border-bottom: 5px solid var(--tm-lime);
    background: var(--tm-blue-soft);
    color: var(--tm-blue);
    font-family: var(--tm-font-en);
    font-weight: 900;
    font-size: inherit;
    line-height: 1.1;
    letter-spacing: -0.03em;
    padding: 2px 14px;
    border-radius: 16px;
    width: 11ch;
    max-width: 100%;
    text-align: left;
    outline: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tm-giant-url-input:focus {
    background: var(--tm-lime);
    color: var(--tm-navy);
    border-color: var(--tm-blue);
}

.tm-giant-claim-sub {
    margin: 0 auto;
    max-width: 560px;
    color: var(--tm-text-muted);
    font-size: 1.02rem;
    font-weight: 600;
}

.tm-giant-claim-btn {
    padding-inline: 36px;
    font-size: 1.1rem;
}

/* Full-Height Interactive Smartphone Preview Modal */
.tm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 20, 36, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.tm-modal-backdrop[hidden] {
    display: none !important;
}

.tm-modal-dialog {
    background: var(--tm-navy);
    border: 3px solid var(--tm-lime);
    border-radius: 36px;
    width: 100%;
    max-width: 440px;
    height: min(860px, 92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.tm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px 10px;
    background: var(--tm-navy);
    color: var(--tm-white);
    flex-shrink: 0;
}

.tm-modal-nav-btn,
.tm-modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--tm-white);
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tm-modal-nav-btn:hover,
.tm-modal-close-btn:hover {
    background: var(--tm-lime);
    color: var(--tm-navy);
    border-color: var(--tm-lime);
}

.tm-modal-phone-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 18px 10px;
    background: #0F1424;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.tm-modal-phone-notch {
    width: 52px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.24);
}

.tm-modal-url-pill {
    font-family: var(--tm-font-en);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tm-lime);
    background: rgba(37, 69, 245, 0.35);
    padding: 3px 10px;
    border-radius: 99px;
}

.tm-modal-iframe-wrap {
    position: relative;
    flex: 1 1 auto;
    height: calc(min(860px, 92vh) - 150px);
    min-height: 480px;
    background: var(--tm-white);
    overflow: hidden;
}

.tm-modal-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--tm-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--tm-navy);
}

.tm-modal-loader[hidden] {
    display: none !important;
}

.tm-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 4px solid var(--tm-border);
    border-top-color: var(--tm-blue);
    animation: tmSpin 0.75s linear infinite;
}

@keyframes tmSpin {
    to {
        transform: rotate(360deg);
    }
}

.tm-modal-iframe {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}

.tm-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--tm-navy);
    flex-shrink: 0;
}

/* Auth Card Layout */
.tm-auth-section {
    padding: 104px 0 80px;
    background:
        radial-gradient(circle at 85% 15%, rgba(241, 247, 122, 0.38) 0%, rgba(241, 247, 122, 0) 45%),
        radial-gradient(circle at 15% 85%, rgba(37, 69, 245, 0.12) 0%, rgba(37, 69, 245, 0) 45%),
        var(--tm-surface);
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.tm-auth-card {
    max-width: 490px;
    margin: 0 auto;
    background: var(--tm-white);
    border: 2px solid var(--tm-navy);
    border-radius: var(--tm-radius-xl);
    padding: 36px 28px;
    box-shadow: 0 14px 0 var(--tm-navy);
}

.tm-auth-intent-banner {
    background: var(--tm-blue-soft);
    border: 1.5px solid rgba(37, 69, 245, 0.32);
    border-radius: var(--tm-radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--tm-navy);
}

.tm-auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 560px) {
    .tm-auth-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.tm-google-btn {
    width: 100%;
    min-height: 52px;
    border-radius: var(--tm-radius-pill);
    border: 2px solid var(--tm-navy);
    background: var(--tm-lime);
    color: var(--tm-navy);
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 5px 0 var(--tm-navy);
}

.tm-google-btn:hover {
    background: var(--tm-lime-dark);
    transform: translateY(-1px);
}

.tm-form-group {
    margin-bottom: 16px;
}

.tm-label {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--tm-navy);
}

.tm-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: var(--tm-radius-sm);
    border: 1.5px solid var(--tm-border);
    background: var(--tm-white);
    color: var(--tm-navy);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.96rem;
}

.tm-input:focus {
    border-color: var(--tm-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 69, 245, 0.16);
}

/* Unified Public Directory Styles (/directory & /ar/directory) */
.tm-dir-hero {
    background:
        radial-gradient(circle at 82% 22%, rgba(241, 247, 122, 0.32) 0%, rgba(241, 247, 122, 0) 45%),
        linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-blue) 100%);
    color: var(--tm-white);
    padding: 108px 0 42px;
}

.tm-dir-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

@media (min-width: 640px) {
    .tm-dir-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tm-dir-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tm-dir-card {
    background: var(--tm-white);
    border: 2px solid var(--tm-border);
    border-radius: var(--tm-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--tm-shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.tm-dir-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tm-shadow-md);
    border-color: var(--tm-blue);
}

.tm-dir-card-banner {
    height: 112px;
    position: relative;
    background: linear-gradient(135deg, var(--tm-blue) 0%, var(--tm-navy) 100%);
    overflow: hidden;
}

.tm-dir-card-banner--lime {
    background: linear-gradient(135deg, var(--tm-navy) 0%, var(--tm-blue) 65%, var(--tm-lime) 100%);
}

.tm-dir-card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.tm-dir-card-avatar-wrap {
    margin-top: -42px;
    padding-inline: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.tm-dir-card-avatar {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    border: 4px solid var(--tm-white);
    background: var(--tm-navy);
    color: var(--tm-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    overflow: hidden;
    box-shadow: var(--tm-shadow-sm);
}

.tm-dir-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer & For AI Agents Bar */
.tm-footer {
    background: var(--tm-navy);
    color: var(--tm-white);
    padding: 64px 0 36px;
}

.tm-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .tm-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.tm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.94rem;
    font-weight: 600;
}

.tm-footer-links a:hover {
    color: var(--tm-lime);
}

.tm-ai-agents-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--tm-radius-md);
    font-family: var(--tm-font-en);
}

.tm-ai-agents-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tm-lime);
    background: rgba(241, 247, 122, 0.14);
    padding: 4px 10px;
    border-radius: 99px;
}

.tm-ai-agents-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.tm-ai-agents-links a {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tm-ai-agents-links a:hover {
    color: var(--tm-lime);
}

.tm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.76);
}

.tm-solutions-link {
    color: var(--tm-lime);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tm-solutions-link:hover {
    color: var(--tm-white);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================================
   v2.2 Complete Component Class Coverage & Blade View Aliases
   ========================================================================== */

:root {
    --tm-slate: #45506E;
}

.tm-bg-surface {
    background-color: var(--tm-surface);
}

.tm-section--showcase {
    background: linear-gradient(180deg, var(--tm-surface) 0%, #FFFFFF 100%);
}

.tm-btn-sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.875rem;
}

.tm-btn-block {
    width: 100%;
    display: inline-flex;
}

.tm-btn-ghost {
    background: var(--tm-blue-soft);
    color: var(--tm-blue);
    border-color: rgba(37, 69, 245, 0.2);
}

.tm-btn-ghost:hover {
    background: var(--tm-blue);
    color: var(--tm-white);
    border-color: var(--tm-blue);
    transform: translateY(-2px);
}

/* Themes & Directory Toolbar & Search */
.tm-themes-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--tm-white);
    padding: 18px 22px;
    border-radius: var(--tm-radius-lg);
    border: 2px solid var(--tm-border);
    box-shadow: var(--tm-shadow-sm);
    margin-bottom: 32px;
}

.tm-themes-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 300px;
}

/* Sleek Single-Line Pill Search Bar (Directory Default when $showFilters is false) */
.tm-themes-search.tm-search-pill-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--tm-surface) !important;
    border: 1.5px solid var(--tm-border) !important;
    border-radius: var(--tm-radius-pill) !important;
    padding: 5px 6px !important;
    padding-inline-start: 16px !important;
    padding-inline-end: 6px !important;
    max-width: 580px !important;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(23, 28, 46, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box !important;
}

.tm-themes-search.tm-search-pill-bar:focus-within {
    border-color: var(--tm-blue) !important;
    background: var(--tm-white) !important;
    box-shadow: 0 0 0 3px rgba(37, 69, 245, 0.12) !important;
}

.tm-themes-search.tm-search-pill-bar .tm-search-input {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    border: none !important;
    background: transparent !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    box-shadow: none !important;
}

.tm-themes-search.tm-search-pill-bar .tm-search-btn {
    flex-shrink: 0 !important;
    min-height: 40px !important;
    padding: 8px 22px !important;
    border-radius: 999px !important;
    width: auto !important;
}

.tm-themes-search.tm-search-pill-bar .tm-search-clear-btn {
    flex-shrink: 0 !important;
    min-height: 40px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    width: auto !important;
}

/* Filters Bar Layout (When filters are visible) */
.tm-themes-search.tm-search-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.tm-themes-search.tm-search-filters-bar .tm-search-input {
    flex: 1 1 180px;
    width: auto;
    min-height: 44px;
}

.tm-themes-search.tm-search-filters-bar .tm-search-btn {
    flex-shrink: 0;
    min-height: 44px;
    padding: 8px 22px;
}

.tm-search-input {
    min-height: 44px;
    padding: 9px 16px;
    border-radius: var(--tm-radius-pill);
    border: 1.5px solid var(--tm-border);
    background: var(--tm-surface);
    color: var(--tm-navy);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    width: 100%;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-search-input:focus {
    outline: none;
    background: var(--tm-white);
    border-color: var(--tm-blue);
    box-shadow: 0 0 0 3px rgba(37, 69, 245, 0.14);
}

/* Colorful Phone Stages & Vertical Screenshot Scroll Animation */
.tm-theme-preview-stage {
    position: relative;
    min-height: 350px;
    padding: 26px 24px 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}

.tm-stage-blue {
    background:
        radial-gradient(circle at 85% 15%, rgba(241, 247, 122, 0.45) 0%, rgba(241, 247, 122, 0) 45%),
        linear-gradient(145deg, #2545F5 0%, #172794 100%);
}

.tm-stage-lime {
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 69, 245, 0.22) 0%, rgba(37, 69, 245, 0) 50%),
        linear-gradient(145deg, #F1F77A 0%, #D9E83A 100%);
}

.tm-stage-navy {
    background:
        radial-gradient(circle at 80% 20%, rgba(37, 69, 245, 0.55) 0%, rgba(37, 69, 245, 0) 50%),
        linear-gradient(145deg, #171C2E 0%, #2545F5 100%);
}

.tm-theme-stage-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: var(--tm-radius-pill);
    background: rgba(23, 28, 46, 0.88);
    color: var(--tm-white);
    font-family: var(--tm-font-en);
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid rgba(241, 247, 122, 0.45);
    backdrop-filter: blur(8px);
}

.tm-stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tm-lime);
    box-shadow: 0 0 8px var(--tm-lime);
}

.tm-theme-thumb {
    width: 100%;
    height: 136%;
    object-fit: cover;
    object-position: top center;
    transform: translate3d(0, 0, 0);
    transition: transform 3.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    display: block;
}

.tm-theme-card:hover .tm-theme-thumb {
    transform: translate3d(0, -25%, 0);
}

.tm-theme-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    border-top: 2px solid var(--tm-border);
    background: var(--tm-white);
}

.tm-theme-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tm-theme-cat-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--tm-radius-pill);
    background: var(--tm-blue-soft);
    color: var(--tm-blue);
    font-size: 0.78rem;
    font-weight: 800;
}

/* Directory Card Components */
.tm-dir-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.tm-dir-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--tm-blue);
    color: var(--tm-white);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--tm-border);
}

.tm-dir-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-dir-meta {
    min-width: 0;
    flex: 1;
}

.tm-dir-name {
    margin: 0 0 3px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tm-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-dir-role {
    margin: 0;
    font-size: 0.85rem;
    color: var(--tm-text-muted);
    font-weight: 600;
}

.tm-dir-city {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tm-text-muted);
}

.tm-empty-state {
    background: var(--tm-white);
    border: 2px dashed var(--tm-border);
    border-radius: var(--tm-radius-xl);
    padding: 48px 24px;
    text-align: center;
    color: var(--tm-text-muted);
    max-width: 640px;
    margin: 24px auto;
}

/* Auth Form & Modal Loader State Aliases */
.tm-auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tm-form-label {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--tm-navy);
}

.tm-form-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: var(--tm-radius-sm);
    border: 1.5px solid var(--tm-border);
    background: var(--tm-white);
    color: var(--tm-navy);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.96rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-form-input:focus {
    border-color: var(--tm-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 69, 245, 0.16);
}

.tm-auth-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tm-navy);
    cursor: pointer;
}

.tm-auth-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--tm-blue);
    flex-shrink: 0;
}

.tm-modal-loader.is-hidden {
    display: none !important;
}


/* ==========================================================================
   v2.3 Mobile Responsiveness, Balanced Header Logo, Clean Minimal Modal &
   Smooth Language Switching Indicator
   ========================================================================== */

/* 1. Larger, Un-squished Brand Logo & Balanced Mobile Header CTA (Exact Aspect Ratio for 0.000 CLS) */
.tm-brand-link {
    flex-shrink: 0;
}

.tm-brand-logo {
    height: 32px;
    width: auto;
    max-width: 128px;
    aspect-ratio: 934 / 326;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .tm-brand-logo {
        height: 36px;
        width: auto;
        max-width: 150px;
    }
}

@media (max-width: 639px) {
    .tm-header {
        padding: 8px 0 0;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    .tm-header-pill {
        min-height: 52px;
        padding: 5px 8px 5px 12px;
        gap: 6px;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .tm-brand-logo {
        height: 28px;
        width: auto;
        max-width: 108px;
    }

    .tm-header-actions {
        gap: 5px;
        flex-shrink: 0;
    }

    .tm-header-cta {
        min-height: 36px;
        padding: 6px 11px;
        font-size: 0.76rem;
        font-weight: 800;
        gap: 4px;
        white-space: nowrap;
    }

    .tm-header-cta-arrow {
        display: none;
    }

    .tm-mobile-toggle {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
}

/* 2. Clean, Minimal Live Preview Modal with Comfortable Mobile Margins */
.tm-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 16px;
}

.tm-modal-dialog {
    background: var(--tm-white);
    border: 1px solid rgba(23, 28, 46, 0.14);
    border-radius: 22px;
    width: 100%;
    max-width: 410px;
    height: min(82dvh, 760px);
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.42);
}

@media (max-width: 639px) {
    .tm-modal-backdrop {
        padding: 24px 18px;
    }

    .tm-modal-dialog {
        width: calc(100% - 8px);
        max-width: 380px;
        height: min(78dvh, 660px);
        border-radius: 20px;
    }
}

.tm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--tm-white);
    color: var(--tm-navy);
    border-bottom: 1px solid var(--tm-border);
    flex-shrink: 0;
}

.tm-modal-title-text {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--tm-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-modal-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.tm-modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--tm-border);
    background: var(--tm-surface);
    color: var(--tm-navy);
    font-weight: 800;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.tm-modal-close-btn:hover {
    background: var(--tm-navy);
    color: var(--tm-white);
    border-color: var(--tm-navy);
}

.tm-modal-iframe-wrap {
    position: relative;
    flex: 1 1 auto;
    height: auto;
    min-height: 320px;
    background: var(--tm-surface);
    overflow: hidden;
}

.tm-modal-footer {
    padding: 10px 14px;
    border-top: 1px solid var(--tm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--tm-white);
    flex-shrink: 0;
}

/* 3. Mobile Viewport Refinements (360px - 639px) */
@media (max-width: 639px) {
    .tm-container {
        padding-inline: 16px;
    }

    .tm-hero {
        padding: 86px 0 48px;
    }

    .tm-themes-hero,
    .tm-dir-hero {
        padding-top: 92px !important;
    }

    .tm-auth-section {
        padding-top: 88px !important;
    }

    main > .tm-section:first-child,
    main > section:first-child {
        padding-top: 90px !important;
    }

    /* Keep Hero Mockup & Floating Cards from causing horizontal overflow & steady layout */
    .tm-hero-showcase {
        overflow: hidden;
        max-width: 100%;
        padding: 12px 4px;
    }

    .tm-float-card {
        animation: none !important;
    }

    .tm-hub-node {
        animation: none !important;
    }

    .tm-float-card--qr {
        inset-inline-start: 6px;
        top: 6px;
        transform: scale(0.88) rotate(-2deg);
    }

    .tm-float-card--handle {
        inset-inline-end: 6px;
        bottom: 12px;
        transform: scale(0.88) rotate(2deg);
    }

    .tm-hero-title {
        font-size: clamp(1.85rem, 7.5vw, 2.45rem);
        margin-bottom: 14px;
    }

    .tm-hero-title-highlight {
        padding: 2px 12px 4px;
        border-radius: 14px;
    }

    .tm-hero-desc {
        font-size: 0.98rem;
        margin-bottom: 18px;
    }

    .tm-hero-inline-slug-box {
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 12px;
        border-radius: 20px;
        gap: 8px;
    }

    .tm-hero-inline-slug-box input {
        flex: 1 1 140px;
        min-width: 120px;
    }

    .tm-hero-inline-slug-box .tm-btn {
        width: 100%;
        flex-basis: 100%;
    }

    .tm-slug-form {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 20px;
        gap: 8px;
    }

    .tm-slug-form .tm-btn {
        width: 100%;
    }

    #tm-giant-bottom-slug,
    .tm-giant-bottom-slug,
    .tm-giant-url-display,
    .tm-giant-url-input {
        font-size: clamp(1.35rem, 5.8vw, 2.25rem) !important;
        line-height: 1.25;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .tm-billing-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    .tm-directory-banner {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .tm-auth-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .tm-themes-toolbar {
        padding: 14px;
        gap: 12px;
    }

    .tm-themes-search:not(.tm-search-pill-bar) {
        flex-direction: column;
        align-items: stretch;
        flex: 0 0 auto !important;
        width: 100%;
    }

    .tm-themes-search:not(.tm-search-pill-bar) .tm-search-input,
    .tm-themes-search:not(.tm-search-pill-bar) input.tm-search-input,
    .tm-themes-search:not(.tm-search-pill-bar) select.tm-search-input {
        flex: 0 0 auto !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        width: 100% !important;
    }

    .tm-themes-search:not(.tm-search-pill-bar) .tm-btn {
        width: 100%;
    }

    .tm-themes-search.tm-search-pill-bar {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        padding: 4px 5px !important;
        padding-inline-start: 12px !important;
        padding-inline-end: 5px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tm-themes-search.tm-search-pill-bar .tm-search-input {
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 6px !important;
        font-size: 0.88rem !important;
    }

    .tm-themes-search.tm-search-pill-bar .tm-search-btn {
        width: auto !important;
        flex-shrink: 0 !important;
        min-height: 38px !important;
        padding: 6px 16px !important;
        font-size: 0.88rem !important;
    }

    .tm-themes-search.tm-search-pill-bar .tm-search-clear-btn {
        width: auto !important;
        flex-shrink: 0 !important;
        min-height: 38px !important;
        padding: 6px 10px !important;
        font-size: 0.82rem !important;
    }

    .tm-category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }

    .tm-cat-pill {
        flex-shrink: 0;
    }
}

/* 5. Clean Corporate Pagination for Directory & Listings */
.tm-pagination-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.tm-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--tm-radius-pill);
    background: var(--tm-white);
    border: 1.5px solid var(--tm-border);
    color: var(--tm-navy);
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: var(--tm-shadow-sm);
    transition: all 0.18s ease;
}

.tm-page-btn:hover:not(.is-disabled):not(.is-active) {
    border-color: var(--tm-blue);
    color: var(--tm-blue);
    background: var(--tm-blue-soft);
}

.tm-page-btn.is-active {
    background: var(--tm-blue);
    border-color: var(--tm-blue);
    color: var(--tm-white);
    box-shadow: 0 6px 16px rgba(37, 69, 245, 0.25);
}

.tm-page-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* 4. Smooth Language Switch Indicator for Slow Connections */
.tm-lang-switch-loader {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 10000;
    pointer-events: none;
}

.tm-lang-switch-loader[hidden] {
    display: none !important;
}

.tm-lang-switch-bar {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--tm-blue) 0%, var(--tm-lime) 50%, var(--tm-blue) 100%);
    background-size: 200% 100%;
    animation: tmLangProgress 1.1s linear infinite;
}

.tm-lang-switch-pill {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(23, 28, 46, 0.94);
    color: var(--tm-white);
    border: 1.5px solid var(--tm-lime);
    border-radius: var(--tm-radius-pill);
    padding: 8px 18px;
    font-size: 0.86rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(8px);
}

.tm-lang-switch-spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--tm-lime);
    animation: tmSpin 0.65s linear infinite;
}

@keyframes tmLangProgress {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}
