:root {
    --brand-red: #e5322d;
    --brand-red-hover: #c9211d;
    --brand-dark: #33333b;
    --text-gray: #6d6d76;
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --border: #e6e6e6;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --success: #2ecc71;
    --warning: #f39c12;
    --error: #e74c3c;
    --info: #3498db;
    --dark-bg: #1a1a1a;
    --dark-card: #2d2d2d;
    --dark-text: #e0e0e0;
    --dark-border: #444;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Outfit', sans-serif; 
}

html, body { 
    height: 100%; 
    width: 100%; 
    overflow: hidden; 
}

body { 
    background: var(--bg-body); 
    color: var(--brand-dark); 
    display: flex; 
    flex-direction: column;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: var(--dark-bg);
    color: var(--dark-text);
    --bg-body: var(--dark-bg);
    --bg-card: var(--dark-card);
    --border: var(--dark-border);
    --text-gray: #aaa;
}

/* NAVBAR */
.navbar { 
    height: 70px; 
    background: var(--bg-card); 
    padding: 0 40px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
    z-index: 100; 
    flex-shrink: 0; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 22px; 
    font-weight: 700; 
    color: var(--brand-dark); 
    text-decoration: none; 
}

.dark-mode .logo {
    color: var(--dark-text);
}

.logo i { 
    color: var(--brand-red); 
    font-size: 24px; 
}

.nav-link { 
    color: var(--brand-dark); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 14px; 
    padding: 8px 12px; 
    border-radius: 6px; 
}

.dark-mode .nav-link {
    color: var(--dark-text);
}

.nav-link.active { 
    color: var(--brand-red); 
    background: rgba(229, 50, 45, 0.1); 
}

.nav-back-btn { 
    display: none; 
    border: 1px solid var(--border); 
    background: transparent; 
    padding: 8px 15px; 
    border-radius: 6px; 
    cursor: pointer; 
    align-items: center; 
    gap: 8px; 
    font-weight: 600; 
    color: var(--text-gray); 
}

.nav-back-btn:hover { 
    color: var(--brand-red); 
    border-color: var(--brand-red); 
}

/* THEME TOGGLE */
.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-gray);
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(229, 50, 45, 0.1);
    color: var(--brand-red);
}

/* LAYOUT */
.app-wrapper { 
    display: flex; 
    flex: 1; 
    height: calc(100vh - 70px); 
    position: relative; 
}

.workspace { 
    flex: 1; 
    background: var(--bg-body); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    overflow-y: auto; 
    padding-bottom: 80px; 
}

/* DASHBOARD */
.hero-mini { 
    text-align: center; 
    padding: 40px 20px; 
}

.hero-mini h1 { 
    font-size: 28px; 
    color: var(--brand-dark); 
}

.dark-mode .hero-mini h1 {
    color: var(--dark-text);
}

.tools-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
    max-width: 1100px; 
    width: 100%; 
    padding: 0 20px 40px; 
}

.tool-card-btn { 
    background: var(--bg-card); 
    border: 1px solid transparent; 
    padding: 25px 20px; 
    border-radius: 12px; 
    cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    box-shadow: var(--shadow); 
    transition: 0.3s; 
}

.tool-card-btn:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.tool-card-btn:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.icon-box { 
    font-size: 28px; 
    color: var(--brand-red); 
    margin-bottom: 12px; 
}

/* PREVIEW */
#preview-view { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding-top: 30px; 
}

.upload-box-wrapper { 
    width: 90%; 
    max-width: 800px; 
    height: 350px; 
    background: var(--bg-card); 
    border: 3px dashed var(--border); 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    margin-bottom: 30px; 
    flex-shrink: 0; 
    transition: border-color 0.3s;
}

.upload-box-wrapper.drag-over {
    border-color: var(--brand-red);
    background: rgba(229, 50, 45, 0.05);
}

.upload-cloud-icon { 
    font-size: 60px; 
    color: var(--border); 
    margin-bottom: 20px; 
}

.btn-big-red { 
    background: var(--brand-red); 
    color: white; 
    border: none; 
    padding: 15px 40px; 
    font-size: 18px; 
    font-weight: 700; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background 0.2s;
}

.btn-big-red:hover { 
    background: var(--brand-red-hover); 
}

.btn-big-red:focus-visible {
    outline: 3px solid rgba(229, 50, 45, 0.3);
    outline-offset: 2px;
}

/* THUMBNAILS */
.thumbnails-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    justify-content: center; 
    width: 100%; 
    padding: 20px; 
}

.thumb-card { 
    background: var(--bg-card); 
    width: 160px; 
    padding: 10px; 
    border-radius: 8px; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.08); 
    position: relative; 
    cursor: grab; 
    display: flex; 
    flex-direction: column; 
}

.thumb-card:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.thumb-img { 
    width: 100%; 
    height: 200px; 
    border-radius: 4px; 
    background: var(--bg-body); 
    margin-bottom: 8px; 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center; 
    border: 1px solid var(--border); 
    position: relative;
}

.thumb-img.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.delete-file { 
    position: absolute; 
    top: -8px; 
    right: -8px; 
    background: var(--brand-red); 
    color: white; 
    width: 24px; 
    height: 24px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 10; 
    font-size: 12px; 
    border: 2px solid var(--bg-card);
}

.delete-file:focus-visible {
    outline: 2px solid white;
    outline-offset: 1px;
}

.thumb-info { 
    font-size: 11px; 
    color: var(--text-gray); 
    text-align: center; 
}

.thumb-name { 
    font-size: 12px; 
    font-weight: 600; 
    text-align: center; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    color: var(--brand-dark);
}

.dark-mode .thumb-name {
    color: var(--dark-text);
}

/* SIDEBAR */
.sidebar { 
    width: 320px; 
    background: var(--bg-card); 
    border-left: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0; 
    z-index: 50; 
    height: 100%; 
}

.sidebar-header { 
    padding: 20px; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.sidebar-header h2 { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--brand-dark);
}

.dark-mode .sidebar-header h2 {
    color: var(--dark-text);
}

.sidebar-content { 
    flex: 1; 
    padding: 20px; 
    overflow-y: auto; 
}

.sidebar-footer { 
    padding: 20px; 
    border-top: 1px solid var(--border); 
    background: var(--bg-card); 
}

.mobile-close-btn { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: var(--text-gray);
}

.mobile-close-btn:focus-visible {
    outline: 2px solid var(--brand-red);
    border-radius: 4px;
}

/* CONTROLS */
.tool-form { 
    display: none; 
    animation: fadeIn 0.3s; 
}

.tool-form.active { 
    display: block; 
}

.input-group { 
    margin-bottom: 20px; 
}

.input-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 12px; 
    font-weight: 600; 
    color: var(--text-gray); 
    text-transform: uppercase; 
}

.form-input { 
    width: 100%; 
    padding: 10px; 
    border: 2px solid var(--border); 
    border-radius: 6px; 
    outline: none; 
    background: var(--bg-body);
    color: var(--brand-dark);
    transition: border-color 0.3s;
}

.dark-mode .form-input {
    background: var(--dark-bg);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

.form-input:focus { 
    border-color: var(--brand-red); 
}

.btn-action { 
    width: 100%; 
    padding: 14px; 
    background: var(--brand-red); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
    position: relative;
}

.btn-action:disabled { 
    background: var(--border); 
    cursor: not-allowed; 
    color: var(--text-gray);
}

.btn-action:focus-visible {
    outline: 3px solid rgba(229, 50, 45, 0.3);
    outline-offset: 2px;
}

/* Cancel button */
.btn-cancel {
    background: var(--text-gray);
    margin-top: 10px;
}

.btn-cancel:hover {
    background: var(--brand-dark);
}

.range-slider { 
    width: 100%; 
    margin-top: 5px; 
    height: 6px; 
    background: var(--border); 
    border-radius: 5px; 
    outline: none; 
    -webkit-appearance: none; 
}

.range-slider::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    width: 18px; 
    height: 18px; 
    background: var(--brand-red); 
    border-radius: 50%; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.range-slider::-webkit-slider-thumb:hover { 
    background: var(--brand-red-hover); 
}

.signature-wrapper { 
    border: 2px dashed var(--border); 
    border-radius: 8px; 
    background: var(--bg-body); 
    position: relative; 
}

.dark-mode .signature-wrapper {
    background: var(--dark-bg);
}

#signature-pad { 
    width: 100%; 
    cursor: crosshair; 
    background: white;
}

.dark-mode #signature-pad {
    background: var(--dark-card);
}

.btn-clear-sig { 
    position: absolute; 
    bottom: 5px; 
    right: 5px; 
    font-size: 11px; 
    padding: 4px 8px; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    cursor: pointer; 
    border-radius: 4px; 
    color: var(--text-gray);
}

.btn-clear-sig:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* Upload Signature Box */
.upload-sig-box { 
    border: 2px dashed var(--border); 
    background: var(--bg-body); 
    border-radius: 8px; 
    padding: 20px; 
    text-align: center; 
    cursor: pointer; 
    transition: 0.2s; 
    color: var(--text-gray); 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    align-items: center; 
}

.upload-sig-box:hover { 
    border-color: var(--brand-red); 
    color: var(--brand-red); 
    background: var(--bg-card); 
}

.upload-sig-box i { 
    font-size: 24px; 
}

.upload-sig-box span { 
    font-size: 13px; 
    font-weight: 600; 
}

.position-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 5px; 
    width: 100px; 
}

.position-grid div { 
    height: 30px; 
    border: 2px solid var(--border); 
    border-radius: 4px; 
    cursor: pointer; 
    position: relative;
}

.position-grid div:focus-visible {
    outline: 2px solid var(--brand-red);
}

.position-grid div.selected { 
    background: var(--brand-red); 
    border-color: var(--brand-red); 
}

.position-grid div.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.btn-group { 
    display: flex; 
    gap: 5px; 
    background: var(--border); 
    padding: 3px; 
    border-radius: 6px; 
}

.btn-opt { 
    flex: 1; 
    padding: 8px; 
    border: none; 
    background: transparent; 
    border-radius: 4px; 
    cursor: pointer; 
    color: var(--text-gray);
}

.btn-opt:focus-visible {
    outline: 2px solid var(--brand-red);
}

.btn-opt.active { 
    background: var(--bg-card); 
    color: var(--brand-red); 
    font-weight: 600; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

.rotate-btns { 
    display: flex; 
    gap: 10px; 
}

.btn-rotate { 
    flex: 1; 
    padding: 10px; 
    border: 1px solid var(--border); 
    background: var(--bg-card); 
    border-radius: 6px; 
    cursor: pointer; 
    color: var(--text-gray);
}

.btn-rotate:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.add-more-btn-floating { 
    position: fixed; 
    bottom: 30px; 
    right: 350px; 
    width: 50px; 
    height: 50px; 
    background: var(--brand-red); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    z-index: 40; 
    border: none;
}

.add-more-btn-floating:focus-visible {
    outline: 3px solid rgba(229, 50, 45, 0.3);
    outline-offset: 2px;
}

.progress-wrapper { 
    margin-bottom: 15px; 
    width: 100%; 
}

.progress-bar-bg { 
    width: 100%; 
    height: 10px; 
    background-color: var(--border); 
    border-radius: 5px; 
    overflow: hidden; 
    margin-bottom: 5px; 
}

.progress-bar-fill { 
    height: 100%; 
    width: 0%; 
    background-color: var(--brand-red); 
    transition: width 0.2s ease; 
}

#progress-text { 
    font-size: 12px; 
    color: var(--text-gray); 
    float: right; 
}

.progress-time {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
}

/* MODALS */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 200; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px;
}

.modal-content { 
    background: var(--bg-card); 
    width: 90%; 
    max-width: 400px; 
    border-radius: 12px; 
    padding: 0; 
    overflow: hidden; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); 
}

.modal-header { 
    padding: 15px 20px; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 600; 
}

.modal-header h3 {
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark-mode .modal-header h3 {
    color: var(--dark-text);
}

.modal-header button { 
    background: none; 
    border: none; 
    font-size: 20px; 
    cursor: pointer; 
    color: var(--text-gray);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header button:hover {
    background: var(--bg-body);
}

.modal-header button:focus-visible {
    outline: 2px solid var(--brand-red);
}

.modal-body { 
    padding: 30px 20px; 
    text-align: center; 
}

.modal-footer { 
    padding: 10px; 
    text-align: center; 
    background: var(--bg-body); 
    border-top: 1px solid var(--border);
}

.stat-row { 
    display: flex; 
    justify-content: space-between; 
    background: var(--bg-body); 
    padding: 15px; 
    border-radius: 8px; 
    margin-top: 20px; 
    font-size: 14px; 
}

.stat-value { 
    font-weight: 700; 
    color: var(--brand-dark); 
    display: block; 
}

.dark-mode .stat-value {
    color: var(--dark-text);
}

.stat-change { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 13px; 
    font-weight: 700; 
}

.stat-arrow { 
    color: var(--border); 
    font-size: 18px; 
    display: flex; 
    align-items: center; 
}

/* TOASTS */
.toast-container { 
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
    z-index: 2000; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    pointer-events: none; 
}

.toast { 
    background: var(--brand-dark); 
    color: white; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-size: 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    animation: slideUpToast 0.3s ease; 
    max-width: 90vw; 
    pointer-events: auto; 
}

.toast.error { background: var(--error); }
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); }
.toast.info { background: var(--info); }

@keyframes slideUpToast { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.btn-download-large { 
    background-color: var(--brand-red); 
    color: white; 
    border: none; 
    width: 100%; 
    padding: 15px; 
    font-size: 18px; 
    font-weight: 600; 
    border-radius: 8px; 
    cursor: pointer; 
    margin-top: 25px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    transition: background 0.2s; 
}

.btn-download-large:hover { 
    background-color: var(--brand-red-hover); 
}

.btn-download-large:focus-visible {
    outline: 3px solid rgba(229, 50, 45, 0.3);
    outline-offset: 2px;
}

.btn-close-text { 
    background: none; 
    border: none; 
    color: var(--text-gray); 
    cursor: pointer; 
    text-decoration: underline; 
    font-size: 14px; 
    padding: 5px 10px;
    border-radius: 4px;
}

.btn-close-text:hover {
    background: var(--bg-body);
}

.btn-close-text:focus-visible {
    outline: 2px solid var(--brand-red);
}

.text-result-area { 
    width: 100%; 
    height: 350px; 
    padding: 20px; 
    border: none; 
    resize: none; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 14px; 
    line-height: 1.6; 
    color: var(--brand-dark); 
    background: var(--bg-body); 
    outline: none; 
}

.dark-mode .text-result-area {
    color: var(--dark-text);
    background: var(--dark-bg);
}

.text-actions-bar { 
    display: flex; 
    justify-content: flex-end; 
    gap: 10px; 
    padding: 15px 20px; 
    background: var(--bg-card); 
    border-top: 1px solid var(--border); 
}

.btn-text-action { 
    padding: 10px 18px; 
    border: 1px solid var(--border); 
    background: var(--bg-card); 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    transition: 0.2s; 
    color: var(--text-gray);
}

.btn-text-action:hover { 
    background: var(--bg-body); 
}

.btn-text-action.primary { 
    background: var(--brand-red); 
    color: white; 
    border-color: var(--brand-red); 
}

.btn-text-action:focus-visible {
    outline: 2px solid var(--brand-red);
}

/* SETTINGS PANEL */
.settings-panel {
    position: fixed;
    top: 70px;
    right: -350px;
    width: 320px;
    height: calc(100vh - 70px);
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
}

.settings-panel.open {
    right: 0;
}

.settings-content {
    padding: 20px;
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group h3 {
    margin-bottom: 15px;
    color: var(--brand-dark);
    font-size: 16px;
}

.dark-mode .settings-group h3 {
    color: var(--dark-text);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.setting-label {
    color: var(--text-gray);
    font-size: 14px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--brand-red);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* SEO STYLES */
.seo-content { 
    background: var(--bg-card); 
    padding: 50px 20px; 
    border-top: 1px solid var(--border); 
    margin-top: 40px; 
    width: 100%; 
}

.seo-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    color: var(--text-gray); 
    font-size: 15px; 
    line-height: 1.6; 
}

.seo-container h1 { 
    color: var(--brand-dark); 
    font-size: 28px; 
    margin-bottom: 20px; 
    text-align: center; 
}

.dark-mode .seo-container h1 {
    color: var(--dark-text);
}

.seo-container > p { 
    text-align: center; 
    max-width: 800px; 
    margin: 0 auto 40px; 
}

.seo-categories { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin: 30px 0; 
}

.seo-category { 
    background: var(--bg-body); 
    padding: 25px; 
    border-radius: 12px; 
    border-left: 4px solid var(--brand-red); 
    transition: transform 0.2s; 
}

.seo-category:hover { 
    transform: translateY(-5px); 
}

.seo-category h2 { 
    color: var(--brand-dark); 
    font-size: 20px; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.dark-mode .seo-category h2 {
    color: var(--dark-text);
}

.seo-category h2 i { 
    color: var(--brand-red); 
}

.seo-benefits { 
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    margin: 40px 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
}

.seo-benefits h2 { 
    color: var(--brand-dark); 
    margin-bottom: 20px; 
    font-size: 22px; 
}

.dark-mode .seo-benefits h2 {
    color: var(--dark-text);
}

.seo-benefits ul { 
    list-style: none; 
}

.seo-benefits li { 
    padding: 12px 0 12px 35px; 
    position: relative; 
    border-bottom: 1px solid var(--bg-body); 
    font-size: 16px; 
    color: var(--text-gray);
}

.seo-benefits li:last-child { border-bottom: none; }

.seo-benefits li:before { 
    content: "\f00c"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    color: var(--brand-red); 
    position: absolute; 
    left: 0; 
    top: 12px; 
}

.seo-faq { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 30px; 
    margin-top: 40px; 
}

.seo-faq h2 { 
    color: var(--brand-dark); 
    margin-bottom: 25px; 
    font-size: 22px; 
}

.dark-mode .seo-faq h2 {
    color: var(--dark-text);
}

.seo-faq .faq-item { margin-bottom: 25px; }

.seo-faq h3 { 
    color: var(--brand-dark); 
    font-size: 18px; 
    margin-bottom: 10px; 
}

.dark-mode .seo-faq h3 {
    color: var(--dark-text);
}

/* TOOL SPECIFIC SEO */
.tool-seo-wrapper { 
    width: 100%; 
    max-width: 900px; 
    margin-top: 40px; 
    padding: 0 20px; 
}

.tool-seo-content { 
    display: none; 
    background: var(--bg-card); 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    animation: fadeIn 0.4s ease; 
}

.tool-seo-content h2 { 
    color: var(--brand-dark); 
    font-size: 24px; 
    margin-bottom: 15px; 
}

.dark-mode .tool-seo-content h2 {
    color: var(--dark-text);
}

.tool-seo-content p { 
    color: var(--text-gray); 
    font-size: 15px; 
    line-height: 1.6; 
    margin-bottom: 15px; 
}

.tool-seo-content h3 { 
    color: var(--brand-dark); 
    font-size: 18px; 
    margin-top: 20px; 
    margin-bottom: 10px; 
}

.dark-mode .tool-seo-content h3 {
    color: var(--dark-text);
}

.tool-seo-content ul { 
    list-style: none; 
    padding: 0; 
}

.tool-seo-content li { 
    padding: 8px 0 8px 25px; 
    position: relative; 
    color: var(--text-gray); 
}

.tool-seo-content li:before { 
    content: "\f054"; 
    font-family: "Font Awesome 6 Free"; 
    font-weight: 900; 
    color: var(--brand-red); 
    position: absolute; 
    left: 0; 
    font-size: 12px; 
    top: 12px; 
}

/* ACCESSIBILITY */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}

.skip-to-content:focus {
    top: 0;
}

/* KEYBOARD SHORTCUTS HELP */
.shortcuts-help {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--brand-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 18px;
    z-index: 100;
}

.shortcuts-help:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
}

.shortcuts-modal .modal-content {
    max-width: 500px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.shortcut-key {
    background: var(--bg-body);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--brand-red);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { padding: 0 15px; }
    .sidebar { 
        display: none; 
        position: fixed; 
        bottom: 0; 
        left: 0; 
        width: 100%; 
        height: auto; 
        max-height: 80vh; 
        border-radius: 15px 15px 0 0; 
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1); 
        border: none; 
        z-index: 1000; 
        animation: slideUp 0.3s; 
    }
    .mobile-close-btn { display: block; }
    .add-more-btn-floating { bottom: 20px; right: 20px; z-index: 40; }
    .nav-center, .nav-right { display: none; }
    .nav-back-btn { display: flex; }
    .workspace { padding-bottom: 20px; }
    .seo-content { padding: 30px 15px; }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-panel { width: 100%; right: -100%; }
    .settings-panel.open { right: 0; }
}

@media (max-width: 480px) {
    .tools-grid { grid-template-columns: 1fr; }
    .thumb-card { width: 140px; }
}

@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes slideUp { from {transform:translateY(100%)} to {transform:translateY(0)} }
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }