/* ==========================================================================
   SMARTTOOLFORGE.COM — GLOBAL DESIGN SYSTEM & THEME TOKENS
   "Smart Tools. Real Results."
   ========================================================================== */

:root {
    /* Brand Accent Colors */
    --stf-primary: #2563eb;
    --stf-primary-hover: #1d4ed8;
    --stf-indigo: #4f46e5;
    --stf-emerald: #10b981;
    --stf-cyan: #06b6d4;
    --stf-amber: #f59e0b;
    --stf-rose: #f43f5e;

    /* Light Theme (Default) */
    --stf-bg: #f8fafc;
    --stf-surface: #ffffff;
    --stf-surface-hover: #f1f5f9;
    --stf-surface-border: #e2e8f0;
    --stf-text: #0f172a;
    --stf-text-muted: #64748b;
    --stf-text-subtle: #94a3b8;
    
    /* Gradients */
    --stf-hero-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(79, 70, 229, 0.03) 100%);
    --stf-card-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --stf-accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --stf-accent-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);

    /* Shadows & Radii */
    --stf-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --stf-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --stf-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --stf-radius: 12px;
    --stf-radius-sm: 8px;
    --stf-radius-lg: 16px;
    
    --stf-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   DARK THEME VARIABLES
   ========================================================================== */
html[data-theme="dark"] {
    --stf-bg: #0b0f19;
    --stf-surface: #131b2e;
    --stf-surface-hover: #1a253e;
    --stf-surface-border: #1e293b;
    --stf-text: #f8fafc;
    --stf-text-muted: #94a3b8;
    --stf-text-subtle: #64748b;
    
    --stf-hero-gradient: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(79, 70, 229, 0.08) 100%);
    --stf-card-gradient: linear-gradient(180deg, #131b2e 0%, #0f172a 100%);
    --stf-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    
    --stf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --stf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --stf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Base Body Styles */
body {
    background-color: var(--stf-bg) !important;
    color: var(--stf-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.25s ease, color 0.25s ease;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Header & Footer Theme Adapters */
html[data-theme="dark"] .stf-site-header {
    background-color: #0d1322 !important;
    border-bottom-color: #1e293b !important;
}
html[data-theme="dark"] .stf-site-header a {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .stf-site-header a:hover {
    color: #60a5fa !important;
}

/* Floating Controls Bar (Fixed Bottom Right on Desktop / Bottom Center on Mobile) */
.stf-controls-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--stf-surface);
    border: 1px solid var(--stf-surface-border);
    padding: 6px 10px;
    border-radius: 9999px;
    box-shadow: var(--stf-shadow-lg);
    backdrop-filter: blur(8px);
    transition: var(--stf-transition);
}

.stf-control-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--stf-text);
    transition: var(--stf-transition);
}
.stf-control-btn:hover {
    background: var(--stf-surface-hover);
}

/* Sun/Moon Toggle */
html[data-theme="light"] .stf-theme-icon-sun { display: none; }
html[data-theme="light"] .stf-theme-icon-moon { display: inline-block; }
html[data-theme="dark"] .stf-theme-icon-sun { display: inline-block; }
html[data-theme="dark"] .stf-theme-icon-moon { display: none; }

/* Language Dropdown */
.stf-lang-wrapper {
    position: relative;
}
.stf-lang-dropdown {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 170px;
    background: var(--stf-surface);
    border: 1px solid var(--stf-surface-border);
    border-radius: var(--stf-radius);
    padding: 6px 0;
    box-shadow: var(--stf-shadow-lg);
    display: none;
    flex-direction: column;
}
.stf-lang-dropdown.open {
    display: flex;
}
.stf-lang-item {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--stf-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.stf-lang-item:hover, .stf-lang-item.active {
    background: var(--stf-surface-hover);
    color: var(--stf-primary);
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}
html[dir="rtl"] .stf-controls-bar {
    right: auto;
    left: 24px;
}
html[dir="rtl"] .stf-lang-dropdown {
    right: auto;
    left: 0;
}

/* ==========================================================================
   SMART CALCULATOR COMPONENT ARCHITECTURE
   ========================================================================== */
.stf-calculator-card {
    background: var(--stf-surface);
    border: 1px solid var(--stf-surface-border);
    border-radius: var(--stf-radius-lg);
    box-shadow: var(--stf-shadow-md);
    padding: 32px;
    margin: 20px 0 40px;
    transition: var(--stf-transition);
}

.stf-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
@media (max-width: 900px) {
    .stf-calc-grid {
        grid-template-columns: 1fr;
    }
}

.stf-form-group {
    margin-bottom: 20px;
}
.stf-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--stf-text);
    margin-bottom: 8px;
}
.stf-form-group .stf-helper-text {
    font-size: 12px;
    color: var(--stf-text-muted);
    margin-top: 4px;
}

.stf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.stf-input-prefix, .stf-input-suffix {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    color: var(--stf-text-muted);
    pointer-events: none;
}
.stf-input-prefix { left: 14px; }
.stf-input-suffix { right: 14px; }

.stf-input-field {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--stf-text);
    background: var(--stf-bg);
    border: 1.5px solid var(--stf-surface-border);
    border-radius: var(--stf-radius-sm);
    box-sizing: border-box;
    transition: var(--stf-transition);
}
.stf-input-field:focus {
    outline: none;
    border-color: var(--stf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.stf-has-prefix .stf-input-field { padding-left: 32px; }
.stf-has-suffix .stf-input-field { padding-right: 36px; }

/* Result Highlight Cards */
.stf-result-box {
    background: var(--stf-hero-gradient);
    border: 1.5px solid var(--stf-surface-border);
    border-radius: var(--stf-radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}
.stf-result-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--stf-primary);
    margin-bottom: 6px;
}
.stf-result-val {
    font-size: 36px;
    font-weight: 800;
    color: var(--stf-text);
    line-height: 1.1;
}
.stf-result-sub {
    font-size: 13px;
    color: var(--stf-text-muted);
    margin-top: 8px;
}

/* Metric Breakdown Tiles */
.stf-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.stf-metric-tile {
    background: var(--stf-bg);
    border: 1px solid var(--stf-surface-border);
    border-radius: var(--stf-radius-sm);
    padding: 12px;
    text-align: center;
}
.stf-metric-tile .tile-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--stf-text-muted);
    text-transform: uppercase;
}
.stf-metric-tile .tile-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--stf-text);
    margin-top: 4px;
}

/* Presets & Actions */
.stf-calc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}
.stf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--stf-radius-sm);
    cursor: pointer;
    transition: var(--stf-transition);
    border: 1px solid transparent;
    text-decoration: none;
}
.stf-btn-primary {
    background: var(--stf-accent-gradient);
    color: #ffffff !important;
}
.stf-btn-primary:hover {
    background: var(--stf-accent-gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.stf-btn-outline {
    background: transparent;
    color: var(--stf-text);
    border-color: var(--stf-surface-border);
}
.stf-btn-outline:hover {
    background: var(--stf-surface-hover);
}
.stf-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Informational Content Styling (Editorial ~1500 words) */
.stf-editorial-content {
    line-height: 1.75;
    font-size: 16px;
    color: var(--stf-text);
    max-width: 860px;
    margin: 0 auto;
}
.stf-editorial-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--stf-text);
    margin: 40px 0 16px;
    letter-spacing: -0.5px;
}
.stf-editorial-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--stf-text);
    margin: 28px 0 12px;
}
.stf-editorial-content p {
    color: var(--stf-text-muted);
    margin-bottom: 20px;
}
.stf-editorial-content ul, .stf-editorial-content ol {
    color: var(--stf-text-muted);
    margin-bottom: 24px;
    padding-left: 24px;
}
.stf-editorial-content li {
    margin-bottom: 8px;
}

/* Formula Block */
.stf-formula-card {
    background: var(--stf-bg);
    border-left: 4px solid var(--stf-primary);
    border-radius: 0 var(--stf-radius-sm) var(--stf-radius-sm) 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--stf-text);
}

/* Comparison & FAQ Tables */
.stf-table-wrap {
    overflow-x: auto;
    margin: 28px 0;
    border-radius: var(--stf-radius);
    border: 1px solid var(--stf-surface-border);
}
.stf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}
.stf-table th {
    background: var(--stf-surface-hover);
    color: var(--stf-text);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--stf-surface-border);
}
.stf-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--stf-surface-border);
    color: var(--stf-text-muted);
}
.stf-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Accordions */
.stf-faq-item {
    border: 1px solid var(--stf-surface-border);
    border-radius: var(--stf-radius-sm);
    margin-bottom: 12px;
    background: var(--stf-surface);
}
.stf-faq-question {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--stf-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stf-faq-answer {
    padding: 0 20px 16px;
    font-size: 15px;
    color: var(--stf-text-muted);
    line-height: 1.6;
}



/* ==========================================================================
   ANIMATED HERO BANNER & DASHBOARD COMPONENT
   ========================================================================== */
.stf-hero-banner-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    perspective: 1000px;
}

.stf-banner-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at 60% 40%, rgba(37, 99, 235, 0.18) 0%, rgba(79, 70, 229, 0.12) 50%, transparent 75%);
    border-radius: 30px;
    filter: blur(28px);
    z-index: 1;
    animation: stfPulseGlow 6s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes stfPulseGlow {
    0% { transform: scale(0.94); opacity: 0.5; }
    100% { transform: scale(1.06); opacity: 0.85; }
}

.stf-banner-card {
    position: relative;
    z-index: 2;
    background: var(--stf-surface);
    border: 1.5px solid var(--stf-surface-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    backdrop-filter: blur(12px);
}
.stf-banner-card:hover {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.18), 0 0 0 1.5px rgba(37, 99, 235, 0.3);
}

.stf-bcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--stf-surface-border);
    margin-bottom: 18px;
}
.stf-bcard-dots {
    display: flex;
    gap: 6px;
}
.stf-bcard-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot-red { background: #f43f5e; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.stf-bcard-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--stf-text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.pulse-indicator {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
    animation: stfPulseDot 1.8s infinite;
}
@keyframes stfPulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.stf-bcard-badge {
    font-size: 10px;
    font-weight: 800;
    color: var(--stf-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.stf-bcard-metric-block {
    margin-bottom: 14px;
}
.stf-bcard-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bcard-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--stf-text-muted);
}
.bcard-growth {
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
}
.stf-bcard-val {
    font-size: 38px;
    font-weight: 900;
    color: var(--stf-text);
    line-height: 1.1;
    margin: 4px 0 2px;
    letter-spacing: -0.5px;
    transition: color 0.2s;
}
.bcard-period {
    font-size: 16px;
    font-weight: 600;
    color: var(--stf-text-muted);
}
.stf-bcard-sub {
    font-size: 12.5px;
    color: var(--stf-text-muted);
}

.stf-bcard-chart-wrap {
    margin: 12px 0 16px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--stf-bg);
    border: 1px solid var(--stf-surface-border);
}
.stf-bcard-svg {
    width: 100%;
    height: auto;
    display: block;
}

.stf-chart-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: stfDrawLine 2.2s ease-out forwards;
}
@keyframes stfDrawLine {
    to { stroke-dashoffset: 0; }
}

.stf-beacon-pulse {
    transform-origin: 390px 18px;
    animation: stfRadar 2s infinite ease-out;
}
@keyframes stfRadar {
    0% { transform: scale(0.4); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}

.stf-bcard-slider-box {
    background: var(--stf-bg);
    border: 1px solid var(--stf-surface-border);
    border-radius: 12px;
    padding: 12px 14px;
}
.stf-slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--stf-text);
    margin-bottom: 8px;
}
.stf-range-input {
    width: 100%;
    accent-color: var(--stf-primary);
    cursor: pointer;
    margin: 0;
}

/* Floating Micro Chips */
.stf-float-chip {
    position: absolute;
    background: var(--stf-surface);
    border: 1px solid var(--stf-surface-border);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
    z-index: 5;
    animation: stfFloatSlow 4s ease-in-out infinite alternate;
}
.chip-top-right {
    top: -16px;
    right: -24px;
    animation-delay: 0s;
}
.chip-bottom-left {
    bottom: -18px;
    left: -24px;
    animation-delay: 2s;
}
@keyframes stfFloatSlow {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.stf-float-chip .chip-icon {
    font-size: 20px;
}
.stf-float-chip .chip-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--stf-text);
    line-height: 1.2;
}
.stf-float-chip .chip-desc {
    font-size: 11px;
    color: var(--stf-text-muted);
}

@media (max-width: 768px) {
    .stf-float-chip {
        display: none; /* Hide floating chips on narrow mobile screens to avoid side overflow */
    }
}

/* ==========================================================================
   ENHANCED HOVER EFFECTS & CARD MICRO-INTERACTIONS
   ========================================================================== */
.stf-tool-card-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.25s ease !important;
}

.stf-tool-card-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stf-accent-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stf-tool-card-item:hover {
    transform: translateY(-8px) scale(1.015) !important;
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.3) !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
}

.stf-tool-card-item:hover::before {
    opacity: 1;
}

.stf-tool-card-item:hover .stf-tool-launch-arrow {
    transform: translateX(6px);
}

/* Button Shimmer Effect */
.stf-btn-primary {
    position: relative;
    overflow: hidden;
}
.stf-btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: rotate(25deg) translateY(-100%);
    transition: transform 0.65s ease;
}
.stf-btn-primary:hover::after {
    transform: rotate(25deg) translateY(100%);
}

.stf-btn-outline:hover {
    border-color: var(--stf-primary) !important;
    color: var(--stf-primary) !important;
    transform: translateY(-2px);
}


/* Header & Navbar Sizing & Alignment — DigiCloudTools Parity */
.stf-site-header {
    height: 4.25rem !important; /* 68px header height matching DigiCloudTools */
    min-height: 4.25rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: background-color 0.25s ease, border-color 0.25s ease !important;
}

html[data-theme="dark"] .stf-site-header {
    background: rgba(11, 15, 25, 0.98) !important;
    border-bottom-color: #1e293b !important;
}

.stf-site-header .xpro-site-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.stf-site-header .xpro-site-logo a {
    display: inline-flex !important;
    align-items: center !important;
}

.stf-site-header .xpro-site-logo img {
    height: 52px !important;
    max-height: 54px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
    vertical-align: middle !important;
    transition: transform 0.2s ease !important;
}

.stf-site-header .xpro-site-logo a:hover img {
    transform: scale(1.02) !important;
}

/* Middle Navigation Bar Alignment */
.stf-site-header .elementor-widget-xpro-horizontal-menu {
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 20px !important;
}

.stf-site-header .elementor-widget-xpro-horizontal-menu .xpro-elementor-horizontal-navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.stf-site-header .xpro-elementor-horizontal-navbar-nav > li {
    position: relative !important;
}

.stf-site-header .xpro-elementor-horizontal-navbar-nav > li > a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
}

html[data-theme="dark"] .stf-site-header .xpro-elementor-horizontal-navbar-nav > li > a {
    color: #94a3b8 !important;
}

.stf-site-header .xpro-elementor-horizontal-navbar-nav > li > a:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.05) !important;
}

html[data-theme="dark"] .stf-site-header .xpro-elementor-horizontal-navbar-nav > li > a:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.1) !important;
}

/* Dropdown Sub-menu Styling */
.stf-site-header .xpro-elementor-horizontal-navbar-nav ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 250px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05) !important;
    padding: 8px 0 !important;
    margin: 4px 0 0 !important;
    list-style: none !important;
    z-index: 1001 !important;
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

html[data-theme="dark"] .stf-site-header .xpro-elementor-horizontal-navbar-nav ul.sub-menu {
    background: #0f172a !important;
    border-color: #1e293b !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

.stf-site-header .xpro-elementor-horizontal-navbar-nav li:hover > ul.sub-menu {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.stf-site-header .xpro-elementor-horizontal-navbar-nav ul.sub-menu li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.stf-site-header .xpro-elementor-horizontal-navbar-nav ul.sub-menu li a {
    display: block !important;
    padding: 8px 18px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease !important;
}

html[data-theme="dark"] .stf-site-header .xpro-elementor-horizontal-navbar-nav ul.sub-menu li a {
    color: #cbd5e1 !important;
}

.stf-site-header .xpro-elementor-horizontal-navbar-nav ul.sub-menu li a:hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
    padding-left: 22px !important;
}

html[data-theme="dark"] .stf-site-header .xpro-elementor-horizontal-navbar-nav ul.sub-menu li a:hover {
    background: #1e293b !important;
    color: #38bdf8 !important;
}

/* Right Header Actions Group (CTA + Theme + Lang) */
.stf-header-actions-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.stf-header-cta-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 9px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2) !important;
}

.stf-header-cta-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3) !important;
    color: #ffffff !important;
}

.stf-header-toggles {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.stf-header-icon-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

html[data-theme="dark"] .stf-header-icon-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

.stf-header-icon-btn:hover {
    border-color: #2563eb !important;
    background: #ffffff !important;
    transform: translateY(-1px) !important;
}

html[data-theme="dark"] .stf-header-icon-btn:hover {
    border-color: #38bdf8 !important;
    background: #0f172a !important;
}

.stf-lang-btn {
    width: auto !important;
    padding: 0 10px !important;
    gap: 5px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

html[data-theme="dark"] .stf-lang-btn {
    color: #cbd5e1 !important;
}
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15) !important;
}

.stf-site-header .xpro-elementor-button:hover,
.stf-site-header .elementor-button:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 991px) {
    .stf-site-header .xpro-elementor-horizontal-navbar-nav {
        gap: 8px !important;
    }
    .stf-site-header .xpro-elementor-horizontal-navbar-nav > li > a {
        font-size: 12px !important;
        padding: 4px 6px !important;
    }
}

@media (max-width: 768px) {
    .stf-site-header {
        height: auto !important;
        min-height: 56px !important;
        padding: 8px 16px !important;
    }
    .stf-site-header .xpro-site-logo img {
        height: 38px !important;
        max-width: 170px !important;
    }
}

.stf-site-footer .xpro-site-logo img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 230px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Footer High-Contrast Typography & Link Styles */
.stf-site-footer {
    background-color: #0b0f19 !important;
    border-top: 1px solid #1e293b !important;
}

.stf-site-footer .xpro-heading-wrapper {
    margin: 0 !important;
}

.stf-site-footer .xpro-heading-title {
    margin: 0 !important;
    line-height: 1.5 !important;
}

.stf-site-footer .xpro-elementor-button {
    padding: 3px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
}

.stf-site-footer .xpro-elementor-button .xpro-elementor-button-inner {
    justify-content: flex-start !important;
    text-align: left !important;
}

.stf-site-footer .xpro-elementor-button .xpro-button-text {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    display: inline-block !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.stf-site-footer .xpro-elementor-button:hover .xpro-button-text {
    color: #38bdf8 !important;
    transform: translateX(4px) !important;
}

html[data-theme="dark"] .stf-site-header .xpro-site-logo img {
    /* Pristine dark mode SVG/PNG handled directly */
    filter: none !important;
}

/* Ensure single line navbar alignment on desktop */
@media (min-width: 992px) {
    .stf-site-header .elementor-widget-xpro-horizontal-menu .xpro-elementor-horizontal-navbar-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 18px !important;
    }
    .stf-site-header .xpro-elementor-horizontal-navbar-nav > li > a {
        padding: 8px 12px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   PHASE 8: MONETIZATION & GOOGLE ADSENSE ARCHITECTURE
   Non-intrusive, CLS-protected ad containers with policy labels
   ========================================================================== */
.stf-ad-zone {
    margin: 32px auto;
    text-align: center;
    position: relative;
    clear: both;
    width: 100%;
}

.stf-ad-zone::before {
    content: "ADVERTISEMENT";
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--stf-text-muted);
    opacity: 0.65;
    margin-bottom: 6px;
}

.stf-ad-leaderboard {
    min-height: 90px;
    max-width: 728px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stf-ad-rectangle {
    min-height: 250px;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stf-ad-in-content {
    margin: 36px auto;
    padding: 16px 0;
    border-top: 1px dashed var(--stf-surface-border);
    border-bottom: 1px dashed var(--stf-surface-border);
}

.stf-ad-placeholder {
    background: var(--stf-surface);
    border: 1px dashed var(--stf-surface-border);
    border-radius: var(--stf-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--stf-text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 20px;
    min-height: 90px;
    transition: var(--stf-transition);
}

.stf-ad-placeholder span {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

/* Ensure ads never overlap interactive tool inputs or sliders */
.stf-calc-grid,
.stf-calculator-card {
    position: relative;
    z-index: 10;
}



/* === STF HEADER PRECISION === */
.stf-site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    min-height: 96px !important;
    padding: 10px 32px !important;
}

/* 1. Enlarged Logo (+30% more display size) */
.stf-site-header .elementor-widget-xpro-site-logo {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    margin-right: 32px !important;
}

.stf-site-header .elementor-widget-xpro-site-logo img {
    height: 80px !important;
    width: auto !important;
    max-width: 370px !important;
    object-fit: contain !important;
    display: block !important;
}

/* 2. Push Navigation Items to the Right Side Proportionately */
.stf-site-header .elementor-widget-xpro-horizontal-menu {
    margin-left: auto !important;
    flex: 0 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
}

.stf-site-header .xpro-elementor-horizontal-navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.stf-site-header ul.xpro-elementor-horizontal-navbar-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.stf-site-header ul.xpro-elementor-horizontal-navbar-nav > li.nav-item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Refined Font Size & Link Spacing */
.stf-site-header .xpro-elementor-nav-link.menu-link {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 6px 6px !important;
    white-space: nowrap !important;
    letter-spacing: -0.1px !important;
    transition: color 0.15s ease, background-color 0.15s ease !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
    line-height: 1.4 !important;
}

.stf-site-header .xpro-elementor-nav-link.menu-link:hover,
.stf-site-header li.current-menu-item > .xpro-elementor-nav-link.menu-link,
.stf-site-header li.active > .xpro-elementor-nav-link.menu-link {
    color: #2563eb !important;
    background-color: rgba(37, 99, 235, 0.05) !important;
}

html[data-theme="dark"] .stf-site-header .xpro-elementor-nav-link.menu-link {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .stf-site-header .xpro-elementor-nav-link.menu-link:hover,
html[data-theme="dark"] .stf-site-header li.current-menu-item > .xpro-elementor-nav-link.menu-link,
html[data-theme="dark"] .stf-site-header li.active > .xpro-elementor-nav-link.menu-link {
    color: #60a5fa !important;
    background-color: rgba(96, 165, 250, 0.1) !important;
}

/* 4. Equal Space between Disclaimer and Explore Tools Button */
.stf-site-header .elementor-widget-button {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    margin-left: 20px !important;
}

.stf-site-header .elementor-widget-button .elementor-button {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 9px 20px !important;
    min-height: 40px !important;
    border-radius: 10px !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
    transition: all 0.2s ease !important;
}

.stf-site-header .elementor-widget-button .elementor-button:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}


/* ==========================================================================
   SMARTTOOLFORGE.COM — CURRENCY SWITCHER, SHARE MODAL & SOCIAL FOOTER STYLES
   ========================================================================== */

/* 1. Calculator Header Toolbar */
.stf-tool-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--stf-surface-border);
}

.stf-tool-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stf-tool-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--stf-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
}

.stf-client-badge {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--stf-text-muted);
    background: var(--stf-bg);
    border: 1px solid var(--stf-surface-border);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stf-tool-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}

/* Colorful Social Share Strip (Above Currency & Share Tool) */
.stf-header-social-strip {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stf-header-social-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--stf-text-muted);
}

.stf-header-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stf-header-social-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0 !important;
}

.stf-header-social-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--stf-text-muted);
    flex-shrink: 0 !important;
}

.stf-header-social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
}

.stf-color-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    flex: 0 0 28px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border-radius: 6px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, filter 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.stf-color-btn:hover {
    transform: translateY(-2.5px) scale(1.08);
}

.stf-color-btn:active {
    transform: translateY(0) scale(0.98);
}

.stf-color-btn svg {
    display: block;
}

.stf-cb-whatsapp { background: #25D366; }
.stf-cb-whatsapp:hover { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45); }

.stf-cb-x { background: #0f172a; }
.stf-cb-x:hover { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.45); }

.stf-cb-facebook { background: #1877F2; }
.stf-cb-facebook:hover { box-shadow: 0 4px 12px rgba(24, 119, 242, 0.45); }

.stf-cb-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.stf-cb-instagram:hover {
    box-shadow: 0 4px 12px rgba(214, 36, 159, 0.45);
}

.stf-cb-pinterest {
    background: #E60023;
}
.stf-cb-pinterest:hover {
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.45);
}


.stf-cb-linkedin { background: #0A66C2; }
.stf-cb-linkedin:hover { box-shadow: 0 4px 12px rgba(10, 102, 194, 0.45); }

.stf-cb-email { background: #EA4335; }
.stf-cb-email:hover { box-shadow: 0 4px 12px rgba(234, 67, 53, 0.45); }

.stf-header-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .stf-tool-header-bar {
        align-items: flex-start;
    }
    .stf-tool-header-actions {
        width: 100%;
        align-items: flex-start;
    }
    .stf-header-social-strip {
        width: 100%;
        justify-content: flex-start;
    }
    .stf-header-controls-row {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* 2. Currency Selector Controls */
.stf-currency-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--stf-bg);
    border: 1.5px solid var(--stf-surface-border);
    border-radius: var(--stf-radius-sm);
    padding: 4px 8px;
    transition: var(--stf-transition);
}

.stf-currency-control:hover,
.stf-currency-control:focus-within {
    border-color: var(--stf-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.stf-currency-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--stf-text-muted);
    white-space: nowrap;
    margin: 0;
}

.stf-currency-select {
    background: transparent;
    border: none;
    color: var(--stf-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    outline: none;
    font-family: inherit;
}

.stf-currency-select option {
    background: var(--stf-surface);
    color: var(--stf-text);
    font-weight: 600;
}

/* Currency Pill Variant */
.stf-currency-pills {
    display: inline-flex;
    background: var(--stf-bg);
    border: 1px solid var(--stf-surface-border);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.stf-currency-pill {
    background: transparent;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--stf-text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--stf-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stf-currency-pill:hover {
    color: var(--stf-text);
}

.stf-currency-pill.active {
    background: var(--stf-primary);
    color: #ffffff !important;
    box-shadow: var(--stf-shadow-sm);
}

/* 3. SaaS Share Button */
.stf-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--stf-surface);
    border: 1.5px solid var(--stf-surface-border);
    color: var(--stf-text);
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--stf-radius-sm);
    cursor: pointer;
    transition: var(--stf-transition);
    box-shadow: var(--stf-shadow-sm);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.stf-share-btn:hover {
    border-color: var(--stf-primary);
    color: var(--stf-primary);
    transform: translateY(-1px);
    box-shadow: var(--stf-shadow-md);
}

.stf-share-btn-primary {
    background: var(--stf-primary);
    border-color: var(--stf-primary);
    color: #ffffff;
}

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

.stf-share-icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
    flex-shrink: 0;
}

/* 4. Share Modal & Toast */
.stf-share-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: stfFadeIn 0.2s ease-out;
}

@keyframes stfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stf-share-modal {
    background: var(--stf-surface);
    border: 1px solid var(--stf-surface-border);
    border-radius: 18px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: stfSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stfSlideUp {
    from { transform: translateY(12px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.stf-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stf-surface-border);
}

.stf-share-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--stf-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--stf-transition);
}

.stf-share-close-btn:hover {
    color: var(--stf-text);
    background: var(--stf-bg);
}

.stf-share-preview {
    background: var(--stf-bg);
    border: 1px solid var(--stf-surface-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.stf-share-preview-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--stf-text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.stf-share-preview-url {
    font-size: 12px;
    color: var(--stf-primary);
    word-break: break-all;
    font-family: monospace;
}

.stf-share-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stf-share-item-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--stf-surface-border);
    background: var(--stf-surface);
    color: var(--stf-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--stf-transition);
}

.stf-share-item-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: var(--stf-shadow-sm);
}

.stf-share-item-icon {
    font-size: 17px;
    line-height: 1;
}

.stf-share-copy:hover { border-color: var(--stf-primary); color: var(--stf-primary); }
.stf-share-whatsapp:hover { border-color: #25d366; color: #25d366; background: rgba(37, 211, 102, 0.05); }
.stf-share-x:hover { border-color: var(--stf-text); color: var(--stf-text); }
.stf-share-linkedin:hover { border-color: #0077b5; color: #0077b5; background: rgba(0, 119, 181, 0.05); }
.stf-share-facebook:hover { border-color: #1877f2; color: #1877f2; background: rgba(24, 119, 242, 0.05); }
.stf-share-email:hover { border-color: #ea4335; color: #ea4335; background: rgba(234, 67, 53, 0.05); }

.stf-share-footer-note {
    font-size: 11.5px;
    color: var(--stf-text-muted);
    line-height: 1.5;
    background: rgba(37, 99, 235, 0.04);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    padding: 8px 12px;
}

/* Toast Notification */
.stf-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    z-index: 1000000;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.stf-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.stf-toast-icon {
    background: #10b981;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

/* 5. Global Social Media Bar & Icons */
.stf-social-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stf-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--stf-surface);
    border: 1px solid var(--stf-surface-border);
    color: var(--stf-text-muted);
    transition: var(--stf-transition);
    text-decoration: none;
    box-shadow: var(--stf-shadow-sm);
}

.stf-social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.stf-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--stf-shadow-md);
}

.stf-social-btn:hover svg {
    transform: scale(1.1);
}

.stf-social-btn.stf-social-x:hover { background: #000000; color: #ffffff; border-color: #000000; }
.stf-social-btn.stf-social-linkedin:hover { background: #0077b5; color: #ffffff; border-color: #0077b5; }
.stf-social-btn.stf-social-facebook:hover { background: #1877f2; color: #ffffff; border-color: #1877f2; }
.stf-social-btn.stf-social-youtube:hover { background: #ff0000; color: #ffffff; border-color: #ff0000; }
.stf-social-btn.stf-social-github:hover { background: #24292e; color: #ffffff; border-color: #24292e; }
.stf-social-btn.stf-social-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #ffffff; border-color: transparent; }
.stf-social-btn.stf-social-whatsapp:hover { background: #25d366; color: #ffffff; border-color: #25d366; }

/* 6. Footer Newsletter & Social Session Enhancement */
.stf-footer-enhanced-section {
    background: #070a13;
    border-top: 1px solid #1e293b;
    padding: 48px 24px 32px;
    color: #94a3b8;
    margin-top: 48px;
}

.stf-footer-enhanced-grid {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 860px) {
    .stf-footer-enhanced-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.stf-footer-sub-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px 28px;
}

.stf-newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.stf-sub-input {
    flex: 1;
    min-width: 220px;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #ffffff;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

.stf-sub-input:focus {
    border-color: #3b82f6;
}

.stf-sub-btn {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 13.5px;
    padding: 11px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.stf-sub-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.stf-form-feedback {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
}

.stf-feedback-success { color: #10b981; }
.stf-feedback-error { color: #f43f5e; }

/* 7. Contact Us Page / Section Component */
.stf-contact-wrap {
    max-width: 1060px;
    margin: 40px auto;
    padding: 0 20px;
}

.stf-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 36px;
    margin-top: 32px;
}

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

.stf-contact-info-card {
    background: var(--stf-surface);
    border: 1px solid var(--stf-surface-border);
    border-radius: var(--stf-radius-lg);
    padding: 32px;
    box-shadow: var(--stf-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stf-contact-form-card {
    background: var(--stf-surface);
    border: 1px solid var(--stf-surface-border);
    border-radius: var(--stf-radius-lg);
    padding: 32px;
    box-shadow: var(--stf-shadow-sm);
}

.stf-contact-channel-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.stf-contact-channel-icon {
    font-size: 24px;
    line-height: 1;
}

.stf-textarea-field {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--stf-surface-border);
    border-radius: var(--stf-radius-sm);
    background: var(--stf-bg);
    color: var(--stf-text);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: var(--stf-transition);
}

.stf-textarea-field:focus {
    border-color: var(--stf-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 8. Dedicated Standalone Subscription Card */
.stf-standalone-sub-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(79, 70, 229, 0.04) 100%);
    border: 1.5px solid var(--stf-surface-border);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    max-width: 800px;
    margin: 48px auto;
}


/* ==========================================================================
   GLOBAL HOVER ANIMATIONS & SESSIONS POLISH
   ========================================================================== */

/* 1. Calculator Card Hover Elevation */
.stf-calculator-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}
.stf-calculator-card:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
}

/* 2. Metric Result Tiles Hover Animation */
.stf-metric-tile {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease;
    cursor: default;
}
.stf-metric-tile:hover {
    transform: translateY(-3px);
    border-color: var(--stf-primary);
    box-shadow: 0 8px 18px -4px rgba(37, 99, 235, 0.14);
}

/* 3. Primary Result Box Hover Animation */
.stf-result-box {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease;
}
.stf-result-box:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.16);
}

/* 4. Directory & Category Tool Cards Hover Animation */
.stf-tool-card-item {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.28s ease !important;
}
.stf-tool-card-item:hover {
    transform: translateY(-5px);
    border-color: var(--stf-primary) !important;
    box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.16), 0 4px 8px -2px rgba(37, 99, 235, 0.06) !important;
}

/* 5. Buttons & Controls Hover Animation */
.stf-btn, .stf-share-btn, .stf-sub-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease;
}
.stf-btn:hover, .stf-share-btn:hover, .stf-sub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.stf-btn:active, .stf-share-btn:active, .stf-sub-btn:active {
    transform: translateY(0);
}

/* 6. Currency Controls Hover */
.stf-currency-control {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.stf-currency-control:hover {
    transform: translateY(-1.5px);
    border-color: var(--stf-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* 7. Social Media Buttons Hover */
.stf-social-btn {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                background-color 0.2s ease,
                border-color 0.2s ease !important;
}
.stf-social-btn:hover {
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3) !important;
}

/* 8. Guide & Content Cards Hover */
.stf-guide-card {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.28s ease !important;
}
.stf-guide-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--stf-primary) !important;
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.14) !important;
}

/* 9. Floating Theme & Lang Controls Hover */
.stf-control-btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}
.stf-control-btn:hover {
    transform: scale(1.06);
}

/* 10. Form Inputs Hover */
.stf-input-field, .stf-textarea-field {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.stf-input-field:hover, .stf-textarea-field:hover {
    border-color: #94a3b8;
}
.stf-input-field:focus, .stf-textarea-field:focus {
    border-color: var(--stf-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* ==========================================================================
   RELATED TOOLS & CATEGORIES BROWSER ON TOOL PAGES
   ========================================================================== */
.stf-related-tools-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1.5px dashed var(--stf-surface-border);
}

.stf-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.stf-related-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--stf-text);
    margin: 8px 0 6px;
    letter-spacing: -0.3px;
}

.stf-related-desc {
    font-size: 14.5px;
    color: var(--stf-text-muted);
    margin: 0;
    max-width: 580px;
    line-height: 1.5;
}

/* Category Filter Tabs */
.stf-related-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.stf-rel-cat-btn {
    background: var(--stf-surface);
    border: 1.5px solid var(--stf-surface-border);
    color: var(--stf-text-muted);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.stf-rel-cat-btn:hover {
    transform: translateY(-1.5px);
    border-color: var(--stf-primary);
    color: var(--stf-primary);
}

.stf-rel-cat-btn.active {
    background: var(--stf-primary);
    border-color: var(--stf-primary);
    color: #ffffff !important;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Related Cards Grid */
.stf-related-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.stf-rel-tool-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--stf-surface);
    border: 1.5px solid var(--stf-surface-border);
    border-radius: var(--stf-radius);
    padding: 20px;
    box-shadow: var(--stf-shadow-sm);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.stf-rel-tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--stf-primary);
    box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.16), 0 4px 8px -2px rgba(37, 99, 235, 0.06);
}

.stf-rel-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stf-rel-icon {
    font-size: 24px;
    line-height: 1;
}

.stf-rel-cat-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--stf-primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 8px;
    border-radius: 5px;
}

.stf-rel-card-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--stf-text);
    line-height: 1.35;
}

.stf-rel-card-desc {
    margin: 0;
    font-size: 13px;
    color: var(--stf-text-muted);
    line-height: 1.5;
}

.stf-rel-card-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--stf-primary);
    border-top: 1px solid var(--stf-surface-border);
    padding-top: 10px;
}

.stf-card-arrow {
    transition: transform 0.2s ease;
}

.stf-rel-tool-card:hover .stf-card-arrow {
    transform: translateX(4px);
}

/* 11. Additional Sessions & Elements Hover Polish */
.stf-tool-badge, .stf-client-badge, .stf-rel-cat-tag {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.stf-tool-badge:hover, .stf-client-badge:hover, .stf-rel-cat-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

.stf-tool-header-bar {
    transition: border-color 0.2s ease;
}
.stf-tool-header-bar:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

/* Footer Links & Navigation Hover */
.stf-footer-unified a,
.xpro-themer-footer a {
    transition: color 0.2s ease, transform 0.2s ease !important;
    display: inline-block;
}
.stf-footer-unified a:hover,
.xpro-themer-footer a:hover {
    color: #38bdf8 !important;
    transform: translateX(3px);
}

/* Feature & Icon Boxes Hover */
.elementor-widget-icon-box {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease !important;
}
.elementor-widget-icon-box:hover {
    transform: translateY(-4px) !important;
}

/* Canvas / Chart Container Hover */
.stf-calc-results canvas {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.stf-calc-results canvas:hover {
    transform: scale(1.008);
}


/* Search Bar & Social Share Row Responsive Rules */
.stf-search-share-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 18px;
}

.stf-search-wrap {
    position: relative;
    flex: 0 1 380px;
    width: 100%;
    max-width: 380px;
    min-width: 260px;
}

@media (max-width: 768px) {
    .stf-search-share-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .stf-search-wrap {
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    .stf-header-social-strip {
        margin-left: 0 !important;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}
