/**
 * ============================================================================
 * All-in-One Tools Hub — Premium Frontend UI
 * ============================================================================
 * Version: 6.0.0 Premium
 * Design System: Dark Navy + Electric Blue — SaaS-grade Glassmorphism
 * Author: All-in-One Tools Hub
 * License: Proprietary
 * ============================================================================
 *
 * TABLE OF CONTENTS
 * -----------------
 *  1. CSS Custom Properties (Design Tokens)
 *  2. Reset & Base Typography
 *  3. Custom Scrollbar
 *  4. Layout & Container
 *  5. Tools Dashboard
 *  6. Search Container
 *  7. Category Tabs
 *  8. Tools Grid & Cards
 *  9. Badges (PRO, Popular, New)
 * 10. Single Tool Page / Tool Wrapper
 * 11. Related Tools
 * 12. Categories Section & Cards
 * 13. FAQ Section
 * 14. Upgrade Prompt & Notice
 * 15. Features Grid
 * 16. Pricing Table
 * 17. Ad Containers
 * 18. Buttons (Gradient, Glow, Outline)
 * 19. Form Elements (Inputs, Textarea, File Upload)
 * 20. Breadcrumbs
 * 21. Share Section
 * 22. Interlinking Sections
 * 23. Header & Navigation
 * 24. Hero Section
 * 25. Stats Section
 * 26. Footer
 * 27. Animations & Keyframes
 * 28. Loading & Skeleton States
 * 29. Toast / Notification
 * 30. Utility Classes
 * 31. Responsive — Tablet (max-width: 1024px)
 * 32. Responsive — Mobile Large (max-width: 768px)
 * 33. Responsive — Mobile Small (max-width: 480px)
 * 34. Dark Mode Support
 * 35. Print Styles
 * 36. Accessibility
 * ============================================================================
 */

/* ============================================================================
   1. CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ============================================================================ */
:root {
    color-scheme: light;
    /* ---- Brand Colors ---- */
    --aiot-navy:         #0f172a;
    --aiot-navy-light:   #1e293b;
    --aiot-navy-mid:     #334155;
    --aiot-blue:         #3b82f6;
    --aiot-blue-dark:    #2563eb;
    --aiot-blue-light:   #60a5fa;
    --aiot-blue-pale:    #dbeafe;
    --aiot-blue-ghost:   rgba(59, 130, 246, 0.08);
    --aiot-blue-subtle:  rgba(59, 130, 246, 0.12);

    /* ---- Semantic Colors ---- */
    --aiot-success:       #10b981;
    --aiot-success-light: #d1fae5;
    --aiot-warning:       #f59e0b;
    --aiot-warning-light: #fef3c7;
    --aiot-error:         #ef4444;
    --aiot-error-light:   #fee2e2;
    --aiot-info:          #06b6d4;

    /* ---- Gold (Premium Badge) ---- */
    --aiot-gold:          #f59e0b;
    --aiot-gold-dark:     #d97706;
    --aiot-gold-light:    #fbbf24;

    /* ---- Surfaces ---- */
    --aiot-white:         #ffffff;
    --aiot-surface:       #f8fafc;
    --aiot-surface-raised:#f1f5f9;
    --aiot-surface-dim:   #e2e8f0;
    --aiot-glass-bg:      rgba(255, 255, 255, 0.72);
    --aiot-glass-border:  rgba(255, 255, 255, 0.35);
    --aiot-glass-shadow:  0 8px 32px rgba(15, 23, 42, 0.08);

    /* ---- Text ---- */
    --aiot-text-primary:   #0f172a;
    --aiot-text-secondary: #475569;
    --aiot-text-muted:     #94a3b8;
    --aiot-text-inverse:   #ffffff;

    /* ---- Gradients ---- */
    --aiot-gradient-brand:    linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    --aiot-gradient-navy:     linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --aiot-gradient-hero:     linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
    --aiot-gradient-premium:  linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --aiot-gradient-blue-soft:linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    --aiot-gradient-surface:  linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --aiot-gradient-glow:     radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);

    /* ---- Shadows ---- */
    --aiot-shadow-xs:     0 1px 2px rgba(0, 0, 0, 0.04);
    --aiot-shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.06);
    --aiot-shadow-md:     0 4px 16px rgba(0, 0, 0, 0.08);
    --aiot-shadow-lg:     0 8px 32px rgba(0, 0, 0, 0.10);
    --aiot-shadow-xl:     0 16px 48px rgba(0, 0, 0, 0.12);
    --aiot-shadow-2xl:    0 24px 64px rgba(0, 0, 0, 0.16);
    --aiot-shadow-glow:   0 0 32px rgba(59, 130, 246, 0.35);
    --aiot-shadow-glow-lg:0 0 60px rgba(59, 130, 246, 0.25);
    --aiot-shadow-card:   0 2px 8px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.08);
    --aiot-shadow-card-hover: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.15);

    /* ---- Border Radius ---- */
    --aiot-radius-xs:  4px;
    --aiot-radius-sm:  8px;
    --aiot-radius-md:  12px;
    --aiot-radius-lg:  16px;
    --aiot-radius-xl:  20px;
    --aiot-radius-2xl: 24px;
    --aiot-radius-full:9999px;

    /* ---- Typography ---- */
    --aiot-font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --aiot-font-mono:  'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

    /* ---- Spacing Scale ---- */
    --aiot-space-1:  4px;
    --aiot-space-2:  8px;
    --aiot-space-3:  12px;
    --aiot-space-4:  16px;
    --aiot-space-5:  20px;
    --aiot-space-6:  24px;
    --aiot-space-8:  32px;
    --aiot-space-10: 40px;
    --aiot-space-12: 48px;
    --aiot-space-16: 64px;
    --aiot-space-20: 80px;

    /* ---- Transitions ---- */
    --aiot-ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --aiot-ease-out:   cubic-bezier(0, 0, 0.2, 1);
    --aiot-ease-in:    cubic-bezier(0.4, 0, 1, 1);
    --aiot-ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);
    --aiot-duration-fast: 150ms;
    --aiot-duration-base: 250ms;
    --aiot-duration-slow: 400ms;
    --aiot-duration-slower:600ms;

    /* ---- Z-Index ---- */
    --aiot-z-dropdown:  100;
    --aiot-z-sticky:    200;
    --aiot-z-overlay:   300;
    --aiot-z-modal:     400;
    --aiot-z-toast:     500;
}


/* ============================================================================
   2. RESET & BASE TYPOGRAPHY
   ============================================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--aiot-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--aiot-text-primary);
    background-color: var(--aiot-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--aiot-text-primary);
}

a {
    color: var(--aiot-blue);
    text-decoration: none;
    transition: color var(--aiot-duration-fast) var(--aiot-ease);
}

a:hover {
    color: var(--aiot-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ============================================================================
   3. CUSTOM SCROLLBAR
   ============================================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--aiot-surface-raised);
    border-radius: var(--aiot-radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--aiot-navy-mid);
    border-radius: var(--aiot-radius-full);
    border: 2px solid var(--aiot-surface-raised);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aiot-blue);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--aiot-navy-mid) var(--aiot-surface-raised);
}


/* ============================================================================
   4. LAYOUT & CONTAINER
   ============================================================================ */
.aiot-container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--aiot-space-6);
    padding-right: var(--aiot-space-6);
}

.aiot-container-narrow {
    max-width: 960px;
}

.aiot-container-wide {
    max-width: 100%;
}


/* ============================================================================
   5. TOOLS DASHBOARD
   ============================================================================ */
.aiot-tools-dashboard {
    position: relative;
    min-height: 0;
    isolation: isolate;
    z-index: 0;
}

.aiot-tools-dashboard .aiot-dashboard-header,
.aiot-tools-dashboard .aiot-theme-toggle,
.aiot-tools-dashboard .aiot-categories-tabs,
.aiot-tools-dashboard .aiot-all-tools-section,
.aiot-tools-dashboard .aiot-stats-section,
.aiot-tools-dashboard .aiot-section {
    position: relative;
    z-index: 1;
}

.aiot-tools-dashboard .aiot-theme-toggle {
    z-index: 4;
}

.aiot-tools-dashboard .aiot-theme-toggle-btn {
    position: relative;
    z-index: 4;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.aiot-tools-dashboard .aiot-search-container {
    position: relative;
    z-index: 2;
}

.aiot-tools-dashboard .aiot-search-results {
    z-index: 3;
}

body.menu-open .aiot-tools-dashboard .aiot-search-container,
body.mobile-menu-open .aiot-tools-dashboard .aiot-search-container,
body.offcanvas-open .aiot-tools-dashboard .aiot-search-container,
body.ast-main-header-nav-open .aiot-tools-dashboard .aiot-search-container,
body.elementor-popup-modal-open .aiot-tools-dashboard .aiot-search-container,
body.dialog-prevent-scroll .aiot-tools-dashboard .aiot-search-container,
body.responsive-menu-open .aiot-tools-dashboard .aiot-search-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.aiot-dashboard {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--aiot-space-6);
}

/* Dashboard Header */
.aiot-dashboard-header {
    text-align: center;
    padding: var(--aiot-space-16) var(--aiot-space-6) var(--aiot-space-12);
    background: var(--aiot-gradient-hero);
    border-radius: var(--aiot-radius-2xl);
    margin-bottom: var(--aiot-space-10);
    position: relative;
    overflow: hidden;
}

.aiot-dashboard-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.aiot-dashboard-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.aiot-dashboard-header h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--aiot-text-inverse);
    margin-bottom: var(--aiot-space-3);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.aiot-dashboard-header p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.aiot-shortcode-editor-note {
    margin-bottom: var(--aiot-space-6);
    padding: var(--aiot-space-4) var(--aiot-space-5);
    background: rgba(37, 99, 235, 0.08);
    border: 1px dashed rgba(37, 99, 235, 0.28);
    border-radius: var(--aiot-radius-lg);
    color: var(--aiot-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.aiot-shortcode-editor-note p {
    margin: 0;
}

/* Section Wrapper */
.aiot-section {
    margin-bottom: var(--aiot-space-10);
}

.aiot-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--aiot-text-primary);
    text-align: center;
    margin-bottom: var(--aiot-space-8);
    letter-spacing: -0.01em;
}

.aiot-all-tools-section {
    margin-top: var(--aiot-space-10);
}

.aiot-tools-dashboard .aiot-stats-section .aiot-stats-grid,
.aiot-tools-dashboard .aiot-stats-section .aiot-dashboard-stats-grid {
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}

.aiot-tools-dashboard .aiot-stats-section .aiot-stat-box,
.aiot-tools-dashboard .aiot-stats-section .aiot-dashboard-stat-box {
    background: var(--aiot-glass-bg);
    border: 1px solid var(--aiot-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
}

.aiot-tools-dashboard .aiot-stats-section .aiot-stat-box:hover,
.aiot-tools-dashboard .aiot-stats-section .aiot-dashboard-stat-box:hover {
    background: var(--aiot-surface-raised);
}

.aiot-tools-dashboard .aiot-stats-section .stat-value,
.aiot-tools-dashboard .aiot-stats-section .stat-label,
.aiot-tools-dashboard .aiot-stats-section .aiot-dashboard-stat-value,
.aiot-tools-dashboard .aiot-stats-section .aiot-dashboard-stat-label {
    color: var(--aiot-text-inverse);
    text-shadow: 0 1px 10px rgba(15, 23, 42, 0.18);
}

.aiot-tools-dashboard .aiot-stats-section .stat-label,
.aiot-tools-dashboard .aiot-stats-section .aiot-dashboard-stat-label {
    opacity: 0.9;
}


/* ============================================================================
   6. SEARCH CONTAINER
   ============================================================================ */
.aiot-search-container {
    max-width: 680px;
    margin: calc(-1 * var(--aiot-space-10)) auto var(--aiot-space-10);
    position: relative;
    z-index: var(--aiot-z-dropdown);
}

.aiot-search-form {
    position: relative;
}

.aiot-search-form input[type="text"],
.aiot-search-form #aiot-search-input {
    width: 100%;
    padding: var(--aiot-space-5) var(--aiot-space-12) var(--aiot-space-5) var(--aiot-space-10);
    font-size: 1.0625rem;
    font-family: var(--aiot-font-sans);
    color: var(--aiot-text-primary);
    background: var(--aiot-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--aiot-glass-border);
    border-radius: var(--aiot-radius-full);
    outline: none;
    box-shadow: var(--aiot-shadow-lg);
    transition:
        border-color var(--aiot-duration-base) var(--aiot-ease),
        box-shadow var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-search-form input[type="text"]::placeholder,
.aiot-search-form #aiot-search-input::placeholder {
    color: var(--aiot-text-muted);
}

.aiot-search-form input[type="text"]:focus,
.aiot-search-form #aiot-search-input:focus {
    border-color: var(--aiot-blue);
    box-shadow: var(--aiot-shadow-lg), var(--aiot-shadow-glow);
    background: var(--aiot-white);
}

.aiot-search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    box-shadow: var(--aiot-shadow-sm);
}

.aiot-search-button:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--aiot-shadow-glow);
}

/* Search Results Dropdown */
.aiot-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--aiot-white);
    border: 1px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-lg);
    box-shadow: var(--aiot-shadow-xl);
    max-height: 360px;
    overflow-y: auto;
    z-index: var(--aiot-z-dropdown);
    display: none;
}

.aiot-search-results.active {
    display: block;
    animation: aiot-fadeSlideDown var(--aiot-duration-base) var(--aiot-ease-out);
}


/* ============================================================================
   7. CATEGORY TABS
   ============================================================================ */
.aiot-categories-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--aiot-space-2);
    padding: var(--aiot-space-2);
    background: var(--aiot-surface-raised);
    border-radius: var(--aiot-radius-full);
    margin-bottom: var(--aiot-space-8);
    width: 100%;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
}

.aiot-categories-tabs::-webkit-scrollbar {
    display: none;
}

.aiot-category-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--aiot-space-2);
    padding: var(--aiot-space-3) var(--aiot-space-5);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--aiot-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--aiot-radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    font-family: var(--aiot-font-sans);
    text-decoration: none;
}

.aiot-category-tab:hover {
    color: var(--aiot-blue);
    background: var(--aiot-blue-ghost);
}

.aiot-category-tab.active {
    color: var(--aiot-text-inverse);
    background: var(--aiot-gradient-brand);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
}

.aiot-category-tab .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

.aiot-category-tab__label {
    display: inline-block;
}


/* ============================================================================
   8. TOOLS GRID & CARDS
   ============================================================================ */
.aiot-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--aiot-space-6);
}

.aiot-tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--aiot-white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--aiot-radius-xl);
    padding: var(--aiot-space-6);
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--aiot-duration-slow) var(--aiot-ease),
        box-shadow var(--aiot-duration-slow) var(--aiot-ease),
        border-color var(--aiot-duration-base) var(--aiot-ease);
    overflow: hidden;
    cursor: pointer;
}

/* Glassmorphism shimmer on hover */
.aiot-tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.03) 50%,
        rgba(59, 130, 246, 0) 100%
    );
    opacity: 0;
    transition: opacity var(--aiot-duration-slow) var(--aiot-ease);
    pointer-events: none;
}

/* Top accent bar */
.aiot-tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--aiot-gradient-brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--aiot-duration-slow) var(--aiot-ease);
}

.aiot-tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--aiot-shadow-card-hover), var(--aiot-shadow-glow);
    border-color: rgba(59, 130, 246, 0.2);
}

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

.aiot-tool-card:hover::after {
    transform: scaleX(1);
}

/* Tool Icon */
.aiot-tool-card .aiot-tool-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aiot-blue-ghost);
    border-radius: var(--aiot-radius-md);
    font-size: 1.5rem;
    color: var(--aiot-blue);
    margin-bottom: var(--aiot-space-4);
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    border: 1px solid rgba(59, 130, 246, 0.08);
}

.aiot-tool-card .aiot-tool-emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.aiot-tool-card:hover .aiot-tool-icon {
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
    border-color: transparent;
}

/* Tool Name */
.aiot-tool-card .aiot-tool-name {
    font-size: 1rem;
    font-weight: 650;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-2);
    line-height: 1.4;
    transition: color var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-tool-card:hover .aiot-tool-name {
    color: var(--aiot-blue);
}

/* Tool Description */
.aiot-tool-card .aiot-tool-desc,
.aiot-tool-card .aiot-tool-description {
    font-size: 0.875rem;
    color: var(--aiot-text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tool Footer & Category Tag */
.aiot-tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--aiot-space-5);
    padding-top: var(--aiot-space-4);
    border-top: 1px solid var(--aiot-surface-raised);
}

.aiot-tool-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--aiot-blue);
    padding: var(--aiot-space-1) var(--aiot-space-3);
    background: var(--aiot-blue-ghost);
    border-radius: var(--aiot-radius-full);
}


/* ============================================================================
   9. BADGES — PRO, POPULAR, NEW
   ============================================================================ */
.aiot-premium-badge,
.aiot-pro-badge {
    position: absolute;
    top: var(--aiot-space-4);
    right: var(--aiot-space-4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--aiot-text-inverse);
    background: var(--aiot-gradient-premium);
    border-radius: var(--aiot-radius-full);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
    z-index: 2;
    line-height: 1.4;
}

.aiot-popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--aiot-text-inverse);
    background: var(--aiot-gradient-brand);
    border-radius: var(--aiot-radius-full);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    line-height: 1.4;
}

.aiot-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--aiot-text-inverse);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--aiot-radius-full);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    line-height: 1.4;
}


/* ============================================================================
   10. SINGLE TOOL PAGE / TOOL WRAPPER
   ============================================================================ */
.aiot-tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--aiot-space-6);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--aiot-text-primary);
}

.aiot-single-tool {
    padding: var(--aiot-space-6) 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Tool Wrapper */
.aiot-tool-wrapper {
    background: var(--aiot-white);
    border-radius: var(--aiot-radius-2xl);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--aiot-shadow-card);
    overflow: hidden;
    margin-bottom: var(--aiot-space-8);
}

/* Tool Header */
.aiot-tool-header {
    position: relative;
    background: var(--aiot-gradient-hero);
    color: var(--aiot-text-inverse);
    padding: var(--aiot-space-12) var(--aiot-space-10);
    overflow: hidden;
}

.aiot-tool-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.aiot-tool-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.aiot-tool-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--aiot-text-inverse);
    margin-bottom: var(--aiot-space-3);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--aiot-space-3);
    flex-wrap: wrap;
}

.aiot-tool-title__text {
    min-width: 0;
}

.aiot-tool-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.aiot-tool-description__text {
    display: block;
}

.aiot-single-tool,
.aiot-tool-page,
.aiot-tool-wrapper,
.aiot-tool-page input,
.aiot-tool-page select,
.aiot-tool-page textarea,
.aiot-tool-page button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.aiot-tool-title__text,
.aiot-tool-description__text,
.aiot-breadcrumbs-premium,
.aiot-breadcrumbs-premium a,
.aiot-breadcrumbs-premium .separator,
.aiot-tool-info-premium .info-label,
.aiot-tool-info-premium .info-link,
.aiot-tool-info-premium .info-value,
.aiot-tool-info-premium .tag,
.aiot-tool-workspace label,
.aiot-form-group label,
.aiot-tool-helper,
.aiot-tool-helper p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.aiot-single-tool > .aiot-breadcrumbs-premium,
.aiot-single-tool > .aiot-breadcrumbs-premium a,
.aiot-single-tool > .aiot-breadcrumbs-premium .separator,
.aiot-single-tool > .aiot-breadcrumbs-premium [aria-current="page"],
.aiot-tool-title__text,
.aiot-tool-description__text,
.aiot-tool-info-premium .info-label,
.aiot-tool-info-premium .info-link,
.aiot-tool-info-premium .info-value,
.aiot-tool-info-premium .tag,
.aiot-tool-helper,
.aiot-tool-helper p,
.aiot-tool-workspace label,
.aiot-form-group label {
    overflow: visible !important;
    line-height: 1.45 !important;
    padding-top: 0.12em;
    padding-bottom: 0.08em;
}

.aiot-breadcrumbs-premium,
.aiot-breadcrumbs-premium a,
.aiot-breadcrumbs-premium .separator,
.aiot-tool-info-premium .info-label,
.aiot-tool-info-premium .info-link,
.aiot-tool-info-premium .info-value,
.aiot-tool-info-premium .tag,
.aiot-tool-workspace label,
.aiot-form-group label {
    line-height: 1.45;
}

.aiot-tool-wrapper,
.aiot-tool-header,
.aiot-tool-body,
.aiot-tool-workspace,
.aiot-tool-info-premium,
.aiot-tool-helper,
.aiot-converter-grid,
.aiot-converter-from,
.aiot-converter-to {
    min-width: 0;
}

.aiot-tool-info-premium .info-item {
    align-items: flex-start;
}

/* Tool Body */
.aiot-tool-body {
    padding: var(--aiot-space-10);
}

.aiot-page-layout {
    display: grid;
    gap: var(--aiot-space-8);
    align-items: start;
}

.aiot-page-main,
.aiot-page-sidebar {
    min-width: 0;
}

.aiot-page-sidebar {
    width: 100%;
}

.aiot-sidebar-slot {
    position: static;
}

.aiot-page-sidebar .aiot-ad-container {
    margin: 0;
}

.aiot-single-tool .aiot-page-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--aiot-space-6) var(--aiot-space-12);
}

.aiot-single-tool .aiot-page-layout--has-sidebar {
    max-width: 1360px;
}

.aiot-archive-tools .aiot-page-layout,
.aiot-category-archive .aiot-page-layout {
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1080px) {
    .aiot-single-tool .aiot-page-layout--has-sidebar {
        grid-template-columns: minmax(0, 1000px) minmax(280px, 320px);
        justify-content: center;
    }

    .aiot-archive-tools .aiot-page-layout--has-sidebar,
    .aiot-category-archive .aiot-page-layout--has-sidebar {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    }

    .aiot-sidebar-slot {
        position: sticky;
        top: var(--aiot-space-8);
    }
}

.aiot-tool-workspace {
    background: var(--aiot-surface);
    border-radius: var(--aiot-radius-xl);
    padding: var(--aiot-space-8);
    margin-bottom: var(--aiot-space-8);
    border: 1px solid var(--aiot-surface-dim);
}

/* Premium Tool Page Variants */
.aiot-tool-container-premium {
    margin-top: var(--aiot-space-8);
}

.aiot-premium-header {
    margin-bottom: var(--aiot-space-6);
}

.aiot-premium-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-3);
    letter-spacing: -0.02em;
}

.aiot-premium-header p {
    font-size: 1.125rem;
    color: var(--aiot-text-secondary);
    line-height: 1.7;
}

/* Breadcrumbs (Premium) */
.aiot-breadcrumbs-premium {
    display: flex;
    align-items: center;
    gap: var(--aiot-space-2);
    font-size: 0.875rem;
    color: var(--aiot-text-muted);
    margin-top: var(--aiot-space-4);
    flex-wrap: wrap;
}

.aiot-breadcrumbs-premium a {
    color: var(--aiot-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-breadcrumbs-premium a:hover {
    color: var(--aiot-blue-dark);
    text-decoration: underline;
}

.aiot-breadcrumbs-premium .separator {
    color: var(--aiot-text-muted);
    margin: 0 var(--aiot-space-1);
}

/* Tool Info Premium */
.aiot-tool-info-premium {
    background: var(--aiot-gradient-surface);
    border-radius: var(--aiot-radius-xl);
    padding: var(--aiot-space-6);
    margin: var(--aiot-space-8) 0;
    border: 1px solid var(--aiot-surface-dim);
}

.aiot-tool-info-premium .info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aiot-space-6);
}

.aiot-tool-info-premium .info-item {
    display: flex;
    align-items: center;
    gap: var(--aiot-space-2);
}

.aiot-tool-info-premium .info-label {
    color: var(--aiot-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.aiot-tool-info-premium .info-link {
    color: var(--aiot-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-tool-info-premium .info-link:hover {
    color: var(--aiot-blue-dark);
    text-decoration: underline;
}

.aiot-tool-info-premium .info-value {
    color: var(--aiot-text-primary);
    font-weight: 600;
}

.aiot-tool-info-premium .info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aiot-space-2);
}

.aiot-tool-info-premium .tag {
    display: inline-flex;
    padding: var(--aiot-space-1) var(--aiot-space-3);
    background: var(--aiot-white);
    border: 1px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--aiot-blue);
    transition: all var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-tool-info-premium .tag:hover {
    background: var(--aiot-blue-ghost);
    border-color: var(--aiot-blue);
}


/* ============================================================================
   11. RELATED TOOLS
   ============================================================================ */
.aiot-related-tools {
    margin-top: var(--aiot-space-10);
}

.aiot-related-tools h2,
.aiot-related-tools h3,
.aiot-interlinking h3,
.aiot-category-interlinking h3,
.aiot-popular-interlinking h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-6);
}

.aiot-related-tool-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--aiot-space-4) var(--aiot-space-5);
    background: var(--aiot-white);
    border: 1px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-md);
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--aiot-duration-base) var(--aiot-ease),
        box-shadow var(--aiot-duration-base) var(--aiot-ease),
        border-color var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--aiot-shadow-md);
    border-color: var(--aiot-blue);
}

/* Mini card variant */
.aiot-tool-card-premium.mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--aiot-space-4) var(--aiot-space-5);
    background: var(--aiot-white);
    border: 1px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-md);
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--aiot-duration-base) var(--aiot-ease),
        box-shadow var(--aiot-duration-base) var(--aiot-ease),
        border-color var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-tool-card-premium.mini:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    border-color: var(--aiot-blue);
}

.aiot-tool-card-premium.mini .tool-name {
    font-weight: 600;
    color: var(--aiot-text-primary);
    font-size: 0.9375rem;
}

.aiot-tool-card-premium.mini .tool-arrow {
    color: var(--aiot-blue);
    font-size: 1.125rem;
    transition: transform var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-tool-card-premium.mini:hover .tool-arrow {
    transform: translateX(4px);
}

/* Interlinking grids */
.aiot-tools-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--aiot-space-4);
}

.aiot-interlinking-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--aiot-space-3);
}

.aiot-interlinking-grid a {
    display: inline-flex;
    align-items: center;
    padding: var(--aiot-space-2) var(--aiot-space-4);
    background: var(--aiot-white);
    border: 1px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-full);
    color: var(--aiot-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-interlinking-grid a:hover {
    background: var(--aiot-blue-ghost);
    border-color: var(--aiot-blue);
    color: var(--aiot-blue);
    transform: translateY(-2px);
}

/* Popular interlinking section */
.aiot-popular-interlinking {
    margin: var(--aiot-space-10) 0;
    padding: var(--aiot-space-8);
    background: var(--aiot-gradient-surface);
    border-radius: var(--aiot-radius-2xl);
    border: 1px solid var(--aiot-surface-dim);
}


/* ============================================================================
   12. CATEGORIES SECTION & CARDS
   ============================================================================ */
.aiot-categories-section {
    margin-bottom: var(--aiot-space-10);
}

.aiot-categories-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--aiot-space-6);
}

.aiot-page-header {
    text-align: center;
    padding: var(--aiot-space-10) var(--aiot-space-6);
    background: var(--aiot-gradient-hero);
    border-radius: var(--aiot-radius-2xl);
    margin-bottom: var(--aiot-space-10);
    color: var(--aiot-text-inverse);
    position: relative;
    overflow: hidden;
}

.aiot-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.aiot-page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--aiot-text-inverse);
    margin-bottom: var(--aiot-space-3);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.aiot-page-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Category Section (dashboard) */
.aiot-category-section {
    margin-bottom: var(--aiot-space-8);
    padding: var(--aiot-space-6);
    background: var(--aiot-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--aiot-radius-xl);
    border: 1px solid var(--aiot-glass-border);
    box-shadow: var(--aiot-glass-shadow);
}

.aiot-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-5);
    display: flex;
    align-items: center;
    gap: var(--aiot-space-3);
}

.aiot-category-title .dashicons {
    color: var(--aiot-blue);
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Category Cards */
.aiot-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 0 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.aiot-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--aiot-white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--aiot-radius-xl);
    padding: var(--aiot-space-8);
    text-decoration: none;
    color: inherit;
    transition:
        transform var(--aiot-duration-slow) var(--aiot-ease),
        box-shadow var(--aiot-duration-slow) var(--aiot-ease),
        border-color var(--aiot-duration-base) var(--aiot-ease);
    overflow: hidden;
}

.aiot-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color, var(--aiot-gradient-brand));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--aiot-duration-slow) var(--aiot-ease);
}

.aiot-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--aiot-shadow-card-hover), var(--aiot-shadow-glow);
    border-color: rgba(59, 130, 246, 0.15);
}

.aiot-category-card:hover::before {
    transform: scaleX(1);
}

.aiot-category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--aiot-space-5);
    border-radius: var(--aiot-radius-lg);
    background: var(--category-bg, var(--aiot-blue-ghost));
    color: var(--category-icon-color, var(--aiot-blue));
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    border: 1px solid rgba(59, 130, 246, 0.06);
}

.aiot-category-card:hover .aiot-category-icon {
    transform: scale(1.08);
}

.aiot-category-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-3);
}

.aiot-category-card p {
    color: var(--aiot-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex: 1;
}

.aiot-category-count,
.aiot-tool-count {
    display: inline-flex;
    align-items: center;
    gap: var(--aiot-space-2);
    margin-top: var(--aiot-space-5);
    padding: var(--aiot-space-2) var(--aiot-space-4);
    background: var(--aiot-surface-raised);
    border-radius: var(--aiot-radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--aiot-blue);
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-category-card:hover .aiot-category-count,
.aiot-category-card:hover .aiot-tool-count {
    background: var(--aiot-blue-ghost);
}

.aiot-category-count .dashicons {
    font-size: 0.9375rem;
    width: 0.9375rem;
    height: 0.9375rem;
}

.aiot-categories-cta {
    text-align: center;
    margin-top: var(--aiot-space-12);
}

.aiot-categories-cta .aiot-upgrade-button {
    display: inline-flex;
    padding: var(--aiot-space-4) var(--aiot-space-10);
    border-radius: var(--aiot-radius-full);
}

.aiot-categories-cta .dashicons {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
    margin-right: var(--aiot-space-2);
}

.aiot-tools-dashboard--editor .aiot-search-container,
.aiot-tools-dashboard--editor .aiot-theme-toggle,
.aiot-tools-dashboard--editor .aiot-categories-tabs,
.aiot-tools-dashboard--editor .aiot-tool-card,
.aiot-categories-page--editor .aiot-category-card {
    pointer-events: none;
}

/* Category Color Variants */
.aiot-category-card[data-category="text"]       { --category-color: linear-gradient(135deg, #3b82f6, #2563eb); --category-bg: rgba(59, 130, 246, 0.08); --category-icon-color: #3b82f6; }
.aiot-category-card[data-category="image"]      { --category-color: linear-gradient(135deg, #8b5cf6, #7c3aed); --category-bg: rgba(139, 92, 246, 0.08); --category-icon-color: #8b5cf6; }
.aiot-category-card[data-category="calculator"] { --category-color: linear-gradient(135deg, #10b981, #059669); --category-bg: rgba(16, 185, 129, 0.08); --category-icon-color: #10b981; }
.aiot-category-card[data-category="converter"]  { --category-color: linear-gradient(135deg, #f59e0b, #d97706); --category-bg: rgba(245, 158, 11, 0.08); --category-icon-color: #f59e0b; }
.aiot-category-card[data-category="developer"]  { --category-color: linear-gradient(135deg, #6366f1, #4f46e5); --category-bg: rgba(99, 102, 241, 0.08); --category-icon-color: #6366f1; }
.aiot-category-card[data-category="security"]   { --category-color: linear-gradient(135deg, #06b6d4, #0891b2); --category-bg: rgba(6, 182, 212, 0.08); --category-icon-color: #06b6d4; }
.aiot-category-card[data-category="pdf"]        { --category-color: linear-gradient(135deg, #ef4444, #dc2626); --category-bg: rgba(239, 68, 68, 0.08); --category-icon-color: #ef4444; }
.aiot-category-card[data-category="finance"]    { --category-color: linear-gradient(135deg, #22c55e, #16a34a); --category-bg: rgba(34, 197, 94, 0.08); --category-icon-color: #22c55e; }


/* ============================================================================
   13. FAQ SECTION
   ============================================================================ */
.aiot-faq-section {
    margin: var(--aiot-space-12) 0;
}

.aiot-faq-section h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--aiot-text-primary);
    text-align: center;
    margin-bottom: var(--aiot-space-8);
    letter-spacing: -0.01em;
}

.aiot-faq-item {
    background: var(--aiot-white);
    border: 1px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-lg);
    margin-bottom: var(--aiot-space-3);
    overflow: hidden;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-faq-item:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--aiot-shadow-sm);
}

.aiot-faq-item.active {
    border-color: var(--aiot-blue);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.aiot-faq-question {
    padding: var(--aiot-space-5) var(--aiot-space-6);
    font-size: 1rem;
    font-weight: 600;
    color: var(--aiot-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--aiot-font-sans);
    line-height: 1.5;
    transition: color var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-faq-question:hover {
    color: var(--aiot-blue);
}

.aiot-faq-question::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-left: var(--aiot-space-4);
    border-radius: 50%;
    background: var(--aiot-blue-ghost);
    color: var(--aiot-blue);
    font-size: 1.25rem;
    font-weight: 500;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    line-height: 1;
}

.aiot-faq-item.active .aiot-faq-question::after {
    content: '−';
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    transform: rotate(180deg);
}

.aiot-faq-answer {
    padding: 0 var(--aiot-space-6) var(--aiot-space-5);
    color: var(--aiot-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    display: none;
}

.aiot-faq-item.active .aiot-faq-answer {
    display: block;
    animation: aiot-fadeSlideDown var(--aiot-duration-base) var(--aiot-ease-out);
}

/* FAQ items with h3 (schema.org variant from templates) */
.aiot-faq-item h3 {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--aiot-text-primary);
    margin: 0 0 var(--aiot-space-3);
    padding: var(--aiot-space-5) var(--aiot-space-6);
    transition: color var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-faq-item h3:hover {
    color: var(--aiot-blue);
}

.aiot-faq-item p {
    color: var(--aiot-text-secondary);
    line-height: 1.7;
    padding: 0 var(--aiot-space-6) var(--aiot-space-5);
    margin: 0;
    font-size: 0.9375rem;
}


/* ============================================================================
   14. UPGRADE PROMPT & NOTICE
   ============================================================================ */
.aiot-upgrade-prompt {
    text-align: center;
    padding: var(--aiot-space-16) var(--aiot-space-10);
    background: var(--aiot-gradient-navy);
    border-radius: var(--aiot-radius-2xl);
    color: var(--aiot-text-inverse);
    position: relative;
    overflow: hidden;
    margin: var(--aiot-space-8) 0;
}

.aiot-upgrade-prompt::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.aiot-upgrade-prompt-premium {
    text-align: center;
    padding: var(--aiot-space-16) var(--aiot-space-10);
    background: var(--aiot-gradient-navy);
    border-radius: var(--aiot-radius-2xl);
    color: var(--aiot-text-inverse);
    position: relative;
    overflow: hidden;
    margin: var(--aiot-space-8) 0;
}

.aiot-upgrade-prompt-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.aiot-upgrade-prompt .upgrade-icon,
.aiot-upgrade-prompt-premium .upgrade-icon {
    font-size: 3rem;
    margin-bottom: var(--aiot-space-5);
    position: relative;
    z-index: 1;
}

.aiot-upgrade-prompt h3,
.aiot-upgrade-prompt-premium h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aiot-text-inverse);
    margin-bottom: var(--aiot-space-3);
    position: relative;
    z-index: 1;
}

.aiot-upgrade-prompt p,
.aiot-upgrade-prompt-premium p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.0625rem;
    max-width: 480px;
    margin: 0 auto var(--aiot-space-8);
    position: relative;
    z-index: 1;
}

/* Upgrade Notice Bar */
.aiot-upgrade-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aiot-space-4);
    padding: var(--aiot-space-4) var(--aiot-space-6);
    background: linear-gradient(90deg, var(--aiot-gradient-premium), var(--aiot-gradient-brand));
    border-radius: var(--aiot-radius-md);
    color: var(--aiot-text-inverse);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: var(--aiot-space-6);
    animation: aiot-subtlePulse 3s ease-in-out infinite;
}


/* ============================================================================
   15. FEATURES GRID
   ============================================================================ */
.aiot-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--aiot-space-6);
    margin: var(--aiot-space-10) 0;
}

.aiot-feature-item {
    text-align: center;
    padding: var(--aiot-space-8) var(--aiot-space-6);
    background: var(--aiot-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--aiot-glass-border);
    border-radius: var(--aiot-radius-xl);
    transition: all var(--aiot-duration-slow) var(--aiot-ease);
    box-shadow: var(--aiot-glass-shadow);
}

.aiot-feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--aiot-shadow-lg);
    border-color: rgba(59, 130, 246, 0.15);
}

.aiot-feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--aiot-space-4);
}

.aiot-feature-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-2);
}

.aiot-feature-item p {
    font-size: 0.9375rem;
    color: var(--aiot-text-secondary);
    line-height: 1.6;
}


/* ============================================================================
   16. PRICING TABLE
   ============================================================================ */
.aiot-pricing-section {
    padding: var(--aiot-space-16) var(--aiot-space-6);
    background: var(--aiot-gradient-surface);
    position: relative;
    overflow: hidden;
}

.aiot-pricing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--aiot-gradient-glow);
    pointer-events: none;
}

.aiot-pricing-header {
    text-align: center;
    margin-bottom: var(--aiot-space-12);
    position: relative;
    z-index: 1;
}

.aiot-pricing-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-3);
    letter-spacing: -0.02em;
}

.aiot-pricing-header p {
    font-size: 1.125rem;
    color: var(--aiot-text-secondary);
}

/* Billing Toggle */
.aiot-billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aiot-space-4);
    margin-top: var(--aiot-space-8);
}

.aiot-toggle-label {
    font-size: 0.9375rem;
    color: var(--aiot-text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-toggle-label.active {
    color: var(--aiot-blue);
    font-weight: 600;
}

.aiot-discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--aiot-space-2);
    background: var(--aiot-success);
    color: var(--aiot-text-inverse);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--aiot-radius-full);
    margin-left: var(--aiot-space-1);
    vertical-align: middle;
}

.aiot-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.aiot-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.aiot-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--aiot-surface-dim);
    border-radius: 28px;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--aiot-white);
    border-radius: 50%;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    box-shadow: var(--aiot-shadow-xs);
}

.aiot-toggle-switch input:checked + .aiot-toggle-slider {
    background: var(--aiot-gradient-brand);
}

.aiot-toggle-switch input:checked + .aiot-toggle-slider::before {
    transform: translateX(24px);
}

/* Pricing Grid */
.aiot-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--aiot-space-8);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Pricing Card */
.aiot-pricing-card {
    position: relative;
    background: var(--aiot-white);
    border: 2px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-2xl);
    padding: var(--aiot-space-10) var(--aiot-space-8);
    text-align: center;
    transition: all var(--aiot-duration-slow) var(--aiot-ease);
    box-shadow: var(--aiot-shadow-md);
    display: flex;
    flex-direction: column;
}

.aiot-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--aiot-shadow-xl);
}

.aiot-pricing-card.aiot-popular {
    border-color: var(--aiot-blue);
    transform: scale(1.04);
    box-shadow: var(--aiot-shadow-xl), var(--aiot-shadow-glow);
}

.aiot-pricing-card.aiot-popular:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: var(--aiot-shadow-2xl), var(--aiot-shadow-glow-lg);
}

.aiot-pricing-card.aiot-current {
    border-color: var(--aiot-success);
}

/* Plan Badges */
.aiot-pricing-card .aiot-popular-badge,
.aiot-pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--aiot-space-2) var(--aiot-space-5);
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--aiot-radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.aiot-current-badge {
    position: absolute;
    top: -13px;
    right: var(--aiot-space-6);
    padding: var(--aiot-space-2) var(--aiot-space-4);
    background: var(--aiot-success);
    color: var(--aiot-text-inverse);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--aiot-radius-full);
}

/* Plan Header */
.aiot-plan-header {
    margin-bottom: var(--aiot-space-8);
}

.aiot-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-4);
}

.aiot-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.aiot-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--aiot-text-secondary);
}

.aiot-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--aiot-text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.aiot-period {
    font-size: 1rem;
    color: var(--aiot-text-muted);
    font-weight: 500;
}

.aiot-free-label {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--aiot-success);
    letter-spacing: -0.02em;
}

.aiot-original-price {
    margin-top: var(--aiot-space-2);
    font-size: 0.875rem;
    color: var(--aiot-text-muted);
}

.aiot-save-badge {
    display: inline-flex;
    padding: 2px var(--aiot-space-2);
    background: var(--aiot-warning-light);
    color: var(--aiot-gold-dark);
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--aiot-radius-xs);
    margin-left: var(--aiot-space-2);
}

.aiot-trial-info {
    color: var(--aiot-success);
    font-size: 0.875rem;
    margin-top: var(--aiot-space-3);
    font-weight: 500;
}

/* Plan Features */
.aiot-plan-features {
    flex: 1;
    margin-bottom: var(--aiot-space-8);
    text-align: left;
}

.aiot-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aiot-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--aiot-space-3);
    padding: var(--aiot-space-3) 0;
    border-bottom: 1px solid var(--aiot-surface-raised);
    font-size: 0.9375rem;
    color: var(--aiot-text-secondary);
    line-height: 1.5;
}

.aiot-plan-features li:last-child {
    border-bottom: none;
}

.aiot-feature-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--aiot-success);
    color: var(--aiot-text-inverse);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 1px;
}

/* Plan CTA */
.aiot-plan-cta {
    margin-bottom: var(--aiot-space-5);
}

.aiot-cta-button,
.aiot-upgrade-button,
.aiot-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--aiot-space-5) var(--aiot-space-8);
    border: none;
    border-radius: var(--aiot-radius-md);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--aiot-font-sans);
    cursor: pointer;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    text-decoration: none;
}

.aiot-cta-button.aiot-upgrade-button,
.aiot-upgrade-button {
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.aiot-upgrade-button:hover,
.aiot-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--aiot-shadow-glow);
}

.aiot-cta-button.aiot-free-button {
    background: var(--aiot-surface-raised);
    color: var(--aiot-text-primary);
}

.aiot-cta-button.aiot-free-button:hover {
    background: var(--aiot-surface-dim);
}

.aiot-cta-button.aiot-current-button {
    background: var(--aiot-success);
    color: var(--aiot-text-inverse);
    cursor: default;
}

.aiot-plan-guarantee {
    font-size: 0.8125rem;
    color: var(--aiot-text-muted);
    text-align: center;
}

/* Payment Modal */
.aiot-payment-modal {
    position: fixed;
    inset: 0;
    z-index: var(--aiot-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aiot-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.aiot-modal-content {
    position: relative;
    background: var(--aiot-white);
    border-radius: var(--aiot-radius-2xl);
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--aiot-space-10);
    box-shadow: var(--aiot-shadow-2xl);
    animation: aiot-modalIn var(--aiot-duration-slow) var(--aiot-ease-out);
}

.aiot-modal-close {
    position: absolute;
    top: var(--aiot-space-4);
    right: var(--aiot-space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aiot-surface-raised);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--aiot-text-muted);
    cursor: pointer;
    transition: all var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-modal-close:hover {
    background: var(--aiot-error-light);
    color: var(--aiot-error);
}

.aiot-modal-header {
    margin-bottom: var(--aiot-space-8);
}

.aiot-modal-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-2);
}

.aiot-modal-header p {
    color: var(--aiot-text-secondary);
    font-size: 0.9375rem;
}

/* Gateway Options */
.aiot-gateway-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--aiot-space-3);
}

.aiot-gateway-option input {
    display: none;
}

.aiot-gateway-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--aiot-space-1);
    padding: var(--aiot-space-4);
    border: 2px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-md);
    cursor: pointer;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    text-align: center;
}

.aiot-gateway-option input:checked + .aiot-gateway-box {
    border-color: var(--aiot-blue);
    background: var(--aiot-blue-ghost);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.aiot-gateway-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: var(--aiot-space-1);
}

.aiot-gateway-name {
    font-weight: 600;
    color: var(--aiot-text-primary);
    font-size: 0.875rem;
}

.aiot-gateway-desc {
    font-size: 0.6875rem;
    color: var(--aiot-text-muted);
}

/* Order Summary */
.aiot-order-summary {
    margin-top: var(--aiot-space-6);
    padding-top: var(--aiot-space-6);
    border-top: 1px solid var(--aiot-surface-dim);
}

.aiot-order-summary h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--aiot-text-primary);
    margin-bottom: var(--aiot-space-4);
}

.aiot-summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--aiot-space-2) 0;
    font-size: 0.9375rem;
    color: var(--aiot-text-secondary);
}

.aiot-summary-row.aiot-total {
    border-top: 2px solid var(--aiot-surface-dim);
    margin-top: var(--aiot-space-3);
    padding-top: var(--aiot-space-4);
    font-weight: 700;
    color: var(--aiot-text-primary);
    font-size: 1.125rem;
}

/* Pay Button */
.aiot-pay-button {
    width: 100%;
    padding: var(--aiot-space-5);
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    border: none;
    border-radius: var(--aiot-radius-md);
    font-size: 1.0625rem;
    font-weight: 700;
    font-family: var(--aiot-font-sans);
    cursor: pointer;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--aiot-space-2);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.aiot-pay-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--aiot-shadow-glow);
}

.aiot-pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.aiot-secure-note {
    text-align: center;
    margin-top: var(--aiot-space-4);
    font-size: 0.8125rem;
    color: var(--aiot-text-muted);
}

/* Yearly / Monthly toggle visibility */
.yearly-only { display: none; }
body.aiot-yearly-billing .yearly-only { display: block; }
body.aiot-yearly-billing .monthly-only { display: none; }


/* ============================================================================
   17. AD CONTAINERS
   ============================================================================ */
.aiot-ad-container {
    background: var(--aiot-surface-raised);
    border: 1px dashed var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-lg);
    padding: var(--aiot-space-8);
    text-align: center;
    margin: var(--aiot-space-8) 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aiot-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}


/* ============================================================================
   18. BUTTONS — GRADIENT, GLOW, OUTLINE
   ============================================================================ */
.aiot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--aiot-space-2);
    padding: var(--aiot-space-3) var(--aiot-space-6);
    border-radius: var(--aiot-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    font-family: var(--aiot-font-sans);
    cursor: pointer;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    border: none;
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
}

.aiot-btn-primary {
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.aiot-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--aiot-shadow-glow);
    color: var(--aiot-text-inverse);
}

.aiot-btn-secondary {
    background: var(--aiot-surface-raised);
    color: var(--aiot-text-primary);
}

.aiot-btn-secondary:hover {
    background: var(--aiot-surface-dim);
}

.aiot-btn-outline {
    background: transparent;
    color: var(--aiot-blue);
    border: 2px solid var(--aiot-blue);
}

.aiot-btn-outline:hover {
    background: var(--aiot-blue);
    color: var(--aiot-text-inverse);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.aiot-btn-ghost {
    background: transparent;
    color: var(--aiot-blue);
    padding: var(--aiot-space-2) var(--aiot-space-4);
}

.aiot-btn-ghost:hover {
    background: var(--aiot-blue-ghost);
}

.aiot-btn-lg {
    padding: var(--aiot-space-4) var(--aiot-space-8);
    font-size: 1.0625rem;
    border-radius: var(--aiot-radius-lg);
}

.aiot-btn-sm {
    padding: var(--aiot-space-2) var(--aiot-space-4);
    font-size: 0.8125rem;
    border-radius: var(--aiot-radius-sm);
}

/* Premium CTA Button variant */
.aiot-btn-premium.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--aiot-space-2);
    padding: var(--aiot-space-4) var(--aiot-space-8);
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    border: none;
    border-radius: var(--aiot-radius-full);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--aiot-font-sans);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 1;
}

.aiot-btn-premium.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--aiot-shadow-glow-lg);
    color: var(--aiot-text-inverse);
}


/* ============================================================================
   19. FORM ELEMENTS — INPUTS, TEXTAREA, FILE UPLOAD
   ============================================================================ */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="password"],
input[type="search"],
.aiot-input {
    width: 100%;
    padding: var(--aiot-space-3) var(--aiot-space-4);
    font-size: 0.9375rem;
    font-family: var(--aiot-font-sans);
    color: var(--aiot-text-primary);
    background: var(--aiot-white);
    border: 2px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-md);
    outline: none;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
.aiot-input:focus {
    border-color: var(--aiot-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

textarea,
.aiot-textarea {
    width: 100%;
    min-height: 160px;
    padding: var(--aiot-space-4);
    font-size: 0.9375rem;
    font-family: var(--aiot-font-sans);
    color: var(--aiot-text-primary);
    background: var(--aiot-surface);
    border: 2px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-lg);
    outline: none;
    resize: vertical;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    line-height: 1.6;
}

textarea:focus,
.aiot-textarea:focus {
    border-color: var(--aiot-blue);
    background: var(--aiot-white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* File Upload */
.aiot-file-upload {
    border: 2px dashed var(--aiot-text-muted);
    border-radius: var(--aiot-radius-xl);
    padding: var(--aiot-space-12);
    text-align: center;
    cursor: pointer;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    background: var(--aiot-surface);
}

.aiot-file-upload:hover,
.aiot-file-upload.dragover {
    border-color: var(--aiot-blue);
    background: var(--aiot-blue-ghost);
}

/* Output Area */
.aiot-output-area {
    background: var(--aiot-success-light);
    border: 2px solid var(--aiot-success);
    border-radius: var(--aiot-radius-xl);
    padding: var(--aiot-space-6);
    margin-top: var(--aiot-space-6);
}

.aiot-output-content {
    background: var(--aiot-white);
    padding: var(--aiot-space-5);
    border-radius: var(--aiot-radius-md);
    font-family: var(--aiot-font-mono);
    font-size: 0.875rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

/* Card Element (Stripe) */
.aiot-card-element {
    padding: var(--aiot-space-4);
    border: 1px solid var(--aiot-surface-dim);
    border-radius: var(--aiot-radius-md);
    background: var(--aiot-white);
}

.aiot-card-errors {
    color: var(--aiot-error);
    margin-top: var(--aiot-space-3);
    font-size: 0.875rem;
}


/* ============================================================================
   20. BREADCRUMBS
   ============================================================================ */
.aiot-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--aiot-space-2);
    font-size: 0.875rem;
    color: var(--aiot-text-muted);
    margin-bottom: var(--aiot-space-6);
    flex-wrap: wrap;
}

.aiot-breadcrumbs a {
    color: var(--aiot-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-breadcrumbs a:hover {
    color: var(--aiot-blue-dark);
    text-decoration: underline;
}


/* ============================================================================
   21. SHARE SECTION
   ============================================================================ */
.aiot-share-section {
    text-align: center;
    padding: var(--aiot-space-10) var(--aiot-space-6);
    background: var(--aiot-gradient-hero);
    border-radius: var(--aiot-radius-2xl);
    margin: var(--aiot-space-10) 0;
    color: var(--aiot-text-inverse);
    position: relative;
    overflow: hidden;
}

.aiot-share-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.aiot-share-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--aiot-space-5);
    position: relative;
    z-index: 1;
}

.aiot-share-buttons {
    display: flex;
    justify-content: center;
    gap: var(--aiot-space-3);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.aiot-share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--aiot-space-2);
    padding: var(--aiot-space-3) var(--aiot-space-5);
    border-radius: var(--aiot-radius-full);
    color: var(--aiot-text-inverse);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--aiot-text-inverse);
}

.aiot-share-btn.facebook  { background: #1877f2; }
.aiot-share-btn.twitter   { background: #1da1f2; }
.aiot-share-btn.linkedin  { background: #0077b5; }
.aiot-share-btn.whatsapp  { background: #25d366; }

.aiot-share-btn .dashicons {
    font-size: 1.125rem;
    width: 1.125rem;
    height: 1.125rem;
}


/* ============================================================================
   22. HEADER & NAVIGATION
   ============================================================================ */
.aiot-header {
    position: sticky;
    top: 0;
    z-index: var(--aiot-z-sticky);
    background: var(--aiot-glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--aiot-glass-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.aiot-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--aiot-space-4) var(--aiot-space-6);
    max-width: 1400px;
    margin: 0 auto;
}

.aiot-logo {
    display: flex;
    align-items: center;
    gap: var(--aiot-space-3);
    text-decoration: none;
    color: var(--aiot-text-primary);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.aiot-logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--aiot-gradient-brand);
    border-radius: var(--aiot-radius-md);
    color: var(--aiot-text-inverse);
    font-size: 1.25rem;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.aiot-nav-menu {
    display: flex;
    align-items: center;
    gap: var(--aiot-space-2);
    list-style: none;
}

.aiot-nav-link {
    color: var(--aiot-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--aiot-space-2) var(--aiot-space-4);
    border-radius: var(--aiot-radius-md);
    transition: all var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-nav-link:hover {
    color: var(--aiot-blue);
    background: var(--aiot-blue-ghost);
}

.aiot-nav-cta {
    color: var(--aiot-text-inverse) !important;
    background: var(--aiot-gradient-brand);
    padding: var(--aiot-space-3) var(--aiot-space-5);
    border-radius: var(--aiot-radius-full);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--aiot-shadow-glow);
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse) !important;
}

/* Mobile Toggle */
.aiot-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--aiot-space-2);
}

.aiot-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--aiot-text-primary);
    border-radius: 2px;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}


/* ============================================================================
   23. HERO SECTION
   ============================================================================ */
.aiot-hero {
    position: relative;
    background: var(--aiot-gradient-hero);
    overflow: hidden;
    padding: var(--aiot-space-20) var(--aiot-space-6);
}

.aiot-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.aiot-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--aiot-surface), transparent);
    pointer-events: none;
}

.aiot-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.aiot-hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 800;
    color: var(--aiot-text-inverse);
    margin-bottom: var(--aiot-space-5);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.aiot-hero h1 span {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aiot-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--aiot-space-10);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats */
.aiot-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--aiot-space-10);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.aiot-stat-item {
    text-align: center;
    padding: var(--aiot-space-5) var(--aiot-space-6);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--aiot-radius-xl);
    min-width: 130px;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-stat-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.aiot-stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--aiot-text-inverse);
    line-height: 1.2;
}

.aiot-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--aiot-space-1);
}

/* Search box positioned on hero overlap */
.aiot-search-box {
    max-width: 680px;
    margin: calc(-1 * var(--aiot-space-10)) auto var(--aiot-space-10);
    position: relative;
    z-index: var(--aiot-z-dropdown);
}

.aiot-search-wrapper {
    display: flex;
    background: var(--aiot-white);
    border-radius: var(--aiot-radius-full);
    box-shadow: var(--aiot-shadow-xl);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-search-wrapper:focus-within {
    box-shadow: var(--aiot-shadow-xl), var(--aiot-shadow-glow);
    border-color: var(--aiot-blue);
}

.aiot-search-input {
    flex: 1;
    padding: var(--aiot-space-5) var(--aiot-space-8);
    border: none;
    font-size: 1.0625rem;
    outline: none;
    background: transparent;
    font-family: var(--aiot-font-sans);
}

.aiot-search-btn {
    padding: var(--aiot-space-5) var(--aiot-space-10);
    background: var(--aiot-gradient-brand);
    color: var(--aiot-text-inverse);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--aiot-font-sans);
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-search-btn:hover {
    opacity: 0.9;
}


/* ============================================================================
   24. STATS SECTION
   ============================================================================ */
.aiot-stats-section {
    text-align: center;
    padding: var(--aiot-space-10) var(--aiot-space-6);
    background: var(--aiot-gradient-hero);
    border-radius: var(--aiot-radius-2xl);
    color: var(--aiot-text-inverse);
    margin: var(--aiot-space-10) 0;
    position: relative;
    overflow: hidden;
}

.aiot-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 100%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.aiot-dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--aiot-space-6);
    position: relative;
    z-index: 1;
}

.aiot-dashboard-stat-box {
    padding: var(--aiot-space-5);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--aiot-radius-xl);
    transition: all var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-dashboard-stat-box:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.aiot-dashboard-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--aiot-text-inverse);
    line-height: 1.2;
}

.aiot-dashboard-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: var(--aiot-space-1);
}


/* ============================================================================
   25. FOOTER
   ============================================================================ */
.aiot-footer {
    background: var(--aiot-gradient-navy);
    color: var(--aiot-text-inverse);
    padding: var(--aiot-space-16) 0 var(--aiot-space-8);
    margin-top: var(--aiot-space-16);
}

.aiot-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--aiot-space-10);
    margin-bottom: var(--aiot-space-10);
}

.aiot-footer-section h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--aiot-space-5);
    color: var(--aiot-text-inverse);
}

.aiot-footer-section ul {
    list-style: none;
}

.aiot-footer-section li {
    margin-bottom: var(--aiot-space-3);
}

.aiot-footer-section a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--aiot-duration-fast) var(--aiot-ease);
}

.aiot-footer-section a:hover {
    color: var(--aiot-text-inverse);
}

.aiot-footer-bottom {
    text-align: center;
    padding-top: var(--aiot-space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}


/* ============================================================================
   26. ANIMATIONS & KEYFRAMES
   ============================================================================ */
@keyframes aiot-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes aiot-fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aiot-fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aiot-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes aiot-spin {
    to { transform: rotate(360deg); }
}

@keyframes aiot-bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes aiot-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    }
}

@keyframes aiot-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aiot-slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aiot-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

@keyframes aiot-subtlePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.85; }
}

@keyframes aiot-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes aiot-modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes aiot-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Utility animation classes */
.aiot-animate-fadeInUp {
    animation: aiot-fadeSlideUp var(--aiot-duration-slow) var(--aiot-ease-out);
}

.aiot-animate-fadeIn {
    animation: aiot-fadeIn var(--aiot-duration-slow) var(--aiot-ease-out);
}

.aiot-animate-scaleIn {
    animation: aiot-scaleIn var(--aiot-duration-slow) var(--aiot-ease-out);
}

/* Staggered entrance for grids */
.aiot-stagger > * {
    opacity: 0;
    animation: aiot-fadeSlideUp var(--aiot-duration-slow) var(--aiot-ease-out) forwards;
}

.aiot-stagger > *:nth-child(1)  { animation-delay: 0ms; }
.aiot-stagger > *:nth-child(2)  { animation-delay: 50ms; }
.aiot-stagger > *:nth-child(3)  { animation-delay: 100ms; }
.aiot-stagger > *:nth-child(4)  { animation-delay: 150ms; }
.aiot-stagger > *:nth-child(5)  { animation-delay: 200ms; }
.aiot-stagger > *:nth-child(6)  { animation-delay: 250ms; }
.aiot-stagger > *:nth-child(7)  { animation-delay: 300ms; }
.aiot-stagger > *:nth-child(8)  { animation-delay: 350ms; }
.aiot-stagger > *:nth-child(9)  { animation-delay: 400ms; }
.aiot-stagger > *:nth-child(10) { animation-delay: 450ms; }
.aiot-stagger > *:nth-child(11) { animation-delay: 500ms; }
.aiot-stagger > *:nth-child(12) { animation-delay: 550ms; }


/* ============================================================================
   27. LOADING & SKELETON STATES
   ============================================================================ */
.aiot-loading {
    position: relative;
    pointer-events: none;
}

.aiot-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid var(--aiot-surface-dim);
    border-top-color: var(--aiot-blue);
    border-radius: 50%;
    animation: aiot-spin 0.7s linear infinite;
}

/* Spinner */
.aiot-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: aiot-spin 0.8s linear infinite;
}

/* Skeleton shimmer */
.aiot-skeleton {
    background: linear-gradient(
        90deg,
        var(--aiot-surface-raised) 25%,
        var(--aiot-surface-dim) 50%,
        var(--aiot-surface-raised) 75%
    );
    background-size: 200% 100%;
    animation: aiot-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--aiot-radius-sm);
}

.aiot-skeleton-text {
    height: 14px;
    margin-bottom: var(--aiot-space-2);
}

.aiot-skeleton-heading {
    height: 24px;
    width: 60%;
    margin-bottom: var(--aiot-space-3);
}

.aiot-skeleton-card {
    height: 180px;
    border-radius: var(--aiot-radius-xl);
}


/* ============================================================================
   28. TOAST / NOTIFICATION
   ============================================================================ */
.aiot-toast {
    position: fixed;
    bottom: var(--aiot-space-6);
    right: var(--aiot-space-6);
    z-index: var(--aiot-z-toast);
    display: flex;
    align-items: center;
    gap: var(--aiot-space-3);
    padding: var(--aiot-space-4) var(--aiot-space-6);
    background: var(--aiot-navy);
    color: var(--aiot-text-inverse);
    border-radius: var(--aiot-radius-md);
    box-shadow: var(--aiot-shadow-xl);
    font-size: 0.9375rem;
    font-weight: 500;
    max-width: 400px;
    animation: aiot-fadeSlideUp var(--aiot-duration-slow) var(--aiot-ease-out);
}

.aiot-toast-success { border-left: 4px solid var(--aiot-success); }
.aiot-toast-error   { border-left: 4px solid var(--aiot-error); }
.aiot-toast-warning { border-left: 4px solid var(--aiot-warning); }


/* ============================================================================
   29. UTILITY CLASSES
   ============================================================================ */
.aiot-text-center  { text-align: center; }
.aiot-text-left    { text-align: left; }
.aiot-text-right   { text-align: right; }

.aiot-mb-0  { margin-bottom: 0; }
.aiot-mb-sm { margin-bottom: var(--aiot-space-2); }
.aiot-mb-md { margin-bottom: var(--aiot-space-4); }
.aiot-mb-lg { margin-bottom: var(--aiot-space-6); }
.aiot-mb-xl { margin-bottom: var(--aiot-space-8); }

.aiot-mt-0  { margin-top: 0; }
.aiot-mt-sm { margin-top: var(--aiot-space-2); }
.aiot-mt-md { margin-top: var(--aiot-space-4); }
.aiot-mt-lg { margin-top: var(--aiot-space-6); }
.aiot-mt-xl { margin-top: var(--aiot-space-8); }

.aiot-p-0  { padding: 0; }
.aiot-p-sm { padding: var(--aiot-space-2); }
.aiot-p-md { padding: var(--aiot-space-4); }
.aiot-p-lg { padding: var(--aiot-space-6); }
.aiot-p-xl { padding: var(--aiot-space-8); }

.aiot-hidden   { display: none !important; }
.aiot-visible  { display: block !important; }

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

.aiot-border-none { border: none !important; }
.aiot-rounded-full { border-radius: var(--aiot-radius-full) !important; }
.aiot-shadow-none  { box-shadow: none !important; }

/* Animation utilities */
.aiot-animate-fadeIn {
    animation: aiot-fadeIn var(--aiot-duration-base) var(--aiot-ease);
}
.aiot-animate-fadeSlideUp {
    animation: aiot-fadeSlideUp var(--aiot-duration-base) var(--aiot-ease);
}
.aiot-animate-scaleIn {
    animation: aiot-scaleIn var(--aiot-duration-base) var(--aiot-ease);
}
.aiot-animate-bounceIn {
    animation: aiot-bounceIn var(--aiot-duration-slow) var(--aiot-ease-bounce);
}
.aiot-animate-glow {
    animation: aiot-glow 2s ease-in-out infinite;
}
.aiot-animate-slideInLeft {
    animation: aiot-slideInLeft var(--aiot-duration-base) var(--aiot-ease);
}
.aiot-animate-slideInRight {
    animation: aiot-slideInRight var(--aiot-duration-base) var(--aiot-ease);
}

/* ============================================================================
   30. RESPONSIVE — TABLET (max-width: 1024px)
   ============================================================================ */
@media (max-width: 1024px) {
    .aiot-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .aiot-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tablet: 3 columns for balanced layout */
    .aiot-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--aiot-space-4);
        padding: 0 var(--aiot-space-4);
    }

    .aiot-category-card {
        padding: var(--aiot-space-5);
    }

    .aiot-category-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--aiot-space-3);
    }

    .aiot-category-card h3 {
        font-size: var(--aiot-font-size-base);
        margin-bottom: var(--aiot-space-2);
    }

    .aiot-category-card p {
        font-size: var(--aiot-font-size-sm);
        margin-bottom: var(--aiot-space-3);
        min-height: 3.2rem;
    }

    .aiot-category-count {
        font-size: var(--aiot-font-size-xs);
        padding: var(--aiot-space-1) var(--aiot-space-3);
    }

    .aiot-hero {
        padding: var(--aiot-space-12) var(--aiot-space-6);
    }

    .aiot-hero-stats {
        gap: var(--aiot-space-6);
    }
}


/* ============================================================================
   31. RESPONSIVE — MOBILE LARGE (max-width: 768px)
   ============================================================================ */
@media (max-width: 768px) {
    :root {
        --aiot-space-10: 32px;
        --aiot-space-12: 40px;
        --aiot-space-16: 48px;
        --aiot-space-20: 56px;
    }

    .aiot-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--aiot-space-4);
    }

    .aiot-mobile-toggle {
        display: flex;
    }

    .aiot-nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--aiot-white);
        flex-direction: column;
        padding: var(--aiot-space-6);
        gap: var(--aiot-space-2);
        box-shadow: var(--aiot-shadow-2xl);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--aiot-duration-slow) var(--aiot-ease);
        border-radius: 0 0 var(--aiot-radius-xl) var(--aiot-radius-xl);
    }

    .aiot-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .aiot-hero {
        padding: var(--aiot-space-10) var(--aiot-space-4);
    }

    .aiot-hero-stats {
        gap: var(--aiot-space-4);
    }

    .aiot-stat-item {
        min-width: 100px;
        padding: var(--aiot-space-3) var(--aiot-space-4);
    }

    .aiot-stat-number {
        font-size: 1.75rem;
    }

    .aiot-search-container {
        margin-left: var(--aiot-space-4);
        margin-right: var(--aiot-space-4);
    }

    .aiot-search-box {
        margin-left: var(--aiot-space-4);
        margin-right: var(--aiot-space-4);
    }

    .aiot-categories-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        overflow: visible;
        margin-bottom: var(--aiot-space-6);
    }

    .aiot-category-tab {
        width: 100%;
        min-width: 0;
        min-height: 64px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 6px;
        padding: 10px 6px;
        text-align: center;
        white-space: normal;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(148, 163, 184, 0.28);
        border-radius: var(--aiot-radius-lg);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .aiot-category-tab .dashicons {
        margin: 0;
    }

    .aiot-category-tab__label {
        display: block;
        width: 100%;
        line-height: 1.15;
        font-size: 0.72rem;
        overflow-wrap: anywhere;
    }

    .aiot-category-tab.active {
        box-shadow: 0 10px 22px rgba(59, 130, 246, 0.28);
    }

    [data-theme="dark"] .aiot-category-tab:not(.active) {
        color: #334155;
        border-color: rgba(148, 163, 184, 0.42);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    }

    [data-theme="dark"] .aiot-category-tab:not(.active) .dashicons,
    [data-theme="dark"] .aiot-category-tab:not(.active) .aiot-category-tab__label {
        color: #334155;
    }

    .aiot-search-form input[type="text"],
    .aiot-search-form #aiot-search-input {
        padding: var(--aiot-space-4) var(--aiot-space-10) var(--aiot-space-4) var(--aiot-space-6);
        font-size: 1rem;
    }

    /* Mobile: 2 columns to fit all categories in 2-3 rows without scrolling */
    .aiot-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
        margin: 0 auto;
        max-width: 100%;
    }

    .aiot-category-card {
        padding: var(--aiot-space-4);
        min-height: auto;
        border-radius: var(--aiot-radius-lg);
    }

    .aiot-category-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto var(--aiot-space-2) auto;
    }

    .aiot-category-card h3 {
        font-size: var(--aiot-font-size-sm);
        margin-bottom: var(--aiot-space-1);
        line-height: 1.3;
        text-align: center;
    }

    .aiot-category-card p {
        font-size: var(--aiot-font-size-xs);
        line-height: 1.4;
        margin-bottom: var(--aiot-space-2);
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.8rem;
    }

    .aiot-category-count {
        font-size: var(--aiot-font-size-xs);
        padding: var(--aiot-space-1) var(--aiot-space-2);
        margin: 0 auto;
        display: inline-block;
    }

/* ============================================
   CALCULATOR TOOL STYLES (Missing Classes Fix)
   ============================================ */

/* Form Groups */
.aiot-form-group {
    margin-bottom: var(--aiot-space-4);
}

.aiot-form-group label {
    display: block;
    font-size: var(--aiot-font-size-sm);
    font-weight: 600;
    color: #374151;
    margin-bottom: var(--aiot-space-2);
}

.aiot-form-group input[type="number"],
.aiot-form-group input[type="text"],
.aiot-form-group input[type="email"],
.aiot-form-group input[type="password"],
.aiot-form-group input[type="url"],
.aiot-form-group input[type="search"],
.aiot-form-group input[type="datetime-local"],
.aiot-form-group select,
.aiot-value-input,
.aiot-value-output,
.aiot-text-input,
.aiot-date-input {
    width: 100%;
    padding: var(--aiot-space-3) var(--aiot-space-4);
    font-size: var(--aiot-font-size-base);
    line-height: 1.5;
    min-height: 48px;
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aiot-tool-page input,
.aiot-tool-page select,
.aiot-tool-page textarea {
    line-height: 1.5 !important;
    padding-top: 0.78rem;
    padding-bottom: 0.78rem;
}

.aiot-tool-page input,
.aiot-tool-page select {
    min-height: 48px;
}

.aiot-text-input {
    min-height: 120px;
}

.aiot-form-group input:focus,
.aiot-value-input:focus,
.aiot-form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.aiot-form-group .aiot-unit-select {
    flex: 0 0 auto;
    padding: var(--aiot-space-3) var(--aiot-space-4);
    font-size: var(--aiot-font-size-base);
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

/* Buttons */
.aiot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--aiot-space-2);
    padding: var(--aiot-space-3) var(--aiot-space-6);
    font-size: var(--aiot-font-size-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.aiot-btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-color: transparent;
}

.aiot-btn-primary:hover {
    background: linear-gradient(135deg, #7577f5, #5f54e8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.aiot-btn-lg {
    padding: var(--aiot-space-4) var(--aiot-space-6);
    font-size: var(--aiot-font-size-lg);
}

.aiot-tool-actions .aiot-btn-primary,
.aiot-tool-form button[type="submit"].aiot-btn-primary,
.aiot-finance-form button[type="submit"].aiot-btn-primary,
.aiot-form-actions .aiot-process-btn,
.aiot-form-actions .aiot-btn-primary {
    min-height: 52px;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.08);
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.aiot-tool-actions .aiot-btn-primary:hover,
.aiot-tool-form button[type="submit"].aiot-btn-primary:hover,
.aiot-finance-form button[type="submit"].aiot-btn-primary:hover,
.aiot-form-actions .aiot-process-btn:hover,
.aiot-form-actions .aiot-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 18px 34px rgba(79, 70, 229, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.aiot-tool-actions .aiot-btn-primary:active,
.aiot-tool-form button[type="submit"].aiot-btn-primary:active,
.aiot-finance-form button[type="submit"].aiot-btn-primary:active,
.aiot-form-actions .aiot-process-btn:active,
.aiot-form-actions .aiot-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.aiot-form-actions .aiot-process-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.aiot-tool-actions .aiot-btn-block.aiot-btn-primary,
.aiot-tool-form .aiot-btn-block.aiot-btn-primary,
.aiot-finance-form .aiot-btn-block.aiot-btn-primary,
.aiot-form-actions .aiot-btn-block.aiot-btn-primary {
    width: 100%;
}

.aiot-btn-sm {
    padding: var(--aiot-space-2) var(--aiot-space-3);
    font-size: var(--aiot-font-size-sm);
}

/* Inline groups (for side-by-side inputs) */
.aiot-inline-group {
    display: flex;
    gap: var(--aiot-space-2);
    align-items: center;
}

.aiot-inline-group .aiot-value-input {
    flex: 1;
}

/* Tabs for calculators */
.aiot-tabs {
    margin-bottom: var(--aiot-space-4);
}

.aiot-tab-list {
    display: flex;
    gap: var(--aiot-space-2);
    margin-bottom: var(--aiot-space-4);
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: var(--aiot-space-2);
}

.aiot-tab-btn {
    padding: var(--aiot-space-2) var(--aiot-space-4);
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: var(--aiot-font-size-sm);
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.aiot-tab-btn.active {
    background: #6366f1;
    color: white;
}

.aiot-tab-btn:hover {
    background: #eef2ff;
    color: #6366f1;
}

.aiot-tab-btn.active:hover {
    background: #6366f1;
    color: white;
}

.aiot-tab-content {
    display: none;
}

.aiot-tab-content.active {
    display: block;
}

/* Date input styling */
.aiot-date-input {
    width: 100%;
    padding: var(--aiot-space-3) var(--aiot-space-4);
    font-size: var(--aiot-font-size-base);
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
}

.aiot-date-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Results container */
.aiot-results {
    margin-top: var(--aiot-space-6);
    padding: var(--aiot-space-4);
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid #6366f1;
}

.aiot-results h3 {
    font-size: var(--aiot-font-size-lg);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: var(--aiot-space-3);
}

.aiot-results .result-value {
    font-size: var(--aiot-font-size-2xl);
    font-weight: 700;
    color: #6366f1;
    margin-bottom: var(--aiot-space-2);
}

.aiot-results .result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--aiot-space-3);
    margin-top: var(--aiot-space-4);
}

.aiot-results .result-details .detail-item {
    background: white;
    padding: var(--aiot-space-3);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.aiot-results .result-details .detail-label {
    font-size: var(--aiot-font-size-sm);
    color: #6b7280;
    margin-bottom: var(--aiot-space-1);
}

.aiot-results .result-details .detail-value {
    font-size: var(--aiot-font-size-lg);
    font-weight: 600;
    color: #1f2937;
}

/* Calculator-specific improvements */
.aiot-tool-form {
    display: flex;
    flex-direction: column;
    gap: var(--aiot-space-4);
}

.aiot-tool-form .aiot-btn {
    margin-top: var(--aiot-space-2);
}

/* Helper text styling */
.aiot-tool-helper {
    padding: var(--aiot-space-4);
    margin-bottom: var(--aiot-space-6);
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: var(--aiot-font-size-sm);
    line-height: 1.6;
    color: #1e40af;
}

.aiot-tool-helper strong {
    color: #1d4ed8;
}

    .aiot-tool-header,
    .aiot-tool-body,
    .aiot-tool-workspace {
        padding: var(--aiot-space-6);
    }

    .aiot-tool-page {
        padding: var(--aiot-space-4);
    }

    .aiot-pricing-card.aiot-popular {
        transform: none;
    }

    .aiot-pricing-card.aiot-popular:hover {
        transform: translateY(-8px);
    }

    .aiot-amount {
        font-size: 2.75rem;
    }

    .aiot-gateway-options {
        grid-template-columns: 1fr;
    }

    .aiot-modal-content {
        padding: var(--aiot-space-6);
    }

    .aiot-share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .aiot-share-btn {
        width: 100%;
        max-width: 220px;
        justify-content: center;
    }

    .aiot-dashboard-header {
        padding: var(--aiot-space-10) var(--aiot-space-4);
        border-radius: var(--aiot-radius-xl);
    }

    .aiot-category-section {
        padding: var(--aiot-space-4);
    }

    .aiot-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aiot-upgrade-prompt,
    .aiot-upgrade-prompt-premium {
        padding: var(--aiot-space-10) var(--aiot-space-6);
    }

    .aiot-tools-grid-premium {
        grid-template-columns: 1fr 1fr;
    }

    .aiot-breadcrumbs-premium {
        font-size: 0.8125rem;
    }

    .aiot-tool-page {
        padding: var(--aiot-space-4);
    }

    .aiot-tool-header {
        padding: var(--aiot-space-8) var(--aiot-space-7);
    }

    .aiot-tool-body {
        padding: var(--aiot-space-7);
    }

    .aiot-tool-workspace {
        padding: var(--aiot-space-6);
    }

    .aiot-tool-title {
        font-size: clamp(1.55rem, 5.6vw, 2rem);
        line-height: 1.12;
        letter-spacing: -0.015em;
        align-items: flex-start;
        gap: var(--aiot-space-2);
    }

    .aiot-tool-title__text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .aiot-tool-description {
        font-size: 1rem;
        line-height: 1.55;
        max-width: none;
    }

    .aiot-breadcrumbs-premium,
    .aiot-tool-description__text {
        padding-inline-start: 0;
    }

    .aiot-tool-info-premium {
        padding: var(--aiot-space-5);
        margin: var(--aiot-space-6) 0;
    }

    .aiot-tool-info-premium .info-grid {
        gap: var(--aiot-space-4);
        padding-inline-start: 0;
    }

    .aiot-tool-info-premium .info-item {
        flex-wrap: wrap;
        row-gap: 4px;
    }
}


/* ============================================================================
   32. RESPONSIVE — MOBILE SMALL (max-width: 480px)
   ============================================================================ */
@media (max-width: 480px) {
    :root {
        --aiot-space-10: 24px;
        --aiot-space-12: 32px;
        --aiot-space-16: 40px;
        --aiot-space-20: 48px;
    }

    .aiot-tools-grid {
        grid-template-columns: 1fr;
    }

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

    /* Small mobile: Keep 2 columns for compact layout, reduce padding further */
    .aiot-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--aiot-space-2);
        padding: 0 var(--aiot-space-1);
    }

    .aiot-category-card {
        padding: var(--aiot-space-3);
    }

    .aiot-category-icon {
        width: 40px;
        height: 40px;
    }

    .aiot-category-card h3 {
        font-size: 0.8125rem;
    }

    .aiot-category-card p {
        font-size: 0.6875rem;
        margin-bottom: var(--aiot-space-1);
        min-height: 2.4rem;
    }

    .aiot-category-count {
        font-size: 0.625rem;
        padding: 2px var(--aiot-space-1);
    }

    .aiot-category-tab {
        min-height: 58px;
        padding: 8px 4px;
        gap: 5px;
    }

    .aiot-category-tab__label {
        font-size: 0.68rem;
    }

    .aiot-search-form input[type="text"],
    .aiot-search-form #aiot-search-input {
        font-size: 0.9375rem;
        padding: var(--aiot-space-3) var(--aiot-space-10) var(--aiot-space-3) var(--aiot-space-4);
    }

    .aiot-search-button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }



    .aiot-billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }

    .aiot-footer-grid {
        grid-template-columns: 1fr;
    }

    .aiot-dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--aiot-space-3);
    }

    .aiot-tools-grid-premium {
        grid-template-columns: 1fr;
    }

    .aiot-upgrade-notice {
        flex-direction: column;
        text-align: center;
    }

    .aiot-hero h1 {
        font-size: 1.75rem;
    }

    .aiot-dashboard-header h1 {
        font-size: 1.5rem;
    }

    .aiot-tool-page {
        padding: 12px;
    }

    .aiot-tool-wrapper {
        border-radius: var(--aiot-radius-xl);
    }

    .aiot-tool-header {
        padding: 28px 16px 20px;
        overflow: visible;
    }

    .aiot-tool-body {
        padding: 18px 16px;
    }

    .aiot-single-tool .aiot-page-layout {
        padding: 0 12px 24px;
    }

    .aiot-page-layout {
        gap: 16px;
    }

    .aiot-tool-workspace {
        padding: 16px;
        border-radius: var(--aiot-radius-lg);
    }

    .aiot-tool-title {
        font-size: clamp(1.38rem, 6.8vw, 1.72rem);
        line-height: 1.18;
        letter-spacing: -0.01em;
        margin-bottom: 10px;
    }

    .aiot-tool-title__text {
        display: block;
        width: 100%;
        padding-inline-start: 0;
        text-indent: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .aiot-tool-title .aiot-premium-badge {
        margin-inline-start: 6px;
        margin-top: 2px;
    }

    .aiot-tool-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .aiot-tool-description__text,
    .aiot-breadcrumbs-premium {
        padding-inline-start: 0;
    }

    .aiot-single-tool > .aiot-breadcrumbs-premium {
        padding-top: 6px !important;
        padding-bottom: 4px !important;
    }

    .aiot-breadcrumbs-premium {
        font-size: 0.77rem;
        gap: 4px;
    }

    .aiot-tool-info-premium {
        padding: 14px 12px;
        margin: 14px 0;
        border-radius: var(--aiot-radius-lg);
    }

    .aiot-tool-info-premium .info-grid {
        gap: 12px;
        padding-inline-start: 0;
    }

    .aiot-tool-info-premium .info-item {
        align-items: flex-start;
    }

    .aiot-tool-info-premium .info-tags {
        gap: 6px;
    }

    .aiot-tool-info-premium .tag {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}


/* ============================================================================
   33. PRINT STYLES
   ============================================================================ */
@media print {
    .aiot-header,
    .aiot-footer,
    .aiot-nav,
    .aiot-hero,
    .aiot-search-container,
    .aiot-search-box,
    .aiot-categories-tabs,
    .aiot-btn,
    .aiot-upgrade-prompt,
    .aiot-upgrade-notice,
    .aiot-upgrade-prompt-premium,
    .aiot-ad-container,
    .aiot-share-section,
    .aiot-payment-modal,
    .aiot-toast {
        display: none !important;
    }

    .aiot-tool-page {
        padding: 0;
    }

    .aiot-tool-header,
    .aiot-tool-workspace,
    .aiot-tool-wrapper,
    .aiot-category-section,
    .aiot-faq-item,
    .aiot-tool-card,
    .aiot-category-card,
    .aiot-pricing-card,
    .aiot-content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
}


/* ============================================================================
   35. ACCESSIBILITY
   ============================================================================ */
*:focus-visible {
    outline: 2px solid var(--aiot-blue);
    outline-offset: 2px;
}

.aiot-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--aiot-blue);
    color: var(--aiot-text-inverse);
    padding: var(--aiot-space-3) var(--aiot-space-6);
    border-radius: var(--aiot-radius-md);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top var(--aiot-duration-base) var(--aiot-ease);
}

.aiot-skip-link:focus {
    top: var(--aiot-space-4);
}

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

    html {
        scroll-behavior: auto;
    }

    .aiot-stagger > * {
        opacity: 1;
        animation: none;
    }
}

/* ============================================================================
   34. DARK MODE SUPPORT
   ============================================================================ */
:root[data-theme="dark"] {
    color-scheme: dark;
    --aiot-navy:         #0a0a0a;
    --aiot-navy-light:   #1a1a1a;
    --aiot-navy-mid:     #2a2a2a;
    --aiot-surface:      #1a1a1a;
    --aiot-surface-raised:#2a2a2a;
    --aiot-surface-dim:  #3a3a3a;
    --aiot-glass-bg:     rgba(26, 26, 26, 0.8);
    --aiot-glass-border: rgba(255, 255, 255, 0.1);
    --aiot-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --aiot-text-primary: #ffffff;
    --aiot-text-secondary: #cccccc;
    --aiot-text-muted: #888888;
    --aiot-text-inverse: #ffffff;
    --aiot-white: #1a1a1a;
    --aiot-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.1);
    --aiot-shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.3);
}



/* Theme toggle */
.aiot-theme-toggle {
    display: flex;
    justify-content: center;
    margin: var(--aiot-space-4) 0;
}

.aiot-theme-toggle-btn {
    background: var(--aiot-glass-bg);
    border: 1px solid var(--aiot-glass-border);
    border-radius: var(--aiot-radius-full);
    padding: var(--aiot-space-2) var(--aiot-space-3);
    cursor: pointer;
    transition: all var(--aiot-duration-base) var(--aiot-ease);
    box-shadow: var(--aiot-shadow-sm);
    font-size: 1.2rem;
}

.aiot-theme-toggle-btn:hover {
    box-shadow: var(--aiot-shadow-md);
    transform: scale(1.05);
}

.aiot-theme-icon-dark {
    display: none;
}

[data-theme="dark"] .aiot-theme-icon-dark {
    display: inline;
}

[data-theme="dark"] .aiot-theme-icon-light {
    display: none;
}

/* ============================================================================
   END — Premium UI CSS v6.0.0
   ============================================================================ */
