/* ============================================================================
 * pdf.dealnology.com (PDFnology) - Stylesheet v3.0
 * Simple, Pyara & Attractive UI (Poppins / Plus Jakarta Sans + iLovePDF Polish)
 * ============================================================================ */

:root {
    --primary: #e5322d;
    --primary-hover: #c92520;
    --primary-soft: #fff1f0;
    --brand-blue: #2563eb;
    --bg-body: #f5f5fa;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-body: #475569;
    --text-muted: #64748b;
    --border-light: #e8eaf2;
    --border-mid: #cbd5e1;
    --success: #16a34a;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --shadow-card: 0 2px 12px rgba(20, 24, 48, 0.05);
    --shadow-card-hover: 0 12px 28px rgba(20, 24, 48, 0.10);
    --font-sans: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    font-size: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

p {
    font-size: 13.5px;
    line-height: 1.65;
}

.ad-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 8px auto;
    text-align: center;
}

.ad-container:empty,
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.18s ease;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================================
 * CLEAN, MODERN STICKY HEADER
 * ============================================================================ */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
    flex-wrap: nowrap;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: nowrap;
    min-width: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 21px;
    color: var(--text-main);
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 195px;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: translateY(-1px);
}

.brand-logo-footer-img {
    height: 46px;
    width: auto;
    max-width: 205px;
    display: block;
    object-fit: contain;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff4b4b 0%, #e5322d 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(229, 50, 45, 0.25);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.03em;
    white-space: nowrap;
    line-height: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
}

/* Header Inline Search Box & Instant Live Autocomplete Dropdown */
.header-search-wrap {
    position: relative;
    width: 205px;
    transition: width 0.2s ease;
}

.header-search-wrap:focus-within {
    width: 245px;
}

.header-search-input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 36px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: var(--font-sans);
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.header-search-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 50, 45, 0.10);
}

.header-search-icon {
    position: absolute;
    left: 12px;
    top: 19px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}

.header-search-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 390px;
    max-width: calc(100vw - 24px);
    max-height: 430px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
    padding: 8px;
    z-index: 1500;
    text-align: left;
}

.header-search-dropdown.is-open {
    display: block;
}

html[dir="rtl"] .header-search-dropdown {
    right: auto;
    left: 0;
    text-align: right;
}

.header-search-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 6px 10px 6px;
}

.header-search-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-search-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.14s ease, transform 0.12s ease;
}

.header-search-item:hover,
.header-search-item.is-highlighted {
    background: #f1f5f9;
}

.header-search-item-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-search-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-search-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-item:hover .header-search-item-title,
.header-search-item.is-highlighted .header-search-item-title {
    color: var(--primary);
}

.header-search-item-desc {
    font-size: 11.8px;
    color: #64748b;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-item-arrow {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform 0.14s ease, color 0.14s ease;
}

.header-search-item:hover .header-search-item-arrow,
.header-search-item.is-highlighted .header-search-item-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

.header-search-empty {
    padding: 18px 14px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .header-search-dropdown {
        position: fixed;
        top: 58px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: 68vh;
    }
}

/* ============================================================================
 * SIMPLE, PYARA & AIRY HERO SECTION (iLovePDF Inspired)
 * ============================================================================ */
.hero-section {
    background: radial-gradient(circle at 18% 20%, rgba(255, 228, 230, 0.55) 0%, transparent 45%),
                radial-gradient(circle at 82% 20%, rgba(224, 231, 255, 0.55) 0%, transparent 45%),
                linear-gradient(180deg, #ffffff 0%, #f5f5fa 100%);
    padding: 28px 0 14px;
    text-align: center;
}

.hero-inner {
    max-width: 1020px;
    margin: 0 auto;
}

.hero-h1 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3.1vw, 34px);
    font-weight: 600;
    color: #1e293b;
    line-height: 1.28;
    letter-spacing: -0.01em;
    margin: 0 auto 10px;
}

.hero-h1 span.accent-text,
.hero-h1 a.accent-text {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 3px solid rgba(229, 50, 45, 0.22);
    padding-bottom: 1px;
}

.hero-h1 a.accent-text:hover {
    border-bottom-color: var(--primary);
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.88em;
    background-color: var(--primary);
    margin-left: 4px;
    vertical-align: -0.08em;
    border-radius: 2px;
    animation: twBlink 0.85s infinite;
}

@keyframes twBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(13px, 1.35vw, 15px);
    font-weight: 400;
    color: #525b76;
    max-width: 680px;
    margin: 0 auto 18px;
    line-height: 1.55;
}

/* Smooth Rounded Category Filter Pills */
.hero-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 4px;
}

.cat-pill {
    padding: 7px 15px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cat-pill:hover {
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

.cat-pill.active {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.18);
}

/* Tool Page Compact Hero */
.tool-hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5fa 100%);
    padding: 22px 0 28px;
    text-align: center;
}

.tool-hero-section .hero-h1 {
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 600;
    color: #1e293b;
}

.tool-hero-section .hero-subtitle {
    color: #525b76;
    font-size: clamp(12.5px, 1.3vw, 14.5px);
    margin-bottom: 18px;
}

/* ============================================================================
 * ATTRACTIVE iLovePDF-STYLE TOOLS GRID & CARDS
 * ============================================================================ */
.tools-section {
    padding: 12px 0 36px;
}

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

.tool-card {
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    box-shadow: 0 4px 14px rgba(20, 24, 48, 0.04);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.22s ease;
    overflow: hidden;
    min-width: 0;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: var(--card-accent, var(--primary));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20, 24, 48, 0.09);
    border-color: rgba(148, 163, 184, 0.45);
}

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

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

.tool-illus-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.06));
    flex-shrink: 0;
}

.tool-card:hover .tool-illus-wrap {
    transform: scale(1.06) translateY(-1px);
}

.tool-badge {
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.tool-arrow-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tool-card:hover .tool-arrow-circle {
    background: var(--card-accent, var(--primary));
    color: #ffffff;
    transform: translateX(2px);
}

.tool-card-title {
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    transition: color 0.18s ease;
}

.tool-card:hover .tool-card-title {
    color: var(--card-accent, var(--primary));
}

.tool-card-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    font-weight: 400;
}

/* ============================================================================
 * INTERACTIVE PDF WORKSPACE (DROPZONE, CONTROLS, THUMBNAILS, RESULTS)
 * ============================================================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

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

.workspace-wrapper {
    max-width: 920px;
    margin: 0 auto;
    transition: max-width 0.2s ease;
}

.workspace-wrapper.studio-wide {
    max-width: 1220px;
}

.dropzone-card {
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-card-hover);
    position: relative;
}

.dropzone-card:hover,
.dropzone-card.drag-over {
    border-color: var(--primary);
    background: #fffafa;
}

.dropzone-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
}

.dropzone-icon-circle svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    padding: 15px 38px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(229, 50, 45, 0.28);
    transition: background 0.15s ease, transform 0.15s ease;
    margin-bottom: 12px;
}

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

.dropzone-hint {
    font-size: 14px;
    color: var(--text-muted);
}

.privacy-pill-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.privacy-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Active Workspace Stage (After File Selected) */
.workspace-stage {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-card-hover);
    text-align: left;
    margin-top: 16px;
}

.workspace-stage.active {
    display: block;
}

.stage-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.file-summary-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
}

.file-size-tag {
    background: #f1f5f9;
    color: var(--text-body);
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
}

.stage-actions-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-sm {
    background: #f8fafc;
    border: 1px solid var(--border-mid);
    color: var(--text-body);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-secondary-sm:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

/* Control Panels inside Workspace */
.control-panel {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.control-panel-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.preset-option {
    background: #ffffff;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 13px 15px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-option:hover {
    border-color: #94a3b8;
}

.preset-option.selected {
    border-color: var(--primary);
    background: #fffafa;
}

.preset-option-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
}

.preset-option-desc {
    font-size: 12.5px;
    color: var(--text-muted);
}

.kb-target-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.kb-btn {
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-mid);
    background: #ffffff;
    color: var(--text-body);
    cursor: pointer;
}

.kb-btn.active,
.kb-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 5px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 9px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-main);
}

/* Visual Page Thumbnail Grid */
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin: 18px 0;
    max-height: 520px;
    overflow-y: auto;
    padding: 6px;
}

.page-thumb-card {
    background: #ffffff;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    position: relative;
    transition: all 0.15s ease;
    user-select: none;
}

.page-thumb-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.page-thumb-card.marked-delete {
    border-color: #dc2626;
    background: #fef2f2;
    opacity: 0.82;
}

.page-canvas-wrap {
    width: 100%;
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.page-canvas-wrap canvas,
.page-canvas-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.page-thumb-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
}

.page-thumb-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
}

.thumb-btn {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border-mid);
    background: #ffffff;
    cursor: pointer;
}

.thumb-btn:hover {
    background: var(--text-main);
    color: #ffffff;
}

/* Multi-File List for Merge PDF */
.merge-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.merge-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.merge-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.merge-order-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Signature Canvas Pad */
.signature-pad-wrap {
    background: #ffffff;
    border: 2px dashed var(--border-mid);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    margin-bottom: 12px;
}

#signatureCanvas {
    width: 100%;
    max-width: 520px;
    height: 170px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
}

/* Execute Action Bar & Progress */
.action-bar {
    margin-top: 20px;
    text-align: center;
}

.btn-execute {
    width: 100%;
    max-width: 420px;
    padding: 15px 28px;
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(229, 50, 45, 0.25);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn-execute:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.progress-box {
    display: none;
    margin: 20px 0;
    text-align: center;
}

.progress-box.active {
    display: block;
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e5322d, #2563eb);
    transition: width 0.2s ease;
}

.progress-status-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
}

/* Result & Download Card */
.result-card {
    display: none;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-top: 22px;
}

.result-card.active {
    display: block;
}

.result-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0 22px;
}

.stat-pill {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    padding: 10px 18px;
    border-radius: 10px;
}

.stat-pill-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

.stat-pill-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-saved-badge {
    background: #16a34a;
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 8px 16px;
    border-radius: 999px;
}

.btn-download-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #16a34a;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 600;
    padding: 15px 36px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.28);
    margin: 6px;
}

.btn-download-main:hover {
    background: #15803d;
}

.continue-tools-bar {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #bbf7d0;
}

/* ============================================================================
 * SEO CONTENT SECTIONS (STEPS, FEATURES, TABLES, CARD-BASED FAQS)
 * ============================================================================ */
.seo-content-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 36px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0 42px;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 16.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.65;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 24px 0 42px;
}

.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.feature-box h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.65;
}

/* Comparison Table */
.spec-table-wrap {
    margin: 24px 0 38px;
    overflow-x: auto;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-mid);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
}

.spec-table th {
    background: #f1f5f9;
    color: var(--text-main);
    font-weight: 600;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-mid);
}

.spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
}

.spec-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* Card-Based FAQs */
.pp-faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 36px;
}

.faq-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
}

.faq-card h3 {
    font-family: var(--font-heading);
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
}

.faq-card p {
    margin: 0;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.75;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 52px 0 32px;
    margin-top: 48px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 36px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col ul a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

/* Quick Tool Finder Modal (Ctrl+K) */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 999;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 20px;
}

.modal-backdrop.open {
    display: flex;
}

.search-modal {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.search-modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}

.search-modal-input {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 15.5px;
    border: 1.5px solid var(--border-mid);
    border-radius: 10px;
    outline: none;
}

.search-modal-input:focus {
    border-color: var(--primary);
}

.search-modal-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
}

.search-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.search-modal-item:hover {
    background: #f1f5f9;
}

@media (max-width: 960px) {
    .main-nav {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .header-search-wrap {
        width: 170px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .dropzone-card {
        padding: 32px 16px;
    }
    .btn-primary-upload {
        width: 100%;
        padding: 14px 20px;
        font-size: 15.5px;
    }
}

/* =========================================================================
   PDFNOLOGY PRO SIGN, FILL & ANNOTATE STUDIO (100% FULLSCREEN APP WORKSPACE)
   ========================================================================= */
body.studio-fullscreen-open {
    overflow: hidden !important;
}

.workspace-card.studio-expanded {
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    background: #ffffff;
}

.pdf-studio-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    background: #eef2f6;
    user-select: none;
    overflow: hidden;
}

.pdf-studio-shell.studio-minimized {
    display: none !important;
}

.studio-brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    padding-right: 12px;
    margin-right: 4px;
    border-right: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.studio-brand-mini span.brand-red {
    color: #e5322d;
}

/* 1. Top Studio Header Bar */
.studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 20px;
    min-height: 54px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.studio-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.studio-file-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #0f172a;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-local-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0d9488;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Center Mode Switcher Pills (Edit & Annotate | Fill & Sign | Organize Pages) */
.studio-mode-pills {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 999px;
    gap: 4px;
    flex-shrink: 0;
}

.studio-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #334155;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.studio-mode-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.65);
}

.studio-mode-btn.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

/* Topbar Right Actions */
.studio-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.studio-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.studio-icon-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.studio-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.studio-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    border: none;
    background: #1d4ed8;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(29, 78, 216, 0.25);
    transition: all 0.18s ease;
}

.studio-download-btn:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* 2. Secondary Tool Ribbon */
.studio-tool-ribbon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    min-height: 48px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.studio-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-family: var(--font-sans);
    font-size: 12.6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.studio-tool-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.studio-tool-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.studio-tool-btn.active {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

.studio-tool-btn.primary-sign-btn {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #60a5fa;
    color: #1e3a8a;
    font-weight: 700;
}

.studio-ribbon-divider {
    width: 1px;
    height: 24px;
    background: #cbd5e1;
    margin: 0 4px;
    flex-shrink: 0;
}

/* Saved Signature Quick Chips in Ribbon */
.studio-saved-sigs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.studio-sig-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 2px 10px;
    background: #ffffff;
    border: 1.5px dashed #3b82f6;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.studio-sig-chip:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.studio-sig-chip img {
    height: 22px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}

/* 3. Main Body: Left Sidebar + Center Canvas Stage (Fills Remaining 100vh) */
.studio-body {
    flex: 1;
    min-height: 0;
    height: calc(100vh - 102px);
    max-height: none;
    display: flex;
    position: relative;
    background: #eef2f6;
    overflow: hidden;
}

/* Left Page Thumbnail Sidebar */
.studio-sidebar {
    width: 200px;
    height: 100%;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px 28px;
    gap: 14px;
    overflow-y: auto;
    flex-shrink: 0;
}

.studio-thumb-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.studio-thumb-box {
    position: relative;
    width: 128px;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 7px;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    transition: all 0.16s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.studio-thumb-item.active .studio-thumb-box {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.studio-thumb-box canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

.studio-thumb-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 5px;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}

.studio-thumb-mini-btn {
    border: none;
    background: transparent;
    color: #475569;
    padding: 3px 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.studio-thumb-mini-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.studio-thumb-num {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.studio-add-page-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #93c5fd;
    color: #ffffff;
    border: none;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.studio-add-page-circle:hover {
    background: #2563eb;
}

.studio-add-file-card {
    width: 136px;
    min-height: 155px;
    border: 1.5px dashed #93c5fd;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    text-align: center;
    color: #2563eb;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.16s ease;
}

.studio-add-file-card:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

/* 4. Center Document Stage & Floating Property Bar */
.studio-stage-wrap {
    flex: 1;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: auto;
    padding: 14px 24px 80px;
}

/* Floating Sub-Toolbar Above Document (Exact Match to Screenshot) */
.studio-floating-props {
    position: sticky;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    z-index: 25;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.studio-color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1.5px #cbd5e1;
    cursor: pointer;
    transition: transform 0.12s ease;
}

.studio-color-dot.active {
    transform: scale(1.18);
    box-shadow: 0 0 0 2px #0f172a;
}

.studio-prop-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.studio-prop-input {
    width: 58px;
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
}

/* Interactive PDF Page Container */
.studio-page-frame {
    position: relative;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.14);
    border: 1px solid #cbd5e1;
    line-height: 0;
    transition: width 0.12s ease, height 0.12s ease;
}

.studio-page-frame canvas.studio-pdf-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.studio-page-frame canvas.studio-draw-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.studio-page-frame.drawing-mode canvas.studio-draw-canvas {
    pointer-events: auto;
    cursor: crosshair;
}

/* Interactive Placed Objects Layer (Signatures, Text, Stamps, Whiteout, Shapes) */
.studio-objects-layer {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
}

.studio-obj {
    position: absolute;
    pointer-events: auto;
    cursor: move;
    box-sizing: border-box;
    border: 1.5px solid transparent;
    border-radius: 4px;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.studio-obj:hover {
    border-color: #60a5fa;
}

.studio-obj.selected {
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
    z-index: 30;
}

.studio-obj img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Corner Resize Handle */
.studio-obj-resize {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #2563eb;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: nwse-resize;
    display: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.studio-obj.selected .studio-obj-resize {
    display: block;
}

/* Floating Quick Action Bar Above Selected Object */
.studio-obj-toolbar {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 4px;
    background: #0f172a;
    color: #ffffff;
    padding: 4px 6px;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    white-space: nowrap;
    z-index: 40;
}

.studio-obj.selected .studio-obj-toolbar {
    display: inline-flex;
}

.studio-obj-toolbar button {
    border: none;
    background: transparent;
    color: #f8fafc;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
    cursor: pointer;
}

.studio-obj-toolbar button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.studio-obj-toolbar button.del-btn {
    color: #fca5a5;
}

/* Bottom Floating Page & Zoom Pill (Exact Smallpdf Match) */
.studio-bottom-pill {
    position: sticky;
    bottom: 12px;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
    z-index: 35;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.studio-bottom-pill button {
    border: none;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 5px;
    cursor: pointer;
}

.studio-bottom-pill button:hover:not(:disabled) {
    background: #f1f5f9;
    color: #0f172a;
}

/* 5. Signature & Stamp Creator Modal */
.studio-sig-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.studio-sig-modal-backdrop.open {
    display: flex;
}

.studio-sig-modal {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.studio-sig-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.studio-sig-modal-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.studio-sig-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.studio-sig-tab {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    border: none;
    background: transparent;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
}

.studio-sig-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background: #ffffff;
}

.studio-sig-body {
    padding: 20px;
}

.studio-sig-pad-box {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    text-align: center;
}

.studio-sig-pad-box canvas {
    display: block;
    width: 100%;
    height: 185px;
    cursor: crosshair;
    touch-action: none;
}

.studio-sig-baseline {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 42px;
    border-bottom: 1px dashed #cbd5e1;
    pointer-events: none;
    font-size: 11px;
    color: #94a3b8;
    text-align: left;
}

.studio-cursive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.studio-cursive-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s ease;
    font-size: 26px;
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.studio-cursive-card.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.studio-sig-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 10px;
    flex-wrap: wrap;
}

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

/* ==========================================================================
   MULTI-LANGUAGE SWITCHER, E-E-A-T BAR & RTL SUPPORT (claude-seo v1.9)
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher-wrap {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-switcher-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fef2f2;
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 205px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    padding: 6px;
    z-index: 999;
}

.lang-switcher-wrap:hover .lang-dropdown-menu,
.lang-switcher-wrap:focus-within .lang-dropdown-menu {
    display: block;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.12s ease;
}

.lang-dropdown-item:hover {
    background: #f1f5f9;
    color: #dc2626;
}

.lang-dropdown-item.active {
    background: #fef2f2;
    color: #dc2626;
    font-weight: 700;
}

.lang-code-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.eeat-trust-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    margin: 0 0 24px 0;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #334155;
}

.eeat-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.footer-lang-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
    margin-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 13px;
    color: #94a3b8;
}

.footer-lang-link {
    color: #cbd5e1;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 500;
    transition: all 0.15s ease;
}

.footer-lang-link:hover,
.footer-lang-link.active {
    background: #dc2626;
    color: #ffffff;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVENESS (320px - 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        font-size: 13.5px;
    }

    p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .container {
        padding: 0 14px;
    }

    .header-inner {
        height: 54px;
        gap: 8px;
    }

    .brand-logo-img {
        height: 32px;
        max-width: 132px;
    }

    .header-actions {
        gap: 6px;
        flex: 1;
        justify-content: flex-end;
        min-width: 0;
    }

    .header-search-wrap {
        width: auto;
        flex: 1;
        max-width: 145px;
        min-width: 90px;
    }

    .header-search-input {
        height: 33px;
        font-size: 12px;
        padding: 0 10px 0 30px;
    }

    .header-search-icon {
        left: 9px;
        width: 13px;
        height: 13px;
    }

    .lang-switcher-btn {
        padding: 5px 9px;
        font-size: 11.5px;
        gap: 4px;
        flex-shrink: 0;
    }

    .hero-section {
        padding: 18px 0 10px;
    }

    .hero-h1 {
        font-size: 21px;
        line-height: 1.26;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 12.5px !important;
        line-height: 1.48 !important;
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .hero-tabs {
        gap: 5px;
        margin-bottom: 2px;
    }

    .cat-pill {
        padding: 5px 11px;
        font-size: 11.5px;
    }

    .tools-section {
        padding: 8px 0 24px;
    }

    /* 2-Column Compact Mobile Tools Grid */
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tool-card {
        padding: 12px 11px 13px;
        border-radius: 13px;
        gap: 5px;
    }

    .tool-card-top {
        margin-bottom: 1px;
    }

    .tool-illus-wrap svg {
        width: 34px;
        height: 34px;
    }

    .tool-badge {
        font-size: 9.5px;
        padding: 2px 7px;
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tool-arrow-circle {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .tool-card-title {
        font-size: 13.5px;
        line-height: 1.25;
    }

    .tool-card-desc {
        font-size: 11.5px !important;
        line-height: 1.42 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

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

    .tool-hero-section .hero-h1 {
        font-size: 19px;
        margin-bottom: 6px !important;
    }

    .tool-hero-section .hero-subtitle {
        font-size: 12.5px !important;
        margin-bottom: 14px !important;
    }

    .dropzone-card {
        padding: 24px 14px;
        border-radius: 16px;
    }

    .privacy-pill-bar {
        gap: 8px 14px;
        margin-top: 14px;
        padding-top: 12px;
        font-size: 11.5px;
    }

    .workspace-stage {
        padding: 16px 12px;
    }

    .seo-content-wrap {
        padding: 20px 0;
    }

    .seo-content-wrap h2 {
        font-size: 18px !important;
        margin: 22px 0 10px 0 !important;
    }

    .seo-content-wrap h3 {
        font-size: 15px !important;
    }

    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 14px 0 24px;
    }

    .step-card,
    .feature-box,
    .faq-card {
        padding: 15px 16px;
    }

    .step-card p,
    .feature-box p,
    .faq-card p {
        font-size: 12.5px !important;
        line-height: 1.55 !important;
    }

    .eeat-trust-bar {
        padding: 10px 12px;
        gap: 6px;
        font-size: 11.5px;
        margin-bottom: 16px;
    }

    .spec-table {
        font-size: 12.5px;
    }

    .spec-table th,
    .spec-table td {
        padding: 9px 10px;
    }
}

@media (max-width: 380px) {
    .brand-logo-img {
        height: 28px;
        max-width: 112px;
    }
    .header-search-wrap {
        max-width: 110px;
    }
    .tools-grid {
        gap: 8px;
    }
    .tool-card {
        padding: 10px 9px 11px;
    }
    .tool-card-title {
        font-size: 12.5px;
    }
}

/* ==========================================================================
   PRO DOCUMENT SCANNER STUDIO (CAMSCANNER / ADOBE SCAN STYLE WORKSPACE)
   ========================================================================== */
.scan-studio-shell {
    display: grid;
    grid-template-columns: 185px 1fr 310px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    min-height: 540px;
    margin-bottom: 18px;
}

.scan-studio-left {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 580px;
    overflow-y: auto;
}

.scan-left-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    padding: 0 4px 6px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scan-thumb-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.scan-thumb-item:hover {
    border-color: #94a3b8;
}

.scan-thumb-item.active {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.14);
}

.scan-thumb-img-box {
    width: 100%;
    height: 110px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}

.scan-thumb-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.scan-thumb-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
}

.scan-thumb-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: 5px;
}

.scan-mini-btn {
    flex: 1;
    padding: 3px 0;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

.scan-mini-btn:hover {
    background: #0f172a;
    color: #ffffff;
}

.scan-studio-center {
    background: #eef2f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    position: relative;
}

.scan-center-topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.scan-page-indicator {
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
}

.scan-toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.scan-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.scan-action-pill:hover,
.scan-action-pill.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.scan-canvas-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
}

.scan-paper-sheet {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    padding: 10px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scan-paper-sheet canvas {
    max-width: 100%;
    max-height: 410px;
    height: auto;
    width: auto;
    display: block;
    border-radius: 2px;
}

.scan-center-footbar {
    margin-top: 12px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.scan-studio-right {
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scan-panel-block {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.scan-panel-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.scan-panel-heading {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scan-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.scan-filter-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 8px 10px;
    background: #f8fafc;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.scan-filter-card:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.scan-filter-card.active {
    border-color: #0284c7;
    background: #f0f9ff;
}

.scan-filter-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.scan-filter-sub {
    font-size: 10.5px;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

.scan-slider-group {
    margin-top: 10px;
}

.scan-slider-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}

.scan-slider-input {
    width: 100%;
    accent-color: #0284c7;
    cursor: pointer;
}

.scan-kb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scan-kb-pill {
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.scan-kb-pill.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

@media (max-width: 960px) {
    .scan-studio-shell {
        grid-template-columns: 1fr;
    }
    .scan-studio-left {
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .scan-left-header {
        display: none;
    }
    .scan-thumb-item {
        min-width: 125px;
        flex-shrink: 0;
    }
    .scan-studio-right {
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}

/* ==========================================================================
   ILOVEPDF-STYLE "ALL PDF TOOLS" & "CONVERT PDF" HEADER MEGA-MENU
   ========================================================================== */
.nav-upper {
    text-transform: uppercase;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
}

.nav-mega-item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-mega-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: var(--font-sans);
    height: 38px;
    padding: 0 13px;
    border-radius: 8px;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.16s ease;
}

.mega-caret {
    transition: transform 0.2s ease;
}

.nav-mega-trigger.is-open,
.nav-mega-trigger:hover {
    color: var(--primary) !important;
    background: var(--primary-soft);
}

.nav-mega-trigger.is-open .mega-caret {
    transform: rotate(180deg);
}

.mega-grid-launcher-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease;
    flex-shrink: 0;
}

.mega-grid-launcher-btn:hover,
.mega-grid-launcher-btn.is-open {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}

/* Full-Width 6-Column "ALL PDF TOOLS" Mega Panel */
.all-tools-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.all-tools-mega-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 2-Column "CONVERT PDF" Dropdown */
.mega-menu-dropdown {
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-8px);
    z-index: 995;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.mega-menu-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14), 0 4px 14px rgba(15, 23, 42, 0.05);
    padding: 26px 28px;
    position: relative;
}

.mega-six-col-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

.mega-convert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 24px;
    min-width: 470px;
}

.mega-col {
    min-width: 0;
    overflow: hidden;
}

.mega-col-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.3;
    white-space: normal;
}

.mega-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.mega-tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 7px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.28;
    min-width: 0;
    max-width: 100%;
    transition: background 0.14s ease, color 0.14s ease;
}

.mega-tool-link:hover,
.mega-tool-link.active {
    background: #f8fafc;
    color: var(--primary);
}

.mega-tool-illus {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mega-tool-illus svg {
    width: 28px;
    height: 28px;
    display: block;
}

.mega-tool-name {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.28;
}

@media (max-width: 1120px) {
    .mega-six-col-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .mega-grid-launcher-btn {
        width: 32px;
        height: 32px;
    }

    .all-tools-mega-panel {
        top: 54px;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .mega-menu-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .mega-six-col-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .mega-tool-link {
        font-size: 12px;
        padding: 5px 6px;
        gap: 7px;
    }

    .mega-tool-icon {
        width: 21px;
        height: 21px;
    }
}

/* ============================================================================
 * PREMIUM HOMEPAGE SHOWCASE ARCHITECTURE (v4.9 — 5-Col Grid + Visual Sections)
 * ============================================================================ */

/* 1. Unified Pastel Top Canvas (Hero + 5-Column Tools Grid + KB Strip) */
.home-top-canvas {
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 224, 226, 0.72) 0%, transparent 40%),
        radial-gradient(circle at 88% 12%, rgba(224, 231, 255, 0.72) 0%, transparent 42%),
        radial-gradient(circle at 82% 88%, rgba(254, 226, 226, 0.52) 0%, transparent 38%),
        radial-gradient(circle at 16% 84%, rgba(224, 231, 255, 0.46) 0%, transparent 38%),
        linear-gradient(180deg, #fafafd 0%, #f3f4fa 100%);
    padding-bottom: 54px;
}

.home-top-canvas .hero-section {
    background: transparent;
    padding: 36px 0 18px;
}

.home-top-canvas .hero-h1 {
    font-size: clamp(24px, 3.25vw, 38px);
    font-weight: 700;
    letter-spacing: -0.018em;
    color: #1e293b;
    margin-bottom: 12px;
}

.home-top-canvas .hero-subtitle {
    max-width: 740px;
    font-size: clamp(13.5px, 1.38vw, 16px);
    color: #525b76;
    margin-bottom: 22px;
}

.home-top-canvas .tools-section {
    padding: 10px 0 0;
}

.home-wide-container {
    max-width: 1360px;
}

.home-five-col-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.home-five-col-grid .tool-card {
    border-radius: 14px;
    padding: 20px 18px 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 18px rgba(20, 24, 48, 0.04);
    min-height: 184px;
}

.home-five-col-grid .tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(20, 24, 48, 0.085);
    border-color: rgba(148, 163, 184, 0.5);
}

.home-five-col-grid .tool-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
}

.home-five-col-grid .tool-card-desc {
    font-size: 12.4px;
    line-height: 1.52;
    color: #64748b;
}

/* Crisp Subtle Corner Pills on Flagship Cards */
.home-card-pill {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.home-card-pill.badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.home-card-pill.badge-green {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.home-card-pill.badge-coral {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.home-card-pill.badge-purple {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

/* Coral-Peach Quick Upload & Workflow Card (Last Grid Slot) */
.workflow-promo-card {
    background: linear-gradient(145deg, #ffe8e5 0%, #ffd8d1 100%) !important;
    border: 1px solid #fecdd3 !important;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.workflow-promo-card::before {
    background: #e5322d !important;
}

.workflow-bg-rings {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 165px;
    height: 165px;
    pointer-events: none;
}

.workflow-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.workflow-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.workflow-promo-card .tool-card-title {
    color: #1e293b;
    font-size: 16px;
}

.workflow-promo-card:hover .tool-card-title {
    color: #b91c1c;
}

.workflow-promo-card .tool-card-desc {
    color: #573a38;
}

.workflow-arrow-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.workflow-promo-card:hover .workflow-arrow-badge {
    background: #e5322d;
    color: #ffffff;
    transform: translateX(3px);
}

.workflow-cta-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    color: #b91c1c;
    margin-top: 8px;
}

/* 1-Click Exact Portal KB Size Strip */
.kb-quick-strip {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.kb-strip-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.kb-strip-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.kb-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    transition: all 0.16s ease;
}

.kb-chip:hover {
    border-color: #e5322d;
    color: #e5322d;
    background: #fffafa;
    transform: translateY(-1px);
}

.kb-chip.kb-chip-hot {
    background: #fff1f0;
    border-color: #fca5a5;
    color: #dc2626;
    font-weight: 700;
}

/* 2. Crisp White Lower Showcase Canvas */
.home-white-sections {
    background: #ffffff;
    padding: 68px 0 64px;
    border-top: 1px solid rgba(226, 232, 240, 0.75);
}

.home-white-sections + .site-footer {
    margin-top: 0;
}

.home-sec-heading {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.9vw, 34px);
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin: 0 auto 12px;
}

.home-sec-sub {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
    font-size: 15px;
    line-height: 1.68;
    color: #525b76;
}

/* Section 2: "Work your way" — 3 Tall Visual Cards */
.work-your-way-sec {
    max-width: 1120px;
    margin: 0 auto;
}

.work-way-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.work-way-card {
    background: #ffffff;
    border: 1px solid #eceff6;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 32px rgba(20, 24, 48, 0.055);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease;
}

.work-way-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(20, 24, 48, 0.10);
    border-color: #cbd5e1;
}

.work-way-art {
    height: 192px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 14px 0;
    overflow: hidden;
}

.work-way-art.art-peach {
    background: linear-gradient(180deg, #fde7df 0%, #fdf2ed 100%);
}

.work-way-art.art-lavender {
    background: linear-gradient(180deg, #fde8e2 0%, #f1ebff 100%);
}

.work-way-art.art-mint {
    background: linear-gradient(180deg, #fde9e1 0%, #e6f4fe 100%);
}

.work-way-svg {
    width: 100%;
    max-width: 330px;
    height: auto;
    display: block;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-way-card:hover .work-way-svg {
    transform: translateY(-4px) scale(1.02);
}

.work-way-body {
    padding: 24px 26px 56px;
    position: relative;
    flex: 1;
}

.work-way-body h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 9px;
    line-height: 1.35;
}

.work-way-body p {
    font-size: 13.8px;
    color: #525b76;
    line-height: 1.65;
}

.work-way-arrow {
    position: absolute;
    right: 22px;
    bottom: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.work-way-card:hover .work-way-arrow {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    transform: translate(2px, -2px);
}

/* Section 3: Warm Golden-Cream Pro Showcase Banner */
.pro-free-banner {
    max-width: 1120px;
    margin: 76px auto 0;
    background: linear-gradient(135deg, #fdf5dc 0%, #fbeac3 55%, #fde8cb 100%);
    border: 1px solid #f4dda9;
    border-radius: 24px;
    padding: 48px 52px;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(180, 130, 40, 0.08);
}

.pro-free-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #92400e;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 119, 6, 0.24);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.pro-free-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.6vw, 31px);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.28;
    margin-bottom: 20px;
}

.pro-free-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 28px;
}

.pro-free-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14.2px;
    line-height: 1.58;
    color: #334155;
}

.pro-check-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.pro-free-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-pro-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5b82e;
    color: #1e293b;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(217, 149, 18, 0.26);
    transition: all 0.18s ease;
}

.btn-pro-gold:hover {
    background: #eab308;
    transform: translateY(-2px);
}

.btn-pro-outline {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e2c78e;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 10px;
    transition: all 0.18s ease;
}

.btn-pro-outline:hover {
    background: #ffffff;
    border-color: #ca8a04;
}

/* Right Floating Document + Signature + Aa Visual */
.pro-free-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-doc-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    padding: 14px 18px 18px;
}

.pro-coral-back {
    position: absolute;
    left: 4px;
    right: 10px;
    bottom: 8px;
    top: 46px;
    background: linear-gradient(135deg, #fb7185 0%, #ef4444 100%);
    border-radius: 18px;
    transform: rotate(-3deg);
    opacity: 0.9;
}

.pro-a4-sheet {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    border: 1px solid #f1f5f9;
}

.pro-a4-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.pro-a4-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.pro-a4-line {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    margin-bottom: 8px;
}

.pro-a4-line.w90 { width: 92%; }
.pro-a4-line.w75 { width: 74%; }
.pro-a4-line.w82 { width: 84%; margin-bottom: 14px; }

.pro-a4-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.pro-a4-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.pro-a4-box span {
    display: block;
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

.pro-a4-box strong {
    font-size: 12.5px;
    color: #15803d;
    font-weight: 800;
}

.pro-a4-sig-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.pro-verified-pill {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 6px;
}

.pro-aa-badge {
    position: absolute;
    right: 0;
    bottom: 34px;
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    color: #1e293b;
}

/* Section 4: Split Visual Spotlight (8-Node Crop Selection Frame + Copy) */
.scanner-spotlight-sec {
    max-width: 1060px;
    margin: 86px auto 0;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 54px;
}

.scanner-crop-graphic {
    padding: 10px;
}

.crop-selection-frame {
    position: relative;
    border: 1.8px solid #3b82f6;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.45) 0%, rgba(255, 255, 255, 0.2) 100%);
    padding: 26px 20px;
    max-width: 420px;
    margin: 0 auto;
}

.crop-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #2563eb;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.4);
    z-index: 5;
}

.crop-node.n-tl { top: -6px; left: -6px; }
.crop-node.n-tc { top: -6px; left: 50%; transform: translateX(-50%); }
.crop-node.n-tr { top: -6px; right: -6px; }
.crop-node.n-ml { top: 50%; left: -6px; transform: translateY(-50%); }
.crop-node.n-mr { top: 50%; right: -6px; transform: translateY(-50%); }
.crop-node.n-bl { bottom: -6px; left: -6px; }
.crop-node.n-bc { bottom: -6px; left: 50%; transform: translateX(-50%); }
.crop-node.n-br { bottom: -6px; right: -6px; }

.crop-cards-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-side-photo {
    width: 96px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border: 2px solid #ffffff;
}

.crop-side-photo svg {
    width: 100%;
    height: auto;
    display: block;
}

.crop-side-photo.left-photo {
    transform: translateX(12px) rotate(-5deg);
}

.crop-side-photo.right-photo {
    transform: translateX(-12px) rotate(5deg);
}

.crop-center-scan {
    position: relative;
    z-index: 3;
    width: 190px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 16px 15px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
    text-align: left;
}

.scan-chip-top {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.scan-lines-mock {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
}

.scan-lines-mock span {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: #cbd5e1;
    width: 100%;
}

.scan-lines-mock span.short { width: 62%; background: #94a3b8; }
.scan-lines-mock span.med { width: 78%; }

.scan-footer-pill {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #f8fafc;
    background: #2563eb;
    padding: 6px 10px;
    border-radius: 7px;
}

.scanner-spotlight-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 14px;
}

.scanner-spotlight-copy p {
    font-size: 15px;
    color: #525b76;
    line-height: 1.72;
    margin-bottom: 24px;
}

.scanner-spotlight-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-outline-coral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 9px;
    border: 1.5px solid #e5322d;
    background: #ffffff;
    color: #e5322d;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.btn-outline-coral:hover {
    background: #e5322d;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(229, 50, 45, 0.22);
    transform: translateY(-1px);
}

.spotlight-text-link {
    font-size: 13.8px;
    font-weight: 700;
    color: #1e293b;
}

.spotlight-text-link:hover {
    color: #e5322d;
}

/* Section 5: Trust Statement & Security / ISO Emblems */
.home-trust-sec {
    max-width: 960px;
    margin: 88px auto 0;
    padding-bottom: 54px;
    border-bottom: 1px solid #eef0f6;
    text-align: center;
}

.home-trust-sec .home-sec-sub {
    margin-bottom: 32px;
}

.trust-emblems-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px 40px;
}

.trust-emblem-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    color: #475569;
    padding: 8px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.trust-emblem-item svg {
    color: #334155;
    flex-shrink: 0;
}

.trust-emblem-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.trust-emblem-item span {
    display: block;
    font-size: 11.5px;
    color: #64748b;
}

/* Section 6: Clean Guides, FAQs & Expandable 39-Tool SEO Directory Drawer */
.home-clean-seo-sec {
    max-width: 1060px;
    margin: 52px auto 0;
    padding: 0;
}

.home-seo-drawer {
    margin-top: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.home-seo-drawer-summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
    transition: background 0.16s ease;
}

.home-seo-drawer-summary::-webkit-details-marker {
    display: none;
}

.home-seo-drawer-summary:hover {
    background: #f1f5f9;
}

.home-seo-drawer-summary svg {
    flex-shrink: 0;
    color: #475569;
    transition: transform 0.22s ease;
}

.home-seo-drawer[open] .home-seo-drawer-summary {
    border-bottom: 1px solid #e2e8f0;
}

.home-seo-drawer[open] .home-seo-drawer-summary svg {
    transform: rotate(180deg);
}

.home-seo-drawer-body {
    padding: 22px 24px 26px;
}

/* Responsive Breakpoints for 5-Column Grid & Showcase Sections */
@media (max-width: 1220px) {
    .home-five-col-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .home-five-col-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .work-way-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .pro-free-banner {
        grid-template-columns: 1fr;
        padding: 36px 28px;
        gap: 32px;
    }

    .scanner-spotlight-sec {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .scanner-spotlight-btns {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .home-top-canvas {
        padding-bottom: 36px;
    }

    .home-five-col-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .home-five-col-grid .tool-card {
        padding: 15px 13px 16px;
        min-height: 158px;
        border-radius: 12px;
    }

    .home-five-col-grid .tool-card-title {
        font-size: 14px;
    }

    .home-five-col-grid .tool-card-desc {
        font-size: 11.5px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-card-pill {
        font-size: 9.5px;
        padding: 3px 7px;
    }

    .kb-quick-strip {
        padding: 12px 14px;
    }

    .home-white-sections {
        padding: 46px 0 44px;
    }

    .pro-free-banner {
        margin-top: 52px;
        padding: 28px 20px;
        border-radius: 18px;
    }

    .scanner-spotlight-sec,
    .home-trust-sec {
        margin-top: 56px;
    }

    .crop-side-photo {
        width: 72px;
    }

    .crop-center-scan {
        width: 162px;
        padding: 13px 12px;
    }

    .home-seo-drawer-summary {
        padding: 15px 16px;
        font-size: 13.5px;
    }

    .home-seo-drawer-body {
        padding: 16px;
    }
}

/* ============================================================================
 * v5.0 — ENTERPRISE COMPRESS PDF STUDIO + EXECUTIVE SIGN & COMPANY SEAL SUITE
 * ============================================================================ */

/* 1. Full-Screen Compress PDF Split Studio */
.comp-meta-pill {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.comp-top-inspect-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1.5px solid #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
}

.comp-top-inspect-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

.comp-studio-body {
    flex: 1;
    min-height: 0;
    display: flex;
    background: #eef2f7;
    overflow: hidden;
}

/* Left Interactive Document Gallery Stage */
.comp-studio-stage {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    padding: 18px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comp-stage-toolbar {
    position: sticky;
    top: 0;
    z-index: 15;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.comp-stage-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #0f172a;
}

.comp-hd-summary {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.comp-hd-summary.has-hd {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.comp-stage-quick-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comp-stage-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.comp-stage-pill-btn:hover {
    border-color: #64748b;
    color: #0f172a;
}

.comp-stage-pill-btn.highlight-blue {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

.comp-stage-pill-btn.highlight-blue:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Full-Document Page Cards Grid */
.comp-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 16px;
}

.comp-page-card {
    background: #ffffff;
    border: 1.5px solid #dbe3ef;
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.18s ease;
}

.comp-page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
    border-color: #94a3b8;
}

.comp-page-card.is-hd {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.comp-page-card.is-skipped {
    opacity: 0.48;
    filter: grayscale(0.9);
    border-style: dashed;
}

.comp-page-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.comp-page-num {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
}

.comp-hd-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.comp-hd-pill:hover {
    border-color: #2563eb;
    color: #1d4ed8;
}

.comp-hd-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.comp-page-canvas-box {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: zoom-in;
    overflow: hidden;
}

.comp-page-canvas-box canvas {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.comp-hover-loupe {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.18s ease;
}

.comp-page-canvas-box:hover .comp-hover-loupe {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.comp-page-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.comp-mini-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 6px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.comp-mini-action:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.comp-mini-action.skip-on {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Right Enterprise Calibration Sidebar */
.comp-studio-sidebar {
    width: 400px;
    flex-shrink: 0;
    height: 100%;
    background: #ffffff;
    border-left: 1px solid #dbe3ef;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.05);
    z-index: 20;
}

.comp-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comp-gauge-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 15px 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
}

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

.comp-gauge-lbl {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 700;
}

.comp-gauge-orig {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.comp-gauge-arrow {
    font-size: 16px;
    font-weight: 800;
    color: #38bdf8;
}

.comp-gauge-target {
    font-size: 18px;
    font-weight: 800;
    color: #4ade80;
}

.comp-gauge-bar-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
    margin-bottom: 10px;
}

.comp-gauge-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e 0%, #38bdf8 100%);
    transition: width 0.25s ease;
}

.comp-gauge-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.comp-saved-tag {
    font-size: 11px;
    font-weight: 800;
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.22);
    padding: 3px 9px;
    border-radius: 999px;
}

.comp-clarity-tag {
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
}

.comp-clarity-tag.good { color: #86efac; }
.comp-clarity-tag.mid  { color: #bae6fd; }
.comp-clarity-tag.warn { color: #fde047; }

.comp-side-block {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 13px;
    background: #ffffff;
}

.comp-side-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 9px;
}

.comp-exclusive-pill {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    padding: 2px 7px;
    border-radius: 999px;
}

.comp-portal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.comp-portal-chip {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
}

.comp-portal-chip:hover {
    border-color: #2563eb;
    color: #1d4ed8;
    background: #eff6ff;
}

.comp-portal-chip.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.comp-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.comp-mode-card {
    text-align: left;
    padding: 10px 11px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.comp-mode-card:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.comp-mode-card.active {
    border-color: #e5322d;
    background: #fff8f8;
    box-shadow: 0 0 0 2px rgba(229, 50, 45, 0.12);
}

.comp-mode-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}

.comp-mode-head strong {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
}

.comp-radio-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.comp-mode-card.active .comp-radio-dot {
    border-color: #e5322d;
    background: #e5322d;
    box-shadow: inset 0 0 0 2px #ffffff;
}

.comp-mode-card > span {
    display: block;
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
}

.comp-custom-kb-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
}

.comp-custom-kb-inline input {
    width: 76px;
    padding: 4px 7px;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
}

.comp-custom-kb-inline input:focus {
    border-color: #e5322d;
    outline: none;
}

.comp-kb-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.comp-kb-pill {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
}

.comp-kb-pill:hover {
    border-color: #e5322d;
    color: #e5322d;
}

.comp-kb-pill.active {
    background: #e5322d;
    border-color: #e5322d;
    color: #ffffff;
}

.comp-toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 7px 4px;
    cursor: pointer;
}

.comp-toggle-row + .comp-toggle-row {
    border-top: 1px solid #f1f5f9;
}

.comp-toggle-row input {
    margin-top: 3px;
    width: 15px;
    height: 15px;
    accent-color: #e5322d;
    flex-shrink: 0;
}

.comp-toggle-row strong {
    display: block;
    font-size: 12.2px;
    font-weight: 700;
    color: #1e293b;
}

.comp-toggle-row span {
    display: block;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.comp-sidebar-footer {
    padding: 14px 18px 16px;
    background: #f8fafc;
    border-top: 1px solid #dbe3ef;
}

.comp-inline-progress {
    margin-bottom: 10px;
}

.comp-inline-prog-track {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 5px;
}

.comp-inline-prog-fill {
    height: 100%;
    width: 15%;
    background: linear-gradient(90deg, #e5322d 0%, #2563eb 100%);
    transition: width 0.2s ease;
}

.comp-inline-prog-txt {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
}

.comp-primary-run-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e5322d 0%, #c92520 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(229, 50, 45, 0.28);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.comp-primary-run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(229, 50, 45, 0.36);
}

/* Live Before / After Split-Slider & 200% Text Magnifier Modal */
.comp-compare-dialog {
    background: #ffffff;
    width: 96vw;
    max-width: 1080px;
    height: 88vh;
    border-radius: 18px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.34);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.comp-compare-head {
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.comp-zoom-Group {
    display: inline-flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 8px;
    gap: 3px;
}

.comp-zoom-btn {
    border: none;
    background: transparent;
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.comp-zoom-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.comp-inspect-stat-pill {
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 5px 11px;
    border-radius: 999px;
}

.comp-compare-stage-scroll {
    flex: 1;
    overflow: auto;
    background: #1e293b;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 22px;
}

.comp-split-viewport {
    position: relative;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
    user-select: none;
    flex-shrink: 0;
}

.comp-split-viewport > canvas {
    display: block;
}

.comp-before-clip {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 4;
}

.comp-before-clip canvas {
    display: block;
}

.comp-split-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e5322d;
    z-index: 6;
    transform: translateX(-50%);
    pointer-events: none;
}

.comp-split-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5322d;
    border: 2.5px solid #ffffff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.comp-corner-tag {
    position: absolute;
    top: 12px;
    z-index: 8;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
}

.comp-corner-tag.left-tag {
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
}

.comp-corner-tag.right-tag {
    right: 12px;
    background: rgba(229, 50, 45, 0.92);
    color: #ffffff;
}

.comp-compare-foot {
    padding: 12px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* 2. Executive Sign & Official Company Seal Studio Additions */
.studio-tool-btn.seal-sign-btn {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #5b21b6;
    font-weight: 700;
}

.studio-tool-btn.seal-sign-btn:hover {
    background: #ede9fe;
    border-color: #7c3aed;
}

.studio-tool-btn.audit-sign-btn {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
    font-weight: 700;
}

.studio-tool-btn.audit-sign-btn:hover {
    background: #dcfce7;
    border-color: #16a34a;
}

.studio-toast-pill {
    position: fixed;
    top: 112px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9950;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    border: 1px solid #334155;
}

.studio-right-panel {
    width: 286px;
    height: 100%;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 20;
}

.studio-right-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.studio-r-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.studio-r-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.studio-r-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.studio-r-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 9px;
    font-family: var(--font-sans);
    font-size: 12.2px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-align: left;
}

.studio-r-action-btn.primary {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.studio-r-action-btn.primary:hover {
    background: #2563eb;
    color: #ffffff;
}

.studio-r-action-btn.violet {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #5b21b6;
}

.studio-r-action-btn.violet:hover {
    background: #6d28d9;
    color: #ffffff;
}

.studio-r-action-btn.emerald {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.studio-r-action-btn.emerald:hover {
    background: #16a34a;
    color: #ffffff;
}

.studio-r-vault-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.studio-r-empty {
    grid-column: 1 / -1;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.45;
    text-align: center;
    padding: 8px 4px;
}

.studio-r-vault-item {
    position: relative;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-r-vault-item:hover {
    border-color: #2563eb;
}

.studio-r-vault-stamp {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-r-vault-stamp img {
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
}

.studio-r-vault-del {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.studio-r-outline-btn {
    width: 100%;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1.5px solid #334155;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.studio-r-outline-btn:hover {
    background: #0f172a;
    color: #ffffff;
}

.studio-r-hint {
    font-size: 11px;
    color: #64748b;
    line-height: 1.42;
    margin-top: 7px;
}

.studio-right-footer {
    padding: 12px 14px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Official Company Seal Modal Designer */
.seal-style-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.seal-style-btn {
    flex: 1;
    min-width: 130px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.seal-style-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.seal-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.seal-lbl {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.seal-preview-stage {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
}

.seal-preview-stage canvas {
    max-width: 100%;
    max-height: 165px;
    height: auto;
}

/* ============================================================================
 * v5.1 — NATIVE-APP GRADE MOBILE & TABLET STUDIO RESPONSIVENESS (320px–1060px)
 * ============================================================================ */

/* Base Dynamic Viewport & Hidden Scrollbar Polish */
.pdf-studio-shell {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.mode-lbl-short,
.dl-lbl-short,
.studio-mobile-vault-btn,
.studio-mobile-drawer-head,
.studio-mobile-backdrop {
    display: none;
}

.studio-tool-ribbon,
.studio-floating-props,
.studio-sig-tabs,
.studio-mode-pills {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.studio-tool-ribbon::-webkit-scrollbar,
.studio-floating-props::-webkit-scrollbar,
.studio-sig-tabs::-webkit-scrollbar,
.studio-mode-pills::-webkit-scrollbar {
    display: none;
}

/* Edge-Clamped Floating Object Toolbar */
.studio-obj-toolbar.below-obj {
    top: calc(100% + 7px);
}

.studio-obj-toolbar.align-left {
    left: 0;
    transform: none;
}

.studio-obj-toolbar.align-right {
    left: auto;
    right: 0;
    transform: none;
}

/* Clean Empty Studio Upload Screen (Zero Background Clutter / Zero Overflow) */
.pdf-studio-shell.studio-is-empty .studio-tool-ribbon,
.pdf-studio-shell.studio-is-empty .studio-floating-props,
.pdf-studio-shell.studio-is-empty .studio-page-frame,
.pdf-studio-shell.studio-is-empty .studio-bottom-pill,
.pdf-studio-shell.studio-is-empty .studio-sidebar,
.pdf-studio-shell.studio-is-empty .studio-right-panel,
.pdf-studio-shell.studio-is-empty #studioUndoBtn,
.pdf-studio-shell.studio-is-empty #studioRedoBtn,
.pdf-studio-shell.studio-is-empty #studioTopDownloadBtn,
.pdf-studio-shell.studio-is-empty #studioMobileInspectorBtn {
    display: none !important;
}

.pdf-studio-shell.studio-is-empty .studio-stage-wrap {
    padding: 16px;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.studio-empty-upload-overlay {
    width: 100%;
    max-width: 520px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-empty-drop-card {
    background: rgba(255, 255, 255, 0.98);
    border: 2px dashed #3b82f6;
    border-radius: 18px;
    padding: 32px 30px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.studio-empty-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.studio-empty-drop-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.studio-empty-drop-card p {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
}

.studio-empty-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.studio-empty-sub {
    margin-top: 12px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

/* Mobile Drawer Header & Backdrop */
.studio-mobile-drawer-head {
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13.5px;
    color: #0f172a;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.studio-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 9600;
}

.pdf-studio-shell.mobile-inspector-open .studio-mobile-backdrop,
.pdf-studio-shell.mobile-organize-open .studio-mobile-backdrop {
    display: block;
}

/* Tablet & Mobile Executive Bottom Sheet (<= 1060px) */
@media (max-width: 1060px) {
    .studio-mobile-vault-btn {
        display: inline-flex;
        border-color: #c4b5fd;
        background: #f5f3ff;
        color: #5b21b6;
        font-weight: 700;
    }

    .studio-right-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 82vh;
        max-height: 82dvh;
        height: auto;
        border-left: none;
        border-top: 1px solid #cbd5e1;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.28);
        z-index: 9650;
        transform: translateY(105%);
        transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
        display: flex;
    }

    .pdf-studio-shell.mobile-inspector-open .studio-right-panel {
        transform: translateY(0);
    }

    .studio-right-panel .studio-mobile-drawer-head {
        display: flex;
    }

    .comp-studio-sidebar {
        width: 340px;
    }
}

/* Compress PDF Studio Mobile & Tablet Split Stack (<= 860px) */
@media (max-width: 860px) {
    .comp-studio-body {
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comp-studio-sidebar {
        order: -1;
        width: 100%;
        height: auto;
        border-left: none;
        border-bottom: 1px solid #cbd5e1;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

    .comp-sidebar-scroll {
        overflow: visible;
        padding: 12px 14px;
        gap: 11px;
    }

    .comp-footer-cta {
        padding: 10px 14px 14px;
    }

    .comp-studio-stage {
        height: auto;
        overflow: visible;
        padding: 12px 12px 32px;
    }

    .comp-pages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .comp-page-canvas-box {
        min-height: 150px;
    }

    .comp-hover-loupe {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        font-size: 9.5px;
        padding: 3px 8px;
    }

    .comp-top-inspect-btn span,
    .comp-meta-pill {
        display: none;
    }

    .seal-inputs-grid {
        grid-template-columns: 1fr;
    }
}

/* Full Mobile Phone Studio Experience (<= 820px) */
@media (max-width: 820px) {
    /* 1. Two-Row Crisp Mobile Header (Zero Overlap, Zero Horizontal Overflow) */
    .studio-topbar {
        flex-wrap: wrap;
        padding: 7px 10px;
        gap: 6px;
        min-height: 0;
    }

    .studio-file-info {
        order: 1;
        flex: 1;
        min-width: 0;
        gap: 6px;
    }

    .studio-brand-mini {
        font-size: 13.5px;
        padding-right: 7px;
        margin-right: 0;
        gap: 5px;
    }

    .studio-brand-mini svg {
        width: 18px;
        height: 18px;
    }

    .studio-file-doc-icon,
    .studio-local-badge,
    .studio-redo-btn {
        display: none !important;
    }

    .studio-file-name {
        font-size: 11.5px;
        max-width: 88px;
    }

    .studio-top-actions {
        order: 2;
        gap: 4px;
        margin-left: auto;
    }

    .studio-icon-btn {
        height: 31px;
        padding: 0 7px;
        font-size: 11px;
        border-radius: 7px;
    }

    .studio-download-btn {
        height: 31px;
        padding: 0 10px;
        font-size: 11.5px;
        gap: 4px;
        border-radius: 7px;
    }

    .mode-lbl-full,
    .dl-lbl-full {
        display: none !important;
    }

    .mode-lbl-short,
    .dl-lbl-short {
        display: inline !important;
    }

    .studio-mode-pills {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 3px;
        gap: 3px;
        border-radius: 10px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .studio-mode-btn {
        flex: 1;
        justify-content: center;
        padding: 6px 6px;
        font-size: 12px;
        gap: 5px;
        border-radius: 8px;
        min-width: 0;
    }

    /* 2. Smooth Touch Swipe Ribbon */
    .studio-tool-ribbon {
        padding: 6px 10px;
        min-height: 42px;
        gap: 5px;
    }

    .studio-tool-btn {
        padding: 6px 9px;
        font-size: 11.8px;
        gap: 5px;
    }

    /* 3. Mobile Organize Pages Slide-Over Left Drawer */
    .studio-body {
        height: auto;
        flex: 1;
        min-height: 0;
    }

    .studio-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 230px;
        height: 100vh;
        height: 100dvh;
        z-index: 9650;
        background: #ffffff;
        box-shadow: 16px 0 40px rgba(15, 23, 42, 0.25);
        transform: translateX(-105%);
        transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
        padding: 0 10px 24px;
    }

    .pdf-studio-shell.mobile-organize-open .studio-sidebar {
        transform: translateX(0);
    }

    .studio-sidebar .studio-mobile-drawer-head {
        display: flex;
        margin: 0 -10px 8px;
        width: calc(100% + 20px);
    }

    /* 4. Single-Row Compact Floating Props & Auto-Fitted Document Stage */
    .studio-stage-wrap {
        padding: 8px 8px 68px;
    }

    .studio-floating-props {
        flex-wrap: nowrap;
        max-width: calc(100vw - 16px);
        overflow-x: auto;
        padding: 5px 9px;
        gap: 7px;
        margin-bottom: 8px;
        box-sizing: border-box;
    }

    .studio-color-dot {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .studio-prop-input {
        width: 46px;
        padding: 3px 4px;
        font-size: 11.5px;
    }

    /* Larger Touch Resize Handle & Compact Object Toolbar */
    .studio-obj-resize {
        width: 22px;
        height: 22px;
        right: -11px;
        bottom: -11px;
    }

    .studio-obj-toolbar {
        padding: 3px 5px;
        gap: 2px;
    }

    .studio-obj-toolbar button {
        font-size: 11px;
        padding: 4px 6px;
    }

    .studio-bottom-pill {
        bottom: 8px;
        margin-top: 12px;
        padding: 5px 12px;
        font-size: 12px;
        gap: 8px;
    }

    /* Empty Upload Card Mobile Fit */
    .studio-empty-drop-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .studio-empty-drop-card h3 {
        font-size: 17.5px;
    }

    .studio-empty-drop-card p {
        font-size: 12.5px !important;
        margin-bottom: 15px;
    }

    /* 5. Mobile Bottom-Sheet Signature & Company Seal Modal */
    .studio-sig-modal-backdrop {
        padding: 8px;
        align-items: flex-end;
    }

    .studio-sig-modal {
        max-width: 100% !important;
        max-height: 92vh;
        max-height: 92dvh;
        display: flex;
        flex-direction: column;
        border-radius: 16px;
    }

    .studio-sig-modal-head {
        padding: 12px 14px;
        flex-shrink: 0;
    }

    .studio-sig-modal-head h3 {
        font-size: 15px;
    }

    .studio-sig-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .studio-sig-tab {
        flex: 1 0 auto;
        padding: 10px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .studio-sig-body {
        padding: 12px 14px;
        overflow-y: auto;
        flex: 1;
        min-height: 0;
    }

    .studio-sig-pad-box canvas {
        height: 150px;
    }

    .studio-sig-baseline {
        left: 14px;
        right: 14px;
        bottom: 30px;
        font-size: 10px;
    }

    .seal-preview-stage {
        min-height: 140px;
        padding: 8px;
    }

    .seal-preview-stage canvas {
        max-height: 138px;
    }

    .studio-sig-foot {
        padding: 10px 14px;
        gap: 8px;
        flex-shrink: 0;
    }

    /* 6. Mobile Before/After Clarity Modal */
    .comp-compare-dialog {
        width: 98vw;
        height: 92vh;
        height: 92dvh;
        border-radius: 14px;
    }

    .comp-compare-head,
    .comp-compare-foot {
        padding: 9px 12px;
        font-size: 11.5px;
    }

    .comp-compare-stage-scroll {
        padding: 10px;
    }
}

/* Extra-Compact Phones (320px - 440px) */
@media (max-width: 440px) {
    .studio-file-name {
        display: none;
    }

    .studio-brand-mini {
        border-right: none;
        padding-right: 2px;
    }

    .studio-mobile-vault-btn span {
        font-size: 10.5px;
    }

    .comp-mode-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}

/* ============================================================================
 * v5.3 — MINIMALIST ICON-FIRST SIGN STUDIO, 2x2 TILE INSPECTOR & SVG TEMPLATES
 * ============================================================================ */

/* 1. Sleek Topbar & Borderless Icon Tool Dock */
.studio-local-badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.studio-tool-ribbon {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    gap: 4px;
    padding: 6px 14px;
    min-height: 46px;
}

@media (min-width: 1160px) {
    .studio-tool-ribbon {
        justify-content: center;
    }
}

.studio-tool-btn {
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    gap: 5.5px;
    transition: all 0.14s ease;
}

.studio-tool-btn svg {
    width: 16px;
    height: 16px;
    color: #475569;
    transition: color 0.14s ease;
}

.studio-tool-btn:hover {
    background: #f1f5f9;
    border-color: transparent;
    color: #0f172a;
}

.studio-tool-btn:hover svg {
    color: #0f172a;
}

.studio-tool-btn.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    box-shadow: none;
}

.studio-tool-btn.active svg {
    color: #1d4ed8;
}

.studio-tool-btn.primary-sign-btn {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-weight: 700;
    padding: 6px 11px;
}

.studio-tool-btn.primary-sign-btn svg {
    color: #1d4ed8;
}

.studio-tool-btn.primary-sign-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.studio-tool-btn.primary-sign-btn:hover svg {
    color: #ffffff;
}

.studio-ribbon-divider {
    height: 20px;
    background: #e2e8f0;
    margin: 0 3px;
}

/* 2. Sleek Left Page Thumbnail Rail & Non-Overlapping Style Bar */
@media (min-width: 821px) {
    .studio-sidebar {
        width: 168px;
        padding: 12px 10px 24px;
    }

    .studio-thumb-box {
        width: 118px;
    }

    .studio-right-panel {
        width: 248px;
    }
}

.studio-thumb-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    padding: 0;
    border-radius: 5px;
    color: #64748b;
}

.studio-add-file-card {
    width: 118px;
    min-height: 68px;
    padding: 10px 8px;
    gap: 5px;
    border-radius: 10px;
    font-size: 11px;
}

.studio-floating-props {
    padding: 5px 12px;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

.studio-color-dot {
    width: 19px;
    height: 19px;
}

/* 3. Clean 2x2 Icon Tile Inspector (Right Panel & Mobile Sheet) */
.studio-right-scroll {
    padding: 14px;
    gap: 14px;
}

.studio-r-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.studio-r-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.studio-r-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: #64748b;
    text-transform: uppercase;
}

.studio-r-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}

.studio-r-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.studio-r-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 6px 10px;
    border-radius: 11px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.16s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.studio-r-tile:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.r-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease;
}

.studio-r-tile:hover .r-tile-icon {
    transform: scale(1.06);
}

.r-tile-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.r-tile-icon.indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.r-tile-icon.violet {
    background: #f5f3ff;
    color: #7c3aed;
}

.r-tile-icon.emerald {
    background: #ecfdf5;
    color: #059669;
}

.r-tile-lbl {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.15;
    white-space: nowrap;
}

.studio-r-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 8px;
    border: 1.5px dashed #e2e8f0;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 600;
}

.studio-r-vault-item {
    background: repeating-conic-gradient(#f8fafc 0% 25%, #ffffff 0% 50%) 50% / 10px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    height: 54px;
}

.studio-r-vault-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.14s ease;
}

.studio-r-vault-item:hover .studio-r-vault-del {
    opacity: 1;
}

.studio-r-compact-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.studio-r-compact-btn:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* 4. Pinned Modal Shell & Icon Tabs */
.studio-sig-modal {
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    max-height: 92dvh;
}

.studio-sig-modal-head,
.studio-sig-tabs,
.studio-sig-foot {
    flex-shrink: 0;
}

.modal-head-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.studio-sig-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.8px;
}

.studio-sig-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 15px 18px;
}

.sig-ink-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
    flex-wrap: wrap;
    padding: 7px 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

/* 5. 8 Calligraphic Signature Cards */
.studio-cursive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.studio-cursive-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 10px 7px;
    white-space: normal;
    min-height: 62px;
}

.cursive-sample-txt {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 23px;
    line-height: 1.26;
    padding: 1px 4px;
}

.cursive-style-tag {
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    line-height: 1;
}

.studio-cursive-card.active .cursive-style-tag {
    color: #1d4ed8;
}

/* 6. 6 Visual SVG Miniature Signature Layout Template Cards */
.sig-templates-panel {
    margin-top: 12px;
    padding: 11px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sig-templates-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: #64748b;
    text-transform: uppercase;
}

.sig-tpl-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.sig-tpl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px 6px;
    border-radius: 9px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e3a8a;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.sig-tpl-thumb {
    width: 100%;
    max-width: 72px;
    height: 30px;
    display: block;
}

.sig-tpl-card strong {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    line-height: 1.15;
    white-space: nowrap;
}

.sig-tpl-card:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.sig-tpl-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.sig-tpl-card.active strong {
    color: #1d4ed8;
    font-weight: 800;
}

.sig-tpl-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 2px;
}

.sig-live-preview-box {
    position: relative;
    background: repeating-conic-gradient(#f1f5f9 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
    border: 1.5px dashed #93c5fd;
    border-radius: 10px;
    padding: 24px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    overflow: hidden;
}

.sig-live-preview-lbl {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.94);
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 999px;
    z-index: 2;
}

#sigLiveTemplateCanvas {
    max-width: 100%;
    max-height: 145px;
    width: auto;
    height: auto;
    display: block;
}

/* 7. Clean Icon-Driven Stamp Photo Remaster & Seal Controls */
.stamp-upload-dropzone {
    border: 2px dashed #6366f1;
    border-radius: 14px;
    padding: 26px 18px;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    transition: all 0.16s ease;
}

.stamp-upload-dropzone:hover {
    background: #e0e7ff;
    border-color: #4f46e5;
}

.stamp-upload-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #ffffff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.stamp-remaster-panel {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.stamp-remaster-controls {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stamp-mode-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.stamp-mode-btn,
.seal-style-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.stamp-mode-btn:hover {
    border-color: #818cf8;
}

.stamp-mode-btn.active {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #3730a3;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.stamp-sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stamp-wrap-row {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.stamp-checker-preview {
    position: relative;
    background: repeating-conic-gradient(#e2e8f0 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 26px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    overflow: hidden;
}

#modalUploadPreviewCanvas {
    max-width: 100%;
    max-height: 170px;
    width: auto;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.08));
}

/* 8. Mobile & Tablet Responsive Polish */
@media (max-width: 1060px) {
    .studio-r-vault-del {
        opacity: 1;
    }
}

@media (max-width: 680px) {
    .studio-sig-body {
        padding: 12px;
    }

    .studio-sig-tab {
        font-size: 11.5px;
        padding: 10px 8px;
        gap: 4px;
    }

    .sig-tpl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .sig-tpl-meta-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .stamp-sliders-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cursive-sample-txt {
        font-size: 20px;
    }

    .studio-cursive-card {
        padding: 8px 7px 6px;
        min-height: 56px;
    }

    #modalUploadPreviewCanvas,
    #sigLiveTemplateCanvas {
        max-height: 132px;
    }
}

/* ============================================================================
 * PRO STUDIO v5.4 — 3-TAB INSPECTOR, 8 RUBBER STAMPS, ROTATION & MEGA-MENU FIX
 * ============================================================================ */

/* A. Multi-Language 6-Column Mega-Menu Zero-Overlap Protection (/pt, /es, /fr, /de, /hi, /ar) */
.all-tools-mega-panel .container {
    max-width: 1320px;
}

.mega-six-col-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.mega-convert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.mega-col,
.mega-col-list,
.mega-col-list li {
    min-width: 0;
    max-width: 100%;
}

.mega-col-title {
    white-space: normal;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.mega-tool-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    max-width: 100%;
    padding: 6px 7px !important;
    white-space: normal !important;
}

.mega-tool-illus {
    flex-shrink: 0;
}

.mega-tool-name {
    flex: 1;
    min-width: 0;
    white-space: normal !important;
    line-height: 1.26 !important;
    font-size: 12.6px !important;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1180px) and (min-width: 821px) {
    .mega-six-col-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        row-gap: 20px !important;
    }
}

/* B. Right Panel 3-Tab Switcher (Sign | Stamps | Adjust) */
.studio-r-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 10px 6px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.studio-r-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 31px;
    padding: 0 6px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
    white-space: nowrap;
}

.studio-r-tab:hover {
    color: #0f172a;
    background: #eef2f6;
}

.studio-r-tab.active {
    background: #ffffff;
    color: #2563eb;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.studio-r-pane {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.r-tile-icon.sky {
    background: #f0f9ff;
    color: #0284c7;
}

/* C. Quick Signer Fields (3x2 Compact Icon Buttons) */
.studio-qfields-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.studio-qfield-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 33px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-family: var(--font-sans);
    font-size: 11.2px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-qfield-btn:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    color: #1d4ed8;
}

.studio-qfield-btn.active-toggle {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.studio-qfield-btn.emerald-q {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.studio-qfield-btn.emerald-q:hover {
    border-color: #22c55e;
    background: #dcfce7;
}

/* D. 8 Vector Business & Legal Rubber Stamp Miniature Cards */
.r-stamp-ink-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px 2px;
}

.pro-stamps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.pro-stamp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 9px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.pro-stamp-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.07);
}

.pst-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    border: 2px solid currentColor;
    font-family: var(--font-sans);
    font-size: 9.8px;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.2;
    transform: rotate(-2deg);
}

.pro-stamp-card small {
    font-size: 9.8px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

.pro-stamp-card.green { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.pro-stamp-card.blue { color: #1e3a8a; background: #eff6ff; border-color: #bfdbfe; }
.pro-stamp-card.emerald { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.pro-stamp-card.indigo { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; }
.pro-stamp-card.violet { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }
.pro-stamp-card.slate { color: #334155; background: #f8fafc; border-color: #cbd5e1; }
.pro-stamp-card.red { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.pro-stamp-card.rose { color: #dc2626; background: #fff1f2; border-color: #fecdd3; }

/* E. Live Selected Item Adjust Inspector (Rotation, Wet Ink Blend, Opacity, Aspect Lock) */
.r-ctrl-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.r-ctrl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.2px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.r-ctrl-head strong {
    color: #2563eb;
    font-size: 11.5px;
}

.r-angle-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 6px;
}

.r-angle-pills button,
.r-blend-pills button {
    height: 26px;
    padding: 0 4px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.13s ease;
    white-space: nowrap;
}

.r-angle-pills button:hover,
.r-blend-pills button:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.r-blend-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.r-blend-pills button.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.r-lock-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    margin: 4px 0 8px;
}

/* F. On-Canvas Top Circular Drag-to-Rotate Handle & Sleek SVG Object Toolbar */
.studio-obj-rotate {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    border: 2px solid #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.25);
    z-index: 42;
}

.studio-obj-rotate::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 2px;
    height: 7px;
    background: #2563eb;
    pointer-events: none;
}

.studio-obj-rotate:active {
    cursor: grabbing;
    background: #1d4ed8;
}

.studio-obj.selected .studio-obj-rotate {
    display: inline-flex;
}

.studio-obj-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 700;
}

.seal-style-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.seal-style-pills .seal-style-btn {
    flex: 1 1 auto;
    padding: 7px 9px;
    font-size: 11.5px;
}

/* ============================================================================
 * v5.6 — FIGMA / ACROBAT PRO INSPECTOR, SLIM SCROLLBARS & 1-ROW RIBBON POLISH
 * ============================================================================ */

/* 1. Eliminate Outer Browser Scrollbar & Thick Windows Scrollbar Arrows in Studio */
html:has(.pdf-studio-shell),
body:has(.pdf-studio-shell) {
    overflow: hidden !important;
    height: 100vh !important;
}

.studio-right-scroll,
.studio-sidebar,
.studio-stage-wrap {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.studio-right-scroll::-webkit-scrollbar,
.studio-sidebar::-webkit-scrollbar,
.studio-stage-wrap::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.studio-right-scroll::-webkit-scrollbar-button,
.studio-sidebar::-webkit-scrollbar-button,
.studio-stage-wrap::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.studio-right-scroll::-webkit-scrollbar-track,
.studio-sidebar::-webkit-scrollbar-track,
.studio-stage-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.studio-right-scroll::-webkit-scrollbar-thumb,
.studio-sidebar::-webkit-scrollbar-thumb,
.studio-stage-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.studio-right-scroll::-webkit-scrollbar-thumb:hover,
.studio-sidebar::-webkit-scrollbar-thumb:hover,
.studio-stage-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 2. Single-Row Non-Wrapping Top Tool Dock (Image & Watermark Never Wrap) */
.studio-tool-ribbon {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start !important;
    gap: 3px;
    padding: 5px 12px;
    min-height: 42px;
}

.studio-tool-ribbon::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1290px) {
    .studio-tool-ribbon {
        justify-content: center !important;
    }
}

.studio-tool-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 5px 8.5px;
    font-size: 11.8px;
}

/* 3. Wider 276px Desktop Inspector & Hide Duplicate Bottom Export Button */
@media (min-width: 821px) {
    .studio-right-panel {
        width: 276px !important;
        flex: 0 0 276px !important;
    }

    .studio-right-footer {
        display: none !important;
    }
}

.studio-right-scroll {
    padding: 10px 12px 18px;
    gap: 12px;
}

/* 4. macOS / Figma Inset Segmented 3-Tab Switcher */
.studio-r-tabs {
    margin: 10px 12px 4px;
    padding: 3.5px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    gap: 3px;
}

.studio-r-tab {
    height: 30px;
    border-radius: 7px;
    font-size: 11.4px;
    font-weight: 700;
    color: #64748b;
    border: 1px solid transparent;
}

.studio-r-tab:hover {
    background: rgba(255, 255, 255, 0.55);
    color: #0f172a;
}

.studio-r-tab.active {
    background: #ffffff;
    color: #1d4ed8;
    border-color: rgba(203, 213, 225, 0.75);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 1px rgba(15, 23, 42, 0.04);
}

/* 5. Dynamic Selection Status Card (Empty Hint vs Active Thumbnail Preview) */
.r-selection-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1.5px dashed #cbd5e1;
    background: #f8fafc;
    transition: all 0.16s ease;
}

.r-selection-card.has-sel {
    border-style: solid;
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.r-sel-thumb {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
}

.r-selection-card.has-sel .r-sel-thumb {
    border-color: #bfdbfe;
    color: #2563eb;
}

.r-sel-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.r-sel-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1 1 auto;
}

.r-sel-meta strong {
    font-size: 11.6px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r-selection-card.has-sel .r-sel-meta strong {
    color: #1e40af;
}

.r-sel-meta span {
    font-size: 10.2px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r-sel-del-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 7px;
    border: 1px solid #fecaca;
    background: #ffffff;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.14s ease;
}

.r-sel-del-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
}

/* Smoothly Dim Controls When Nothing Is Selected */
.r-selected-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
    transition: opacity 0.16s ease;
}

.r-selected-controls.is-disabled {
    opacity: 0.44;
    pointer-events: none;
    user-select: none;
}

/* 6. 1-Click Page Alignment & Signatory Corner Bar */
.r-qalign-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.r-qalign-bar button {
    height: 28px;
    min-width: 28px;
    padding: 0 5px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #475569;
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.13s ease;
    white-space: nowrap;
}

.r-qalign-bar button:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.r-qalign-bar button.qalign-sign-spot {
    flex: 1 1 auto;
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.r-qalign-bar button.qalign-sign-spot:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* 7. Refined Control Cards, Custom Range Sliders & 5-Pill Degree Presets */
.r-ctrl-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 10px;
    margin-bottom: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.r-ctrl-head {
    margin-bottom: 7px;
    font-size: 11.2px;
    font-weight: 700;
    color: #1e293b;
}

.r-val-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10.6px;
    font-weight: 800;
}

.pro-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb var(--fill-pct, 50%), #e2e8f0 var(--fill-pct, 50%));
    outline: none;
    margin: 4px 0 2px;
    cursor: pointer;
}

.pro-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2563eb;
    border: 2.5px solid #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.pro-range::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    background: #1d4ed8;
}

.pro-range::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #2563eb;
    border: 2.5px solid #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    cursor: pointer;
}

.r-angle-pills {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 4px;
    margin-top: 8px;
}

.r-angle-pills button {
    height: 25px;
    padding: 0 2px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 10.3px;
    font-weight: 700;
}

.r-angle-pills button:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.r-angle-pills button.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

/* 8. Segmented Ink & Surface Blend Track */
.r-blend-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.r-blend-pills button {
    height: 26px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    font-size: 10.6px;
    font-weight: 700;
}

.r-blend-pills button:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
    border-color: transparent;
}

.r-blend-pills button.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

/* 9. Modern iOS / Figma Pill Switch (Lock Proportions & +Date) */
.pro-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
}

.pro-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.3px;
    font-weight: 700;
    color: #334155;
}

.pro-switch-label svg {
    color: #64748b;
}

.pro-switch-ctrl,
.pro-mini-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.pro-switch-ctrl input,
.pro-mini-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pro-switch-track {
    position: relative;
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.16s ease;
    flex-shrink: 0;
}

.pro-switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
    transition: transform 0.16s ease;
}

.pro-switch-ctrl input:checked + .pro-switch-track,
.pro-mini-switch input:checked + .pro-switch-track {
    background: #2563eb;
}

.pro-switch-ctrl input:checked + .pro-switch-track::after,
.pro-mini-switch input:checked + .pro-switch-track::after {
    transform: translateX(14px);
}

.pro-mini-switch .pro-switch-track {
    width: 26px;
    height: 15px;
}

.pro-mini-switch .pro-switch-track::after {
    width: 11px;
    height: 11px;
}

.pro-mini-switch input:checked + .pro-switch-track::after {
    transform: translateX(11px);
}

.pro-mini-switch .pro-switch-txt {
    font-size: 10.5px;
    font-weight: 700;
    color: #334155;
    text-transform: none;
    letter-spacing: 0;
}

.r-layer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* 10. Inline Live Watermark Input & Clean Export Select */
.r-inline-wm-box {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 4px 3px 9px;
    border-radius: 8px;
    border: 1px solid #93c5fd;
    background: #eff6ff;
}

.r-inline-wm-box input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 11.4px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    height: 26px;
}

.r-inline-wm-box button {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 6px;
    border: none;
    background: #dbeafe;
    color: #1e40af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.14s ease;
}

.r-inline-wm-box button:hover {
    background: #fee2e2;
    color: #dc2626;
}

.r-export-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.r-exp-ico {
    position: absolute;
    left: 10px;
    color: #64748b;
    pointer-events: none;
}

.r-export-select {
    width: 100%;
    height: 34px;
    padding: 0 26px 0 29px !important;
    font-size: 11.6px !important;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #1e293b;
}

.r-export-select:hover,
.r-export-select:focus {
    border-color: #93c5fd;
    background-color: #ffffff;
}










