/* Any to Any Converter - Premium CSS Style Sheet */

/* --- Design Tokens & Variables --- */
:root {
    --bg-primary: #080612;
    --bg-secondary: #0d0a20;
    --bg-glass: rgba(15, 12, 34, 0.7);
    --border-glass: rgba(139, 92, 246, 0.16);
    --border-glass-focus: rgba(236, 72, 153, 0.4);
    
    --color-primary: #8b5cf6;       /* Violet */
    --color-secondary: #ec4899;     /* Pink */
    --color-accent: #3b82f6;        /* Blue */
    --color-success: #10b981;       /* Emerald */
    --color-warning: #f59e0b;       /* Amber */
    --color-danger: #ef4444;        /* Red */
    
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
    --gradient-dark: linear-gradient(180deg, #0d0a20 0%, #080612 100%);
    
    --text-main: #f3f4f6;
    --text-muted: #a1a1aa;
    --text-subtle: #71717a;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.2);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    background-image: var(--gradient-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px; /* Space for mobile anchor ad */
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 90% 75%, rgba(236, 72, 153, 0.08) 0%, transparent 35%);
    pointer-events: none;
    z-index: -1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

a:hover {
    color: var(--color-secondary);
}

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

.hidden {
    display: none !important;
}

/* --- Header / Navigation --- */
.app-header {
    background: rgba(8, 6, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.logo-icon svg {
    width: 18px;
    height: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-nav-links {
    display: flex;
    gap: 28px;
}

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

.header-nav-links a:hover {
    color: var(--text-main);
}

.header-badge {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 100px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-success);
}

.badge-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero-section {
    padding: 56px 0 24px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* --- Filter Pills Row --- */
.filters-container {
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.filter-pills-row {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    padding: 6px;
}

.filter-pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-pill:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.filter-pill.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* --- Tools Grid (iLovePDF Style) --- */
.tools-grid-section {
    padding: 24px 0 48px 0;
}

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

.tool-card {
    background: rgba(17, 13, 37, 0.45);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-focus);
    box-shadow: var(--shadow-glow);
    background: rgba(17, 13, 37, 0.65);
}

.tool-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Colorful gradient icon tags just like iLovePDF */
.img-tool {
    background: linear-gradient(135deg, #ff5e62, #ff9966);
}
.doc-tool {
    background: linear-gradient(135deg, #1fa2ff, #12d6df);
}
.doc-tool-alt {
    background: linear-gradient(135deg, #7f00ff, #e100ff);
}
.media-tool {
    background: linear-gradient(135deg, #f857a6, #ff5858);
}
.sheet-tool {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

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

.tool-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.tool-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Modal Overlay (Workspace pop-up) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: rgba(4, 3, 10, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.modal-overlay.hidden {
    display: none !important;
    opacity: 0;
}

.modal-wrapper {
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
    animation: slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.converter-panel {
    background: var(--bg-glass);
    border: 1px solid rgba(139, 92, 246, 0.25);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-tool-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tool-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

#active-tool-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Drag & Drop Zone --- */
.dropzone {
    border: 2px dashed rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.01);
    border-radius: var(--radius-md);
    padding: 56px 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-normal);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--color-secondary);
    background: rgba(236, 72, 153, 0.03);
    box-shadow: var(--shadow-glow);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin: 0 auto 16px auto;
    transition: var(--transition-normal);
}

.dropzone:hover .upload-icon-wrapper, .dropzone.dragover .upload-icon-wrapper {
    transform: scale(1.1);
    color: var(--color-secondary);
    background: rgba(236, 72, 153, 0.06);
}

.upload-icon {
    width: 28px;
    height: 28px;
}

.dropzone h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.dropzone-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.supported-formats-text {
    font-size: 0.78rem;
    color: var(--text-subtle);
}

/* --- Queue & File List --- */
.queue-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.panel-header h3 {
    font-size: 1.1rem;
}

.btn-clear {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-danger);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-clear:hover {
    background: rgba(239, 68, 68, 0.1);
}

.file-list-container {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.file-list-container::-webkit-scrollbar {
    width: 5px;
}
.file-list-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.file-list-container::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
}

.file-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.file-item-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-item-icon.image {
    color: var(--color-primary);
    background: rgba(139, 92, 246, 0.08);
}
.file-item-icon.document {
    color: var(--color-accent);
    background: rgba(59, 130, 246, 0.08);
}
.file-item-icon.media {
    color: var(--color-secondary);
    background: rgba(236, 72, 153, 0.08);
}

.file-item-icon svg {
    width: 16px;
    height: 16px;
}

.file-item-details {
    min-width: 0;
}

.file-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.file-item-config {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-format {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 5px 24px 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f3f4f6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
}

.select-format:focus {
    border-color: var(--color-primary);
}

.btn-remove-file {
    background: transparent;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.btn-remove-file:hover {
    color: var(--color-danger);
    background: rgba(239, 68, 68, 0.1);
}

.btn-remove-file svg {
    width: 16px;
    height: 16px;
}

/* --- PDF Settings --- */
.pdf-settings-panel {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.pdf-settings-panel h4 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-item label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.setting-item input, .setting-item select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    outline: none;
}

.setting-item input:focus, .setting-item select:focus {
    border-color: var(--color-primary);
}

/* --- Buttons System --- */
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
    width: 100%;
}

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

.queue-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

/* --- Processing Overlay & Spinner --- */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #090714;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loader-content {
    max-width: 440px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: 4px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(139, 92, 246, 0.08);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-core {
    position: absolute;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    top: 8px;
    left: 8px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
}

.spinner-icon {
    width: 24px;
    height: 24px;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

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

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    margin: 8px 0;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    transition: width var(--transition-fast) linear;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: -22px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Success Panel --- */
.success-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.success-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.success-icon-badge {
    width: 52px;
    height: 52px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-success);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
    margin-bottom: 4px;
}

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

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

.results-list-container {
    max-height: 240px;
    overflow-y: auto;
}

.status-badge {
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-success);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
}

.btn-download-single {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.18);
    color: var(--color-primary);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-download-single:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: scale(1.05);
}

.btn-download-single svg {
    width: 14px;
    height: 14px;
}

.success-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

/* --- Ad Placement Styles (Non-Intrusive, Minimal) --- */
.ad-section {
    padding: 8px 0;
}

/* Generic ad container — blends with site, never jarring */
.ad-container {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition-fast);
}

.ad-container:hover {
    border-color: rgba(139, 92, 246, 0.12);
}

/* Tiny "Ad" label — required by Google, kept very subtle */
.ad-header {
    padding: 3px 10px;
    display: flex;
    justify-content: center;
}

.ad-tag {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-subtle);
    letter-spacing: 0.12em;
    opacity: 0.6;
}

/* Placeholder content (replaced by real <ins> tags after AdSense approval) */
.ad-placeholder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
    gap: 10px;
    color: var(--text-subtle);
    opacity: 0.5;
}

.ad-mock-graphics {
    width: 32px;
    height: 6px;
    background: var(--gradient-glow);
    border-radius: 100px;
    flex-shrink: 0;
    animation: pulse-glow 3s ease-in-out infinite;
}

.ad-mock-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-subtle);
}

.ad-mock-subtext { display: none; } /* Hidden — not needed in minimal design */

/* ---- Billboard (top of page) ---- */
.billboard-ad .ad-placeholder-content {
    height: 90px;
}

/* ---- In-Modal: Processing screen ad ---- */
.focus-processing-ad {
    margin-top: 16px;
    width: 100%;
    border-radius: var(--radius-sm);
}

.focus-processing-ad .ad-placeholder-content {
    height: 80px;
}

/* ---- In-Modal: Success/Download area ad ---- */
.success-download-ad {
    margin-top: 14px;
}

.success-download-ad .ad-placeholder-content {
    height: 80px;
}

/* ---- In-Content Ad (between tools grid and info section) ---- */
.incontent-ad-section {
    padding: 8px 0 0 0;
}

.incontent-ad {
    max-width: 728px;
    margin: 0 auto;
}

.incontent-ad .ad-placeholder-content {
    height: 90px;
}

/* ---- Pre-Footer Ad (above footer, full-width) ---- */
.prefooter-ad-section {
    padding: 16px 0 0 0;
    margin-top: 8px;
}

.prefooter-ad {
    max-width: 970px;
    margin: 0 auto;
}

.prefooter-ad .ad-placeholder-content {
    height: 90px;
}

.success-download-ad {
    margin-top: 14px;
}

.success-download-ad .ad-placeholder-content {
    height: 110px;
}

@keyframes pulse-glow {
    0% { opacity: 0.4; }
    50% { opacity: 0.7; }
    100% { opacity: 0.4; }
}

/* --- SEO & Details Info Section --- */
.info-section {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 32px 24px;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-icon {
    font-size: 1.8rem;
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.seo-detailed-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seo-detailed-content h2 {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-detailed-content h3 {
    font-size: 1.2rem;
    margin-top: 12px;
}

.seo-detailed-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.seo-table-container {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.seo-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.seo-table th, .seo-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.seo-table th {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main);
}

.seo-table tbody tr:last-child td {
    border-bottom: none;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--color-secondary);
}

.faq-item p {
    font-size: 0.88rem;
}

/* --- Footer --- */
.app-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(8, 6, 18, 0.9);
    padding: 24px 0;
    margin-top: 48px;
    text-align: center;
    color: var(--text-subtle);
    font-size: 0.78rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 600;
}

.footer-dot {
    width: 3px;
    height: 3px;
    background: var(--text-subtle);
    border-radius: 50%;
}

/* --- Mobile Bottom Anchor Ad --- */
.mobile-anchor-ad-container {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #080612;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
}

.mobile-ad-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
}

.mobile-ad-placeholder {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.mobile-ad-mock {
    width: 24px;
    height: 8px;
    background: var(--gradient-glow);
    border-radius: 100px;
    opacity: 0.7;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 40px 0 16px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .filter-pills-row {
        overflow-x: auto;
        justify-content: flex-start;
        width: 100%;
    }
    
    .filter-pill {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        padding: 18px;
    }
    
    .converter-panel {
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .success-footer {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }
    
    .seo-detailed-content {
        padding: 20px 16px;
    }
    
    .billboard-ad .ad-placeholder-content {
        height: 60px;
        padding: 8px;
    }
    
    .mobile-anchor-ad-container {
        display: block;
    }
    
    .header-nav-links {
        display: none; /* Hide link bar on mobile header */
    }
}
