/* Stirling PDF Platform & Image Suite Stylesheet (White Aesthetic Theme) */
:root {
    /* White Editorial Aesthetic Palette with Forest & Sage Green */
    --primary: #346841;
    --primary-light: #3e7b4f;
    --primary-accent: #23543d;
    --accent-gold: #9c6e1c;
    --accent-gold-light: #c29d59;
    --accent-emerald: #10a352;
    --accent-emerald-dim: rgba(16, 163, 82, 0.12);
    --bg-dark: #fbfbf9; /* Fallback alias */
    --bg-page: #fbfbf9;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --surface-subtle: #f5f8f5;
    --border: rgba(30, 58, 43, 0.1);
    --border-light: rgba(30, 58, 43, 0.06);
    --border-focus: rgba(30, 58, 43, 0.3);
    --text-primary: #1e4528;
    --text-secondary: #3c4f44;
    --text-muted: #647b6e;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --shadow-sm: 0 4px 14px rgba(22, 47, 33, 0.04);
    --shadow-md: 0 12px 35px rgba(22, 47, 33, 0.06), 0 2px 6px rgba(22, 47, 33, 0.02);
    --shadow-lg: 0 20px 48px rgba(22, 47, 33, 0.1), 0 4px 12px rgba(22, 47, 33, 0.04);
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Yellow (#ffce1b) & Forest Green Theme for Image Editing Tools
   ========================================================================== */
body.image-theme-yellow {
    /* Rich #ffce1b Bright Accent harmonized with Signature Forest Green */
    --primary: #346841;
    --primary-light: #3e7b4f;
    --primary-accent: #162f22;
    --accent-gold: #ffce1b;
    --accent-gold-light: #ffdc55;
    --accent-yellow: #ffce1b;
    --accent-yellow-dim: rgba(255, 206, 27, 0.16);
    --accent-emerald: #ffce1b;
    --accent-emerald-dim: rgba(255, 206, 27, 0.18);
    --bg-dark: #fcfbf7;
    --bg-page: #fcfbf7;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.92);
    --surface-subtle: #fbf8ee;
    --border: rgba(30, 58, 43, 0.12);
    --border-light: rgba(30, 58, 43, 0.07);
    --border-focus: rgba(255, 206, 27, 0.8);
    --text-primary: #1e4528;
    --text-secondary: #324438;
    --text-muted: #5e7266;
    --shadow-sm: 0 4px 14px rgba(30, 58, 43, 0.04);
    --shadow-md: 0 12px 35px rgba(30, 58, 43, 0.06), 0 2px 6px rgba(255, 206, 27, 0.06);
    --shadow-lg: 0 20px 48px rgba(30, 58, 43, 0.1), 0 6px 16px rgba(255, 206, 27, 0.12);
}

body.image-theme-yellow .mesh-orb-1 {
    background: radial-gradient(circle, rgba(255, 206, 27, 0.72) 0%, rgba(255, 222, 85, 0.45) 45%, rgba(255, 240, 160, 0.2) 72%, transparent 85%);
}

body.image-theme-yellow .mesh-orb-2 {
    background: radial-gradient(circle, rgba(98, 222, 148, 0.65) 0%, rgba(142, 230, 180, 0.42) 45%, rgba(205, 246, 222, 0.18) 72%, transparent 85%);
}

body.image-theme-yellow .mesh-orb-3 {
    background: radial-gradient(circle, rgba(255, 206, 27, 0.6) 0%, rgba(255, 228, 110, 0.38) 45%, rgba(255, 245, 180, 0.15) 70%, transparent 85%);
}

body.image-theme-yellow .tools-header {
    background: rgba(252, 251, 247, 0.92);
    border-bottom: 1px solid var(--border);
}

body.image-theme-yellow .brand-author {
    color: #b89100;
}

body.image-theme-yellow .tool-card-icon {
    background: rgba(255, 206, 27, 0.2);
    color: #346841;
    border: 1px solid rgba(255, 206, 27, 0.55);
}

body.image-theme-yellow .tool-card:hover .tool-card-icon {
    background: #ffce1b;
    color: #1e4528;
    border-color: #ffce1b;
    box-shadow: 0 4px 14px rgba(255, 206, 27, 0.45);
}

body.image-theme-yellow .tool-card:hover {
    border-color: rgba(255, 206, 27, 0.6);
    box-shadow: 0 16px 40px rgba(30, 58, 43, 0.08), 0 4px 14px rgba(255, 206, 27, 0.18);
}

body.image-theme-yellow .tool-launch-btn {
    background: rgba(255, 206, 27, 0.16);
    color: #346841;
    border: 1px solid rgba(255, 206, 27, 0.45);
    font-weight: 700;
}

body.image-theme-yellow .tool-launch-btn:hover,
body.image-theme-yellow .tool-card:hover .tool-launch-btn {
    background: #ffce1b;
    color: #1e4528;
    border-color: #ffce1b;
    box-shadow: 0 4px 14px rgba(255, 206, 27, 0.38);
}

body.image-theme-yellow .filter-btn.active {
    background: #346841;
    color: #ffce1b;
    border-color: #346841;
    box-shadow: 0 4px 14px rgba(30, 58, 43, 0.22);
}

body.image-theme-yellow .suite-tab-btn.active {
    background: #346841;
    color: #ffce1b;
    border: 1px solid #346841;
    box-shadow: 0 4px 14px rgba(30, 58, 43, 0.22);
}

body.image-theme-yellow .suite-tab-btn.active i {
    color: #ffce1b;
}

body.image-theme-yellow .action-btn-primary {
    background: #346841;
    color: #ffce1b;
    border-color: #346841;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(30, 58, 43, 0.22);
}

body.image-theme-yellow .action-btn-primary:hover {
    background: #ffce1b;
    color: #1e4528;
    border-color: #ffce1b;
    box-shadow: 0 6px 20px rgba(255, 206, 27, 0.45);
}

body.image-theme-yellow .status-dot {
    background: #ffce1b;
    box-shadow: 0 0 10px rgba(255, 206, 27, 0.85);
}

body.image-theme-yellow .dropzone:hover,
body.image-theme-yellow .dropzone.dragover {
    border-color: #ffce1b;
    background: rgba(255, 206, 27, 0.08);
}

body.image-theme-yellow .upload-icon-circle {
    background: rgba(255, 206, 27, 0.18);
    color: #346841;
    border: 1px solid rgba(255, 206, 27, 0.5);
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Atmospheric Gemini Background mesh */
.gemini-bg-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(75px);
    opacity: 0.65;
    mix-blend-mode: multiply;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.mesh-orb-1 {
    width: 65vw;
    height: 55vh;
    background: radial-gradient(circle, rgba(98, 222, 148, 0.72) 0%, rgba(142, 230, 180, 0.45) 45%, rgba(205, 246, 222, 0.2) 72%, transparent 85%);
    top: -12vh;
    left: 8vw;
}

.mesh-orb-2 {
    width: 65vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(255, 224, 98, 0.7) 0%, rgba(255, 236, 148, 0.45) 45%, rgba(255, 248, 200, 0.18) 72%, transparent 85%);
    bottom: -15vh;
    right: 5vw;
    animation-delay: -7s;
}

.mesh-orb-3 {
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(82, 206, 138, 0.68) 0%, rgba(135, 224, 175, 0.4) 45%, rgba(198, 244, 218, 0.15) 70%, transparent 85%);
    top: 35%;
    right: 20%;
    animation-delay: -13s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.08); }
}

/* Header */
.tools-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 251, 249, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-home-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(22, 47, 33, 0.05);
    transition: var(--transition);
}

.back-home-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateX(-3px);
}

.brand-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.brand-title h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.brand-title .brand-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    opacity: 0.95;
    text-transform: lowercase;
}

.server-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(30, 58, 43, 0.06);
    border: 1px solid rgba(30, 58, 43, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e5a38;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10a352;
    box-shadow: 0 0 8px rgba(16, 163, 82, 0.4);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Container */
.tools-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    position: relative;
    z-index: 1;
}

/* Hero */
.tools-hero {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.tools-hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.tools-hero .hero-author {
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    opacity: 0.95;
}

.tools-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 36px;
}

/* Search & Filters */
.search-filter-box {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.search-input-wrap {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 20px 0 52px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 4px 16px rgba(22, 47, 33, 0.04);
    transition: var(--transition);
}

.search-input-wrap input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 43, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

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

.filter-btn {
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(22, 47, 33, 0.03);
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(30, 58, 43, 0.06);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 58, 43, 0.2);
}

/* Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
    margin-bottom: 50px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 47, 33, 0.04);
}

.tool-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(30, 58, 43, 0.22);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(22, 47, 33, 0.09);
}

.tool-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(30, 58, 43, 0.07);
    color: var(--primary);
    border: 1px solid rgba(30, 58, 43, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.tool-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 22px;
    flex-grow: 1;
}

.tool-launch-btn {
    width: 100%;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(30, 58, 43, 0.16);
    background: rgba(30, 58, 43, 0.06);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Security Banner */
.security-banner {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    box-shadow: 0 8px 24px rgba(22, 47, 33, 0.04);
}

.security-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shield-icon {
    font-size: 2.2rem;
    color: #1e5a38;
}

.security-banner h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.security-banner p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Operation Modal */
.op-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.op-modal.active {
    opacity: 1;
    visibility: visible;
}

.op-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 36, 26, 0.55);
    backdrop-filter: blur(8px);
}

.op-modal-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(18, 36, 26, 0.18);
    display: flex;
    flex-direction: column;
}

.op-modal-header {
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.op-modal-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.op-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(30, 58, 43, 0.07);
    color: var(--primary);
    border: 1px solid rgba(30, 58, 43, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.op-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.op-modal-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.op-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.op-modal-close:hover {
    color: var(--text-primary);
}

.op-modal-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Dropzone */
.dropzone {
    border: 2px dashed rgba(30, 58, 43, 0.22);
    border-radius: var(--radius-md);
    padding: 34px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f8faf8;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--primary);
    background: rgba(30, 58, 43, 0.05);
}

.dropzone-icon {
    font-size: 2.2rem;
    color: #1e5a38;
    margin-bottom: 12px;
}

.dropzone-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.dropzone-text span {
    color: #1e5a38;
    text-decoration: underline;
}

.dropzone-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Selected files */
.selected-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    background: #f5f8f5;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.file-meta span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 320px;
}

.file-remove-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.file-remove-btn:hover {
    color: #dc3545;
}

/* Tool options */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-primary);
    padding: 0 14px;
    font-size: 0.9rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 43, 0.1);
}

/* Status / spinner */
.processing-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(30, 58, 43, 0.07);
    border: 1px solid rgba(30, 58, 43, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: #1e5a38;
    font-weight: 600;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(30, 58, 43, 0.15);
    border-top-color: #1e5a38;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Result box */
.result-box {
    background: rgba(30, 58, 43, 0.05);
    border: 1px solid rgba(30, 58, 43, 0.2);
    border-radius: var(--radius-sm);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.success-icon {
    font-size: 1.8rem;
    color: #10a352;
}

.result-info h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.result-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.download-btn {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.download-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 43, 0.2);
}

/* Error box */
.error-box {
    background: #fdf2f2;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #b02a37;
}

/* Footer */
.op-modal-footer {
    padding: 18px 26px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: rgba(30, 58, 43, 0.05);
    color: var(--text-primary);
}

.btn-execute {
    padding: 10px 24px;
    background: var(--primary);
    border: none;
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-execute:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 43, 0.25);
}

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

/* ==========================================================================
   Architecture & Workflow (Diagrammatic Technical Pipeline)
   ========================================================================== */
.how-it-works-section {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 30px;
    margin-bottom: 40px;
    box-shadow: 0 12px 35px rgba(22, 47, 33, 0.05);
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 43, 0.3), rgba(156, 110, 28, 0.3), transparent);
}

.hiw-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.hiw-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(30, 58, 43, 0.08);
    border: 1px solid rgba(30, 58, 43, 0.18);
    color: #1e5a38;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hiw-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hiw-header p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Pipeline Flow & Cards */
.workflow-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 30px;
}

.workflow-card {
    background: #fbfbf9;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 14px rgba(22, 47, 33, 0.03);
}

.workflow-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 58, 43, 0.25);
    box-shadow: 0 12px 28px rgba(22, 47, 33, 0.08);
}

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

.node-step {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #8f6417;
    background: rgba(180, 130, 40, 0.1);
    border: 1px solid rgba(180, 130, 40, 0.25);
    padding: 2px 8px;
    border-radius: 9999px;
}

.node-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(30, 58, 43, 0.07);
    border: 1px solid rgba(30, 58, 43, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.node-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.node-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.tech-pill {
    display: inline-block;
    align-self: flex-start;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    color: #1e5a38;
    background: rgba(30, 58, 43, 0.07);
    border: 1px solid rgba(30, 58, 43, 0.15);
    border-radius: 4px;
    padding: 2px 7px;
    margin-bottom: 10px;
}

.node-body p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 14px;
    flex-grow: 1;
}

.node-specs {
    border-top: 1px dashed rgba(30, 58, 43, 0.12);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.node-specs span {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.node-specs span i {
    color: var(--accent-gold);
    font-size: 0.7rem;
}

/* Connector Arrow */
.workflow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(30, 58, 43, 0.35);
    font-size: 1.1rem;
}

/* Architecture Summary Bar */
.arch-summary-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    background: #f5f8f5;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.arch-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.arch-summary-item i {
    font-size: 1.15rem;
    color: var(--primary);
    background: rgba(30, 58, 43, 0.08);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arch-summary-item div {
    font-size: 0.8rem;
    line-height: 1.35;
}

.arch-summary-item strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}

.arch-summary-item span {
    color: #8f6417;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.76rem;
}

/* Responsive Breakpoints for Diagram */
@media (max-width: 1080px) {
    .workflow-diagram {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .workflow-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .workflow-diagram {
        grid-template-columns: 1fr;
    }
    .how-it-works-section {
        padding: 26px 18px;
    }
    .hiw-header h3 {
        font-size: 1.4rem;
    }
    .tools-hero h2 {
        font-size: 2.1rem;
    }
    .tools-hero .hero-author {
        font-size: 1.3rem;
        display: block;
        margin-top: 4px;
    }
}

/* ==========================================================================
   Tool Suite Switcher (PDF Suite <-> Image Suite Navigation)
   ========================================================================== */
.tool-suite-switcher {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 14px rgba(22, 47, 33, 0.05);
}

.suite-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.suite-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(30, 58, 43, 0.05);
}

.suite-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(30, 58, 43, 0.2);
}

.suite-tab-btn i {
    font-size: 0.85rem;
}

.suite-tab-btn.active i {
    color: #ffffff;
}

/* ==========================================================================
   Image Suite Specific Controls & Interactive Previews
   ========================================================================== */
.image-preview-card {
    background: #f5f8f5;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.image-preview-card img,
.image-preview-card canvas {
    max-width: 100%;
    max-height: 220px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 4px 16px rgba(22, 47, 33, 0.12);
    background: repeating-conic-gradient(#e5ebe5 0% 25%, #f2f6f2 0% 50%) 50% / 16px 16px;
}

.image-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.meta-chip {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-chip i {
    color: #1e5a38;
}

.slider-group-wrap {
    background: #f8faf8;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 10px;
}

.slider-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.slider-val-badge {
    color: #1e5a38;
    font-family: ui-monospace, monospace;
    font-size: 0.8rem;
    background: rgba(30, 58, 43, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
}

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(30, 58, 43, 0.15);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(30, 58, 43, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.aspect-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.preset-chip-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.preset-chip-btn:hover,
.preset-chip-btn.active {
    background: rgba(30, 58, 43, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.input-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .tool-suite-switcher {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Minimalist Tools Selection Hub
   ========================================================================== */
.minimal-hub-container {
    max-width: 860px;
    margin: 40px auto 60px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(75vh - 100px);
}

.minimal-hub-hero {
    text-align: center;
    margin-bottom: 34px;
}

.minimal-hub-hero h2 {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.minimal-suites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 800px;
}

.minimal-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 42px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 35px rgba(22, 47, 33, 0.05), 0 2px 6px rgba(22, 47, 33, 0.02);
}

.minimal-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    border-color: rgba(30, 58, 43, 0.22);
    box-shadow: 0 22px 50px rgba(22, 47, 33, 0.1), 0 6px 16px rgba(22, 47, 33, 0.04);
}

.minimal-card.image-card:hover {
    border-color: rgba(255, 206, 27, 0.7);
    box-shadow: 0 22px 50px rgba(30, 58, 43, 0.1), 0 6px 18px rgba(255, 206, 27, 0.25);
}

.minimal-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 20px;
    transition: transform 0.25s ease;
}

.pdf-card .minimal-icon-box {
    background: rgba(30, 58, 43, 0.07);
    border: 1px solid rgba(30, 58, 43, 0.15);
    color: var(--primary);
}

.image-card .minimal-icon-box {
    background: rgba(255, 206, 27, 0.2);
    border: 1px solid rgba(255, 206, 27, 0.55);
    color: #346841;
}

.minimal-card:hover .minimal-icon-box {
    transform: scale(1.08);
}

.minimal-card h3 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.minimal-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 26px;
    max-width: 270px;
}

.minimal-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.pdf-card .minimal-arrow {
    background: rgba(30, 58, 43, 0.07);
    border: 1px solid rgba(30, 58, 43, 0.18);
    color: var(--primary);
}

.pdf-card:hover .minimal-arrow {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.image-card .minimal-arrow {
    background: rgba(255, 206, 27, 0.16);
    border: 1px solid rgba(255, 206, 27, 0.5);
    color: #346841;
    font-weight: 700;
}

.image-card:hover .minimal-arrow {
    background: #ffce1b;
    color: #1e4528;
    border-color: #ffce1b;
    box-shadow: 0 4px 14px rgba(255, 206, 27, 0.35);
}

.minimal-arrow i {
    transition: transform 0.2s ease;
}

.minimal-card:hover .minimal-arrow i {
    transform: translateX(4px);
}

.minimal-footer-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    margin-top: 36px;
    text-align: center;
}

@media (max-width: 640px) {
    .minimal-hub-container {
        margin: 20px auto 40px;
        min-height: auto;
    }
    .minimal-suites-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .minimal-card {
        padding: 32px 20px;
    }
    .minimal-hub-hero h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Live Operation Preview Styles (Image & PDF)
   ========================================================================== */
.op-live-preview-card {
    background: #f8faf8;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(22, 47, 33, 0.04);
}

.live-preview-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #1e5a38;
    background: rgba(30, 58, 43, 0.08);
    border: 1px solid rgba(30, 58, 43, 0.18);
    padding: 3px 10px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10a352;
    box-shadow: 0 0 8px rgba(16, 163, 82, 0.4);
    animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.live-preview-canvas-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: repeating-conic-gradient(#edf2ed 0% 25%, #f7f9f7 0% 50%) 50% / 18px 18px;
    border: 1px solid var(--border);
    min-height: 140px;
    max-height: 280px;
    padding: 8px;
}

.live-preview-canvas-wrap canvas,
.live-preview-canvas-wrap img {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(22, 47, 33, 0.1);
    transition: transform 0.25s ease, filter 0.15s ease;
}

.live-preview-meta {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

/* Result Box Preview Thumbnail */
.result-preview-thumb {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 8px;
    background: #f5f8f5;
    border: 1px solid var(--border);
    margin-bottom: 4px;
}

.result-preview-thumb img,
.result-preview-thumb canvas {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(22, 47, 33, 0.08);
}

/* Multiple PDF Thumbnails Grid for Merge */
.pdf-merge-thumbs-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    width: 100%;
    padding: 6px 2px;
}

.pdf-thumb-card {
    flex-shrink: 0;
    width: 90px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(22, 47, 33, 0.03);
}

.pdf-thumb-card canvas {
    width: 100%;
    height: 105px;
    object-fit: contain;
    border-radius: 4px;
    background: #ffffff;
}

.pdf-thumb-card span {
    font-size: 0.68rem;
    color: var(--text-secondary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}
