:root {
    --primary: #f97415;
    --secondary: #17203c;
    --accent: #ffffff;
    --dark-bg: #0a0e1a;
    --card-bg: rgba(23, 32, 60, 0.8);
    --border: rgba(249, 116, 21, 0.3);
    --shadow: 0 8px 32px rgba(249, 116, 21, 0.2);
    --success: #f97415;
    --warning: #f97415;
    --danger: #f97415;
    --gray: #a0a8c0;
    --radius: 12px;
    --transition: all 0.3s ease;
    --bg: #0c0c0e;
    --bg2: #111115;
    --bg3: #18181f;
    --bg4: #1e1e28;
    --text2: #9898a8;
    --text3: #606070;
    --green: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary) 100%);
    color: var(--accent);
    min-height: 100vh;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Updated Header Styles - EXACT from A */
header {
    background: rgba(23, 32, 60, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border);
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.site-logo a {
    text-decoration: none;
    color: white;
}

.site-logo i {
    color: var(--primary);
}

.logo-image{
    width: auto;
    height: 48px;
    position: relative;
    top: 10px;
}

/* Page Title Section */
.site-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.page-title i {
    color: var(--primary);
}

/* More Tools Dropdown - EXACT from A */
.instant-tools {
    position: relative;
    display: inline-block;
}

.instnt-tools-btn {
    background: rgba(249, 116, 21, 0.1);
    border: 2px solid var(--border);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.instnt-tools-btn:hover {
    background: rgba(249, 116, 21, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.instnt-tools-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.tools-container {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 80vw !important;
    max-width: 800px;
    min-width: 300px;
    background: #17203c;
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow: hidden;
    box-sizing: border-box !important;
}

.tools-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.tools-content-container {
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.tools-content-container h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tools-content-container h3 i {
    color: var(--primary);
}

.tools-grid-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.tool-item-box {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
    min-height: 60px;
    box-sizing: border-box;
}

.tool-item-box:hover {
    background: rgba(249, 116, 21, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tool-item-box i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
    flex-shrink: 0;
}

.tool-item-box span {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tools-footer-area {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    width: 100%;
}

.dropdown-site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.dropdown-site-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding: 0.3rem 0;
    white-space: nowrap;
}

.dropdown-site-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.dropdown-site-links a:hover {
    color: var(--accent);
}

.dropdown-site-links a:hover::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.how-works-btn {
    background: var(--primary);
    color: white;
}

.how-works-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--secondary);
}

/* Hero Section - EXACT from A */
.headings-section {
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 2rem auto 3rem;
    max-width: 1400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.headings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.headings-content {
    max-width: 800px;
    margin: 0 auto;
}

.headings-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.headings-subtitle {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.main-headings-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.headings-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.editing-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(249, 116, 21, 0.3);
}

.editing-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(249, 116, 21, 0.4);
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
}

.editing-btn i {
    font-size: 1.5rem;
}

.trimming-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.trimming-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(23, 32, 60, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.trimming-feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: rgba(249, 116, 21, 0.1);
}

.trimming-feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.trimming-feature-item span {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Functionality Section - EXACT from A */
.functionality-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.header-area h2 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

.header-area h2 i {
    color: var(--primary);
}

/* Two Column Layout - IMPROVED FOR BETTER VISIBILITY */
.editor-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

/* Left Column - More Compact */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Right Column - More Compact */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.upload-area {
    background: var(--secondary);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(249, 116, 21, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(249, 116, 21, 0.1);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 116, 21, 0.4);
}

.upload-text {
    color: var(--gray);
    font-size: 0.85rem;
    margin: 0.2rem 0;
}

.upload-formats {
    color: var(--gray);
    font-size: 0.75rem;
}

#videoUpload {
    display: none;
}

/* Video Info - EXACT from A */
.video-info {
    background: var(--secondary);
    color: var(--accent);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

.video-info-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-info-item i {
    font-size: 1rem;
    color: var(--primary);
}

/* Timeline Card - EXACT from A */
.timeline-card {
    background: var(--secondary);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.timeline-header h3 {
    color: var(--accent);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-duration {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.duration-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.duration-item.selected {
    color: var(--primary);
    font-weight: 600;
}

.timeline-wrapper {
    position: relative;
    padding: 0.5rem 0;
}

/* Mode Selection - EXACT from A */
.mode-selection {
    background: var(--secondary);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.mode-selection h3 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mode-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.mode-option {
    position: relative;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--secondary);
}

.mode-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mode-option.active {
    border-color: var(--primary);
    background: rgba(249, 116, 21, 0.1);
}

.mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mode-option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.mode-option h4 {
    color: var(--accent);
    font-size: 0.85rem;
}

.mode-option p {
    color: var(--gray);
    font-size: 0.75rem;
    line-height: 1.3;
}

.mode-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.mode-option.active .mode-radio {
    border-color: var(--primary);
}

.mode-option.active .mode-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.mode-option h4 {
    color: var(--accent);
    font-size: 0.95rem;
}

.mode-option p {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Export Section - EXACT from A */
.export-section {
    display: flex;
    gap: 0.8rem;
    margin-top: 15px;
}

.btn-secondary {
    flex: 1;
    padding: 1rem;
    background: var(--secondary);
    color: var(--accent);
    border: 2px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(249, 116, 21, 0.1);
    border-color: var(--primary);
}

.btn-download {
    flex: 2;
    padding: 1rem;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    font-size: 15px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 116, 21, 0.4);
}

.btn-secondary,
.btn-download {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Preview Container - EXACT from A */
#preview-container {
    position: relative;
    background: var(--dark-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 250px;
    min-height: 200px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#videoPreview {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(23, 32, 60, 0.9));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: rgba(249, 116, 21, 0.2);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
}

.time-display {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Progress Container - EXACT from A */
.progress-container {
    width: 100%;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    display: none;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 20px;
    transition: width 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1;
}

/* Filmstrip Styles */
.filmstrip-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    max-height: 200px;
    overflow-y: auto;
    justify-content: flex-start;
}

.filmstrip-scroll::-webkit-scrollbar {
    height: 4px;
}

.filmstrip-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.thumb-item {
    flex: 0 0 auto;
    position: relative;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    width: 100px;
}

.thumb-item:hover {
    border-color: var(--primary);
}

.thumb-item.selected {
    border-color: var(--primary);
}

.thumb-item canvas {
    display: block;
    width: 100px;
    height: 60px;
    object-fit: cover;
}

.thumb-ts {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.62rem;
    font-family: 'DM Mono', monospace;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Gallery Grid - Better sizing */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    background: #000;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    border-color: var(--primary);
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: flex-end;
    padding: 8px;
    justify-content: space-between;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.item-ts {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    color: #fff;
}

.item-actions {
    display: flex;
    gap: 4px;
}

.item-action-btn {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.item-action-btn:hover {
    background: var(--primary);
}

.item-action-btn.del:hover {
    background: #ef4444;
}

.gallery-count {
    background: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.gallery-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    color: var(--gray);
}

.gallery-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Format Chips */
.format-chip {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--secondary);
    color: var(--gray);
    font-size: 0.82rem;
    font-family: 'DM Mono', monospace;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
}

.format-chip {
    flex: 1;
    padding: 6px;
    font-size: 0.75rem;
}

.format-chip.active {
    border-color: var(--primary);
    background: rgba(249, 116, 21, 0.1);
    color: var(--primary);
}

.format-chip:hover:not(.active) {
    border-color: var(--gray);
    color: var(--accent);
}

/* Step Buttons */
.step-btn {
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--gray);
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'DM Mono', monospace;
    transition: all 0.15s;
}

.step-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Input Range */
input[type=range] {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: var(--bg4);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-glow, rgba(249, 116, 21, 0.4));
    transition: transform 0.15s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid #fff;
}

/* Input fields */
.input-group input,
.input-group select {
    width: 100%;
    background: var(--secondary);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 8px;
    border-radius: 6px;
    font-family: 'DM Mono', monospace;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.input-group label {
    display: block;
    color: var(--gray);
    font-size: 0.78rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Input Fields - More Compact */
input[type=number],
select {
    padding: 6px !important;
    font-size: 0.85rem !important;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
    box-shadow: var(--shadow);
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.success i {
    color: var(--green);
}

.toast.error i {
    color: #f87171;
}

.toast.info i {
    color: var(--primary);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox-bar {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--accent);
}

.frame-extractor-guide-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 60px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(249, 116, 21, 0.3);
    border-bottom: 1px solid rgba(249, 116, 21, 0.3);
}

.guide-container {
    max-width: 1300px;
    margin: 0 auto;
}

.guide-header-area {
    text-align: center;
    margin-bottom: 50px;
}

.guide-header-area h2 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, #f97415);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}

.guide-header-area h2 i {
    background: none;
    -webkit-text-fill-color: #f97415;
    margin-right: 12px;
}

.guide-subhead {
    font-size: 1.1rem;
    color: #bbb;
    max-width: 800px;
    margin: 0 auto;
}

.guide-info-card {
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 28px 35px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.guide-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 116, 21, 0.5);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.guide-info-card h3 {
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    letter-spacing: -0.3px;
    border-left: 4px solid #f97415;
    padding-left: 16px;
}

.guide-info-card h3 i {
    font-size: 1.7rem;
    color: #f97415;
}

.guide-info-card p {
    font-size: 1rem;
    line-height: 1.65;
    color: #ddd;
    margin-bottom: 18px;
}

/* History Timeline Styles */
.history-vertical-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 15px;
}

.timeline-milestone {
    display: flex;
    gap: 25px;
    border-left: 3px solid #f97415;
    padding-left: 25px;
    transition: background 0.2s;
}

.timeline-milestone:hover {
    background: rgba(249, 116, 21, 0.05);
    border-radius: 0 12px 12px 0;
}

.milestone-date {
    min-width: 90px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #f97415;
    background: rgba(249, 116, 21, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
    height: fit-content;
}

.milestone-story strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #f0f0f0;
}

.milestone-story p {
    margin-bottom: 0;
    color: #bbb;
}

/* Process Steps */
.process-steps-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 20px 0;
}

.process-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.step-number-badge {
    min-width: 45px;
    height: 45px;
    background: #f97415;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(249, 116, 21, 0.3);
}

.step-content strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
    color: #f0f0f0;
}

.step-content p {
    margin-bottom: 0;
    color: #bbb;
}

.simple-explanation-block {
    background: rgba(249, 116, 21, 0.1);
    border: 1px solid rgba(249, 116, 21, 0.3);
    padding: 18px 22px;
    border-radius: 16px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 20px;
}

.simple-explanation-block i {
    font-size: 2rem;
    color: #f97415;
}

.simple-explanation-block p {
    margin-bottom: 0;
    color: #ddd;
}

/* Mode Three Grid */
.mode-three-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.mode-card {
    background: rgba(30, 30, 40, 0.6);
    border-radius: 18px;
    padding: 22px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-card:hover {
    background: rgba(249, 116, 21, 0.1);
    transform: translateY(-3px);
    border-color: rgba(249, 116, 21, 0.3);
}

.mode-header-icon {
    text-align: center;
    margin-bottom: 15px;
}

.mode-header-icon i {
    font-size: 2.2rem;
    color: #f97415;
}

.mode-card h4 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #fff;
}

.mode-card p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #bbb;
    text-align: center;
}

/* Use Cases Grid */
.use-cases-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.use-case-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 14px 18px;
    background: rgba(30, 30, 40, 0.6);
    border-radius: 14px;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.use-case-row:hover {
    background: rgba(249, 116, 21, 0.1);
    border-color: rgba(249, 116, 21, 0.3);
}

.use-case-row i {
    font-size: 1.6rem;
    color: #f97415;
    min-width: 45px;
    text-align: center;
    margin-top: 3px;
}

.use-case-row strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
    color: #f0f0f0;
}

.use-case-row p {
    margin-bottom: 0;
    color: #bbb;
}

/* Tips List */
.tips-bullet-list {
    list-style: none;
    padding: 0;
}

.tips-bullet-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tips-bullet-list li:last-child {
    border-bottom: none;
}

.tips-bullet-list li::before {
    content: "💡";
    color: #f97415;
    font-size: 1.1rem;
}

/* Closing Box */
.guide-closing-box {
    text-align: center;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(249, 116, 21, 0.3);
}

.guide-closing-box i {
    font-size: 2.8rem;
    color: #f97415;
    margin-bottom: 18px;
    display: inline-block;
}

.guide-closing-box p {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-info-card {
        padding: 20px;
    }
    
    .guide-info-card h3 {
        font-size: 1.5rem;
    }
    
    .guide-header-area h2 {
        font-size: 1.9rem;
    }
    
    .timeline-milestone {
        flex-direction: column;
        gap: 8px;
        padding-left: 18px;
    }
    
    .milestone-date {
        min-width: auto;
        width: fit-content;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number-badge {
        align-self: flex-start;
    }
    
    .mode-three-grid {
        grid-template-columns: 1fr;
    }
    
    .simple-explanation-block {
        flex-direction: column;
    }
    
    .use-case-row {
        flex-direction: column;
        text-align: center;
    }
    
    .use-case-row i {
        align-self: center;
    }
    
    .tips-bullet-list li {
        flex-direction: column;
        gap: 5px;
    }
}

/* More Tools Section - EXACT from A */
.more-tools-section,
.tips-section {
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.more-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent);
}

.more-title i {
    color: var(--primary);
}

.tips-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent);
}

.tips-title i {
    color: var(--primary);
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.more-tools-card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.more-tools-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.more-cards-icon {
    width: 60px;
    height: 60px;
    background: rgba(249, 116, 21, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.more-tools-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.tools-explanation {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.tool-link:hover {
    gap: 0.8rem;
}

/* Tips Grid */
.trim-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tips-box {
    background: var(--secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tips-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tip-counting {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.tip-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.tips-details {
    color: var(--gray);
    line-height: 1.6;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* How It Works Section - EXACT from A */
.how-it-works-section {
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works-header h2 {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.how-it-works-header h2 i {
    color: var(--primary);
}

.how-it-works-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-area-steps {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.timeline-area-steps:nth-child(odd) {
    left: 0;
}

.timeline-area-steps:nth-child(even) {
    left: 50%;
}

.timeline-area-steps::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--primary);
    border: 4px solid var(--secondary);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-area-steps:nth-child(odd)::after {
    right: -13px;
}

.timeline-area-steps:nth-child(even)::after {
    left: -13px;
}

.trimming-info {
    padding: 20px 30px;
    background: rgba(23, 32, 60, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.trimming-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.timeline-area-steps:nth-child(odd) .trimming-info {
    text-align: right;
}

.timeline-area-steps:nth-child(even) .trimming-info {
    text-align: left;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-area-steps:nth-child(odd) .step-number {
    float: right;
    margin-left: 15px;
}

.timeline-area-steps:nth-child(even) .step-number {
    float: left;
    margin-right: 15px;
}

.trimming-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.trimming-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}


.timeline-area-steps {
    position: relative;
    margin-bottom: 3rem;
}
.step-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.right-image {
    left: calc(100% + 30px);
}

.left-image {
    right: calc(100% + 30px);
}
.step-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    object-fit: cover;
    cursor: pointer;
}

.step-image img:hover {
    transform: scale(1.03);
    border-color: var(--primary);
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
}
.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 16px;
    border: 3px solid var(--primary);
    box-shadow: 0 0 50px rgba(249, 116, 21, 0.5);
    object-fit: contain;
}
.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    font-size: 24px;
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(249, 116, 21, 0.5);
}

.image-modal-close:hover {
    transform: scale(1.1);
    background: #ff8c42;
}

.image-modal.show {
    display: block;
    opacity: 1;
}

.image-modal.show .image-modal-content {
    transform: translate(-50%, -50%) scale(1);
}


/* Privacy Section - EXACT from A */
.privacy-section {
    padding: 5rem 0;
    position: relative;
    background: linear-gradient(135deg,
            rgba(13, 17, 23, 0.9) 0%,
            rgba(23, 32, 60, 0.9) 100%);
    margin: 4rem 0;
    overflow: hidden;
}

.privacy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(249, 116, 21, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(249, 116, 21, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.privacy-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 116, 21, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.privacy-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.privacy-card {
    background: rgba(23, 32, 60, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.privacy-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
}

.privacy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(249, 116, 21, 0) 0%,
            rgba(249, 116, 21, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.privacy-card:hover::before {
    opacity: 1;
}

.privacy-header {
    margin-bottom: 3rem;
    position: relative;
}

.security-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary), rgba(249, 116, 21, 0.7));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--accent);
    position: relative;
    box-shadow: 0 20px 40px rgba(249, 116, 21, 0.4);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 20px 40px rgba(249, 116, 21, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 30px 60px rgba(249, 116, 21, 0.6);
        transform: scale(1.05);
    }
}

.security-icon::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    border: 2px solid rgba(249, 116, 21, 0.3);
    animation: ripple 4s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.privacy-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.privacy-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.privacy-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.privacy-content {
    margin-bottom: 3rem;
}

.privacy-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 2rem;
    background: rgba(23, 32, 60, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(249, 116, 21, 0.2);
    position: relative;
}

.privacy-text::before {
    content: '🔒';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    padding: 0 1rem;
    font-size: 1.5rem;
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.privacy-feature {
    background: rgba(23, 32, 60, 0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.privacy-feature:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(249, 116, 21, 0.2);
}

.privacy-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(249, 116, 21, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.privacy-feature h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    text-align: center;
}

.privacy-feature p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.5;
}

.security-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(249, 116, 21, 0.1);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.security-badge:hover {
    background: rgba(249, 116, 21, 0.2);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.security-badge i {
    color: var(--primary);
    font-size: 1.1rem;
}

.privacy-commitment {
    background: linear-gradient(135deg,
            rgba(249, 116, 21, 0.1) 0%,
            rgba(23, 32, 60, 0.6) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 3rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.privacy-commitment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 100% 0%, rgba(249, 116, 21, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(249, 116, 21, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.privacy-commitment i {
    font-size: 3rem;
    color: var(--primary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.privacy-commitment-content {
    position: relative;
    z-index: 1;
}

.privacy-commitment h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.privacy-commitment p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.privacy-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.privacy-card:hover::after {
    opacity: 0.3;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        filter: blur(5px);
        opacity: 0.2;
    }

    100% {
        filter: blur(10px);
        opacity: 0.4;
    }
}

/* Copyright Notice - EXACT from A */
.trimming-notice-section {
    max-width: 1200px;
    margin: 1.5rem auto 1rem;
    padding: 0 1.5rem;
}

.trimming-notice-card {
    background: rgba(249, 116, 21, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 116, 21, 0.25);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.trimming-notice-card:hover {
    border-color: var(--primary);
    background: rgba(249, 116, 21, 0.12);
    transform: translateY(-2px);
}

.trimming-notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary) 0%,
            transparent 100%);
}

.notice-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(249, 116, 21, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.notice-content {
    flex: 1;
}

.notice-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.notice-text strong {
    color: var(--accent);
    font-weight: 600;
}

/* Footer - EXACT from A */
footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark-bg) 100%);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff8c42 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-around;
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary), #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(249, 116, 21, 0.3));
    background-clip: text;
}

.footer-logo h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    margin: 0;
    background-clip: text;
}

.footer-logo a{
    text-decoration: none;
    color: white;
    font-size: 35px;
    font-weight: 700;
}

.brand-tagline {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 400px;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid rgba(249, 116, 21, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 116, 21, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    background: rgba(249, 116, 21, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 116, 21, 0.2);
}

.social-link i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.footer-col:hover h3::after {
    width: 60px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0;
    transition: var(--transition);
}

.footer-col ul li::before {
    content: '▶';
    position: absolute;
    left: -20px;
    color: var(--primary);
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition);
}

.footer-col ul li:hover {
    padding-left: 20px;
    transform: translateX(5px);
}

.footer-col ul li:hover::before {
    opacity: 1;
    left: 0;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.footer-col a:hover::after {
    width: 100%;
}

.copyright-area {
    text-align: center;
    padding-top: 3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(249, 116, 21, 0.2);
    margin-top: 3rem;
    position: relative;
}

.copyright-area::before {
    content: '🎬';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    padding: 0 1rem;
    font-size: 1.2rem;
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .header-box,
    main,
    .footer-container {
        max-width: 1600px;
    }
    
    .headings-title {
        font-size: 3.5rem;
    }
    
    .editor-box {
        gap: 2.5rem;
    }
    
    #preview-container {
        height: 300px;
    }
    .step-image {
        width: 35%;
    }
    
    .right-image {
        left: calc(100% + 40px);
    }
    
    .left-image {
        right: calc(100% + 40px);
    }
    
    .step-image img {
        max-width: 450px;
    }
}

@media (min-width: 1200px) and (max-width: 1440px) {
    .step-image {
        width: 38%;
    }
    
    .right-image {
        left: calc(100% + 20px);
    }
    
    .left-image {
        right: calc(100% + 20px);
    }
    
    .step-image img {
        max-width: 320px;
    }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1200px) {
    .editor-box {
        grid-template-columns: 1fr;
    }
    
    .left-column,
    .right-column {
        max-height: none;
        overflow-y: visible;
    }
    
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2rem;
    }
    
    .headings-title {
        font-size: 3rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trim-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .step-image {
        width: 35%;
    }
    
    .right-image {
        left: calc(100% + 15px);
    }
    
    .left-image {
        right: calc(100% + 15px);
    }
    
    .step-image img {
        max-width: 280px;
    }
}

/* Small Desktop / Large Tablet (992px to 1199px) */
@media (max-width: 992px) {
    .header-box {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .site-logo {
        order: 1;
        flex: 1;
    }
    
    .site-title-section {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .user-actions {
        order: 2;
    }
    
    .tools-grid-box {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-container {
        width: 90vw !important;
        max-width: 700px;
    }
    
    .headings-title {
        font-size: 2.5rem;
    }
    
    .headings-subtitle {
        font-size: 1.5rem;
    }
    
    .main-headings-description {
        font-size: 1.1rem;
    }
    
    .editing-btn {
        padding: 1rem 2.5rem;
        font-size: 1.2rem;
    }
    
    #preview-container {
        height: 350px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }
    
    .brand-tagline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .mode-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .privacy-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-badges {
        flex-wrap: wrap;
    }
    .step-image {
        position: relative;
        width: 100%;
        margin-top: 1.5rem;
        top: auto;
        transform: none;
    }
    
    .right-image,
    .left-image {
        left: auto;
        right: auto;
        position: relative;
    }
    
    .timeline-area-steps {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .timeline-area-steps .trimming-info {
        width: 100%;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .step-image img {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Adjust timeline line for tablet */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-area-steps {
        padding-left: 50px;
        width: 100%;
    }
    
    .timeline-area-steps:nth-child(even) {
        left: 0;
    }
    
    .timeline-area-steps::after {
        left: 10px;
        right: auto;
    }
    
    .timeline-area-steps:nth-child(odd) .trimming-info,
    .timeline-area-steps:nth-child(even) .trimming-info {
        text-align: left;
    }
    
    .timeline-area-steps:nth-child(odd) .step-number,
    .timeline-area-steps:nth-child(even) .step-number {
        float: left;
        margin-right: 15px;
        margin-left: 0;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 768px) {
    .headings-section {
        padding: 2rem 1.5rem;
        margin: 1rem auto 2rem;
    }
    
    .headings-title {
        font-size: 2rem;
    }
    
    .headings-subtitle {
        font-size: 1.3rem;
    }
    
    .main-headings-description {
        font-size: 1rem;
    }
    
    .trimming-features {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .trimming-feature-item {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .header-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .site-logo {
        justify-content: center;
    }
    
    .site-title-section {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .user-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tools-container {
        width: 95vw !important;
        max-width: none;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
    }
    
    .tools-container.show {
        transform: translateX(-50%) scale(1);
    }
    
    .tools-content-container {
        padding: 1.5rem;
    }
    
    .tools-grid-box {
        grid-template-columns: 1fr;
    }
    
    #preview-container {
        height: 300px;
        min-height: 250px;
    }
    
    .mode-options {
        grid-template-columns: 1fr;
    }
    
    .export-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-secondary,
    .btn-download {
        width: 100%;
        padding: 0.8rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-area-steps {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }
    
    .timeline-area-steps:nth-child(even) {
        left: 0;
    }
    
    .timeline-area-steps::after {
        left: 18px;
        right: auto;
    }
    
    .timeline-area-steps:nth-child(odd) .trimming-info,
    .timeline-area-steps:nth-child(even) .trimming-info {
        text-align: left;
    }
    
    .timeline-area-steps:nth-child(odd) .step-number,
    .timeline-area-steps:nth-child(even) .step-number {
        float: left;
        margin-right: 15px;
        margin-left: 0;
    }
    
    /* Fixed Footer Stacking - Brand at top */
    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col ul li {
        padding-left: 0;
    }
    
    .footer-col ul li:hover {
        padding-left: 0;
        transform: translateY(-2px);
    }
    
    .footer-col ul li::before {
        display: none;
    }
    
    .footer-col a:hover {
        transform: translateX(0) translateY(-2px);
    }
    
    .privacy-section {
        padding: 3rem 1rem;
        margin: 2rem 0;
    }
    
    .privacy-card {
        padding: 2rem 1.5rem;
    }
    
    .privacy-header h2 {
        font-size: 2rem;
    }
    
    .security-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .privacy-text {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .privacy-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .privacy-commitment {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trim-tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .functionality-section {
        padding: 1.5rem;
    }
    
    .header-area {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-area h2 {
        font-size: 1.5rem;
    }
    
    .video-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-btn {
        flex: 1;
        text-align: center;
    }
    
    [style*="display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap;"] {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .how-it-works-section {
        padding: 2rem 1rem;
    }
    
    .how-it-works-header h2 {
        font-size: 1.8rem;
    }
    
    .trimming-info {
        padding: 1rem;
    }
    
    .trimming-info h3 {
        font-size: 1.2rem;
    }
    .step-image {
        position: relative;
        width: 100%;
        margin-top: 1.5rem;
        top: auto;
        transform: none;
    }
    
    .right-image,
    .left-image {
        left: auto;
        right: auto;
        position: relative;
    }
    
    .timeline-area-steps {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .timeline-area-steps .trimming-info {
        width: 100%;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .step-image img {
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Adjust timeline for tablet portrait */
    .timeline::after {
        left: 30px;
    }
    
    .timeline-area-steps {
        padding-left: 60px;
        width: 100%;
    }
    
    .timeline-area-steps:nth-child(even) {
        left: 0;
    }
    
    .timeline-area-steps::after {
        left: 18px;
        right: auto;
    }
    
    .timeline-area-steps:nth-child(odd) .trimming-info,
    .timeline-area-steps:nth-child(even) .trimming-info {
        text-align: left;
    }
    
    .timeline-area-steps:nth-child(odd) .step-number,
    .timeline-area-steps:nth-child(even) .step-number {
        float: left;
        margin-right: 15px;
        margin-left: 0;
    }
.image-modal-content img {
        max-height: 70vh;
    }
    
    .image-modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
        font-size: 20px;
    }
}

@media (max-width: 575px){
    .step-image {
        position: relative;
        width: 100%;
        margin-top: 1.2rem;
        top: auto;
        transform: none;
    }
    
    .right-image,
    .left-image {
        left: auto;
        right: auto;
        position: relative;
        padding: 0;
    }
    
    .timeline-area-steps {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .timeline-area-steps .trimming-info {
        width: 100%;
        text-align: center;
        margin-bottom: 1.2rem;
        padding: 1rem;
    }
    
    .step-image img {
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Adjust timeline for mobile */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-area-steps {
        padding-left: 45px;
        width: 100%;
    }
    
    .timeline-area-steps:nth-child(even) {
        left: 0;
    }
    
    .timeline-area-steps::after {
        left: 10px;
        right: auto;
        width: 18px;
        height: 18px;
        top: 10px;
    }
    
    .timeline-area-steps:nth-child(odd) .trimming-info,
    .timeline-area-steps:nth-child(even) .trimming-info {
        text-align: left;
    }
    
    .timeline-area-steps:nth-child(odd) .step-number,
    .timeline-area-steps:nth-child(even) .step-number {
        float: left;
        margin-right: 12px;
        margin-left: 0;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .trimming-info h3 {
        font-size: 1.1rem;
    }
    
    .trimming-info p {
        font-size: 0.9rem;
    }
}

/* Mobile (480px to 767px) */
@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tools-grid-box {
        grid-template-columns: 1fr;
    }
    
    .tools-container {
        width: 98vw !important;
        min-width: 280px;
    }
    
    .tools-content-container {
        padding: 1rem;
    }
    
    .tools-content-container h3 {
        font-size: 1.1rem;
    }
    
    .dropdown-site-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .headings-section {
        padding: 1.5rem 1rem;
    }
    
    .headings-title {
        font-size: 1.8rem;
    }
    
    .headings-subtitle {
        font-size: 1.1rem;
    }
    
    .main-headings-description {
        font-size: 0.95rem;
    }
    
    .editing-btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }
    
    #preview-container {
        height: 250px;
        min-height: 200px;
    }
    
    .video-controls {
        padding: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .time-display {
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .gallery-item {
        aspect-ratio: 1/1;
    }
    
    .filmstrip-scroll {
        justify-content: center;
    }
    
    .thumb-item {
        width: calc(50% - 4px);
    }
    
    .thumb-item canvas {
        width: 100%;
        height: auto;
    }
    
    .mode-option {
        padding: 0.6rem;
    }
    
    .mode-option-header h4 {
        font-size: 0.8rem;
    }
    
    .mode-option p {
        font-size: 0.7rem;
    }
    
    .format-chip {
        padding: 4px;
        font-size: 0.7rem;
    }
    
    .step-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    input[type=number], 
    select {
        font-size: 0.8rem !important;
        padding: 4px !important;
    }
    
    .privacy-card {
        padding: 1.5rem 1rem;
    }
    
    .privacy-header h2 {
        font-size: 1.6rem;
    }
    
    .privacy-subtitle {
        font-size: 0.95rem;
    }
    
    .security-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .security-badge {
        width: 100%;
        justify-content: center;
        padding: 0.6rem;
    }
    
    .trimming-notice-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    .notice-icon {
        margin-bottom: 0.5rem;
    }
    
    footer {
        padding: 2rem 1rem 1rem;
        margin-top: 3rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo h2 {
        font-size: 1.8rem;
    }
    
    .brand-tagline {
        font-size: 0.95rem;
        padding-left: 0;
        border-left: none;
        text-align: center;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-col h3 {
        font-size: 1.2rem;
    }
    
    .copyright-area {
        font-size: 0.8rem;
        padding-top: 2rem;
    }
    
    .copyright-area::before {
        top: -10px;
        font-size: 1rem;
    }
    
    .toast {
        min-width: 200px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .lightbox-bar {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }
    
    .lightbox-bar button {
        width: 100%;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.2rem;
    }
    .image-modal-content img {
        max-height: 60vh;
    }
    .image-modal-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        font-size: 18px;
    }
}

@media (max-width: 360px){
     .step-image img {
        max-width: 240px;
    }
    
    .timeline-area-steps {
        padding-left: 35px;
    }
    
    .timeline::after {
        left: 15px;
    }
    
    .timeline-area-steps::after {
        left: 6px;
        width: 16px;
        height: 16px;
    }
    
    .trimming-info {
        padding: 0.8rem;
    }
    
    .trimming-info h3 {
        font-size: 1rem;
    }
    
    .trimming-info p {
        font-size: 0.85rem;
    }
}

/* Small Mobile (320px to 479px) */
@media (max-width: 320px) {
    .headings-title {
        font-size: 1.5rem;
    }
    
    .headings-subtitle {
        font-size: 1rem;
    }
    
    .main-headings-description {
        font-size: 0.9rem;
    }
    
    .trimming-feature-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .trimming-feature-item i {
        font-size: 1rem;
    }
    
    #preview-container {
        height: 200px;
        min-height: 180px;
    }
    
    .video-controls {
        gap: 0.3rem;
    }
    
    .control-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .time-display {
        font-size: 0.7rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .thumb-item {
        width: 100%;
    }
    
    .tools-content-container {
        padding: 0.8rem;
    }
    
    .tool-item-box {
        padding: 0.5rem;
        min-height: 50px;
    }
    
    .tool-item-box i {
        font-size: 1rem;
        width: 20px;
    }
    
    .tool-item-box span {
        font-size: 0.85rem;
    }
    
    .privacy-header h2 {
        font-size: 1.4rem;
    }
    
    .privacy-text {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .footer-logo i {
        font-size: 2.2rem;
    }
    
    .footer-logo h2 {
        font-size: 1.5rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 0.8rem 1rem;
    }
    
    .headings-section {
        padding: 1rem;
        margin: 0.5rem auto 1rem;
    }
    
    .headings-title {
        font-size: 1.8rem;
    }
    
    .editing-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .functionality-section {
        padding: 1rem;
    }
    
    #preview-container {
        height: 200px;
    }
    
    .left-column,
    .right-column {
        max-height: 400px;
    }
    
    .toast-container {
        bottom: 10px;
        right: 10px;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .user-actions,
    .instant-tools,
    .editing-btn,
    .btn,
    .export-section,
    .lightbox,
    .toast-container {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .headings-title {
        -webkit-text-fill-color: black;
        background: none;
        color: black;
    }
    
    .privacy-section,
    .functionality-section {
        break-inside: avoid;
    }
}

/* High Resolution / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .headings-title {
        text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
    }
    
    .btn-download,
    .editing-btn {
        border-width: 2px;
    }
}

/* Dark Mode Support (if user prefers dark) */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0a0e1a;
        --secondary: #1a2340;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.kbd {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--text3);
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .tool-item-box:hover,
    .mode-option:hover,
    .gallery-item:hover {
        transform: none;
    }
    
    .step-btn,
    .control-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    input[type=range]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* ===== FIX FOR TIMELINE LAYOUT - Ensure proper spacing ===== */
@media (min-width: 992px) {
    .timeline {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* Ensure text doesn't overlap with images */
    .timeline-area-steps:nth-child(odd) .trimming-info {
        padding-right: 20px;
    }
    
    .timeline-area-steps:nth-child(even) .trimming-info {
        padding-left: 20px;
    }
}

/* ===== FALLBACK FOR BROWSERS THAT DON'T SUPPORT POSITIONING ===== */
@supports not (position: relative) {
    .step-image {
        position: relative;
        margin-top: 1rem;
        width: 100%;
    }
    
    .right-image,
    .left-image {
        left: auto;
        right: auto;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .step-image img:hover {
        transform: none;
    }
}

/* ===== REDUCED MOTION PREFERENCE ===== */
@media (prefers-reduced-motion: reduce) {
    .step-image img,
    .step-image img:hover {
        transition: none;
        transform: none;
    }
}