/* ============================================
   DESTOLOLABS - IMAGE RESIZER & CROP TOOL
   Professional Design System with Interactive Cropper
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F7F6F3;
    color: #222222;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, .logo, .footer-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ===== HEADER ===== */
.header {
    background: #FFFFFF;
    border-bottom: 1px solid #E7E4DF;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: max(20px, 5%);
    padding-right: max(20px, 5%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: #071F32;
    text-decoration: none;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: #D6B18A;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav a {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    color: #D6B18A;
}

.auth {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-signin {
    background: white;
    border: 1px solid #071F32;
    color: #071F32;
}

.btn-signin:hover {
    background: #F7F6F3;
    border-color: #D6B18A;
    color: #041826;
}

.btn-signup {
    background: #071F32;
    color: white;
    border: none;
}

.btn-signup:hover {
    background: #041826;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(7, 31, 50, 0.12);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #071F32;
    padding: 8px;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px max(20px, 5%);
}

/* ===== 3-COLUMN LAYOUT ===== */
.layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 32px;
}

/* ===== SIDEBARS ===== */
.sidebar-card {
    background: #FFFFFF;
    border: 1px solid #E7E4DF;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #071F32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: #D6B18A;
}

.category-group {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-weight: 600;
    color: #071F32;
    cursor: pointer;
    font-size: 0.95rem;
}

.category-header span i {
    margin-right: 10px;
    color: #D6B18A;
    width: 20px;
}

.chevron {
    transition: transform 0.2s;
    color: #A8A49C;
    font-size: 0.8rem;
}

.chevron.rotated {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding-left: 30px;
}

.category-content.open {
    display: block;
}

.category-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #6A6A6A;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.category-content a i {
    width: 20px;
    font-size: 0.85rem;
}

.category-content a:hover,
.category-content a.active {
    color: #D6B18A;
}

.info-box {
    text-align: center;
    padding: 16px;
    background: #F7F6F3;
    border-radius: 16px;
}

.info-box i {
    font-size: 2.5rem;
    color: #D6B18A;
    margin-bottom: 12px;
    display: block;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #071F32;
}

.info-box p {
    font-size: 0.75rem;
    color: #6A6A6A;
    line-height: 1.4;
}

/* ===== TOOL AREA ===== */
.tool-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E7E4DF;
    overflow: hidden;
}

.tool-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #E7E4DF;
}

.tool-badge-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F7F6F3;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #D6B18A;
    letter-spacing: 0.5px;
}

.tool-badge-free {
    background: #E8F5E9;
    color: #2E7D32;
}

.tool-badge-free i {
    color: #2E7D32;
}

.tool-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: #071F32;
}

.tool-description {
    color: #6A6A6A;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tool-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E7E4DF;
}

.tool-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #6A6A6A;
    font-weight: 500;
}

.tool-stats span i {
    color: #D6B18A;
}

/* Input Card */
.input-card {
    padding: 32px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #E7E4DF;
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #F7F6F3;
}

.upload-area:hover {
    border-color: #D6B18A;
    background: #FFFFFF;
}

.upload-area.drag-over {
    border-color: #D6B18A;
    background: #FFFFFF;
}

.upload-icon i {
    font-size: 3rem;
    color: #D6B18A;
    margin-bottom: 16px;
}

.upload-text {
    font-size: 0.9rem;
    color: #222222;
    margin-bottom: 8px;
}

.browse-link {
    color: #D6B18A;
    font-weight: 600;
    cursor: pointer;
}

.upload-hint {
    font-size: 0.7rem;
    color: #6A6A6A;
}

/* ===== EDITOR CONTAINER ===== */
.editor-container {
    margin-top: 24px;
    border: 1px solid #E7E4DF;
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF;
}

/* Image Navigation */
.image-nav {
    border-bottom: 1px solid #E7E4DF;
    padding: 12px 16px;
    background: #F7F6F3;
}

.image-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.image-nav-header span {
    font-weight: 600;
    font-size: 0.85rem;
    color: #071F32;
}

.image-nav-header span i {
    color: #D6B18A;
    margin-right: 6px;
}

.image-count {
    font-size: 0.75rem;
    color: #6A6A6A;
    font-weight: 400;
}

.image-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.image-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.image-thumbnails::-webkit-scrollbar-thumb {
    background: #D6B18A;
    border-radius: 10px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.thumbnail-item:hover {
    border-color: #D6B18A;
}

.thumbnail-item.active {
    border-color: #071F32;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item .thumb-check {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #2E7D32;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
}

.thumbnail-item.active .thumb-check {
    display: flex;
}

/* Editor Main */
.editor-main {
    display: flex;
    flex-direction: column;
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #E7E4DF;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-toolbar-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.editor-toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #6A6A6A;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.toolbar-btn:hover {
    background: #F7F6F3;
    color: #071F32;
}

.toolbar-btn.active {
    background: #071F32;
    color: white;
}

.toolbar-btn-danger {
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #B85C4A;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.toolbar-btn-danger:hover {
    background: #FFF0ED;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #E7E4DF;
    margin: 0 4px;
}

/* Editor Canvas */
.editor-canvas-wrapper {
    padding: 16px;
    background: #F7F6F3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
}

.editor-canvas-container {
    position: relative;
    max-width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: inline-block;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.editor-canvas-container img {
    display: block;
    max-width: 100%;
    max-height: 500px;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.1s ease;
}

/* Crop Overlay */
.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crop-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.crop-box {
    position: absolute;
    border: 2px solid white;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    cursor: move;
    pointer-events: all;
    transition: none;
}

.crop-box .crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #D6B18A;
    border-radius: 2px;
    pointer-events: all;
    z-index: 10;
}

.crop-box .crop-handle-nw { top: -6px; left: -6px; cursor: nw-resize; }
.crop-box .crop-handle-ne { top: -6px; right: -6px; cursor: ne-resize; }
.crop-box .crop-handle-sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.crop-box .crop-handle-se { bottom: -6px; right: -6px; cursor: se-resize; }
.crop-box .crop-handle-n { top: -6px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.crop-box .crop-handle-s { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.crop-box .crop-handle-w { top: 50%; left: -6px; transform: translateY(-50%); cursor: w-resize; }
.crop-box .crop-handle-e { top: 50%; right: -6px; transform: translateY(-50%); cursor: e-resize; }

.crop-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.crop-grid-line {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Editor Info */
.editor-info {
    display: flex;
    gap: 24px;
    padding: 10px 16px;
    background: #F7F6F3;
    border-top: 1px solid #E7E4DF;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.editor-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.editor-info-label {
    font-weight: 500;
    color: #6A6A6A;
}

.editor-info-item span:last-child {
    font-weight: 600;
    color: #071F32;
}

/* ===== OPTIONS SECTION ===== */
.options-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #E7E4DF;
}

.options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E7E4DF;
}

.options-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #071F32;
}

.options-title i {
    color: #D6B18A;
    margin-right: 8px;
}

.options-subtitle {
    font-size: 0.75rem;
    color: #A8A49C;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.option-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.option-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #6A6A6A;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.option-group label i {
    color: #D6B18A;
    margin-right: 6px;
}

.select-wrapper {
    position: relative;
    flex-shrink: 0;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #A8A49C;
    pointer-events: none;
    font-size: 0.7rem;
}

.form-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid #E7E4DF;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    color: #222222;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
}

.form-select:focus {
    outline: none;
    border-color: #D6B18A;
    box-shadow: 0 0 0 3px rgba(214, 177, 138, 0.1);
}

.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dimension-field {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.dimension-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #E7E4DF;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.dimension-input:focus {
    outline: none;
    border-color: #D6B18A;
    box-shadow: 0 0 0 3px rgba(214, 177, 138, 0.1);
}

.dimension-label {
    font-size: 0.7rem;
    color: #A8A49C;
    font-weight: 500;
    min-width: 20px;
}

.dimension-sep {
    color: #A8A49C;
    font-weight: 300;
    font-size: 1.1rem;
}

.option-meta {
    margin-top: 6px;
    flex-shrink: 0;
}

.option-indicator {
    font-size: 0.7rem;
    color: #A8A49C;
}

/* Advanced Options */
.collapse-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E7E4DF;
}

.collapse-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
    transition: background 0.2s;
    border-radius: 8px;
}

.collapse-header:hover {
    background: #F7F6F3;
}

.collapse-header span {
    font-weight: 600;
    font-size: 0.85rem;
    color: #071F32;
}

.collapse-header span i {
    color: #D6B18A;
    margin-right: 8px;
}

.collapse-badge {
    font-size: 0.6rem;
    font-weight: 500;
    color: white;
    background: #A8A49C;
    padding: 2px 10px;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

.collapse-chevron {
    transition: transform 0.25s;
    color: #A8A49C;
    margin-left: auto;
}

.collapse-chevron.rotated {
    transform: rotate(180deg);
}

.collapse-content {
    display: none;
    margin-top: 16px;
}

.collapse-content.open {
    display: block;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

/* Quality Control */
.quality-control {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.quality-control input[type="range"] {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #E7E4DF;
    -webkit-appearance: none;
    appearance: none;
}

.quality-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #D6B18A;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(214, 177, 138, 0.3);
    transition: all 0.2s;
}

.quality-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#qualityValue {
    font-weight: 700;
    font-size: 0.9rem;
    color: #071F32;
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.6rem;
    color: #A8A49C;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.action-btn-primary {
    flex: 1;
    padding: 16px 32px;
    background: #071F32;
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.action-btn-primary:hover:not(:disabled) {
    background: #041826;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 31, 50, 0.15);
}

.action-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn-secondary {
    padding: 16px 32px;
    background: white;
    border: 2px solid #E7E4DF;
    color: #6A6A6A;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.action-btn-secondary:hover {
    border-color: #D6B18A;
    color: #D6B18A;
    background: #FAFAFA;
}

/* ===== OUTPUT AREA ===== */
.output-area {
    margin-top: 24px;
    background: #F7F6F3;
    border-radius: 16px;
    border: 2px solid #E7E4DF;
    overflow: hidden;
    transition: all 0.3s ease;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid #E7E4DF;
}

.output-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.output-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.output-badge i {
    color: #2E7D32;
}

.output-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #071F32;
}

.output-actions {
    display: flex;
    gap: 10px;
}

.action-btn-download {
    background: #071F32;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.action-btn-download:hover {
    background: #041826;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 31, 50, 0.15);
}

.output-preview {
    padding: 20px;
    text-align: center;
    background: white;
}

.output-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid #E7E4DF;
}

.output-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 24px;
    background: #F7F6F3;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border-radius: 12px;
    border: 1px solid #E7E4DF;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #D6B18A;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.stat-card-success .stat-value {
    color: #2E7D32;
}

.stat-card-highlight {
    background: #071F32;
    border-color: #071F32;
}

.stat-card-highlight .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-card-highlight .stat-value {
    color: white;
}

.stat-card-highlight .stat-icon i {
    color: rgba(255, 255, 255, 0.6);
}

.stat-icon i {
    font-size: 1.2rem;
    color: #D6B18A;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.65rem;
    color: #A8A49C;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: #071F32;
}

/* ===== RIGHT SIDEBAR ===== */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #F7F6F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #D6B18A;
}

.step-text {
    font-size: 0.8rem;
    color: #6A6A6A;
}

.related-list,
.tips-list {
    list-style: none;
}

.related-list li,
.tips-list li {
    margin-bottom: 12px;
}

.related-list a {
    text-decoration: none;
    color: #6A6A6A;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.related-list a i {
    color: #D6B18A;
    font-size: 0.7rem;
}

.related-list a:hover {
    color: #D6B18A;
}

.tips-list li {
    font-size: 0.8rem;
    color: #6A6A6A;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-list li i {
    color: #D6B18A;
    width: 18px;
}

/* ===== MOBILE PRO TIPS ===== */
.mobile-pro-tips {
    display: none;
    margin-top: 24px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #E7E4DF;
    border-radius: 16px;
}

.mobile-pro-tips h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #071F32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-pro-tips h3 i {
    color: #D6B18A;
}

.tips-grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tip-item-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #6A6A6A;
    padding: 8px 12px;
    background: #F7F6F3;
    border-radius: 12px;
}

.tip-item-mobile i {
    color: #D6B18A;
    width: 20px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-top: 64px;
    background: transparent;
}

.faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 500;
    margin-bottom: 12px;
    color: #071F32;
}

.faq-header p {
    color: #6A6A6A;
    font-size: 0.9rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-card {
    background: white;
    border: 1px solid #E7E4DF;
    border-radius: 20px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    color: #071F32;
}

.faq-question:hover {
    background: #F7F6F3;
}

.faq-question span i {
    color: #D6B18A;
    margin-right: 12px;
}

.faq-chevron {
    transition: transform 0.25s;
    color: #D6B18A;
}

.faq-chevron.rotated {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    color: #6A6A6A;
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #E7E4DF;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
}

.mobile-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #071F32;
}

.mobile-logo span {
    color: #D6B18A;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6A6A6A;
    padding: 8px;
}

.mobile-menu-divider {
    height: 1px;
    background: #E7E4DF;
    margin: 0 24px;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px 24px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-list > li > a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #222222;
    transition: color 0.2s;
    display: block;
    padding: 8px 0;
}

.mobile-nav-list > li > a:hover {
    color: #D6B18A;
}

.mobile-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-weight: 600;
    color: #071F32;
    cursor: pointer;
    font-size: 0.95rem;
}

.mobile-category-header i:first-child {
    margin-right: 12px;
    color: #D6B18A;
    width: 24px;
}

.mobile-chevron {
    transition: transform 0.2s;
    color: #A8A49C;
    font-size: 0.8rem;
}

.mobile-chevron.rotated {
    transform: rotate(180deg);
}

.mobile-category-content {
    display: none;
    padding-left: 36px;
    margin-bottom: 8px;
}

.mobile-category-content.open {
    display: block;
}

.mobile-category-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #6A6A6A;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.mobile-category-content a i {
    width: 20px;
    font-size: 0.8rem;
    color: #A8A49C;
}

.mobile-category-content a:hover,
.mobile-category-content a.active {
    color: #D6B18A;
}

.mobile-category-content a:hover i {
    color: #D6B18A;
}

.mobile-menu-actions {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-signin,
.mobile-getstarted {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

.mobile-signin {
    color: #071F32;
    border: 1px solid #071F32;
}

.mobile-getstarted {
    background: #071F32;
    color: white;
}

.mobile-menu-footer {
    padding: 20px 24px;
    text-align: center;
    margin-top: auto;
}

.mobile-menu-footer p {
    font-size: 0.75rem;
    color: #6A6A6A;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 1500;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===== FOOTER ===== */
.footer {
    background: #1A1A1A;
    color: #A8A49C;
    padding: 48px 32px 32px;
    margin-top: 64px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    display: inline-block;
    font-family: 'Playfair Display', serif;
}

.footer-brand .logo span {
    color: #C7A85B;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #A8A49C;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: #A8A49C;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #C7A85B;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #A8A49C;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .auth {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .advanced-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .main-container {
        padding: 32px max(20px, 5%);
    }
    
    .mobile-pro-tips {
        display: block;
    }
    
    .output-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tool-header {
        padding: 24px 20px;
    }
    
    .tool-header h1 {
        font-size: 1.6rem;
    }
    
    .input-card {
        padding: 20px;
    }
    
    .upload-area {
        padding: 32px 16px;
    }
    
    .editor-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .editor-toolbar-left {
        justify-content: center;
    }
    
    .editor-toolbar-right {
        justify-content: center;
    }
    
    .editor-canvas-wrapper {
        min-height: 250px;
    }
    
    .editor-canvas-container {
        max-height: 300px;
    }
    
    .editor-canvas-container img {
        max-height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn-primary,
    .action-btn-secondary {
        justify-content: center;
    }
    
    .output-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        text-align: center;
    }
    
    .output-title-group {
        justify-content: center;
    }
    
    .output-actions {
        justify-content: center;
    }
    
    .output-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .editor-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .tips-grid-mobile {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-header h1 {
        font-size: 1.3rem;
    }
    
    .options-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .stat-card {
        padding: 12px 14px;
    }
    
    .image-thumbnails {
        gap: 6px;
    }
    
    .thumbnail-item {
        width: 44px;
        height: 44px;
    }
    
    .dimension-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dimension-field {
        width: 100%;
    }
    
    .dimension-sep {
        text-align: center;
    }
}