/* ── CSS Custom Properties & Design Tokens ──────────────────────────────── */
:root {
    --mt-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --mt-font-display: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Light Mode Palette */
    --mt-bg: #f8fafc;
    --mt-surface: #ffffff;
    --mt-surface-glass: rgba(255, 255, 255, 0.7);
    --mt-border: rgba(226, 232, 240, 0.8);
    --mt-text: #0f172a;
    --mt-text-muted: #64748b;

    --mt-primary: #6366f1;
    /* Indigo */
    --mt-primary-hover: #4f46e5;
    --mt-primary-glow: rgba(99, 102, 241, 0.15);

    --mt-accent: #d946ef;
    /* Magenta */
    --mt-success: #10b981;

    --mt-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --mt-radius: 10px;
    --mt-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);

    /* Qoder Hero Theme Tokens */
    --hero-bg: radial-gradient(circle at top, var(--mt-primary-glow) 0%, var(--mt-bg) 100%);
    --hero-text: #0f172a;
    --hero-text-muted: #64748b;
    --hero-overlay: linear-gradient(to bottom, rgba(248, 250, 252, 0.35) 0%, rgba(248, 250, 252, 0.75) 50%, var(--mt-bg) 100%);
    --hero-video-opacity: 0.25;
    --hero-cta-secondary-bg: rgba(15, 23, 42, 0.05);
    --hero-cta-secondary-color: #0f172a;
    --hero-cta-secondary-border: rgba(15, 23, 42, 0.1);
    --hero-stat-bg: rgba(255, 255, 255, 0.65);
    --hero-stat-border: rgba(226, 232, 240, 0.85);
    --hero-stat-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    /* Dark Mode Palette */
    --mt-bg: #090d16;
    --mt-surface: #111827;
    --mt-surface-glass: rgba(17, 24, 39, 0.7);
    --mt-border: rgba(255, 255, 255, 0.06);
    --mt-text: #f8fafc;
    --mt-text-muted: #94a3b8;

    --mt-primary: #818cf8;
    --mt-primary-hover: #6366f1;
    --mt-primary-glow: rgba(129, 140, 248, 0.2);

    --mt-accent: #f472b6;
    --mt-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.4);

    /* Qoder Hero Theme Tokens */
    --hero-bg: #090d16;
    --hero-text: #f8fafc;
    --hero-text-muted: #94a3b8;
    --hero-overlay: linear-gradient(to bottom, rgba(9, 13, 22, 0.4) 0%, rgba(9, 13, 22, 0.8) 50%, var(--mt-bg) 100%);
    --hero-video-opacity: 0.45;
    --hero-cta-secondary-bg: rgba(255, 255, 255, 0.08);
    --hero-cta-secondary-color: #ffffff;
    --hero-cta-secondary-border: rgba(255, 255, 255, 0.15);
    --hero-stat-bg: rgba(15, 23, 42, 0.45);
    --hero-stat-border: rgba(255, 255, 255, 0.08);
    --hero-stat-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--mt-bg);
    color: var(--mt-text);
    font-family: var(--mt-font-sans);
    transition: var(--mt-transition);
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--mt-font-display);
    font-weight: 700;
}

/* ── Flat Professional Navbar ─────────────────────────────────────────── */
.mt-navbar {
    position: relative;
    z-index: 1000;
    background-color: transparent;
    border-bottom: none;
    transition: var(--mt-transition);
}

.mt-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.25rem;
    max-width: 1140px;
    width: calc(100% - 24px);
    margin: 12px auto;
    background-color: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    box-shadow: var(--mt-shadow);
    transition: var(--mt-transition);
    box-sizing: border-box;
}

.mt-navbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mt-navbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.mt-brand {
    font-family: var(--mt-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mt-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.mt-brand-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--mt-primary);
    margin-left: 3px;
    display: inline-block;
}

[dir="rtl"] .mt-brand-dot {
    margin-left: 0;
    margin-right: 3px;
}

/* Center Navigation Links */
.mt-nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-nav-list {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mt-nav-item {
    display: inline-block;
    position: relative;
}

.mt-nav-link {
    font-family: var(--mt-font-sans);
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--mt-text);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: var(--mt-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.85;
}

.mt-nav-link:hover {
    opacity: 1;
    background-color: var(--mt-primary-glow);
    color: var(--mt-primary);
}

.mt-nav-link.active {
    background-color: var(--mt-primary-glow);
    color: var(--mt-primary);
    opacity: 1;
    font-weight: 600;
}

/* Right Actions & Dropdowns */
.mt-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* User Account Dropdown */
.mt-user-dropdown-container {
    position: relative;
    display: inline-block;
}

.mt-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    padding: 0.4rem;
    list-style: none;
    min-width: 200px;
    display: none;
    z-index: 1010;
    text-align: left;
    animation: mtFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[dir="rtl"] .mt-user-dropdown-menu {
    right: auto;
    left: 0;
    text-align: right;
}

@keyframes mtFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mt-user-dropdown-container.show .mt-user-dropdown-menu {
    display: block;
}

.mt-dropdown-header {
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
}

.mt-dropdown-header .user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--mt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt-dropdown-header .user-role {
    font-size: 0.75rem;
    color: var(--mt-text-muted);
    margin-top: 0.1rem;
}

.mt-dropdown-subheader {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mt-text-muted);
    padding: 0.4rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mt-dropdown-divider {
    border: 0;
    border-top: 1px solid var(--mt-border);
    margin: 0.5rem 0;
}

.mt-user-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--mt-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--mt-transition);
}

.mt-user-dropdown-item i {
    color: var(--mt-text-muted);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.mt-user-dropdown-item:hover,
.mt-user-dropdown-item.active {
    background-color: var(--mt-primary-glow);
    color: var(--mt-primary);
}

.mt-user-dropdown-item:hover i {
    color: var(--mt-primary);
}

.mt-user-dropdown-action {
    display: flex;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 0.6rem 0.75rem;
    color: var(--mt-text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: var(--mt-transition);
}

[dir="rtl"] .mt-user-dropdown-action {
    text-align: right;
}

.mt-user-dropdown-action i {
    margin-right: 0.6rem;
    color: var(--mt-text-muted);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

[dir="rtl"] .mt-user-dropdown-action i {
    margin-right: 0;
    margin-left: 0.6rem;
}

.mt-user-dropdown-action:hover {
    background-color: var(--mt-primary-glow);
    color: var(--mt-primary);
}

.mt-user-dropdown-action:hover i {
    color: var(--mt-primary);
}

.mt-logout-form {
    margin: 0;
    width: 100%;
}

.mt-logout-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 0.6rem 0.75rem;
    color: #e53e3e;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--mt-transition);
}

.mt-logout-btn i {
    width: 16px;
    text-align: center;
}

.mt-logout-btn:hover {
    background-color: rgba(229, 62, 62, 0.08);
}

/* Mobile Toggle Hamburger */
.mt-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1005;
}

.mt-menu-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--mt-text);
    border-radius: 4px;
    transition: var(--mt-transition);
}

/* Standard Interactive Dropdown & Toggles */
.mt-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--mt-border);
    background-color: var(--mt-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--mt-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--mt-transition);
}

.mt-icon-btn:hover {
    background-color: var(--mt-primary-glow);
    border-color: var(--mt-primary);
    color: var(--mt-primary);
}

/* Language Selector (Inline, outside of dropdown) */
.mt-lang-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--mt-border);
    border-radius: 20px;
    padding: 3px;
    background-color: var(--mt-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mt-lang-option {
    font-family: var(--mt-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mt-text-muted);
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    border-radius: 16px;
    transition: var(--mt-transition);
}

.mt-lang-option:hover {
    color: var(--mt-primary);
}

.mt-lang-option.active {
    background-color: var(--mt-primary);
    color: #ffffff !important;
}

/* Language Switcher Dropdown (Backward Compatible) */
.mt-dropdown {
    position: relative;
    display: inline-block;
}

.mt-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 12px;
    box-shadow: var(--mt-shadow);
    padding: 0.5rem;
    list-style: none;
    min-width: 150px;
    display: none;
    z-index: 1010;
}

.mt-dropdown.show .mt-dropdown-menu {
    display: block;
}

.mt-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    color: var(--mt-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--mt-transition);
}

.mt-dropdown-item:hover,
.mt-dropdown-item.active {
    background-color: var(--mt-primary-glow);
    color: var(--mt-primary);
}

/* ── Hero Presentation ─────────────────────────────────────────────────── */
.mt-hero {
    padding: 10rem 2rem 6rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top, var(--mt-primary-glow) 0%, transparent 60%);
}

.mt-hero-tag {
    font-family: var(--mt-font-display);
    font-weight: 600;
    color: var(--mt-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    background-color: var(--mt-primary-glow);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    display: inline-block;
}

.mt-hero-title {
    font-size: 3.5rem;
    margin: 1.5rem 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--mt-text) 50%, var(--mt-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mt-hero-subtitle {
    font-size: 1.25rem;
    color: var(--mt-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* ── Product Section & Dynamic Grid ────────────────────────────────────── */
.mt-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* ── Premium Product Cards (Glassmorphism) ──────────────────────────────── */
.mt-card {
    background-color: var(--mt-surface-glass);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 2.5rem;
    box-shadow: var(--mt-shadow);
    transition: var(--mt-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mt-card:hover {
    cursor: pointer;
    box-shadow: 0 20px 45px -10px var(--mt-primary-glow);
    border-color: var(--mt-primary);
}

.mt-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-color: var(--mt-primary-glow);
    filter: blur(50px);
    border-radius: 50%;
    z-index: 1;
}

.mt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.mt-card-icon {
    font-size: 2rem;
    color: var(--mt-primary);
}

.mt-card-badge {
    background-color: var(--mt-primary-glow);
    color: var(--mt-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mt-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
}

.mt-card-desc {
    color: var(--mt-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* ── Launch Sandbox Button ──────────────────────────────────────────────── */
.mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--mt-primary);
    color: #ffffff;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--mt-transition);
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.mt-btn:hover {
    background-color: var(--mt-primary-hover);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.mt-btn i {
    display: inline-block;
}

/* ── Core Qoder Hero ── */
.qoder-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--hero-text);
    box-sizing: border-box;
    transition: var(--mt-transition);
}

[dir="rtl"] .qoder-hero,
html[dir="rtl"] .qoder-hero,
body[dir="rtl"] .qoder-hero {
    left: auto;
    right: 50%;
    margin-left: 0;
    margin-right: -50vw;
}

.qoder-video-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.qoder-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: var(--hero-video-opacity);
    transition: var(--mt-transition);
}

.qoder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 8rem 2rem 4rem 2rem;
    background: var(--hero-overlay);
    box-sizing: border-box;
    transition: var(--mt-transition);
}

.qoder-header {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

.qoder-title {
    font-family: var(--mt-font-display);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--hero-text) 60%, var(--hero-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .qoder-title {
    background: linear-gradient(135deg, #fff 60%, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qoder-subtitle {
    font-family: var(--mt-font-sans);
    font-size: 1.35rem;
    color: var(--hero-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    transition: var(--mt-transition);
}

.qoder-footer {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-top: auto;
}

.qoder-cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.qoder-cta-btn {
    padding: 0.9rem 2.25rem;
    border-radius: 9999px;
    font-family: var(--mt-font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.qoder-cta-primary {
    background: var(--mt-primary);
    color: #fff !important;
    border: 1px solid var(--mt-primary);
    box-shadow: 0 4px 20px var(--mt-primary-glow);
}

.qoder-cta-primary:hover {
    background: var(--mt-primary-hover);
    border-color: var(--mt-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--mt-primary-glow);
}

.qoder-cta-secondary {
    background: var(--hero-cta-secondary-bg);
    color: var(--hero-cta-secondary-color) !important;
    border: 1px solid var(--hero-cta-secondary-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.qoder-cta-secondary:hover {
    background: var(--hero-cta-secondary-bg);
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.qoder-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    border-top: none;
    padding-top: 0;
    box-sizing: border-box;
    transition: var(--mt-transition);
}

.qoder-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 0;
    background: var(--hero-stat-bg);
    border: 1px solid var(--hero-stat-border);
    box-shadow: var(--hero-stat-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--mt-transition);
}

.qoder-stat-item:hover {
    transform: translateY(-2px);
}

.qoder-stat-value {
    font-family: var(--mt-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hero-text);
    line-height: 1.1;
    transition: var(--mt-transition);
}

.qoder-stat-label {
    font-size: 0.72rem;
    color: var(--hero-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.35rem;
    font-weight: 600;
    transition: var(--mt-transition);
}

/* ── Product View Parts ── */
.product-view-part {
    margin: 3.5rem auto;
    max-width: 1140px;
    padding: 2.25rem 2rem;
    border-radius: 10px;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--mt-shadow);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.product-view-part:hover {
    border-color: var(--mt-primary);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.product-glow {
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.product-grid.inverse {
    grid-template-columns: 0.85fr 1.15fr;
}

/* ── 3D Visual Column Showcase ── */
.product-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    padding: 2.5rem 1rem;
}

/* Ambient 3D Radial Glow */
.product-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.15) 35%, transparent 70%);
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    animation: auraPulse 8s ease-in-out infinite alternate;
}

[data-theme="light"] .product-visual::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 70%);
    filter: blur(35px);
}

/* 3D Mockup Stage */
.visual-mockup {
    width: 100%;
    max-width: 450px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.88) 0%, rgba(11, 15, 25, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    font-family: var(--mt-font-sans);
    color: #cbd5e1;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
    transform: rotateY(-9deg) rotateX(6deg) translateZ(0);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease, border-color 0.4s ease;
    animation: float3d 8s ease-in-out infinite;
}

.product-grid.inverse .visual-mockup {
    transform: rotateY(9deg) rotateX(6deg) translateZ(0);
    animation: float3dInverse 8s ease-in-out infinite;
}

[dir="rtl"] .visual-mockup {
    transform: rotateY(9deg) rotateX(6deg) translateZ(0);
    animation: float3dRtl 8s ease-in-out infinite;
}

[dir="rtl"] .product-grid.inverse .visual-mockup {
    transform: rotateY(-9deg) rotateX(6deg) translateZ(0);
    animation: float3dRtlInverse 8s ease-in-out infinite;
}

.visual-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px) scale(1.025);
    animation-play-state: paused;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 35px 65px -15px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 1px 2px rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .visual-mockup {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.92) 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 20px 45px -10px rgba(99, 102, 241, 0.12),
        0 8px 25px -5px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(226, 232, 240, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    color: #334155;
}

[data-theme="light"] .visual-mockup:hover {
    box-shadow:
        0 30px 60px -12px rgba(99, 102, 241, 0.2),
        0 12px 30px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 1);
}

.mockup-header {
    background: rgba(17, 24, 39, 0.9);
    padding: 0.55rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateZ(20px);
}

.terminal-featured-card,
.trading-ticker-card,
.terminal-lecture-card,
.terminal-project-card,
.terminal-profile-card {
    transform: translateZ(32px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.visual-mockup:hover .terminal-featured-card,
.visual-mockup:hover .trading-ticker-card,
.visual-mockup:hover .terminal-lecture-card,
.visual-mockup:hover .terminal-project-card,
.visual-mockup:hover .terminal-profile-card {
    transform: translateZ(42px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.terminal-metrics-row {
    transform: translateZ(24px);
    transition: transform 0.4s ease;
}

.visual-mockup:hover .terminal-metrics-row {
    transform: translateZ(32px);
}

.terminal-footer-strip {
    transform: translateZ(18px);
    transition: transform 0.4s ease;
}

.visual-mockup:hover .terminal-footer-strip {
    transform: translateZ(26px);
}

/* 3D Floating Orbit Badges */
.visual-3d-orbit {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transform: translateZ(60px);
    animation: orbitFloat 5s ease-in-out infinite alternate;
}

.visual-3d-orbit-top-right {
    top: -14px;
    right: -14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: #e0e7ff;
}

.visual-3d-orbit-bottom-left {
    bottom: -14px;
    left: -14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(6, 182, 212, 0.25) 100%);
    color: #d1fae5;
}

[dir="rtl"] .visual-3d-orbit-top-right {
    right: auto;
    left: -14px;
}

[dir="rtl"] .visual-3d-orbit-bottom-left {
    left: auto;
    right: -14px;
}

@keyframes float3d {

    0%,
    100% {
        transform: rotateY(-9deg) rotateX(6deg) translateY(0px);
    }

    50% {
        transform: rotateY(-6deg) rotateX(8deg) translateY(-14px);
    }
}

@keyframes float3dInverse {

    0%,
    100% {
        transform: rotateY(9deg) rotateX(6deg) translateY(0px);
    }

    50% {
        transform: rotateY(6deg) rotateX(8deg) translateY(-14px);
    }
}

@keyframes float3dRtl {

    0%,
    100% {
        transform: rotateY(9deg) rotateX(6deg) translateY(0px);
    }

    50% {
        transform: rotateY(6deg) rotateX(8deg) translateY(-14px);
    }
}

@keyframes float3dRtlInverse {

    0%,
    100% {
        transform: rotateY(-9deg) rotateX(6deg) translateY(0px);
    }

    50% {
        transform: rotateY(-6deg) rotateX(8deg) translateY(-14px);
    }
}

/* ── Modern Authentic 3D Product Visual Cards ── */
.p3d-card {
    border-radius: 16px;
    overflow: visible;
    padding: 0;
}

.p3d-card-header {
    background: rgba(17, 24, 39, 0.95);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px 16px 0 0;
    transform: translateZ(25px);
}

[data-theme="light"] .p3d-card-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.p3d-header-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mt-text);
}

.p3d-header-brand i {
    font-size: 0.95rem;
}

.p3d-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--mt-text-muted);
}

.p3d-header-pill.success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--mt-success);
}

.p3d-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: p3dPulse 2s infinite;
}

@keyframes p3dPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.p3d-card-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Featured 3D Showcase Box */
.p3d-featured-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transform: translateZ(35px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .p3d-featured-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.p3d-product-preview-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.3) 100%);
    color: var(--mt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.p3d-product-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.p3d-meta-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p3d-badge-subtle {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mt-primary);
    background: rgba(99, 102, 241, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.p3d-rating {
    font-size: 0.65rem;
    color: #f59e0b;
}

.p3d-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mt-text);
    margin: 0;
}

.p3d-availability {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: var(--mt-text-muted);
}

/* Capabilities Grid */
.p3d-capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    transform: translateZ(28px);
}

.p3d-cap-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

[data-theme="light"] .p3d-cap-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.p3d-cap-item i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.p3d-cap-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--mt-text);
}

.p3d-cap-sub {
    display: block;
    font-size: 0.62rem;
    color: var(--mt-text-muted);
}

/* Action Simulation Box */
.p3d-action-box {
    transform: translateZ(22px);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.p3d-btn-simulation {
    background: linear-gradient(135deg, var(--mt-primary) 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.p3d-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.62rem;
    color: var(--mt-text-muted);
}

/* 2. Education 3D Video Lecture Frame */
.p3d-player-frame {
    position: relative;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateZ(35px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.p3d-player-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(129, 140, 248, 0.25) 0%, transparent 70%);
}

.p3d-play-btn-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--mt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.p3d-player-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    position: relative;
    z-index: 1;
}

.p3d-player-meta {
    font-size: 0.65rem;
    color: #cbd5e1;
    display: flex;
    gap: 0.85rem;
    position: relative;
    z-index: 1;
}

.p3d-progress-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    transform: translateZ(28px);
}

[data-theme="light"] .p3d-progress-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.p3d-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--mt-text);
}

.p3d-progress-bar {
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.p3d-progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--mt-primary) 0%, #10b981 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* 3. Trading 3D Candlestick Chart */
.p3d-chart-stage {
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transform: translateZ(35px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .p3d-chart-stage {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.p3d-chart-candles-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 85px;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.p3d-candle {
    width: 14px;
    position: relative;
    border-radius: 2px;
}

.p3d-candle.up {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.p3d-candle.down {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.p3d-candle::before,
.p3d-candle::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 1.5px;
    transform: translateX(-50%);
}

.p3d-candle.up::before,
.p3d-candle.up::after {
    background: #10b981;
}

.p3d-candle.down::before,
.p3d-candle.down::after {
    background: #ef4444;
}

.p3d-candle::before {
    bottom: 100%;
    height: 10px;
}

.p3d-candle::after {
    top: 100%;
    height: 8px;
}

.p3d-depth-row {
    margin-top: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.p3d-depth-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    font-weight: 700;
}

.p3d-depth-bar {
    display: flex;
    height: 6px;
    border-radius: 9999px;
    overflow: hidden;
}

.p3d-depth-buy {
    width: 65%;
    background: #10b981;
}

.p3d-depth-sell {
    width: 35%;
    background: #ef4444;
}

.p3d-trade-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    transform: translateZ(28px);
}

.p3d-trade-btn {
    border-radius: 8px;
    padding: 0.55rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.p3d-trade-btn.buy {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.p3d-trade-btn.sell {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* 4. Business 3D Pipeline & Kanban */
.p3d-pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    transform: translateZ(28px);
}

[data-theme="light"] .p3d-pipeline-flow {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.p3d-stage-node {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
}

.p3d-stage-node.done {
    color: #10b981;
}

.p3d-stage-node.active {
    color: var(--mt-primary);
}

.p3d-stage-node.pending {
    color: var(--mt-text-muted);
    opacity: 0.6;
}

.p3d-stage-arrow {
    font-size: 0.6rem;
    color: var(--mt-text-muted);
}

.p3d-team-cluster {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transform: translateZ(24px);
}

.p3d-avatar-stack {
    display: flex;
}

.p3d-avatar-stack span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid #0b0f19;
    margin-right: -8px;
}

[dir="rtl"] .p3d-avatar-stack span {
    margin-right: 0;
    margin-left: -8px;
}

/* 5. Personal 3D Developer Portfolio */
.p3d-tech-stack-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    transform: translateZ(30px);
}

.p3d-tech-chip {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--mt-primary);
}

.p3d-activity-matrix {
    display: flex;
    gap: 4px;
    justify-content: space-between;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.p3d-activity-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p3d-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
}

.p3d-activity-dot.l1 {
    background: rgba(16, 185, 129, 0.35);
}

.p3d-activity-dot.l2 {
    background: rgba(16, 185, 129, 0.65);
}

.p3d-activity-dot.l3 {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

@keyframes auraPulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes orbitFloat {
    0% {
        transform: translateZ(60px) translateY(0px);
    }

    100% {
        transform: translateZ(65px) translateY(-8px);
    }
}

[data-theme="light"] .mockup-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.mockup-header .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.mockup-header .dot.red {
    background: #ef4444;
}

.mockup-header .dot.yellow {
    background: #f59e0b;
}

.mockup-header .dot.green {
    background: #10b981;
}

.mockup-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 0.35rem;
}

[data-theme="light"] .mockup-title {
    color: #475569;
}

.terminal-badge {
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* 1. Commerce Terminal */
.commerce-terminal-body,
.education-terminal-body,
.trading-terminal-body,
.business-terminal-body,
.personal-terminal-body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.terminal-featured-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="light"] .terminal-featured-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.product-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--mt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.product-card-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.product-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-tag-pill {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(99, 102, 241, 0.12);
    color: var(--mt-primary);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.product-rating {
    font-size: 0.62rem;
    color: #f59e0b;
}

.product-item-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
    color: var(--mt-text);
}

.product-item-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-amount {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mt-text);
}

.stock-status {
    font-size: 0.62rem;
    color: #64748b;
}

.terminal-metrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.terminal-metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .terminal-metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.metric-label {
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

.metric-val {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--mt-text);
    margin-top: 0.1rem;
}

.metric-trend {
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.terminal-footer-strip {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.35rem 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
}

[data-theme="light"] .terminal-footer-strip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.order-live-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--mt-text);
    font-weight: 500;
}

.order-success-tag {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--mt-success);
}

/* 2. Education Terminal */
.terminal-lecture-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="light"] .terminal-lecture-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.lecture-play-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(128, 90, 213, 0.12);
    color: #805ad5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.lecture-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lecture-badge {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #805ad5;
}

.lecture-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
    color: var(--mt-text);
}

.lecture-meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.62rem;
    color: #64748b;
}

.terminal-progress-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--mt-text-muted);
}

.terminal-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
}

[data-theme="light"] .terminal-progress-bar {
    background: #e2e8f0;
}

.progress-fill {
    height: 100%;
    background: var(--mt-success);
    border-radius: 9999px;
}

/* 3. Trading Terminal */
.trading-ticker-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="light"] .trading-ticker-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ticker-price-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ticker-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.ticker-price {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: var(--mt-text);
}

.ticker-sub {
    font-size: 0.6rem;
    color: #64748b;
}

.trading-candles-simulation {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 38px;
    width: 60px;
}

.candle {
    width: 6px;
    border-radius: 2px;
}

.candle.up {
    background: #10b981;
}

.candle.down {
    background: #ef4444;
}

.trading-orderbook-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.orderbook-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

[data-theme="light"] .orderbook-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ob-header {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.1rem;
}

.ob-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-weight: 600;
}

/* 4. Business Terminal */
.pipeline-stages-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.35rem 0.6rem;
}

[data-theme="light"] .pipeline-stages-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.stage-pill {
    font-size: 0.6rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
}

.stage-pill.done {
    color: #10b981;
}

.stage-pill.active {
    color: var(--mt-primary);
    font-weight: 800;
}

.stage-arrow {
    font-size: 0.55rem;
    color: #475569;
}

.terminal-project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

[data-theme="light"] .terminal-project-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.project-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tag {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.project-sla {
    font-size: 0.6rem;
    font-weight: 600;
}

.project-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
    color: var(--mt-text);
}

.project-desc {
    font-size: 0.65rem;
    color: var(--mt-text-muted);
    margin: 0;
}

/* 5. Personal Terminal */
.terminal-profile-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

[data-theme="light"] .terminal-profile-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.profile-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mt-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    position: relative;
    flex-shrink: 0;
}

.avatar-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #0b0f19;
}

.profile-info-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-name {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
    color: var(--mt-text);
}

.verified-badge {
    font-size: 0.65rem;
}

.profile-role {
    font-size: 0.62rem;
    color: var(--mt-text-muted);
    font-weight: 500;
}

.profile-location {
    font-size: 0.58rem;
    color: #64748b;
}

.personal-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.personal-metric-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.35rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .personal-metric-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.personal-metric-item .val {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--mt-text);
}

.personal-metric-item .lbl {
    font-size: 0.52rem;
    color: #64748b;
    text-transform: uppercase;
}

.personal-article-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.45rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

[data-theme="light"] .personal-article-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.article-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-tag {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mt-primary);
}

.article-read-time {
    font-size: 0.58rem;
    color: #64748b;
}

.article-title {
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0;
    color: var(--mt-text);
}

/* Info Part Details */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-badge {
    font-family: var(--mt-font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
}

.commerce-badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--mt-primary);
}

.education-badge {
    background: rgba(128, 90, 213, 0.1);
    color: #805ad5;
}

.trading-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.business-badge {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.personal-badge {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.product-title {
    font-family: var(--mt-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mt-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.86rem;
    color: var(--mt-text-muted);
    line-height: 1.6;
    margin: 0;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--mt-text-muted);
}

.product-features li i {
    color: var(--mt-success);
    margin-top: 0.15rem;
    font-size: 0.75rem;
}

.pricing-badge {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pricing-badge .badge-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--mt-text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-badge .price-val {
    font-family: var(--mt-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mt-text);
}

.pricing-badge .price-val .period {
    font-family: var(--mt-font-sans);
    font-size: 0.75rem;
    color: var(--mt-text-muted);
    font-weight: 400;
    margin-left: 0.15rem;
}

.pricing-badge .price-val .plus {
    font-size: 1rem;
    color: var(--mt-text-muted);
    margin: 0 0.2rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.qoder-btn {
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.qoder-btn-outline {
    background: transparent;
    border: 1px solid var(--mt-border);
    color: var(--mt-text-muted);
}

.qoder-btn-outline:hover {
    border-color: var(--mt-primary);
    color: var(--mt-primary);
    transform: translateY(-1px);
}

.qoder-btn-commerce:hover {
    border-color: var(--mt-primary);
    color: var(--mt-primary);
}

.qoder-btn-education:hover {
    border-color: #805ad5;
    color: #805ad5;
}

.qoder-btn-trading:hover {
    border-color: #10b981;
    color: #10b981;
}

.qoder-btn-business:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.qoder-btn-personal:hover {
    border-color: #64748b;
    color: #64748b;
}

/* Interactive Checkbox Button */
.qoder-select-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--mt-border);
    background: var(--mt-surface);
    color: var(--mt-text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.qoder-select-card input[type="checkbox"] {
    display: none;
}

.select-indicator {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid var(--mt-border);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: var(--mt-surface);
}

[data-theme="dark"] .select-indicator {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.qoder-select-card:hover {
    border-color: var(--mt-primary);
    color: var(--mt-text);
}

.qoder-select-card:hover .select-indicator {
    border-color: var(--mt-primary);
}

.qoder-select-card:has(input:checked) {
    border-color: var(--mt-primary);
    background: var(--mt-primary);
    color: #fff;
}

.qoder-select-card:has(input:checked) .select-indicator {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.25);
}

.qoder-select-card:has(input:checked) .select-indicator::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ── Augment-style Pricing Grid Section ── */
.pricing-section-container {
    margin: 5rem auto 3rem;
    max-width: 1060px;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.pricing-mono-tag {
    font-family: var(--mt-font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--mt-primary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.pricing-title {
    font-family: var(--mt-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mt-text);
    letter-spacing: -0.01em;
    margin: 0;
}

.pricing-divider {
    width: 48px;
    height: 2px;
    background: var(--mt-border);
    margin: 1rem auto 0;
}

.augment-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--mt-border);
    border: 1px solid var(--mt-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--mt-shadow);
}

.pricing-cell {
    background: var(--mt-surface);
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    position: relative;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.pricing-cell.popular-cell::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mt-primary);
}

.popular-tag {
    position: absolute;
    top: 0.85rem;
    right: 1.25rem;
    background: var(--mt-primary-glow);
    color: var(--mt-primary);
    font-family: var(--mt-font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

[dir="rtl"] .popular-tag {
    right: auto;
    left: 1.25rem;
}

.cell-plan-name {
    font-family: var(--mt-font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mt-text-muted);
    margin-bottom: 0.85rem;
    display: block;
}

.cell-price-row {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
}

.cell-price {
    font-family: var(--mt-font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--mt-text);
    line-height: 1;
}

.cell-price-period {
    font-family: var(--mt-font-sans);
    font-size: 0.78rem;
    color: var(--mt-text-muted);
    margin-left: 0.25rem;
}

.cell-subtitle {
    font-family: var(--mt-font-sans);
    font-size: 0.75rem;
    color: var(--mt-text-muted);
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.cell-description {
    font-size: 0.82rem;
    color: var(--mt-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.cell-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex-grow: 1;
}

.cell-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--mt-text-muted);
}

.cell-features-list li i {
    color: var(--mt-primary);
    margin-top: 0.15rem;
    font-size: 0.75rem;
}

.pricing-cell-btn {
    width: 100%;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pricing-cell-btn-primary {
    background: var(--mt-primary);
    color: #fff !important;
    border: 1px solid var(--mt-primary);
}

.pricing-cell-btn-primary:hover {
    background: var(--mt-primary-hover);
    border-color: var(--mt-primary-hover);
}

.pricing-cell-btn-secondary {
    background: transparent;
    color: var(--mt-text);
    border: 1px solid var(--mt-border);
}

.pricing-cell-btn-secondary:hover {
    background: var(--mt-primary-glow);
    border-color: var(--mt-primary);
    color: var(--mt-primary);
}

/* ── Floating Interactive Checkout Bar ── */
.checkout-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mt-surface);
    border-top: 1px solid var(--mt-border);
    padding: 0.85rem 1.75rem;
    z-index: 999;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-summary-bar.visible {
    transform: translateY(0);
}

.summary-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.summary-title {
    font-family: var(--mt-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mt-text);
    margin: 0;
}

.summary-subtext {
    font-size: 0.75rem;
    color: var(--mt-text-muted);
    margin: 0;
}

.summary-subtext span.active-mod {
    background: var(--mt-primary-glow);
    color: var(--mt-primary);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 0.25rem;
    font-size: 0.72rem;
    display: inline-block;
}

[dir="rtl"] .summary-subtext span.active-mod {
    margin-right: 0;
    margin-left: 0.25rem;
}

.summary-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.summary-price-total {
    font-family: var(--mt-font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mt-text);
}

.summary-price-period {
    font-family: var(--mt-font-sans);
    font-size: 0.78rem;
    color: var(--mt-text-muted);
    font-weight: 400;
}

.checkout-btn {
    background: var(--mt-primary);
    color: #fff !important;
    border: 1px solid var(--mt-primary);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.checkout-btn:hover {
    background: var(--mt-primary-hover);
    border-color: var(--mt-primary-hover);
}

.checkout-login-btn {
    background: var(--mt-text);
    color: var(--mt-surface) !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.checkout-login-btn:hover {
    opacity: 0.9;
}

.mt-mobile-drawer {
    display: none;
}

/* ── Responsive Stacking ── */
@media (max-width: 992px) {

    .product-grid,
    .product-grid.inverse {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .augment-pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cell {
        min-height: auto;
        border-bottom: 1px solid var(--mt-border);
    }

    .pricing-cell:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .qoder-title {
        font-size: 3rem;
    }

    .qoder-subtitle {
        font-size: 1.1rem;
    }

    .qoder-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .checkout-summary-bar {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
        padding: 1.25rem;
    }

    .summary-right {
        justify-content: space-between;
    }
}

@media (max-width: 992px) {
    .mt-navbar-center {
        display: none !important;
    }

    .mt-nav-actions {
        display: none !important;
    }

    .mt-navbar-left {
        flex: 1;
    }

    .mt-navbar-right {
        flex: 0;
        gap: 0;
    }

    .mt-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    [dir="rtl"] .mt-menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }

    .mt-mobile-drawer {
        position: fixed;
        top: 0;
        right: -280px;
        width: 250px;
        height: 100vh;
        background-color: var(--mt-surface);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
        padding: 1.25rem 1rem;
        display: flex;
        flex-direction: column;
        z-index: 2000;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-sizing: border-box;
    }

    .mt-mobile-drawer.active {
        right: 0;
    }

    [dir="rtl"] .mt-mobile-drawer {
        right: auto;
        left: -280px;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    [dir="rtl"] .mt-mobile-drawer.active {
        left: 0;
        right: auto;
    }

    .mt-mobile-drawer .drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .mt-mobile-drawer .drawer-header .brand-text {
        font-family: var(--mt-font-display);
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--mt-text);
    }

    .mt-mobile-drawer .drawer-header .mt-drawer-close {
        background: none;
        border: none;
        font-size: 1.25rem;
        color: var(--mt-text-muted);
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }

    .mt-mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
        height: 100%;
        width: 100%;
    }

    .mt-mobile-nav-list,
    .mt-mobile-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .mt-mobile-nav li {
        display: block;
        width: 100%;
    }

    .mt-mobile-nav a,
    .mt-mobile-link {
        font-family: var(--mt-font-sans);
        font-weight: 500;
        font-size: 0.82rem;
        color: var(--mt-text);
        text-decoration: none;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 0.65rem;
        border-radius: 6px;
        transition: var(--mt-transition);
        box-sizing: border-box;
    }

    .mt-mobile-nav a:hover,
    .mt-mobile-link:hover {
        background-color: var(--mt-primary-glow);
        color: var(--mt-primary);
    }

    .mt-mobile-nav i,
    .mt-mobile-link i {
        width: 16px;
        text-align: center;
        font-size: 0.85rem;
        color: var(--mt-text-muted);
    }
}

/* ── Sandbox Provisioning Progress Overlay ── */
.sandbox-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sandbox-loading-overlay.show {
    opacity: 1;
}

.sandbox-loading-overlay .loader-content {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sandbox-loading-overlay.show .loader-content {
    transform: scale(1);
}

.sandbox-loading-overlay .loader-spinner {
    font-size: 3.5rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
}

.sandbox-loading-overlay .loader-title {
    font-family: var(--mt-font-sans, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.sandbox-loading-overlay .loader-desc {
    font-family: var(--mt-font-sans, 'Inter', sans-serif);
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.sandbox-loading-overlay .progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.sandbox-loading-overlay .progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* ── Flat Enterprise Cloud Dashboard (Monochrome & Slate/Gray) ──────────── */
.db-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.db-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.db-breadcrumb-tag {
    font-size: 0.76rem;
    color: var(--mt-text-muted);
    font-weight: 600;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.db-title {
    font-family: var(--mt-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.45rem 0;
    color: var(--mt-text);
}

.db-subtitle {
    color: var(--mt-text-muted);
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
}

.db-header-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
}

.db-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--mt-border);
    background-color: var(--mt-surface);
    color: var(--mt-text);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--mt-transition);
    white-space: nowrap;
}

.db-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #71717a;
    color: #ffffff;
}

.db-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--mt-border);
    background-color: var(--mt-surface);
    color: var(--mt-text);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--mt-transition);
    white-space: nowrap;
}

.db-btn-back:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #71717a;
    color: #ffffff;
}

/* ── Quick KPI / Metrics Strip (Monochrome) ── */
.db-metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .db-metrics-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

.db-metric-card {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.db-metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    color: var(--mt-text-muted);
    border: 1px solid var(--mt-border);
}

.db-metric-info {
    display: flex;
    flex-direction: column;
}

.db-metric-label {
    font-size: 0.68rem;
    color: var(--mt-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.db-metric-val {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--mt-font-display);
    color: var(--mt-text);
}

/* Empty State Card */
.db-empty-card {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background-color: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 6px;
}

.db-empty-icon {
    font-size: 2.25rem;
    color: var(--mt-text-muted);
    opacity: 0.6;
    margin-bottom: 0.75rem;
}

.db-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
}

.db-empty-text {
    color: var(--mt-text-muted);
    font-size: 0.82rem;
    max-width: 440px;
    margin: 0 auto 1.15rem auto;
    line-height: 1.5;
}

/* Order Cards */
.db-orders-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.db-card {
    background-color: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--mt-transition);
}

.db-card:hover {
    border-color: #71717a;
}

.db-card-header {
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid var(--mt-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    background-color: rgba(255, 255, 255, 0.01);
}

.db-card-title-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.db-order-tag-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.db-order-id-badge {
    font-family: monospace;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--mt-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--mt-border);
}

.db-status-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--mt-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--mt-text);
}

.db-status-pill i {
    font-size: 0.38rem;
    color: #71717a;
}

.state-draft {
    border-color: #3f3f46;
    color: #a1a1aa;
}

.state-payment {
    border-color: #71717a;
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.06);
}

.state-verifying {
    border-color: #52525b;
    color: #e4e4e7;
}

.state-dns {
    border-color: #71717a;
    color: #ffffff;
}

.state-provisioning {
    border-color: #52525b;
    color: #e4e4e7;
}

.state-complete {
    border-color: #71717a;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.state-rejected {
    border-color: #52525b;
    color: #d4d4d8;
}

.db-packages {
    font-size: 0.78rem;
    color: var(--mt-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.db-packages i {
    color: var(--mt-text-muted);
}

.db-card-meta-col {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.db-badge-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--mt-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--mt-border);
}

/* Stepper Progress Bar (Monochrome) */
.db-stepper {
    padding: 1rem 0.85rem;
    border-bottom: 1px solid var(--mt-border);
    background-color: rgba(255, 255, 255, 0.01);
}

.db-stepper-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}

.db-step-line-bg {
    position: absolute;
    top: 14px;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: var(--mt-border);
    z-index: 1;
    border-radius: 1px;
}

.db-step-line-active {
    position: absolute;
    top: 14px;
    left: 5%;
    height: 2px;
    background: #71717a;
    z-index: 2;
    border-radius: 1px;
    transition: width 0.4s ease;
}

.db-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
}

.db-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--mt-surface);
    border: 1px solid var(--mt-border);
    color: var(--mt-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--mt-transition);
}

.db-step-label {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--mt-text-muted);
    transition: var(--mt-transition);
}

.db-step.active .db-step-circle {
    background-color: #27272a;
    border-color: #71717a;
    color: #ffffff;
}

.db-step.current .db-step-circle {
    box-shadow: 0 0 0 2px #71717a;
    border-color: #a1a1aa;
}

.db-step.active .db-step-label {
    color: var(--mt-text);
    font-weight: 700;
}

/* Stepper responsive adjustments */
@media (max-width: 600px) {
    .db-step-circle {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .db-step-line-bg,
    .db-step-line-active {
        top: 12px;
    }

    .db-step-label {
        font-size: 0.62rem;
    }
}

/* Interactive Workflow Steps Content Area */
.db-content {
    padding: 1.15rem;
}

/* Alerts (Monochrome & Gray) */
.db-alert {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    line-height: 1.45;
    font-size: 0.82rem;
    align-items: flex-start;
    border: 1px solid var(--mt-border);
    background: var(--mt-surface);
}

.db-alert-neutral {
    border-left: 3px solid #71717a !important;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--mt-text);
}

.db-alert-info {
    border-left: 3px solid #71717a !important;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--mt-text);
}

.db-alert-danger {
    border-left: 3px solid #a1a1aa !important;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--mt-text);
}

.db-alert-warning {
    border-left: 3px solid #71717a !important;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--mt-text);
}

.db-alert-success {
    border-left: 3px solid #52525b !important;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--mt-text);
}

.db-alert-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--mt-text-muted);
}

.db-alert-text {
    font-size: 0.8rem;
    margin: 0.15rem 0 0 0;
    color: var(--mt-text-muted);
}

.db-link-text {
    color: var(--mt-text);
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Info Box / Direct Transfer Instructions (Monochrome) */
.db-info-box {
    background-color: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-left: 3px solid #71717a;
    border-radius: 6px;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1rem;
}

.db-info-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--mt-text);
}

.db-info-desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--mt-text-muted);
}

.db-card-num-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.db-card-num-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mt-text-muted);
}

.db-mono-code {
    display: inline-block;
    background-color: var(--mt-bg);
    border: 1px solid var(--mt-border);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--mt-text);
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Form Styles */
.db-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    color: var(--mt-text);
}

.db-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--mt-border);
    background-color: var(--mt-bg);
    color: var(--mt-text);
    font-family: var(--mt-font-sans);
    font-size: 0.82rem;
    box-sizing: border-box;
    transition: var(--mt-transition);
}

.db-input:focus {
    outline: none;
    border-color: #71717a;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.db-input-hint {
    font-size: 0.7rem;
    color: var(--mt-text-muted);
    display: block;
    margin-top: 0.15rem;
}

.db-checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--mt-border);
    border-radius: 6px;
    background-color: var(--mt-surface);
    margin-bottom: 0.85rem;
    cursor: pointer;
    transition: var(--mt-transition);
}

.db-checkbox-container:hover {
    border-color: #71717a;
}

.db-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #71717a;
    cursor: pointer;
}

.db-checkbox-label {
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
    color: var(--mt-text);
}

.db-host-badge {
    font-size: 0.75rem;
    background-color: var(--mt-bg);
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-top: 0.45rem;
    border: 1px solid var(--mt-border);
}

/* Complete Live Stack Panel */
.db-complete-panel {
    display: flex;
    flex-direction: column;
}

.db-complete-header {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.db-complete-icon {
    font-size: 1.25rem;
    margin-top: 0.1rem;
    color: var(--mt-text-muted);
}

.db-complete-title {
    font-family: var(--mt-font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.2rem 0;
    color: var(--mt-text);
}

.db-launch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
    padding: 0.35rem 0;
}

.db-btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--mt-transition);
}

.db-btn-launch:hover {
    background: #3f3f46;
    border-color: #52525b;
    color: #ffffff;
}

.db-final-url {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--mt-text-muted);
}

/* Credentials Box (Monochrome) */
.db-credentials-box {
    background-color: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-left: 3px solid #52525b;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 0.85rem;
}

.db-cred-title {
    color: var(--mt-text);
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.db-cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--mt-border);
    font-size: 0.78rem;
}

.db-cred-row:last-of-type {
    border-bottom: none;
}

.db-cred-row code {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--mt-text);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid var(--mt-border);
}

.db-cred-hint {
    font-size: 0.7rem;
    color: var(--mt-text-muted);
    display: block;
    margin-top: 0.35rem;
}

.db-card-support-footer {
    margin-top: 0.85rem;
    border-top: 1px dashed var(--mt-border);
    padding-top: 0.65rem;
    display: flex;
    justify-content: flex-end;
}

.db-btn-support {
    background: transparent;
    border: 1px solid var(--mt-border);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    color: var(--mt-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--mt-transition);
}

.db-btn-support:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #71717a;
    color: #ffffff;
}

/* ── Collapsible Dashboard Cards ── */
.db-card-body-wrapper {
    max-height: 2000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.db-card.collapsed .db-card-body-wrapper {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.db-btn-toggle {
    background: none;
    border: none;
    color: var(--mt-text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--mt-transition);
    border-radius: 4px;
}

.db-btn-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.db-card.collapsed .db-btn-toggle i {
    transform: rotate(180deg);
}

/* ── Drag & Drop File Upload ── */
.db-file-upload-wrapper {
    position: relative;
    border: 1px dashed var(--mt-border);
    border-radius: 6px;
    padding: 1rem 0.85rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.04);
    transition: var(--mt-transition);
    cursor: pointer;
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.db-file-upload-wrapper:hover {
    border-color: #71717a;
    background: rgba(255, 255, 255, 0.04);
}

.db-file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.db-upload-icon {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    display: block;
    color: var(--mt-text-muted);
}

.db-form-label-title {
    font-size: 0.78rem;
    font-weight: 600;
    display: block;
    color: var(--mt-text);
}

.db-upload-hint {
    font-size: 0.68rem;
    color: var(--mt-text-muted);
    display: block;
    margin-top: 0.15rem;
}

/* ── Form Actions & Primary Submit Buttons ── */
.db-form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.db-btn-primary,
.db-container .mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.55rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--mt-transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.db-btn-primary:hover,
.db-container .mt-btn:hover {
    background-color: #3f3f46;
    border-color: #52525b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.db-btn-primary:active,
.db-container .mt-btn:active {
    transform: translateY(0);
}

.db-btn-primary i,
.db-container .mt-btn i {
    font-size: 0.85rem;
}

/* ── Floating Back to Top Button ── */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mt-primary) 0%, #4338ca 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

[dir="rtl"] .back-to-top-btn {
    right: auto;
    left: 2rem;
}

.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.6);
    cursor: pointer;
}

/* ── Contact Us Section ── */
.contact-us-section {
    padding: 6rem 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-mono-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mt-primary);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.25rem 0.8rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--mt-text);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--mt-text-muted);
    line-height: 1.6;
    margin: 0;
}

.contact-divider {
    width: 60px;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--mt-primary) 0%, #06b6d4 100%);
    margin: 1.25rem auto 0;
}

.contact-grid-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .contact-grid-container {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .contact-info-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
    color: var(--mt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.contact-info-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mt-text);
    margin: 0 0 0.2rem 0;
}

.contact-info-sub {
    font-size: 0.8rem;
    color: var(--mt-text-muted);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-info-item i {
    font-size: 1.15rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-info-item .info-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mt-text-muted);
    letter-spacing: 0.04em;
}

.contact-info-item .info-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mt-text);
    margin-top: 0.15rem;
}

.contact-form-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 600px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mt-text);
    margin-bottom: 0.45rem;
}

.contact-input,
.contact-textarea {
    width: 100%;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-family: inherit;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--mt-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

[data-theme="light"] .contact-input,
[data-theme="light"] .contact-textarea {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: var(--mt-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* ── Contact Form Captcha ── */
.contact-captcha-group {
    margin-bottom: 1.5rem;
}

.contact-captcha-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-captcha-svg-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--mt-text);
    flex-shrink: 0;
    line-height: 0;
}

[data-theme="light"] .contact-captcha-svg-box {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.contact-captcha-refresh-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--mt-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.contact-captcha-refresh-btn:hover {
    background: var(--mt-primary);
    color: #ffffff;
    transform: rotate(90deg);
}

.contact-captcha-input {
    flex: 1;
    min-width: 120px;
    letter-spacing: 0.05em;
    font-weight: 600;
}

[dir="rtl"] .contact-captcha-refresh-btn:hover,
.rtl .contact-captcha-refresh-btn:hover {
    transform: rotate(-90deg);
}

[dir="rtl"] .contact-captcha-input,
.rtl .contact-captcha-input {
    text-align: center;
    direction: ltr;
}

.contact-submit-btn {
    width: 100%;
    border-radius: 8px;
    padding: 0.85rem 1.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--mt-primary) 0%, #4338ca 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
    filter: brightness(1.05);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.contact-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.contact-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ── Standalone Blog & Liquid Showcase Styles ───────────────────────────────── */
.mt-reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mt-primary, #6366f1), var(--mt-accent, #d946ef));
    z-index: 99999;
    width: 0%;
    transition: width 0.1s ease-out;
}

.mt-blog-hero {
    position: relative;
    padding: 5rem 0 3.5rem;
    overflow: hidden;
    background: var(--mt-surface);
    border-bottom: 1px solid var(--mt-border);
}

.mt-blog-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--mt-primary-glow), transparent);
    pointer-events: none;
}

.mt-blog-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--mt-primary);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mt-blog-title {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--mt-text);
}

.mt-blog-subtitle {
    font-size: 0.92rem;
    color: var(--mt-text-muted);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.mt-blog-hero-container {
    z-index: 2;
    max-width: 1720px;
}

.mt-blog-content {
    max-width: 1720px;
}

.mt-articles-counter {
    font-size: 0.88rem;
}

.mt-post-meta-sub {
    font-size: 0.8rem;
}

.mt-post-author {
    font-size: 0.82rem;
}

/* ── Blog Category Filter Cards (Always 1 Line & Mobile Card Carousel) ── */
.mt-blog-filters-wrapper {
    position: relative;
    width: 100%;
    margin: 1.5rem auto 0;
    transition: padding-bottom 0.2s ease;
}

.mt-blog-filters-wrapper.has-nav-arrows {
    padding-bottom: 2.75rem;
}

.mt-blog-filters {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.85rem;
    margin: 0 auto;
    width: max-content;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    cursor: grab;
}

.mt-blog-filters.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-snap-type: none;
}

.mt-blog-filters::-webkit-scrollbar {
    display: none;
}

/* Scroll Arrow Navigation Buttons (Placed downer below cards to never overlap items) */
.mt-filters-nav-btn {
    position: absolute;
    bottom: 2px;
    top: auto;
    transform: none;
    z-index: 12;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    color: var(--mt-text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    font-size: 0.82rem;
}

.mt-filters-nav-left {
    left: 12px;
}

.mt-filters-nav-right {
    right: 12px;
}

.mt-filters-nav-btn:hover:not(.is-disabled) {
    background: var(--mt-primary);
    color: #ffffff;
    border-color: var(--mt-primary);
    box-shadow: 0 4px 16px var(--mt-primary-glow, rgba(99, 102, 241, 0.45));
    transform: scale(1.1);
}

.mt-filters-nav-btn:active:not(.is-disabled) {
    transform: scale(0.92);
}

.mt-filters-nav-btn.is-disabled {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.75);
}

.mt-filters-nav-btn.is-hidden {
    display: none !important;
}

.mt-filter-btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1rem;
    min-height: 44px;
    border-radius: 12px;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    color: var(--mt-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mt-filter-btn > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--mt-primary);
    font-size: 0.85rem;
    margin: 0 !important;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.mt-filter-label {
    display: inline-block;
    white-space: nowrap;
    transition: color 0.22s ease;
}

.mt-filter-btn:hover:not(.active) {
    background: var(--mt-surface);
    border-color: var(--mt-primary);
    color: var(--mt-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mt-filter-btn:hover:not(.active) > i {
    background: rgba(99, 102, 241, 0.18);
    transform: scale(1.08);
}

.mt-filter-btn.active {
    background: linear-gradient(135deg, var(--mt-primary) 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    border-color: var(--mt-primary) !important;
    box-shadow: 0 4px 16px var(--mt-primary-glow, rgba(99, 102, 241, 0.38)) !important;
    transform: translateY(-1px);
}

.mt-filter-btn.active > i {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.mt-filter-btn.active .mt-filter-label {
    color: #ffffff !important;
}

.mt-filter-btn:active {
    transform: scale(0.96) !important;
}

/* Mobile & Tablet Card Carousel Mode */
@media (max-width: 991.98px) {
    .mt-blog-filters-wrapper {
        width: calc(100% + 2rem);
        margin: 1rem -1rem 0;
        position: relative;
    }

    .mt-blog-filters-wrapper.has-nav-arrows {
        padding-bottom: 2.75rem;
    }

    .mt-blog-filters {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        gap: 0.5rem;
        padding: 0.5rem 1rem 0.85rem !important;
        margin-top: 0;
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%);
    }

    .mt-filters-nav-btn {
        bottom: 2px;
        top: auto;
        transform: none;
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .mt-filters-nav-left {
        left: 1rem;
    }

    .mt-filters-nav-right {
        right: 1rem;
    }

    .mt-filter-btn {
        min-height: 44px;
        padding: 0.5rem 0.95rem;
        font-size: 0.82rem;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 576px) {
    .mt-blog-filters-wrapper {
        width: calc(100% + 1.5rem);
        margin: 0.85rem -0.75rem 0;
    }

    .mt-blog-filters-wrapper.has-nav-arrows {
        padding-bottom: 2.5rem;
    }

    .mt-blog-filters {
        padding: 0.45rem 0.85rem 0.75rem !important;
        gap: 0.45rem;
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
    }

    .mt-filters-nav-btn {
        bottom: 2px;
        width: 34px;
        height: 34px;
        font-size: 0.76rem;
    }

    .mt-filters-nav-left {
        left: 0.75rem;
    }

    .mt-filters-nav-right {
        right: 0.75rem;
    }

    .mt-filter-btn {
        min-height: 42px;
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
        gap: 0.45rem;
    }

    .mt-filter-btn > i {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .mt-filter-label {
        font-size: 0.8rem;
    }
}

.mt-blog-spotlight {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    overflow: hidden;
    transition: var(--mt-transition);
    box-shadow: var(--mt-shadow);
}

.mt-blog-spotlight:hover {
    border-color: var(--mt-primary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.mt-spotlight-img-col {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(217, 70, 239, 0.05));
    overflow: hidden;
}

.mt-spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-spotlight-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.mt-spotlight-fallback-icon {
    font-size: 5rem;
    color: var(--mt-primary);
    opacity: 0.25;
}

.mt-spotlight-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(245, 158, 11, 0.9);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

[dir="rtl"] .mt-spotlight-tag {
    left: auto;
    right: 1rem;
}

.mt-cat-badge {
    background: rgba(99, 102, 241, 0.12);
    color: var(--mt-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.mt-reading-badge {
    font-size: 0.8rem;
    color: var(--mt-text-muted);
}

.mt-spotlight-title {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.mt-spotlight-title a {
    color: var(--mt-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mt-spotlight-title a:hover {
    color: var(--mt-primary);
}

.mt-spotlight-desc {
    color: var(--mt-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mt-spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mt-border);
}

.mt-btn-read {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--mt-primary);
    color: #ffffff;
    padding: 0.45rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--mt-transition);
}

.mt-btn-read:hover {
    background: var(--mt-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--mt-primary-glow);
}

.mt-blog-card {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    overflow: hidden;
    transition: var(--mt-transition);
    box-shadow: var(--mt-shadow);
}

.mt-blog-card:hover {
    cursor: pointer;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.mt-blog-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(217, 70, 239, 0.03));
}

.mt-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mt-blog-card:hover .mt-blog-card-img img {
    /* no movement */
}

.mt-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-card-icon {
    font-size: 3.5rem;
    color: var(--mt-primary);
    opacity: 0.25;
}

.mt-card-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .mt-card-badge {
    right: auto;
    left: 0.85rem;
}

.mt-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.mt-card-title a {
    color: var(--mt-text);
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mt-card-title a:hover {
    color: var(--mt-primary);
}

.mt-card-desc {
    font-size: 0.82rem;
    color: var(--mt-text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mt-card-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mt-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s ease;
}

.mt-card-link:hover {
    transform: translateX(3px);
}

[dir="rtl"] .mt-card-link:hover {
    cursor: pointer;
}

/* ── Blog Pagination ── */
.mt-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mt-border);
}

.mt-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.85rem;
    border-radius: 8px;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    color: var(--mt-text);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--mt-transition);
    user-select: none;
}

.mt-page-btn:hover:not(.disabled):not(.active) {
    border-color: var(--mt-primary);
    color: var(--mt-primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.mt-page-btn.active {
    background: var(--mt-primary);
    border-color: var(--mt-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--mt-primary-glow);
}

.mt-page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Post Detail Article Styles ── */
.mt-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mt-primary);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: var(--mt-transition);
}

.mt-back-link:hover {
    color: var(--mt-primary-hover);
    transform: translateX(-3px);
}

[dir="rtl"] .mt-back-link:hover {
    cursor: pointer;
}

.mt-post-article {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 2rem;
    box-shadow: var(--mt-shadow);
}

.mt-post-title {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--mt-text);
}

.mt-post-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.85rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--mt-border);
    border-bottom: 1px solid var(--mt-border);
}

.mt-post-hero-img {
    border-radius: var(--mt-radius);
    overflow: hidden;
    max-height: 420px;
    border: 1px solid var(--mt-border);
}

.mt-post-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-post-excerpt {
    border-left: 4px solid var(--mt-primary);
    background: rgba(99, 102, 241, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--mt-text-muted);
    font-style: italic;
}

[dir="rtl"] .mt-post-excerpt {
    border-left: none;
    border-right: 4px solid var(--mt-primary);
    border-radius: 8px 0 0 8px;
}

.mt-post-body {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--mt-text);
}

.mt-post-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--mt-border);
}

.mt-post-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}

.mt-post-body p {
    font-size: 0.92rem;
    margin-bottom: 1.1rem;
}

.mt-post-body ul,
.mt-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

[dir="rtl"] .mt-post-body ul,
[dir="rtl"] .mt-post-body ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

.mt-post-footer {
    border-top: 1px solid var(--mt-border);
}

.mt-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--mt-border);
    color: var(--mt-text-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mt-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--mt-border);
    color: var(--mt-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--mt-transition);
    text-decoration: none;
    font-size: 0.88rem;
}

.mt-share-btn:hover {
    background: var(--mt-primary);
    color: #ffffff;
    border-color: var(--mt-primary);
    cursor: pointer;
}

/* ── Table of Contents & Sidebar ── */
.mt-toc-card {
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius);
    padding: 1.5rem;
    box-shadow: var(--mt-shadow);
}

.mt-toc-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--mt-text);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--mt-border);
}

.mt-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mt-toc-item,
.mt-toc-subitem {
    margin: 0 !important;
    padding: 0 !important;
}

.mt-toc-link {
    color: var(--mt-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.mt-toc-bullet {
    font-size: 0.42rem;
    color: var(--mt-primary);
    margin-top: 0.45rem;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mt-toc-text {
    flex-grow: 1;
}

.mt-toc-link:hover {
    color: var(--mt-primary);
    cursor: pointer;
}

[dir="rtl"] .mt-toc-link:hover {
    cursor: pointer;
}

.mt-toc-link:hover .mt-toc-bullet {
    color: var(--mt-accent, #06b6d4);
}

.mt-sidebar-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(217, 70, 239, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--mt-radius);
    padding: 1.5rem;
}

/* ── Dynamic Liquid Showcase Components & Equal Sizing ── */
.hub-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mt-border);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    cursor: pointer;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

/* Equal Height & Width Grid Layout for Feature Boxes and Columns */
.hub-container .row.g-4 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.hub-container .row.g-4 > [class*="col-"] {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.hub-container .row.g-4 > [class*="col-"] > .glass-card {
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem !important;
    min-height: 185px;
}

.hub-container .row.g-4 > [class*="col-"] > .glass-card.d-flex,
.hub-container .row.g-4 > [class*="col-"] > .glass-card:has(.btn) {
    min-height: 245px;
}

.hub-container .glass-card h4 {
    font-size: 1.05rem !important;
    font-weight: 700;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem !important;
}

.hub-container .glass-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--mt-text-muted);
    flex-grow: 1;
    margin-bottom: 1rem !important;
}

/* Uniform Buttons Across All Cards */
.hub-container .glass-card .btn,
.hub-container .btn.w-100 {
    height: 42px;
    min-height: 42px;
    padding: 0.5rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: auto;
    width: 100%;
}

/* Border Accent Rules adapting to LTR and RTL */
.glass-card.border-start,
.glass-card.border-end {
    border-left: none !important;
    border-right: none !important;
    border-inline-start-width: 3.5px !important;
    border-inline-start-style: solid !important;
}

.glass-card.border-start.border-primary,
.glass-card.border-end.border-primary {
    border-inline-start-color: var(--mt-primary, #6366f1) !important;
}

.glass-card.border-start.border-success,
.glass-card.border-end.border-success {
    border-inline-start-color: #10b981 !important;
}

.glass-card.border-start.border-info,
.glass-card.border-end.border-info {
    border-inline-start-color: #06b6d4 !important;
}

.glass-card.border-start.border-warning,
.glass-card.border-end.border-warning {
    border-inline-start-color: #f59e0b !important;
}

.glass-card.border-start.border-danger,
.glass-card.border-end.border-danger {
    border-inline-start-color: #ef4444 !important;
}

.service-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: rgba(99, 102, 241, 0.12);
    color: var(--mt-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ── Icon-Only Buttons Centering & Zero Shift Guarantee ── */
.mt-icon-btn,
.mt-share-btn,
.back-to-top-btn,
.mt-theme-toggle,
.mt-user-dropdown-toggle,
.btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer !important;
    transform: none !important;
}

.mt-icon-btn i,
.mt-share-btn i,
.back-to-top-btn i,
.mt-theme-toggle i,
.mt-user-dropdown-toggle i,
.btn-icon i,
[dir="rtl"] .mt-icon-btn i,
[dir="rtl"] .mt-share-btn i,
[dir="rtl"] .back-to-top-btn i,
[dir="rtl"] .mt-theme-toggle i,
[dir="rtl"] .mt-user-dropdown-toggle i,
[dir="rtl"] .btn-icon i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    transform: none !important;
}

/* ── RTL Breadcrumb Divider & Item Alignment Fix ───────────────────────── */
[dir="rtl"] .breadcrumb-item + .breadcrumb-item,
body[dir="rtl"] .breadcrumb-item + .breadcrumb-item,
.rtl .breadcrumb-item + .breadcrumb-item {
    padding-right: var(--bs-breadcrumb-item-padding-x, 0.5rem) !important;
    padding-left: 0 !important;
}

[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before,
body[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before,
.rtl .breadcrumb-item + .breadcrumb-item::before {
    float: right !important;
    padding-right: 0 !important;
    padding-left: var(--bs-breadcrumb-item-padding-x, 0.5rem) !important;
}


/* ── Product Sandbox Credentials Box ──────────────────────────────────── */
.product-sandbox-creds {
    width: 100%;
    margin-top: 1rem;
    background: rgba(241, 245, 249, 0.75);
    border: 1px solid var(--mt-border, rgba(226, 232, 240, 0.8));
    border-radius: 12px;
    padding: 0.65rem 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--mt-transition);
}

details.product-sandbox-creds summary.sandbox-cred-header {
    cursor: pointer;
    user-select: none;
    list-style: none;
    outline: none;
}

details.product-sandbox-creds summary.sandbox-cred-header::-webkit-details-marker,
details.product-sandbox-creds summary.sandbox-cred-header::marker {
    display: none;
}

.sandbox-cred-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
    font-size: 0.82rem;
    transition: var(--mt-transition);
}

details.product-sandbox-creds:not([open]) .sandbox-cred-header {
    border-bottom: none;
}

details.product-sandbox-creds:not([open]) .sandbox-cred-pass {
    display: none;
}

details.product-sandbox-creds[open] {
    padding-bottom: 0.85rem;
}

details.product-sandbox-creds[open] .sandbox-cred-header {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.sandbox-cred-header-title {
    font-weight: 700;
    color: var(--mt-text, #0f172a);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--mt-transition);
}

details.product-sandbox-creds summary:hover .sandbox-cred-header-title {
    color: var(--mt-primary);
}

.sandbox-cred-header-side {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.sandbox-cred-chevron {
    font-size: 0.75rem;
    color: var(--mt-text-muted, #64748b);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

details.product-sandbox-creds[open] .sandbox-cred-chevron {
    transform: rotate(180deg);
}

details.product-sandbox-creds summary:hover .sandbox-cred-chevron {
    color: var(--mt-primary);
}

.sandbox-cred-pass {
    color: var(--mt-text-muted, #64748b);
    font-size: 0.8rem;
    cursor: default;
}

.sandbox-cred-pass code {
    font-family: var(--mt-font-mono, monospace);
    font-size: 0.82rem;
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
    user-select: all;
    -webkit-user-select: all;
}

.sandbox-cred-rows {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    animation: fadeInCreds 0.2s ease;
}

@keyframes fadeInCreds {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sandbox-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    gap: 0.5rem;
}

.sandbox-cred-role-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--mt-text, #334155);
    font-weight: 500;
}

.sandbox-cred-role-label.admin i {
    color: #2563eb;
}

.sandbox-cred-role-label.user i {
    color: #059669;
}

.sandbox-cred-username {
    font-family: var(--mt-font-mono, monospace);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mt-text, #0f172a);
    background: #ffffff;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.3px;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
}

/* ── Dark Theme: Product Sandbox Credentials ── */
[data-theme="dark"] .product-sandbox-creds {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] details.product-sandbox-creds[open] .sandbox-cred-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .sandbox-cred-header-title {
    color: var(--mt-text, #f1f5f9);
}

[data-theme="dark"] .sandbox-cred-pass {
    color: #94a3b8;
}

[data-theme="dark"] .sandbox-cred-chevron {
    color: #94a3b8;
}

[data-theme="dark"] .sandbox-cred-pass code {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .sandbox-cred-role-label {
    color: #cbd5e1;
}

[data-theme="dark"] .sandbox-cred-role-label.admin i {
    color: #60a5fa;
}

[data-theme="dark"] .sandbox-cred-role-label.user i {
    color: #34d399;
}

[data-theme="dark"] .sandbox-cred-username {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

/* ── Table & Table Header Theme Adaptations (.table-light & Glass Cards) ── */
[data-theme="dark"] .table .table-light,
[data-theme="dark"] thead.table-light,
[data-theme="dark"] thead.table-light th,
[data-theme="dark"] thead.table-light td,
[data-bs-theme="dark"] .table .table-light,
[data-bs-theme="dark"] thead.table-light,
[data-bs-theme="dark"] thead.table-light th,
[data-bs-theme="dark"] thead.table-light td {
    --bs-table-bg: rgba(255, 255, 255, 0.05);
    --bs-table-color: #f8fafc;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-striped-color: #f8fafc;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.08);
    --bs-table-hover-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    border-bottom: 2px solid rgba(99, 102, 241, 0.35) !important;
}

[data-theme="light"] .table .table-light,
[data-theme="light"] thead.table-light,
[data-theme="light"] thead.table-light th,
[data-theme="light"] thead.table-light td,
[data-bs-theme="light"] .table .table-light,
[data-bs-theme="light"] thead.table-light,
[data-bs-theme="light"] thead.table-light th,
[data-bs-theme="light"] thead.table-light td {
    --bs-table-bg: rgba(99, 102, 241, 0.05);
    --bs-table-color: #0f172a;
    --bs-table-border-color: rgba(99, 102, 241, 0.15);
    --bs-table-striped-bg: rgba(99, 102, 241, 0.025);
    --bs-table-striped-color: #0f172a;
    --bs-table-hover-bg: rgba(99, 102, 241, 0.08);
    --bs-table-hover-color: #0f172a;
    background-color: rgba(99, 102, 241, 0.05) !important;
    color: #0f172a !important;
    border-bottom: 2px solid rgba(99, 102, 241, 0.25) !important;
}

/* Glass Card Table Component Consistency */
.glass-card .table {
    --bs-table-bg: transparent;
    color: var(--mt-text);
    margin-bottom: 0;
    vertical-align: middle;
}

.glass-card .table thead th {
    padding: 0.9rem 1.1rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    vertical-align: middle;
    white-space: nowrap;
}

.glass-card .table tbody td {
    padding: 0.9rem 1.1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--mt-border);
    color: var(--mt-text);
    font-size: 0.9rem;
}

.glass-card .table tbody tr:last-child td {
    border-bottom: none;
}

.glass-card .table tbody tr {
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .glass-card .table tbody tr:hover,
[data-bs-theme="dark"] .glass-card .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.035);
}

[data-theme="light"] .glass-card .table tbody tr:hover,
[data-bs-theme="light"] .glass-card .table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.03);
}

/* Flat Header UI/UX (Clean, crisp edge-to-edge styling) */
.glass-card .table thead th,
.table thead th,
.table thead tr th,
.table-light th,
thead.table-light th {
    border-radius: 0 !important;
}

/* Code badges inside table */
.glass-card .table code {
    font-family: var(--mt-font-mono, monospace);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
}

[data-theme="dark"] .glass-card .table code,
[data-bs-theme="dark"] .glass-card .table code {
    background: rgba(99, 102, 241, 0.14);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

[data-theme="light"] .glass-card .table code,
[data-bs-theme="light"] .glass-card .table code {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.18);
}

/* ── Badges & Icon Spacing Enhancement ────────────────────────────────── */
.badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    padding: 0.42em 0.8em !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

.badge > i,
.badge i {
    margin-right: 0.45rem;
    display: inline-block;
    vertical-align: middle;
}

[dir="rtl"] .badge > i,
[dir="rtl"] .badge i {
    margin-left: 0.45rem !important;
    margin-right: 0 !important;
}



