:root {
    --brand-color: #E74C3C;
    --brand-hover: #C0392B;
    --brand-light: #FDEDEC;
    --text-color: #313131;
    --text-secondary: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f0f0;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1200px;
    --header-height: 60px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--brand-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-hover); }

img { max-width: 100%; height: auto; }

.hidden { display: none !important; }

.layout-main { flex: 1; }

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

.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 0;
}

.colored { background: var(--bg-light); }
.border-bottom { border-bottom: 1px solid var(--border-color); }

/* ============ Header ============ */
.layout-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    overflow: visible;
}

.layout-header-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 16px;
    overflow: visible;
}

.logo-wrapper { flex-shrink: 0; }

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 18px;
}

.logo:hover { color: var(--text-color); }
.logo svg { flex-shrink: 0; }

.featured-links { flex: 1; overflow: visible; }

.featured-links ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
}

.featured-links li a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.featured-links li a:hover,
.featured-links li a.active-link {
    color: var(--brand-color);
    background: var(--brand-light);
}

.all-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.all-tools-icon svg { vertical-align: middle; }

/* Mega Menu */
.mega-all-tools { position: relative; overflow: visible; }

.top-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    min-width: 700px;
    z-index: 1001;
    margin-top: 4px;
}

.top-menu-container.show { display: block; }

.js-close-mobile-menu {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    z-index: 10;
}

body.menu-backdrop::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

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

.converter-group { }

.group-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-color);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand-color);
    letter-spacing: 0.5px;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-color);
    transition: background 0.2s;
    white-space: nowrap;
}

.group-item:hover {
    background: var(--brand-light);
    color: var(--brand-color);
}

.menu-item-title { }

/* Tool Icons */
.img-word-to-pdf, .img-excel-to-pdf, .img-ppt-to-pdf,
.img-jpg-to-pdf, .img-pdf-to-word, .img-pdf-to-excel,
.img-pdf-to-ppt, .img-pdf-to-jpg, .img-pdf-to-png,
.img-merge-pdf, .img-split-pdf, .img-compress-pdf,
.img-protect-pdf, .img-unlock-pdf, .img-rotate-pdf,
.img-watermark-pdf, .img-flatten-pdf, .img-pdf-converter,
.img-extract-pdf-images, .img-autocad-to-pdf, .img-pdf-to-pdfa,
.img-redact-pdf, .img-repair-pdf, .img-print-ready,
.img-delete-pages, .img-pdf-to-pdfa,
.img-word-to-pdf, .img-excel-to-pdf, .img-powerpoint-to-pdf {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
}

.img-word-to-pdf, .img-pdf-to-word { background: linear-gradient(135deg, #2B579A, #2B579A); position: relative; }
.img-word-to-pdf::after, .img-pdf-to-word::after {
    content: 'W'; position: absolute; color: white; font-weight: bold;
    font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.img-excel-to-pdf, .img-pdf-to-excel { background: linear-gradient(135deg, #217346, #217346); position: relative; }
.img-excel-to-pdf::after, .img-pdf-to-excel::after {
    content: 'X'; position: absolute; color: white; font-weight: bold;
    font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.img-ppt-to-pdf, .img-pdf-to-ppt, .img-powerpoint-to-pdf { background: linear-gradient(135deg, #D24726, #D24726); position: relative; }
.img-ppt-to-pdf::after, .img-pdf-to-ppt::after, .img-powerpoint-to-pdf::after {
    content: 'P'; position: absolute; color: white; font-weight: bold;
    font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.img-jpg-to-pdf { background: linear-gradient(135deg, #4CAF50, #8BC34A); position: relative; }
.img-jpg-to-pdf::after { content: 'J'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-pdf-to-jpg { background: linear-gradient(135deg, #4CAF50, #8BC34A); position: relative; }
.img-pdf-to-jpg::after { content: 'J'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-pdf-to-png { background: linear-gradient(135deg, #00BCD4, #26C6DA); position: relative; }
.img-pdf-to-png::after { content: 'P'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-merge-pdf { background: linear-gradient(135deg, #9C27B0, #BA68C8); position: relative; }
.img-merge-pdf::after { content: 'M'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-split-pdf { background: linear-gradient(135deg, #FF9800, #FFB74D); position: relative; }
.img-split-pdf::after { content: 'S'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-compress-pdf { background: linear-gradient(135deg, #607D8B, #90A4AE); position: relative; }
.img-compress-pdf::after { content: 'C'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-protect-pdf { background: linear-gradient(135deg, #F44336, #EF5350); position: relative; }
.img-protect-pdf::after { content: '🔒'; position: absolute; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-unlock-pdf { background: linear-gradient(135deg, #4CAF50, #66BB6A); position: relative; }
.img-unlock-pdf::after { content: '🔓'; position: absolute; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-rotate-pdf { background: linear-gradient(135deg, #2196F3, #42A5F5); position: relative; }
.img-rotate-pdf::after { content: 'R'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-watermark-pdf { background: linear-gradient(135deg, #795548, #A1887F); position: relative; }
.img-watermark-pdf::after { content: 'W'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-flatten-pdf { background: linear-gradient(135deg, #009688, #4DB6AC); position: relative; }
.img-flatten-pdf::after { content: 'F'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-pdf-converter { background: linear-gradient(135deg, var(--brand-color), #E57373); position: relative; }
.img-pdf-converter::after { content: 'PDF'; position: absolute; color: white; font-weight: bold; font-size: 9px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-extract-pdf-images { background: linear-gradient(135deg, #E91E63, #F06292); position: relative; }
.img-extract-pdf-images::after { content: 'E'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-autocad-to-pdf { background: linear-gradient(135deg, #3F51B5, #7986CB); position: relative; }
.img-autocad-to-pdf::after { content: 'A'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-pdf-to-pdfa { background: linear-gradient(135deg, #FF5722, #FF8A65); position: relative; }
.img-pdf-to-pdfa::after { content: 'A'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-redact-pdf { background: linear-gradient(135deg, #212121, #616161); position: relative; }
.img-redact-pdf::after { content: '█'; position: absolute; color: white; font-weight: bold; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-repair-pdf { background: linear-gradient(135deg, #827717, #C0CA33); position: relative; }
.img-repair-pdf::after { content: '🔧'; position: absolute; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-print-ready, .img-delete-pages { background: linear-gradient(135deg, #5D4037, #8D6E63); position: relative; }
.img-print-ready::after, .img-delete-pages::after { content: '🖨'; position: absolute; font-size: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.img-delete-pages::after { content: '✕'; color: white; font-weight: bold; font-size: 16px; }

/* ============ Header Links ============ */
.header-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switcher { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.lang-btn:hover { border-color: var(--brand-color); color: var(--brand-color); }

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    max-height: 360px;
    overflow-y: auto;
    margin-top: 4px;
    z-index: 1002;
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-color);
    transition: background 0.2s;
}

.lang-dropdown a:hover, .lang-dropdown a.active {
    background: var(--brand-light);
    color: var(--brand-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu .menu-item {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.user-menu .menu-item:hover { color: var(--brand-color); }

.mobile-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

.btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--brand-color);
    border-color: var(--brand-color);
}

.btn-outline:hover {
    background: var(--brand-color);
    color: white;
}

.brand-border { border-color: var(--brand-color); }
.brand-text { color: white !important; background: var(--brand-color); }
.brand-text:hover { background: var(--brand-hover); color: white !important; }
.brand-color { background-color: var(--brand-color); color: #fff; }
.brand-color-fill { fill: var(--brand-color); }

.full-width { width: 100%; }

/* ============ Upload Area ============ */
.work-area-wrapper {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-area {
    width: 100%;
}

.work-area-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.file-upload-shrink {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-input-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    display: block;
    cursor: pointer;
}

.dashes {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s;
    background: var(--bg-white);
}

.dashes:hover, .dashes.drag-over {
    border-color: var(--brand-color);
    background: var(--brand-light);
}

.dashes.drag-over {
    border-style: solid;
}

.page-title h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.converter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.main-subheader {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 30px;
}

.brand-btn-container {
    margin-bottom: 20px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-color);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.upload-btn:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
}

.button-icon { display: flex; }

.drag-hint {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
}

.file-upload-input {
    display: none;
}

/* ============ Progress ============ */
.progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.progress-content {
    text-align: center;
}

.spinner {
    display: inline-block;
    animation: spin 1.5s linear infinite;
}

.spinner.large svg { width: 60px; height: 50px; }

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

/* ============ Result ============ */
.result-container .files {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px 0;
}

.download-container {
    position: sticky;
    bottom: 0;
    background: var(--bg-white);
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-color);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.download-btn:hover {
    background: var(--brand-hover);
    color: white;
    transform: translateY(-2px);
}

.other-actions {
    margin-top: 16px;
}

.start-over {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--brand-color);
    font-size: 14px;
    font-weight: 500;
}

.start-over:hover { color: var(--brand-hover); }
.start-over svg { width: 20px; height: 8px; }

/* ============ Error ============ */
.error-container .msg-container,
.error-container-visible {
    text-align: center;
    padding: 60px 20px;
}

.error-container-visible .error-code {
    font-size: 80px;
    font-weight: 700;
    color: var(--brand-color);
    opacity: 0.3;
    line-height: 1;
}

/* ============ Tool Options ============ */
.tool-options {
    max-width: 500px;
    margin: 20px auto;
}

.options-panel {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.option-group {
    margin-bottom: 16px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.option-input, .option-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color 0.2s;
}

.option-input:focus, .option-select:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.proceed-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.proceed-btn:hover { background: var(--brand-hover); color: #fff; }

/* ============ How To ============ */
.howto-container {
    text-align: center;
    padding: 50px 0;
}

.howto-container h2 {
    font-size: 24px;
    margin-bottom: 40px;
    font-weight: 700;
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    counter-reset: none;
}

.howto-column {
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.howto-column:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.howto-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--brand-color);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ Features ============ */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    font-weight: 700;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tool-group {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.tool-group:hover { box-shadow: var(--shadow-md); }

.tool-group h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.tool-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.2s;
}

.tool-item:hover {
    background: var(--brand-light);
    color: var(--brand-color);
}

.tool-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ============ Auth Pages ============ */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.auth-error {
    background: #FDE8E8;
    color: #C0392B;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--brand-color);
    font-weight: 600;
    margin-left: 4px;
}

/* ============ Account Page ============ */
.account-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.account-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.account-info {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child { border-bottom: none; }

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.plan-badge {
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.plan-badge.free { background: var(--bg-gray); color: var(--text-secondary); }
.plan-badge.premium { background: var(--brand-light); color: var(--brand-color); }

.account-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

/* ============ Membership ============ */
.membership-container {
    text-align: center;
    padding: 60px 0;
}

.membership-container h1 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--brand-color);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-color);
    color: white;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-color);
}

.price span {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-color);
    font-weight: 700;
}

/* ============ Footer ============ */
.layout-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 30px;
    margin-top: auto;
}

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #888;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .featured-links ul { gap: 2px; }
    .featured-links li a { padding: 8px 8px; font-size: 13px; }
    .top-menu-container { min-width: 500px; }
}

@media (max-width: 768px) {
    .mobile-hamburger { display: flex; }

    .howto-grid { grid-template-columns: 1fr; }
    .features-container { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .footer-columns { grid-template-columns: repeat(2, 1fr); }

    .top-menu-container {
        min-width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        left: 10px !important;
        border-radius: var(--radius-md);
        padding: 16px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .js-close-mobile-menu {
        display: block;
    }

    .converter-menu { grid-template-columns: 1fr; }

    .page-title h1 { font-size: 22px; }
    .dashes { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .footer-columns { grid-template-columns: 1fr; }
    .tool-items { grid-template-columns: 1fr; }
    .auth-card { padding: 24px; }
}

/* ============ Animations ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease-out; }

/* ============ File Items ============ */
.file-item-result {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease-out;
}

.file-item-result .file-name {
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-all;
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
}

.file-item-result .file-name:hover {
    text-decoration: underline;
}

.file-item-result .file-size {
    font-size: 13px;
    color: var(--text-light);
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #E8F5E9;
    border-radius: 50%;
    margin-bottom: 16px;
}

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

/* Global progress bar */
.global-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--brand-color);
    z-index: 9999;
    transition: width 0.3s;
    width: 0;
}

.global-progress.active {
    animation: progressAnimation 2s ease-in-out forwards;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.contact-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.contact-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.contact-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-form-group {
    margin-bottom: 20px;
}

.contact-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.contact-input:focus {
    border-color: #E74C3C;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #E74C3C;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-submit-btn:hover {
    background: #C0392B;
}

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

.contact-success {
    text-align: center;
    padding: 32px 0;
}

.contact-success h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 8px;
}

.contact-success p {
    color: #666;
    font-size: 14px;
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-info-icon {
    margin-bottom: 12px;
}

.contact-info-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.contact-info-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-header h1 {
        font-size: 24px;
    }

    .contact-form-card {
        padding: 20px;
    }
}

.policy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.policy-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.policy-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.policy-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 8px;
}

.policy-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.policy-content ul {
    margin: 8px 0 16px 20px;
}

.policy-content li {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 4px;
}

.policy-content a {
    color: #3b82f6;
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

.cms-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.cms-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.cms-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.cms-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 8px;
}

.cms-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.cms-content ul, .cms-content ol {
    margin: 8px 0 16px 20px;
}

.cms-content li {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 4px;
}

.cms-content a {
    color: #3b82f6;
    text-decoration: none;
}

.cms-content a:hover {
    text-decoration: underline;
}
