/* DashTools Main Stylesheet - Phase 4 Premium Redesign
   ==========================================================================
   Author: DashTools Team
   Version: 2.0.0
   Description: Premium SaaS-style layout with glassmorphism, 3D effects, animations
   ========================================================================== */

/* WordPress Compatibility Reset - Ensures our styles take precedence
   ========================================================================== */
.main-navigation .menu-item-has-children > .sub-menu,
.main-navigation .menu-item-has-children > .nav-dropdown {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:hover > .nav-dropdown,
.main-navigation .menu-item-has-children.is-open > .sub-menu,
.main-navigation .menu-item-has-children.is-open > .nav-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* CSS Variables / Design Tokens
   ========================================================================== */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-primary-glow: rgba(99, 102, 241, 0.3);
    --color-secondary: #0ea5e9;
    --color-secondary-light: #38bdf8;
    --color-accent: #f59e0b;
    --color-accent-light: #fbbf24;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-text: #0f172a;
    --color-text-light: #475569;
    --color-text-muted: #94a3b8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-soft: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container: 1240px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--color-text); }
ul, ol { list-style: none; }

/* Accessibility
   ========================================================================== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.skip-link {
    background: var(--color-primary);
    color: #fff;
    padding: 8px 16px;
    position: absolute;
    top: -40px;
    left: 8px;
    z-index: 100000;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; border-radius: 4px; }

/* Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { flex: 1 0 auto; padding: 0 0 60px; }

/* Animated Background Shapes
   ========================================================================== */
.bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}
.bg-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary-glow);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}
.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.2);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}
.bg-shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.15);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}
.bg-shape-4 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.12);
    top: 30%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes orbit {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes counter {
    from { --num: 0; }
}

/* Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
    transition: var(--transition);
    text-decoration: none;
}
.site-logo:hover { color: var(--color-primary); transform: scale(1.02); }
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
}
.site-logo:hover .logo-icon { transform: rotate(-5deg) scale(1.1); }
.main-navigation ul {
    display: flex;
    gap: 4px;
    align-items: center;
}
.main-navigation a {
    color: var(--color-text-light);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: var(--transition);
    transform: translateX(-50%);
}
.main-navigation a:hover {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.06);
}
.main-navigation a:hover::after { width: 20px; }
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.mobile-menu-toggle:hover { background: var(--color-bg-soft); }
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- Mega Menu / Dropdown ---- */
.menu-item-has-children {
    position: relative;
}
.nav-categories-toggle .nav-chevron {
    transition: transform 0.2s ease;
    vertical-align: middle;
    margin-left: 2px;
}
.menu-item-has-children:hover .nav-chevron,
.menu-item-has-children.is-open .nav-chevron {
    transform: rotate(180deg);
}
.nav-dropdown {
    display: none !important;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 360px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(99, 102, 241, 0.06);
    z-index: 1000;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
}
/* Invisible bridge to prevent gap between toggle and dropdown */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}
.menu-item-has-children:hover > .nav-dropdown,
.menu-item-has-children.is-open > .nav-dropdown {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    animation: dropdown-fade-in 0.2s ease;
}
@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
.nav-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease;
    position: relative;
}
.nav-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.06);
}
.nav-dropdown-item:hover .nav-dropdown-item-name {
    color: var(--color-primary);
}
.nav-dropdown-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.15s ease;
}
.nav-dropdown-item-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Hero - Premium SaaS Style
   ========================================================================== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 25%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

/* Hero floating elements */
.hero-float {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: float 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
.hero-float-1 { top: 15%; left: 8%; animation-delay: 0s; }
.hero-float-2 { top: 25%; right: 10%; animation-delay: -3s; font-size: 20px; }
.hero-float-3 { bottom: 20%; left: 12%; animation-delay: -6s; font-size: 28px; }
.hero-float-4 { bottom: 30%; right: 8%; animation-delay: -9s; font-size: 18px; }
.hero-float-5 { top: 40%; left: 5%; animation-delay: -12s; font-size: 22px; }

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 28px;
    animation: slide-up 0.6s ease-out;
    box-shadow: 0 2px 20px rgba(99, 102, 241, 0.1);
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: slide-up 0.6s ease-out 0.1s both;
}
.hero-title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--color-text-light);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: slide-up 0.6s ease-out 0.2s both;
}

/* Hero search */
.hero-search {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    animation: slide-up 0.6s ease-out 0.3s both;
}
.hero-search input {
    width: 100%;
    padding: 20px 64px 20px 28px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    font-size: 17px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}
.hero-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: scale(1.01);
}
.hero-search input::placeholder { color: var(--color-text-muted); }
.hero-search-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    pointer-events: none;
    opacity: 0.5;
}

/* Hero stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 56px;
    animation: slide-up 0.6s ease-out 0.4s both;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.hero-stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Premium Hero - Phase 7 3D SaaS Style
   ========================================================================== */
.hero-premium { position: relative; }
.hero-premium .hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 20% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #f0f4ff 0%, #f8fafc 40%, #ffffff 100%);
    z-index: 0;
    animation: hero-gradient-shift 20s ease-in-out infinite alternate;
}
@keyframes hero-gradient-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(15deg); }
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.hero-glow-1 {
    width: 400px; height: 400px;
    top: -100px; left: -50px;
    background: rgba(99, 102, 241, 0.15);
    animation: glow-float 8s ease-in-out infinite;
}
.hero-glow-2 {
    width: 300px; height: 300px;
    bottom: -80px; right: -50px;
    background: rgba(14, 165, 233, 0.12);
    animation: glow-float 10s ease-in-out infinite reverse;
}
@keyframes glow-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* Extra floating elements for premium hero */
.hero-float-6 { top: 18%; right: 15%; animation-delay: -4s; font-size: 20px; }
.hero-float-7 { bottom: 15%; right: 12%; animation-delay: -8s; font-size: 16px; }

/* Hero stat animation enhancement */
.hero-stat-value { transition: var(--transition); }
.hero-stat:hover .hero-stat-value { transform: scale(1.08); }

/* Sections
   ========================================================================== */
.categories-section, .tools-section, .why-section, .testimonials-section, .cta-section {
    padding: 80px 0;
}
.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

/* Categories Grid - Premium Cards
   ========================================================================== */
.dashtools-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.dashtools-category-card {
    display: block;
    padding: 36px 28px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.dashtools-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.dashtools-category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}
.dashtools-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}
.dashtools-category-card:hover::before { transform: scaleX(1); }
.dashtools-category-card:hover::after { opacity: 1; }
.dashtools-category-icon {
    font-size: 44px;
    margin-bottom: 18px;
    display: inline-block;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}
.dashtools-category-card:hover .dashtools-category-icon { transform: scale(1.15) rotate(-5deg); }
.dashtools-category-card h3 {
    font-size: 21px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.dashtools-category-card p {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.dashtools-category-count {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Tools Grid - Premium Cards
   ========================================================================== */
.dashtools-grid {
    display: grid;
    gap: 20px;
}
.dashtools-grid-cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dashtools-grid-cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dashtools-grid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.dashtool-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.dashtool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(14, 165, 233, 0.04) 100%);
    opacity: 0;
    transition: var(--transition);
}
.dashtool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}
.dashtool-card:hover::before { opacity: 1; }
.dashtool-card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}
.dashtool-card:hover .dashtool-card-icon { transform: scale(1.1) rotate(-3deg); }
.dashtool-card-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}
.dashtool-card-desc {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.dashtool-card-arrow {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.dashtool-card:hover .dashtool-card-arrow { gap: 10px; }

/* Why Section - Premium Feature Cards
   ========================================================================== */
.why-section { background: var(--color-bg-alt); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.why-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition-bounce);
}
.why-card:hover .why-icon { transform: scale(1.2) rotate(-5deg); }
.why-card h3 { font-size: 20px; margin-bottom: 10px; }
.why-card p { color: var(--color-text-light); font-size: 15px; line-height: 1.6; }

/* CTA Section
   ========================================================================== */
.cta-section {
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cta-content {
    position: relative;
    z-index: 1;
}
.cta-section h2 {
    color: #fff;
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 16px;
}
.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 17px;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: var(--color-primary-dark);
}

/* Tool Layout
   ========================================================================== */
.tool-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-top: 24px;
}
.tool-header { margin-bottom: 24px; }
.tool-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.tool-subtitle {
    font-size: 17px;
    color: var(--color-text-light);
    max-width: 720px;
}
.tool-interface {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}
.tool-article {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    line-height: 1.8;
}
.tool-article h2 { font-size: 26px; margin: 32px 0 14px; }
.tool-article h3 { font-size: 20px; margin: 24px 0 12px; }
.tool-article p { margin-bottom: 16px; color: var(--color-text-light); }
.tool-article ul, .tool-article ol { margin: 16px 0 16px 24px; color: var(--color-text-light); }
.tool-article li { margin-bottom: 8px; }
.tool-article code { background: var(--color-bg-soft); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 14px; }

.tool-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-block {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.sidebar-block h3 { font-size: 16px; margin-bottom: 14px; }
.related-tools li { margin-bottom: 4px; }
.related-tools a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    font-size: 14px;
    transition: var(--transition);
}
.related-tools a:hover {
    background: rgba(99, 102, 241, 0.06);
    color: var(--color-primary);
}
.rt-icon { font-size: 18px; }

/* Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    background: var(--color-bg-alt);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-light, #6b7280);
}
.breadcrumbs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--color-text-light, #6b7280);
}
.breadcrumbs li + li::before {
    content: '/';
    margin: 0 8px;
    color: #d1d5db;
}
.breadcrumbs a {
    color: var(--color-text-light, #6b7280);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover {
    color: var(--color-primary, #9FA1FF);
}
.breadcrumbs li:last-child {
    color: var(--color-text, #111827);
    font-weight: 500;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: '/'; color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-text-light); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span { color: var(--color-text); font-weight: 500; }

/* Footer - Premium Multi-Column
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
    padding: 80px 0 32px;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(14, 165, 233, 0.3), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}
.footer-desc { color: #94a3b8; font-size: 14px; margin-bottom: 14px; line-height: 1.7; }
.footer-tagline { color: #94a3b8; font-size: 13px; line-height: 1.7; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #94a3b8;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: 18px;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p { margin-bottom: 0; }
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    color: #64748b;
    font-size: 13px;
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: #94a3b8; }

/* Archive
   ========================================================================== */
.archive-header {
    text-align: center;
    padding: 40px 0 20px;
}
.archive-header h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.archive-desc { color: var(--color-text-light); max-width: 720px; margin: 0 auto; }
.articles-list { margin-top: 60px; }
.articles-list h2 { font-size: 24px; margin-bottom: 24px; }
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.post-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.post-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); transform: translateY(-4px); }
.post-card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-title {
    font-size: 18px;
    margin: 18px 18px 8px;
}
.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-primary); }
.post-card-excerpt { color: var(--color-text-light); font-size: 14px; padding: 0 18px; margin-bottom: 12px; }
.post-card-link { display: inline-block; padding: 8px 18px 18px; color: var(--color-primary); font-weight: 600; font-size: 14px; }

/* Mobile Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .hero-stats { gap: 32px; }
}
/* Responsive Breakpoints - Phase 7 Comprehensive
   ==========================================================================
   320px  - Small phones
   375px  - iPhone standard
   425px  - Large phones
   768px  - Tablets
   1024px - Small desktops / Large tablets
   1440px - Standard desktops
   1920px - Full HD
   ========================================================================== */

/* ---- 1920px+ (Full HD / Ultra-wide) ---- */
@media (min-width: 1920px) {
    :root { --container: 1400px; }
    .hero-title { font-size: 64px; }
    .hero-subtitle { font-size: 20px; max-width: 750px; }
    .hero-stats { gap: 48px; }
    .hero-stat-value { font-size: 42px; }
    .dashtools-grid { gap: 28px; }
}

/* ---- 1440px (Standard desktop) ---- */
@media (max-width: 1440px) {
    :root { --container: 1200px; }
    .hero-title { font-size: 52px; }
    .hero-stat-value { font-size: 36px; }
}

/* ---- 1200px (Small desktops) ---- */
@media (max-width: 1200px) {
    :root { --container: 1100px; }
    .hero-title { font-size: 48px; }
    .hero-stat-value { font-size: 32px; }
    .dashtools-grid-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 1024px (Tablets landscape / Small desktops) ---- */
@media (max-width: 1024px) {
    :root { --container: 960px; }
    .hero { padding: 70px 0 50px; }
    .hero-title { font-size: 44px; }
    .hero-subtitle { font-size: 17px; }
    .hero-stat-value { font-size: 30px; }
    .hero-float { opacity: 0.6; }
    .hero-float-6, .hero-float-7 { display: none; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .footer-col-brand { grid-column: span 3; }
    .tool-layout { grid-template-columns: 1fr; }
    .tool-sidebar { position: static; margin-top: 32px; }
    .categories-section .dashtools-grid-cols-4,
    .categories-section .dashtools-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 968px (Tablets) ---- */
@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-col-brand { grid-column: span 2; }
    .tool-layout { grid-template-columns: 1fr; }
    .tool-sidebar { position: static; }
    .hero { padding: 70px 0 50px; }
    .hero-title { font-size: 40px; }
    .hero-stat-value { font-size: 28px; }
    .dashtools-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 768px (Tablets portrait) ---- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    /* Navigation - slide-in mobile menu */
    .main-navigation {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 16px;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 998;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .main-navigation.is-open { transform: translateX(0); }
    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-navigation a {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
    }
    .main-navigation a::after { display: none; }
    .mobile-menu-toggle { display: flex; }

    /* Mobile mega menu */
    .menu-item-has-children { position: relative; }
    .nav-dropdown {
        display: none !important;
        visibility: hidden;
        position: static;
        transform: none;
        min-width: 100%;
        padding: 0 0 0 20px;
        background: transparent;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        animation: none;
        opacity: 0;
        pointer-events: none;
    }
    .nav-dropdown::before { display: none; }
    .menu-item-has-children.is-open > .nav-dropdown {
        display: block !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-dropdown-inner { grid-template-columns: 1fr; gap: 0; }
    .nav-dropdown-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 8px;
    }
    .nav-dropdown-item-desc { font-size: 11px; color: var(--color-text-muted); }
    .nav-categories-toggle .nav-chevron { margin-left: auto; }

    /* Hero */
    .hero { padding: 50px 0 40px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; max-width: 100%; }
    .hero-search { max-width: 100%; }
    .hero-search input { padding: 14px 48px 14px 18px; font-size: 15px; }
    .hero-stats { flex-direction: row; gap: 16px; justify-content: center; flex-wrap: wrap; }
    .hero-stat { flex: 1; min-width: 80px; }
    .hero-stat-value { font-size: 24px; }
    .hero-stat-label { font-size: 13px; }
    .hero-float { display: none; }
    .hero-glow { display: none; }
    .hero-bg-grid { display: none; }
    
    /* Grids */
    .dashtools-grid-cols-3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .dashtools-grid-cols-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .why-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Sections */
    .categories-section, .tools-section, .why-section, .articles-section { padding: 50px 0; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 15px; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-col-brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
    .footer-bottom-links { justify-content: center; }
    
    /* Tool page */
    .tool-layout { grid-template-columns: 1fr; }
    .tool-sidebar { position: static; margin-top: 24px; }
    .tool-interface { padding: 20px; }
    .tool-article { padding: 20px; }
    
    /* CTA */
    .cta-content { padding: 40px 24px; }
    
    /* Blog */
    .blog-header { padding: 30px 16px; }
    .blog-title { font-size: 28px; }
    
    /* Single post */
    .single-post { padding: 20px 0; }
    .post-title { font-size: 28px; }
    .post-meta span { display: block; margin: 4px 0; }
    
    /* Ad placement */
    .dt-ad-header, .dt-ad-footer { margin: 16px auto; }
}

/* ---- 480px (Large phones) ---- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    
    /* Hero */
    .hero { padding: 40px 0 30px; }
    .hero-title { font-size: 30px; line-height: 1.2; }
    .hero-title br { display: none; }
    .hero-subtitle { font-size: 15px; line-height: 1.6; }
    .hero-search { margin: 0 auto; }
    .hero-search input { padding: 14px 44px 14px 16px; font-size: 14px; }
    .hero-badge { font-size: 13px; padding: 8px 16px; }
    .hero-stats { flex-direction: row; gap: 12px; }
    .hero-stat { min-width: 60px; }
    .hero-stat-value { font-size: 22px; }
    .hero-stat-label { font-size: 12px; }
    
    /* Grids */
    .dashtools-grid-cols-3,
    .dashtools-grid-cols-4 { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    
    /* Cards */
    .dashtool-card { padding: 0; }
    .dashtool-card-title { font-size: 16px; }
    .dashtool-card-desc { font-size: 13px; }
    
    /* Sections */
    .categories-section, .tools-section, .why-section, .articles-section { padding: 40px 0; }
    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 14px; }
    
    /* CTA */
    .cta-content { padding: 32px 16px; }
    .cta-content h2 { font-size: 22px; }
    
    /* Footer */
    .footer-grid { padding: 0; }
    .footer-col { padding: 0; }
    .footer-links { columns: 2; column-gap: 16px; }
    .footer-bottom p { font-size: 13px; }
    
    /* Blog */
    .blog-title { font-size: 24px; }
    .blog-subtitle { font-size: 14px; }
    
    /* Single post */
    .post-title { font-size: 24px; }
    .post-content { font-size: 16px; }
    .post-content h2 { font-size: 22px; }
    .post-content h3 { font-size: 18px; }
    
    /* Tool page */
    .tool-title { font-size: 22px; }
    .tool-interface { padding: 16px; }
    .tool-article { padding: 16px; }
    
    /* Legal pages */
    .legal-page { padding: 16px 0; }
    .legal-page h1 { font-size: 28px; }
    .legal-page h2 { font-size: 20px; }
    
    /* Share buttons */
    .post-share { padding: 16px !important; }
    .share-btn { font-size: 13px; padding: 8px 12px; }
    
    /* Related posts */
    .related-posts { padding: 0 16px; }
    
    /* Comments */
    .comment-respond { padding: 16px; }
    
    /* Breadcrumbs */
    .breadcrumbs { font-size: 13px; padding: 8px 0; }
}

/* ---- 375px (iPhone standard) ---- */
@media (max-width: 375px) {
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .hero-stat-value { font-size: 20px; }
    .hero-search input { padding: 12px 40px 12px 14px; font-size: 13px; }
    .section-title { font-size: 22px; }
    .dashtool-card-title { font-size: 15px; }
    .footer-links { columns: 1; }
    .post-title { font-size: 22px; }
}

/* ---- 320px (Small phones) ---- */
@media (max-width: 320px) {
    .container { padding: 0 12px; }
    .hero { padding: 30px 0 24px; }
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 13px; }
    .hero-badge { font-size: 12px; padding: 6px 12px; }
    .hero-stats { gap: 8px; }
    .hero-stat { min-width: 50px; }
    .hero-stat-value { font-size: 18px; }
    .hero-stat-label { font-size: 11px; }
    .hero-search input { padding: 10px 36px 10px 12px; font-size: 12px; }
    .section-title { font-size: 20px; }
    .section-subtitle { font-size: 13px; }
    .dashtool-card { margin-bottom: 12px; }
    .dashtool-card-title { font-size: 14px; }
    .dashtool-card-desc { font-size: 12px; }
    .dashtool-card-arrow { font-size: 13px; }
    .blog-title { font-size: 20px; }
    .post-title { font-size: 20px; }
    .post-content { font-size: 15px; }
    .cta-content { padding: 24px 12px; }
    .cta-content h2 { font-size: 20px; }
    .cta-btn { font-size: 14px; padding: 12px 24px; }
    .footer-links { columns: 1; }
    .footer-bottom p { font-size: 12px; }
    .legal-page h1 { font-size: 24px; }
    .legal-page h2 { font-size: 18px; }
    .tool-title { font-size: 20px; }
    .tool-interface { padding: 12px; }
    .tool-article { padding: 12px; }
}

/* ---- Hover states: only on devices with pointer ---- */
@media (hover: hover) and (pointer: fine) {
    .dashtool-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
    }
    .dashtools-category-card:hover {
        transform: translateY(-2px);
    }
    .why-card:hover {
        transform: translateY(-2px);
    }
    .post-card:hover {
        transform: translateY(-3px);
    }
}

/* ---- Touch devices: remove hover transforms, larger tap targets ---- */
@media (hover: none) and (pointer: coarse) {
    .dashtool-card,
    .dashtools-category-card,
    .why-card,
    .post-card { transform: none !important; }
    .main-navigation a { min-height: 44px; display: flex; align-items: center; }
    .footer-links a { min-height: 44px; display: flex; align-items: center; }
}

/* ---- Reduced motion: disable animations ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-float { animation: none !important; }
    .bg-shape { animation: none !important; }
    .hero-glow { animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ---- Dark mode support (future) ---- */
@media (prefers-color-scheme: dark) {
    /* Placeholder for future dark mode */
}

/* ---- Print ---- */
@media print {
    .site-header, .site-footer, .tool-sidebar, .breadcrumbs, .no-print { display: none !important; }
    body { color: #000; background: #fff; }
    .hero { background: #f8f9fa; padding: 20px 0; }
    .hero-float, .hero-glow, .bg-shapes, .hero-bg-gradient, .hero-bg-grid { display: none; }
}

/* Animation classes for scroll reveal
   ========================================================================== */
.dashtool-card,
.dashtools-category-card,
.why-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.dashtool-card.animate-in,
.dashtools-category-card.animate-in,
.why-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Legal Pages
   ========================================================================== */
.legal-page { max-width: 860px; margin: 0 auto; padding: 20px 0; }
.legal-page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 8px; }
.legal-page h2 { font-size: 24px; margin: 32px 0 12px; color: var(--color-text); font-weight: 700; }
.legal-page h3 { font-size: 18px; margin: 24px 0 8px; color: var(--color-text); }
.legal-page p { line-height: 1.8; margin-bottom: 16px; color: var(--color-text-light); }
.legal-page ul, .legal-page ol { margin: 12px 0 20px 24px; }
.legal-page li { margin-bottom: 8px; line-height: 1.7; color: var(--color-text-light); }
.legal-page strong { color: var(--color-text); }
.legal-page .page-meta { color: var(--color-text-muted); font-size: 14px; margin-bottom: 24px; }
.legal-page a { color: var(--color-primary); text-decoration: underline; }

/* Page content
   ========================================================================== */
.page-content { max-width: 860px; margin: 0 auto; padding: 20px 0; }
.page-content h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 20px; }
.page-content h2 { font-size: 26px; margin: 32px 0 14px; color: var(--color-text); }
.page-content h3 { font-size: 20px; margin: 24px 0 10px; color: var(--color-text); }
.page-content p { line-height: 1.8; margin-bottom: 16px; color: var(--color-text-light); }
.page-content ul, .page-content ol { margin: 12px 0 20px 24px; }
.page-content li { margin-bottom: 8px; line-height: 1.7; color: var(--color-text-light); }
.page-content strong { color: var(--color-text); }
.page-featured-image { margin: 24px 0; border-radius: var(--radius-lg); overflow: hidden; }

/* Single Post
   ========================================================================== */
.single-post { max-width: 800px; margin: 0 auto; padding: 20px 0; }
.post-header { text-align: center; margin-bottom: 32px; }
.post-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; line-height: 1.2; }
.post-meta { color: var(--color-text-muted); font-size: 14px; }
.post-meta span { margin: 0 8px; }
.post-featured-image { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.post-content { line-height: 1.8; font-size: 17px; }
.post-content h2 { font-size: 28px; margin: 36px 0 16px; }
.post-content h3 { font-size: 22px; margin: 28px 0 12px; }
.post-content p { margin-bottom: 20px; color: var(--color-text-light); }
.post-content img { border-radius: var(--radius); margin: 24px 0; }
.post-content blockquote { background: var(--color-bg-soft); border-left: 4px solid var(--color-primary); padding: 20px 24px; margin: 24px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-content code { background: var(--color-bg-soft); padding: 2px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 14px; }
.post-tags { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.post-tags a { display: inline-block; padding: 6px 12px; background: var(--color-bg-soft); border-radius: 20px; font-size: 13px; margin-right: 6px; color: var(--color-text); }

/* Pagination
   ========================================================================== */
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span, .nav-links a, .nav-links span { padding: 8px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-light); }
.pagination a:hover, .nav-links a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .current, .nav-links .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Ad placement
   ========================================================================== */
.dt-ad-unit { margin: 32px 0; min-height: 100px; }
.dt-ad-placeholder { background: var(--color-bg-soft); border: 1px dashed var(--color-border); padding: 20px; text-align: center; color: var(--color-text-muted); border-radius: var(--radius-sm); margin: 20px 0; font-size: 13px; }
.dt-ad-header { margin: 16px auto 0; max-width: 1200px; text-align: center; }
.dt-ad-header .dt-ad-placeholder,
.dt-ad-header .dt-ad-unit { margin: 0; }
.dt-ad-footer { margin: 24px auto 32px; max-width: 1200px; text-align: center; }
.dt-ad-footer .dt-ad-placeholder,
.dt-ad-footer .dt-ad-unit { margin: 0; }
.dt-ad-sidebar .dt-ad-placeholder,
.dt-ad-sidebar .dt-ad-unit { margin: 0 0 16px; }
.dt-ad-incontent { background: var(--color-bg-alt); padding: 16px; border-radius: var(--radius-sm); }
.dt-ad-incontent .dt-ad-placeholder,
.dt-ad-incontent .dt-ad-unit { margin: 0; }

/* Widgets
   ========================================================================== */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 18px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary); }
.widget ul li { padding: 6px 0; }
.widget a { color: var(--color-text-light); }
.widget a:hover { color: var(--color-primary); }

/* Utility Classes
   ========================================================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); }
.glow { box-shadow: var(--shadow-glow); }

/* Featured Tools CTA
   ========================================================================== */
.featured-tools-cta {
    text-align: center;
    margin-top: 40px;
}
.dt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.dt-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.dt-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
}
.dt-btn-secondary {
    background: var(--color-bg-soft);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.dt-btn-secondary:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}
.dt-btn-sm { padding: 8px 18px; font-size: 13px; }
.dt-btn-lg { padding: 16px 36px; font-size: 17px; }

/* Tool Content Placeholder
   ========================================================================== */
.tool-content-placeholder {
    text-align: center;
    padding: 48px 24px;
    background: var(--color-bg-alt);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
}
.tool-content-placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.tool-content-placeholder h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text);
}
.tool-content-placeholder p {
    color: var(--color-text-light);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* Tool Editor Content
   ========================================================================== */
.tool-editor-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-light);
}
.tool-editor-content h2 {
    color: var(--color-text);
    font-size: 26px;
    margin: 36px 0 16px;
    font-weight: 700;
}
.tool-editor-content h3 {
    color: var(--color-text);
    font-size: 20px;
    margin: 28px 0 12px;
    font-weight: 600;
}
.tool-editor-content p { margin-bottom: 16px; }
.tool-editor-content ul, .tool-editor-content ol { margin: 16px 0 16px 24px; }
.tool-editor-content li { margin-bottom: 8px; }
.tool-editor-content code {
    background: var(--color-bg-soft);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
}
.tool-editor-content pre {
    background: var(--color-bg-soft);
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 16px 0;
}
.tool-editor-content pre code {
    background: none;
    padding: 0;
}
.tool-editor-content blockquote {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-primary);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.tool-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

/* ============================================
   SEARCH DROPDOWN (Live suggestions)
   ============================================ */
.hero-search { position: relative; }
.dt-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(159, 161, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(159, 161, 255, 0.08);
    z-index: 9999;
    overflow: hidden;
    animation: ddSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dt-search-dropdown.is-open { display: block; }
@keyframes ddSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dt-search-dropdown-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}
.dt-search-dropdown-list::-webkit-scrollbar { width: 4px; }
.dt-search-dropdown-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.dt-sd-empty {
    text-align: center;
    padding: 24px 16px;
    color: #9ca3af;
    font-size: 14px;
}
.dt-sd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.12s ease;
    cursor: pointer;
}
.dt-sd-item:hover,
.dt-sd-item.is-selected {
    background: rgba(159, 161, 255, 0.08);
}
.dt-sd-item.is-selected {
    box-shadow: inset 0 0 0 1px rgba(159, 161, 255, 0.2);
}
.dt-sd-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(159, 161, 255, 0.08), rgba(174, 226, 255, 0.08));
    border-radius: 10px;
    flex-shrink: 0;
}
.dt-sd-item-info {
    flex: 1;
    min-width: 0;
}
.dt-sd-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dt-sd-item-name mark {
    background: rgba(159, 161, 255, 0.25);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
.dt-sd-item-desc {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.dt-sd-item-desc mark {
    background: rgba(159, 161, 255, 0.25);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
.dt-sd-item-cat {
    font-size: 11px;
    font-weight: 600;
    color: #9FA1FF;
    background: rgba(159, 161, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.dt-sd-footer {
    text-align: center;
    padding: 8px 16px;
    font-size: 11px;
    color: #9ca3af;
    border-top: 1px solid rgba(159, 161, 255, 0.08);
}
.dt-sd-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-family: inherit;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin: 0 2px;
}

/* ============================================
   SEARCH MODAL (Full results)
   ============================================ */
.dt-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}
.dt-search-modal.is-open {
    display: flex;
    animation: searchModalFadeIn 0.2s ease;
}
@keyframes searchModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.dt-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.dt-search-dialog {
    position: relative;
    width: 90%;
    max-width: 640px;
    max-height: 70vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(159, 161, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 40px rgba(159, 161, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: searchModalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes searchModalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dt-search-dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(159, 161, 255, 0.12);
}
.dt-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(159, 161, 255, 0.06);
    border: 1px solid rgba(159, 161, 255, 0.15);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dt-search-input-wrap:focus-within {
    border-color: #9FA1FF;
    box-shadow: 0 0 0 3px rgba(159, 161, 255, 0.15);
}
.dt-search-modal-icon {
    font-size: 18px;
    opacity: 0.5;
    flex-shrink: 0;
}
#dtSearchModalInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    outline: none;
    font-family: inherit;
}
#dtSearchModalInput::placeholder {
    color: #9ca3af;
    font-weight: 400;
}
.dt-search-kbd {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11px;
    font-family: inherit;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    flex-shrink: 0;
}
.dt-search-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.dt-search-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #111827;
}

/* Search Results */
.dt-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    max-height: 50vh;
}
.dt-search-results::-webkit-scrollbar { width: 6px; }
.dt-search-results::-webkit-scrollbar-track { background: transparent; }
.dt-search-results::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.dt-search-empty {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
}
.dt-search-empty-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.6;
}
.dt-search-empty p {
    margin: 0;
    font-size: 15px;
}
.dt-search-empty-hint {
    margin-top: 8px !important;
    font-size: 13px !important;
}
.dt-search-empty-hint a {
    color: #9FA1FF;
    text-decoration: none;
    font-weight: 600;
}
.dt-search-empty-hint a:hover {
    text-decoration: underline;
}

/* Result Items */
.dt-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dt-search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    cursor: pointer;
}
.dt-search-result-item:hover,
.dt-search-result-item.is-selected {
    background: rgba(159, 161, 255, 0.08);
}
.dt-search-result-item.is-selected {
    box-shadow: inset 0 0 0 1px rgba(159, 161, 255, 0.2);
}
.dt-search-result-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(159, 161, 255, 0.1), rgba(174, 226, 255, 0.1));
    border-radius: 12px;
    flex-shrink: 0;
}
.dt-search-result-info {
    flex: 1;
    min-width: 0;
}
.dt-search-result-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dt-search-result-name mark {
    background: rgba(159, 161, 255, 0.25);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
.dt-search-result-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dt-search-result-desc mark {
    background: rgba(159, 161, 255, 0.25);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
.dt-search-result-meta {
    margin-top: 4px;
}
.dt-search-result-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #9FA1FF;
    background: rgba(159, 161, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dt-search-result-action {
    flex-shrink: 0;
}
.dt-search-result-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    color: #9ca3af;
    transition: all 0.15s;
}
.dt-search-result-item:hover .dt-search-result-arrow,
.dt-search-result-item.is-selected .dt-search-result-arrow {
    background: rgba(159, 161, 255, 0.12);
    color: #9FA1FF;
}

/* Footer */
.dt-search-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 20px;
    border-top: 1px solid rgba(159, 161, 255, 0.1);
    background: rgba(159, 161, 255, 0.03);
    font-size: 12px;
    color: #9ca3af;
}
.dt-search-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
    font-family: inherit;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin: 0 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dt-search-dropdown { border-radius: 12px; }
    .dt-sd-item { padding: 8px 12px; gap: 10px; }
    .dt-sd-item-icon { width: 32px; height: 32px; font-size: 16px; }
    .dt-sd-item-cat { display: none; }
    .dt-search-modal { padding-top: 5vh; }
    .dt-search-dialog { width: 95%; max-height: 80vh; border-radius: 16px; }
    .dt-search-dialog-header { padding: 12px 14px; }
    .dt-search-footer { gap: 12px; font-size: 11px; }
    .dt-search-result-icon { width: 38px; height: 38px; font-size: 18px; }
    .dt-search-result-item { padding: 10px 12px; gap: 10px; }
}
@media (max-width: 480px) {
    .dt-search-dropdown { border-radius: 0 0 16px 16px; margin: 0 -20px; }
    .dt-search-modal { padding-top: 0; align-items: flex-end; }
    .dt-search-dialog { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; }
    .dt-search-footer { display: none; }
}

/* ---- AI Settings Bar ---- */
.dt-ai-settings-bar {
    margin-bottom: 24px;
    border: 1px solid var(--glass-border, #e5e7eb);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur, blur(12px));
    overflow: hidden;
}
.dt-ai-settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #111827);
    user-select: none;
}
.dt-ai-settings-toggle:hover { background: rgba(99, 102, 241, 0.04); }
.dt-ai-settings-status {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}
.dt-ai-configured { background: #d1fae5; color: #065f46; }
.dt-ai-not-configured { background: #fef3c7; color: #92400e; }
.dt-ai-settings-panel {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--glass-border, #e5e7eb);
}
.dt-ai-settings-panel.is-open { display: block; }
.dt-ai-settings-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}
.dt-ai-settings-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light, #374151);
}
.dt-ai-settings-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.dt-ai-settings-hint {
    font-size: 12px;
    color: var(--color-text-muted, #6b7280);
    margin-top: 4px;
}
.dt-ai-settings-hint a {
    color: var(--color-primary, #6366f1);
    text-decoration: underline;
}
