/* ==========================================================================
   MrDigit Tools - Modern Stylesheet
   Pure CSS, Responsive, Dark/Light Mode, Ultra Fast Loading
   ========================================================================== */

:root {
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Brand & Accent */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.15);
    --primary-rgb: 37, 99, 235;

    --accent: #8b5cf6;
    --accent-light: rgba(139, 92, 246, 0.15);
    
    /* Default Pure Dark Mode (0ms Zero Flash / Fast Paint) */
    --bg-body: #090d16;
    --bg-card: #111827;
    --bg-card-subtle: #1e293b;
    --bg-glass: rgba(17, 24, 39, 0.85);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border: #1e293b;
    --border-hover: #334155;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    --header-height: 70px;
    --container-max: 1100px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Explicit Dark Theme Selector (Matches :root for full parity) */
[data-theme="dark"] {
    --bg-body: #090d16;
    --bg-card: #111827;
    --bg-card-subtle: #1e293b;
    --bg-glass: rgba(17, 24, 39, 0.85);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border: #1e293b;
    --border-hover: #334155;

    --primary-light: rgba(37, 99, 235, 0.15);
    --accent-light: rgba(139, 92, 246, 0.15);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Light Theme Override (Applied ONLY when user explicitly toggles Light Mode) */
[data-theme="light"] {
    --primary-light: #eff6ff;
    --accent-light: #f5f3ff;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.theme-transitioning {
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 40px 20px 40px;
}

.site-header .container,
.breadcrumb-bar .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-logo.sm {
    width: 32px;
    height: 32px;
}

.brand-logo svg {
    width: 22px;
    height: 22px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-badge {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-external {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ext-icon {
    width: 14px;
    height: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Theme Toggle Icons: Default is Dark Mode (show Sun to switch to Light) */
.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.btn-header {
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    display: inline-block;
}

.btn-header:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Breadcrumb */
.breadcrumb-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 0.84rem;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-light);
}

.breadcrumb-current {
    color: var(--text-main);
    font-weight: 600;
}

/* ==========================================================================
   Home Hero Section (Compact & Optimized)
   ========================================================================== */
.hero-section {
    padding: 24px 0 10px;
    text-align: center;
    position: relative;
}

.hero-section .container {
    padding-top: 0;
    padding-bottom: 0;
}

.hero-pill {
    display: none;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

.hero-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.45;
}

/* Search and Filters */
.search-filter-wrapper {
    max-width: 620px;
    margin: 0 auto 10px;
}

.search-box {
    position: relative;
    margin-bottom: 10px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 18px 12px 46px;
    font-size: 0.96rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

/* ==========================================================================
   Tools Grid Section
   ========================================================================== */
.tools-section {
    padding: 6px 0 60px;
}

.tools-section .container {
    padding-top: 4px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tool-count-badge {
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--bg-card-subtle);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

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

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    box-sizing: border-box;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tool-card:hover .card-icon-box {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.tool-svg {
    width: 26px;
    height: 26px;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-badge.popular {
    background: #fef3c7;
    color: #b45309;
}

.card-badge.trending {
    background: #ecfdf5;
    color: #047857;
}

.card-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

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

.card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.card-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.tool-card:hover .card-link svg {
    transform: translateX(4px);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    color: var(--text-muted);
}

/* ==========================================================================
   Tool Single Page Layout (Compact & Clean)
   ========================================================================== */
.tool-header-banner {
    padding: 30px 0 30px;
    text-align: center;
}

.tool-header-banner .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.tool-category-badge {
    display: none !important;
}

.tool-page-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 4px;
    line-height: 1.25;
}

.tool-page-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto;
    line-height: 1.45;
}

.tool-sandbox-area {
    margin: 8px 0 32px;
}

.tool-sandbox-area .container {
    padding-top: 0 !important;
}

.tool-workspace-card {
    width: 100%;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
}

/* Common Form Controls inside Tools */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
    background: var(--bg-card-subtle);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

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

.btn-outline:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* Common Metric Counter Badges */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box {
    background: var(--bg-card-subtle);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Tool Article & SEO Section
   Standardized across all tools
   ========================================================================== */
.tool-article-section {
    padding: 20px 0 60px;
    cursor: default;
}

.article-wrapper {
    max-width: 100%;
    margin: 0 auto;
    cursor: default;
}

.article-block {
    margin-bottom: 56px;
}

.article-badge-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 8px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.article-h2 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.article-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.article-prose {
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.article-prose p {
    margin-bottom: 16px;
}

.article-prose strong {
    color: var(--text-main);
}

/* ==========================================================================
   Numbered Circle Stepper (Clean, Modern, Professional UI)
   Left: Circle (1, 2, 3...) | Right: Title on top, Description underneath
   ========================================================================== */
.stepper-list,
.step-flow-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
    width: 100%;
}

.stepper-item,
.step-flow-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.stepper-item:hover,
.step-flow-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stepper-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    line-height: 1;
}

.stepper-content {
    flex: 1;
    min-width: 0;
}

.stepper-title,
.step-flow-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.stepper-desc,
.step-flow-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* Features Grid - Clean, Spaced Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: background 0.18s ease, border-color 0.18s ease;
    cursor: default;
}

.feature-item:not(.related-tool-card):hover {
    background: var(--bg-card-subtle);
    border-color: var(--border-hover);
}

.feature-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-icon-box svg {
    width: 15px;
    height: 15px;
}

.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
    line-height: 1.35;
}

.feature-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Related Tools Grid - 3 cols, link cards with hover */
.related-tools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.related-tool-card {
    cursor: pointer;
    color: inherit;
}

.related-tool-card:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary) !important;
}

.related-tool-card:hover .feature-title {
    color: var(--primary);
}

/* Related tool icon uses the tool SVG which is larger */
.related-icon-box {
    width: 36px !important;
    height: 36px !important;
    border-radius: var(--radius-sm) !important;
}

.related-icon-box svg,
.related-icon-box .tool-svg {
    width: 20px !important;
    height: 20px !important;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.chevron-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.faq-item[open] .chevron-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Privacy Box */
.privacy-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--accent-light);
    border: 1.5px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 40px;
}

.privacy-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy-icon svg {
    width: 22px;
    height: 22px;
}

.privacy-text h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.privacy-text p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 20px;
}

.footer-security-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card-subtle);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-security-pill svg {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Google Drive Direct Link Generator - Exact Design (Desktop & Mobile)
   Matches provided reference image 100%
   ========================================================================== */
.gdrive-tool-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #1e2227;
    border: 1px solid #3c424a;
    border-radius: 6px;
    padding: 34px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
}

.gdrive-box-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.gdrive-input-wrapper {
    width: 100%;
    margin: 0 auto 20px;
}

.gdrive-input {
    width: 100%;
    background: #16181b;
    color: #ffffff;
    border: 2px solid #8e959e;
    border-radius: 4px !important;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.gdrive-input:focus {
    border-color: #03a9f4;
}

.gdrive-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.gdrive-btn {
    border: none;
    border-radius: 4px !important;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    user-select: none;
}

.gdrive-btn-submit {
    background-color: #03a9f4;
    color: #ffffff;
    padding: 10px 28px;
    font-size: 17px;
}

.gdrive-btn-submit:hover {
    background-color: #0288d1;
    transform: translateY(-1px);
}

.gdrive-btn-reset {
    background-color: #8b8b8b;
    color: #ffffff;
    padding: 10px 24px;
    font-size: 17px;
}

.gdrive-btn-reset:hover {
    background-color: #757575;
}

/* Divider */
.gdrive-dashed-divider {
    border-top: 1px dashed #6c757d;
    margin: 30px auto 26px;
    width: 100%;
}

/* Output Section */
.gdrive-output-section {
    animation: fadeIn 0.3s ease;
}

.gdrive-output-input {
    width: 100%;
    background: #f5f5f5;
    color: #333333;
    border: 1px dashed #ffffff;
    border-radius: 4px !important;
    padding: 12px 16px;
    font-size: 15px;
    font-style: italic;
    font-family: inherit;
    box-sizing: border-box;
}

.gdrive-bottom-button-group {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin: 0 auto;
}

.gdrive-btn-download {
    flex: 1;
    background-color: #4caf50;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
}

.gdrive-btn-download:hover {
    background-color: #43a047;
}

.gdrive-btn-copy {
    flex: 1;
    background-color: #3367d6;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
}

.gdrive-btn-copy:hover {
    background-color: #2850a7;
}

.gdrive-btn-copy.btn-copied {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

/* Common Layout Helpers for Other Tools */
.qr-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: start;
}

.pwd-output-row {
    position: relative;
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   Gemini Watermark Remover (High-End SaaS UI)
   ========================================================================== */
.gwm-container {
    width: 100%;
}

.gwm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.gwm-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    min-height: 480px;
    box-sizing: border-box;
}

.gwm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.gwm-step-pill {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
}

.gwm-step-pill-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.gwm-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.gwm-dropzone {
    flex: 1;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-card-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gwm-dropzone:hover,
.gwm-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    transform: scale(1.008);
}

.gwm-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.gwm-upload-svg {
    width: 32px;
    height: 32px;
}

.gwm-drop-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: var(--text-main);
}

.gwm-drop-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 14px 0;
}

.gwm-browse-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.gwm-file-types {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.gwm-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.gwm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(37, 99, 235, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: gwmSpin 0.85s linear infinite;
    margin-bottom: 18px;
}

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

.gwm-loading-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.gwm-loading-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.gwm-privacy-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.82rem;
    font-weight: 600;
    justify-content: center;
}

.gwm-privacy-banner svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.gwm-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.gwm-empty-icon svg {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    opacity: 0.35;
    margin-bottom: 16px;
}

.gwm-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

.gwm-empty-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0;
    line-height: 1.6;
}

.gwm-result-state {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gwm-result-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.gwm-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 999px;
}

.gwm-badge-success svg {
    width: 14px;
    height: 14px;
}

.gwm-badge-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--bg-card-subtle);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.gwm-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090d16;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border);
    min-height: 280px;
    max-height: 420px;
    overflow: hidden;
    margin-bottom: 20px;
}

#result-canvas {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gwm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.gwm-btn-download {
    background: #10b981 !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border-radius: var(--radius-md) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.gwm-btn-download:hover {
    background: #059669 !important;
    transform: translateY(-1px);
}

.gwm-btn-reset {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ==========================================================================
   Gemini & Veo Unified Media Dropzone & Video Player (Matches Reference)
   ========================================================================== */
.gwm-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gwm-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gwm-tab-btn:hover {
    border-color: #6366f1;
    color: var(--text-main);
    transform: translateY(-1px);
}

.gwm-tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Reference UI: Drop An Image or Video Box */
.gwm-unified-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
}

.gwm-unified-dropzone {
    border: 2px dashed #818cf8;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-card-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gwm-unified-dropzone:hover,
.gwm-unified-dropzone.dragover {
    border-color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
    transform: scale(1.008);
}

/* Center Purple Rounded Square Icon with Attached Video Badge */
.gwm-icon-badge {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.45);
    margin-bottom: 18px;
}

.gwm-icon-badge .upload-svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
}

.gwm-icon-badge .video-sub-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gwm-icon-badge .video-sub-badge svg {
    width: 13px;
    height: 13px;
    color: #4f46e5;
}

.gwm-hero-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.gwm-hero-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    max-width: 600px;
    line-height: 1.5;
}

.gwm-limits {
    font-size: 0.88rem;
    color: var(--text-muted);
    opacity: 0.85;
    margin-bottom: 0;
}

.gwm-security-note {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.gwm-security-note svg {
    width: 15px;
    height: 15px;
    color: #10b981;
}

/* Video Processing & Synchronized Player */
.gwm-video-stage {
    margin-top: 28px;
}

.gwm-video-panes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gwm-video-pane {
    position: relative;
    background: #090d16;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gwm-video-pane video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gwm-video-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gwm-video-tag.tag-clean {
    background: rgba(16, 185, 129, 0.9);
}

.gwm-video-empty {
    color: #94a3b8;
    font-size: 0.92rem;
    text-align: center;
    padding: 24px;
}

.gwm-player-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.gwm-play-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gwm-play-btn:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}

.gwm-scrubber {
    flex: 1;
    height: 6px;
    accent-color: var(--primary);
    cursor: pointer;
}

.gwm-time-label {
    font-family: monospace;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

/* Video Progress & Status Box */
.gwm-video-status-box {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.gwm-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-card-subtle);
    overflow: hidden;
    margin-top: 10px;
}

.gwm-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #10b981);
    transition: width 0.2s ease;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile UX Overhaul
   ========================================================================== */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* Tablet: 2-col features grid */
@media (max-width: 860px) {
    .features-grid,
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 768px) {
    /* Mobile-first padding */
    .container {
        padding: 16px 14px !important;
    }

    /* Prevent auto-zooming on iPhone/Android */
    input, textarea, select, .form-control {
        font-size: 16px !important;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        display: none;
        box-shadow: var(--shadow-lg);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav-actions {
        justify-content: space-between;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        padding: 14px 0 4px;
    }

    .hero-section .container {
        padding: 0 14px !important;
    }

    .hero-title {
        font-size: 1.38rem;
        line-height: 1.22;
        margin-bottom: 4px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .search-filter-wrapper {
        max-width: 100%;
        margin-bottom: 6px;
    }

    .search-box {
        margin-bottom: 8px;
    }

    .search-icon {
        left: 14px;
        width: 16px;
        height: 16px;
    }

    .search-input {
        padding: 10px 14px 10px 38px;
        font-size: 14px !important;
    }

    .category-pills {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 4px 6px;
        margin: 0 -14px;
        padding-left: 14px;
        padding-right: 14px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
    }

    .category-pills::-webkit-scrollbar {
        display: none;
    }

    .cat-pill {
        padding: 5px 12px;
        font-size: 0.78rem;
        flex-shrink: 0;
    }

    .tools-section {
        padding: 4px 0 36px;
    }

    .tools-section .container {
        padding-top: 4px !important;
    }

    .section-header {
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .tool-count-badge {
        font-size: 0.75rem;
        padding: 2px 8px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tool-card {
        padding: 16px 18px;
        border-radius: var(--radius-md);
    }

    .card-top {
        margin-bottom: 10px;
    }

    .card-icon-box {
        width: 44px;
        height: 44px;
    }

    .tool-svg {
        width: 22px;
        height: 22px;
    }

    .card-title {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }

    .card-desc {
        font-size: 0.84rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .card-footer {
        padding-top: 10px;
    }

    /* Single Tool Page Mobile Header & Spacing (Compact & Sleek) */
    .tool-header-banner {
        padding: 20px 0 20px !important;
    }

    .tool-header-banner .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .tool-page-title {
        font-size: 1.3rem !important;
        margin-bottom: 4px !important;
    }

    .tool-page-desc {
        font-size: 0.84rem !important;
        line-height: 1.35 !important;
    }

    .tool-sandbox-area {
        margin: 6px 0 20px !important;
    }

    .tool-sandbox-area .container {
        padding-top: 0 !important;
    }

    .tool-workspace-card {
        padding: 18px 14px;
        border-radius: 10px;
    }

    /* Google Drive Tool - Mobile View (Matches Reference Image 2) */
    .gdrive-tool-box {
        padding: 22px 14px;
        border-radius: 6px;
    }

    .gdrive-box-title {
        font-size: 1.35rem;
        margin-bottom: 16px;
    }

    .gdrive-input-wrapper {
        width: 100%;
        margin-bottom: 16px;
    }

    .gdrive-input,
    .gdrive-output-input {
        font-size: 15px;
        padding: 12px 12px;
    }

    .gdrive-action-buttons {
        gap: 8px;
    }

    .gdrive-btn-submit,
    .gdrive-btn-reset {
        font-size: 15px;
        padding: 11px 18px;
        flex: 1;
        max-width: 180px;
    }

    .gdrive-dashed-divider {
        margin: 24px auto 20px;
        width: 100%;
    }

    .gdrive-bottom-button-group {
        width: 100%;
        gap: 10px;
    }

    .gdrive-btn-download,
    .gdrive-btn-copy {
        font-size: 14px;
        padding: 12px 10px;
    }

    /* Word Counter on Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    .stat-box {
        padding: 12px 8px !important;
    }

    .stat-value {
        font-size: 1.45rem !important;
    }

    .stat-label {
        font-size: 0.72rem !important;
    }

    /* QR Code Generator on Mobile */
    .qr-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Password Generator on Mobile */
    .pwd-output-row {
        flex-wrap: wrap;
    }

    .pwd-output-row input {
        width: 100%;
        font-size: 1.1rem !important;
        margin-bottom: 6px;
    }

    .pwd-output-row button {
        flex: 1;
        min-height: 44px;
    }

    /* Case Converter Buttons on Mobile */
    .case-buttons-group {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .case-buttons-group .btn {
        width: 100%;
        font-size: 0.85rem !important;
        padding: 10px 8px !important;
    }

    /* General Button Groups on Mobile */
    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-group .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    /* Standard Article on Mobile */
    .tool-article-section {
        padding: 24px 0 50px;
    }

    .article-block {
        margin-bottom: 36px;
    }

    .article-h2 {
        font-size: 1.4rem;
    }

    .steps-grid,
    .features-grid,
    .related-tools-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .stepper-item,
    .step-flow-card {
        padding: 16px 16px !important;
        gap: 14px !important;
    }

    .stepper-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }

    .stepper-title {
        font-size: 1.05rem !important;
        margin-bottom: 4px !important;
    }

    .stepper-desc {
        font-size: 0.94rem !important;
        line-height: 1.6 !important;
    }

    .feature-item {
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    .feature-icon-box {
        width: 28px !important;
        height: 28px !important;
    }

    .feature-title {
        font-size: 0.88rem !important;
    }

    .feature-desc {
        font-size: 0.8rem !important;
    }

    .faq-question {
        padding: 14px 16px !important;
        font-size: 0.95rem !important;
    }

    .faq-answer {
        padding: 0 16px 16px !important;
    }

    /* Gemini Watermark Remover - Mobile */
    .gwm-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .gwm-card {
        padding: 18px 14px !important;
        min-height: auto !important;
    }

    .gwm-dropzone {
        padding: 30px 14px !important;
    }

    .gwm-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .gwm-btn-download,
    .gwm-btn-reset {
        width: 100% !important;
        justify-content: center !important;
    }

    .gwm-unified-dropzone {
        padding: 32px 14px !important;
    }

    .gwm-hero-title {
        font-size: 1.3rem !important;
    }

    .gwm-hero-sub {
        font-size: 0.95rem !important;
    }

    .gwm-video-panes {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .gwm-player-bar {
        padding: 10px 14px !important;
        gap: 10px !important;
    }

    .privacy-highlight-box {
        flex-direction: column;
        padding: 18px 16px;
        gap: 14px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
