:root {
    --bg-body: #eff6ff; 
    --bg-surface: #ffffff;
    --bg-elevated: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --text-main: #0f172a; 
    --text-muted: #334155; 
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-google: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card-def: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --error-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #eab308;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; }

html { 
    height: 100%; overflow: hidden; overscroll-behavior: none; 
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; 
}

#fixed-bg {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1; 
    pointer-events: none;
    background-color: var(--bg-body);
    background-image: 
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%),

        url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3C!-- STRUCTURAL GRID (The Foundation) --%3E%3Cpath d='M0 0 H300 V300 H0 Z' stroke='%234f46e5' stroke-width='0.5' stroke-opacity='0.05' /%3E%3Cpath d='M150 0 V300 M0 150 H300' stroke='%234f46e5' stroke-width='0.5' stroke-opacity='0.05' stroke-dasharray='5 5' /%3E%3C!-- MAIN SCENE: The Boy & The Laptop --%3E%3Cg stroke='%234f46e5' stroke-width='1.5' stroke-opacity='0.15' stroke-linecap='round' stroke-linejoin='round'%3E%3C!-- Head --%3E%3Ccircle cx='80' cy='200' r='10' /%3E%3C!-- Body (Sitting Posture) --%3E%3Cpath d='M80 210 Q70 240 70 250 H100' /%3E%3C!-- Arm --%3E%3Cpath d='M80 220 L105 235' /%3E%3C!-- Laptop --%3E%3Cpath d='M100 235 L130 235 L135 220' /%3E%3Cpath d='M100 235 L90 245' /%3E%3C!-- Chair --%3E%3Cpath d='M70 250 V260 M60 260 H80' /%3E%3C/g%3E%3C!-- THE VISION: Mountains Rising from Code --%3E%3Cg stroke='%234f46e5' stroke-width='1.2' stroke-opacity='0.12'%3E%3Cpath d='M135 220 L150 190 L170 220 L190 180 L220 230' fill='%234f46e5' fill-opacity='0.03' /%3E%3C!-- Snow Caps --%3E%3Cpath d='M150 190 L155 200 L145 200 Z' /%3E%3Cpath d='M190 180 L195 190 L185 190 Z' /%3E%3C/g%3E%3C!-- THE TECH: Data Stream & Nodes --%3E%3Cg stroke='%234f46e5' stroke-width='1' stroke-opacity='0.1'%3E%3Cpath d='M130 200 V150 M140 190 V140 M150 180 V130' stroke-dasharray='3 3' /%3E%3Ccircle cx='130' cy='150' r='2' fill='%234f46e5' fill-opacity='0.1' /%3E%3Ccircle cx='150' cy='130' r='2' fill='%234f46e5' fill-opacity='0.1' /%3E%3C/g%3E%3C!-- THE FRAME: Viewfinder / Crop Tool --%3E%3Cg stroke='%234f46e5' stroke-width='2' stroke-opacity='0.1'%3E%3Cpath d='M40 80 H60 V60' /%3E%3Cpath d='M260 60 V80 H280' /%3E%3Cpath d='M280 260 H260 V280' /%3E%3Cpath d='M60 280 V260 H40' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

    background-size: 100% 100%, 300px 300px; 
    background-position: center top, center center;
    background-repeat: no-repeat, repeat;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

#intro-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff; z-index: 99999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}
#intro-overlay.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    animation: introSequence 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.intro-logo { width: 110px; height: 110px; margin-bottom: 15px; filter: drop-shadow(0 20px 30px rgba(79, 70, 229, 0.3)); }
.intro-text h1 {
    font-size: 3rem; font-weight: 800; letter-spacing: -1px;
    background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 0; padding: 0; line-height: 1.1;
}
.intro-text p { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; margin-top: 5px; opacity: 0.8; letter-spacing: 0.5px; }

@keyframes introSequence {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    40% { transform: scale(1.02) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.main-viewport { 
    flex: 1; overflow-y: auto; overflow-x: hidden; padding: 20px; padding-bottom: 120px; 
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; position: relative;
}
.container { max-width: 1000px; margin: 0 auto; }

.close-fab {
    position: fixed; bottom: 30px; right: 30px; width: 56px; height: 56px;
    background: #ef4444; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    box-shadow: 0 8px 20px -5px rgba(239, 68, 68, 0.5); cursor: pointer; z-index: 9999;
    transform: scale(0) rotate(-45deg); transition: all 0.4s var(--ease-out);
    border: 2px solid rgba(255,255,255,0.3); opacity: 0; pointer-events: none;
}
.close-fab.visible { transform: scale(1) rotate(0deg); opacity: 1; pointer-events: auto; }
.close-fab:active { transform: scale(0.9); }

.share-fab {
    position: fixed; top: 20px; right: 20px; width: 50px; height: 50px;
    background: white; color: #0f172a; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); cursor: pointer; 
    z-index: 9000; border: 2px solid #e2e8f0; 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.share-fab:hover { transform: scale(1.1) rotate(15deg); border-color: #4f46e5; color: #4f46e5; }
.share-fab.hide-smart { transform: scale(0) rotate(-45deg); opacity: 0; pointer-events: none; }

.view { display: none; animation: viewSlideUp 0.5s var(--ease-out); content-visibility: auto; contain-intrinsic-size: 1000px; will-change: opacity, transform; }
.view.active { display: block; }
@keyframes viewSlideUp { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform: translateY(0); } }

.hero { text-align: center; padding: 40px 0 30px; }
.logo-container { display: inline-block; margin-bottom: 15px; width: 70px; height: 70px; filter: drop-shadow(0 15px 30px rgba(79, 70, 229, 0.15)); transition: transform 0.3s; }
.logo-container:hover { transform: scale(1.05) rotate(2deg); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 10px; color: var(--text-main); letter-spacing: -0.04em; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--text-muted); font-weight: 500; margin-bottom: 35px; letter-spacing: -0.01em; max-width: 600px; margin-left: auto; margin-right: auto; }

.search-wrapper { position: relative; max-width: 600px; margin: 0 auto 50px; padding: 0 15px; }
.search-box {
    position: relative; background: #ffffff;
    box-shadow: 0 10px 40px -10px rgba(79, 70, 229, 0.15);
    border: 1px solid var(--border); border-radius: 50px;
    padding: 8px 20px; height: 64px; display: flex; align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.search-box:hover, .search-box:focus-within { background: #ffffff; box-shadow: 0 15px 40px -5px rgba(79, 70, 229, 0.2); transform: translateY(-2px); border-color: var(--brand); }
.search-icon { width: 40px; display: flex; align-items: center; justify-content: center; color: #9aa0a6; font-size: 1.3rem; }
.search-box:focus-within .search-icon { color: var(--brand); }
.search-input { border: none; background: transparent; width: 100%; height: 100%; padding: 0 10px; font-size: 1.1rem; color: var(--text-main); font-weight: 500; outline: none; }
.search-clear {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1.1rem; cursor: pointer;
    opacity: 0; pointer-events: none; transition: all 0.2s;
    border-radius: 50%; background: #f1f5f9;
}
.search-clear:hover { background: #fee2e2; color: var(--error-color); }
.search-clear.visible { opacity: 1; pointer-events: auto; }

.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }

.bento-card { 
    background: var(--bg-surface); border: 1.5px solid var(--brand);
    box-shadow: var(--shadow-card-def); border-radius: var(--radius-xl); 
    padding: 32px; position: relative; overflow: hidden; 
    cursor: pointer; transition: all 0.3s var(--ease-out); 
    display: flex; flex-direction: column; justify-content: space-between; 
    min-height: 240px; 
}
.bento-card:hover { transform: translateY(-6px); border-color: var(--brand-dark); box-shadow: var(--shadow-float); }
.bento-card.hidden-card { display: none !important; }

.b-icon { width: 60px; height: 60px; background: var(--bg-elevated); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--text-main); margin-bottom: 24px; border: 1px solid rgba(0,0,0,0.04); transition: transform 0.3s; }
.bento-card:hover .b-icon { transform: scale(1.1) rotate(-5deg); }

.live-card { border: 2px solid #ef4444 !important; background: linear-gradient(170deg, #ffffff 60%, #fef2f2 100%) !important; }
.live-badge { position: absolute; top: 0; left: 0; background: #ef4444; color: white; font-size: 0.7rem; font-weight: 800; padding: 6px 14px; border-bottom-right-radius: 18px; z-index: 10; letter-spacing: 0.5px; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }

.custom-resizer-card { border: 2px solid #0891b2 !important; background: linear-gradient(170deg, #ffffff 60%, #ecfeff 100%) !important; }
.custom-resizer-card .b-icon { color: #0891b2; background: #cffafe; }

.studio-card .b-icon { color: #ea580c; background: #fff7ed; }
.convert-card .b-icon { color: #2563eb; background: #eff6ff; }
.pdf-card .b-icon { color: #dc2626; background: #fef2f2; }

.b-content h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; color: var(--text-main); letter-spacing: -0.02em; }
.b-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; font-weight: 500; }

.b-arrow { position: absolute; bottom: 32px; right: 32px; opacity: 0; transform: translateX(-10px); transition: 0.3s; color: var(--brand); font-size: 1.2rem; }
.bento-card:hover .b-arrow { opacity: 1; transform: translateX(0); }

.tool-header { display: none !important; }

.split-layout { 
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: flex-start; 
}
.split-layout > div { flex: 1 1 400px; max-width: 600px; width: 100%; }

.control-panel, .preview-panel { 
    background: var(--bg-surface); border: 1px solid var(--border); 
    border-radius: var(--radius-xl); padding: 35px; 
    box-shadow: var(--shadow-card-def); transition: 0.3s; 
    overflow: hidden; width: 100%; 
}

.drop-area { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 45px 25px; text-align: center; cursor: pointer; transition: 0.2s; background: #fafafa; position: relative; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.drop-area:hover, .drop-area:focus-within { border-color: var(--brand); background: #f5f3ff; }
.drop-area.uploaded { border-color: #22c55e; background: #f0fdf4; border-style: solid; padding: 15px; }
.drop-area img.preview-thumb { width: 100%; height: 100%; max-height: 250px; object-fit: contain; border-radius: 12px; display: block; box-shadow: var(--shadow-sm); }
.drop-area.has-preview i, .drop-area.has-preview h3 { display: none; }
.drop-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; width: 100%; z-index: 5; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }
select, input[type="number"], input[type="text"], input[type="date"] { width: 100%; background: #f8fafc; border: 1px solid var(--border); color: var(--text-main); padding: 16px 20px; border-radius: 14px; font-size: 1rem; font-weight: 600; outline: none; transition: all 0.2s; appearance: none; box-shadow: var(--shadow-sm); }
select:focus, input[type="number"]:focus, input[type="text"]:focus, input[type="date"]:focus { border-color: var(--brand); background: #ffffff; box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }

.inputs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

input[type="range"] { width: 100%; height: 6px; background: #e2e8f0; border-radius: 10px; -webkit-appearance: none; border:none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; background: white; border: 2px solid var(--brand); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.1s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.1); background: var(--brand); }

.btn-action { width: 100%; background: var(--brand); color: white; border: none; padding: 18px; border-radius: 16px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4); touch-action: manipulation; letter-spacing: 0.3px; position: relative; overflow: hidden; }
.btn-action:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5); }
.btn-action:active { transform: scale(0.98); }
.btn-action:disabled { opacity: 0.7; cursor: not-allowed; transform: none; background: var(--text-muted); box-shadow: none; }

.btn-compare { background: white; border: 2px solid var(--border); color: var(--text-main); padding: 12px 30px; border-radius: 100px; font-size: 0.95rem; font-weight: 700; cursor: pointer; margin-top: 20px; user-select: none; transition: 0.2s; touch-action: manipulation; }
.btn-compare:active { background: #f1f5f9; border-color: var(--text-main); transform: scale(0.96); }
.btn-compare:hover { border-color: var(--brand); color: var(--brand); }

.tab-switcher { display: flex; gap: 10px; margin-bottom: 30px; background: #f1f5f9; padding: 8px; border-radius: 18px; border: 1px solid var(--border); }
.tab-btn { flex: 1; padding: 14px; border: none; background: transparent; border-radius: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.2s; font-size: 1rem; }
.tab-btn.active { background: white; color: var(--brand); box-shadow: 0 4px 12px rgba(0,0,0,0.05); font-weight: 800; transform: scale(1.02); }

canvas { 
    width: 100%; max-width: 100%; height: auto !important; 
    border-radius: 16px; 
    background-color: #eee; 
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%); 
    background-size: 20px 20px; 
    box-shadow: var(--shadow-card-def); border: 1px solid var(--border); object-fit: contain; 
}
.hidden { display: none !important; }

.mascot-container { position: fixed; z-index: 2000; display: flex; flex-direction: column; align-items: center; pointer-events: none; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); opacity: 0; transform: scale(0.8) rotate(-5deg); transform-origin: center bottom; will-change: transform, opacity; }
.mascot-container.mode-center { top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5) rotate(-10deg); }
.mascot-container.mode-center.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
.mascot-container.mode-side { bottom: 100px; right: 20px; transform-origin: bottom right; }
.mascot-container.mode-side.show { opacity: 1; transform: scale(0.9) rotate(0deg); }

.mascot-bubble {
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--text-main); 
    padding: 8px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; 
    margin-bottom: 8px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.15); 
    border: 1px solid rgba(255,255,255,0.5);
    text-align: center; min-width: auto; max-width: 200px;
    opacity: 0; transform: translateY(10px); 
    transition: 0.3s ease-out 0.1s;
}
.mascot-bubble.is-error { color: var(--error-color); border: 2px solid var(--error-color); background: #fff; }
.mascot-bubble::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); border-width: 8px 8px 0; border-style: solid; border-color: rgba(255,255,255,0.95) transparent transparent transparent; }
.mascot-container.show .mascot-bubble { opacity: 1; transform: translateY(0); }
.mascot-svg { width: 90px; height: 90px; filter: drop-shadow(0 15px 20px rgba(79, 70, 229, 0.2)); }

@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }
.mascot-eyes { animation: blink 4s infinite; transform-origin: center; }
@keyframes hoverBody { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mascot-body-group { animation: hoverBody 3s ease-in-out infinite; }
.mascot-arm-left { transform-origin: 25px 55px; transition: transform 0.5s; }
.mascot-arm-right { transform-origin: 75px 55px; transition: transform 0.5s; }
.mode-center.show .mascot-arm-left { animation: namasteL 1s forwards 0.5s; }
.mode-center.show .mascot-arm-right { animation: namasteR 1s forwards 0.5s; }
@keyframes namasteL { to { transform: rotate(-30deg) translateX(10px); } }
@keyframes namasteR { to { transform: rotate(30deg) translateX(-10px); } }

.seo-blog { margin-top: 80px; padding: 50px; background: white; border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-card-def); }
.seo-blog h2 { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 30px; text-align: center; letter-spacing: -0.5px; }
.seo-blog h3 { font-size: 1.4rem; font-weight: 800; color: var(--brand); margin-top: 35px; margin-bottom: 15px; }
.seo-blog p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; }

.seo-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-top: 50px; }
.seo-feature { background: #f8fafc; padding: 30px; border-radius: 18px; border: 1px solid var(--border); transition: transform 0.2s; }
.seo-feature:hover { transform: translateY(-3px); border-color: var(--brand); }

.faq-section { margin-top: 60px; border-top: 2px solid #f1f5f9; padding-top: 50px; }
.faq-item { margin-bottom: 16px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; transition: 0.2s; }
.faq-item:hover { border-color: var(--brand); }
.faq-item summary { padding: 20px 25px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; background: #fff; font-size: 1.05rem; color: var(--text-main); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); font-weight: 800; transition: transform 0.2s; }
.faq-item[open] summary::after { content: '-'; transform: rotate(180deg); }
.faq-item p { padding: 0 25px 25px; color: var(--text-muted); margin: 0; font-size: 1rem; line-height: 1.7; border-top: 1px solid #f1f5f9; padding-top: 15px; }

.site-footer { margin-top: 60px; padding: 80px 40px; background: white; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 50px; font-size: 0.95rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.footer-col h4 { font-weight: 800; margin-bottom: 25px; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 14px; }
.footer-col a { text-decoration: none; color: var(--text-muted); transition: 0.2s; font-weight: 500; }
.footer-col a:hover { color: var(--brand); padding-left: 6px; }
.copyright { text-align: center; margin-top: 60px; color: var(--text-muted); font-size: 0.9rem; padding-bottom: 20px; opacity: 0.8; }

.live-cam-container { position: relative; width: 100%; max-width: 420px; margin: 0 auto 25px; background: #000; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-float); aspect-ratio: 3/4; border: 4px solid #fff; }
.live-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.live-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 2px dashed rgba(255, 255, 255, 0.7); border-radius: 50%; width: 50%; height: 65%; box-shadow: 0 0 0 9999px rgba(0,0,0,0.5); transition: border-color 0.3s; }

.live-status-bar { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(0,0,0,0.75); backdrop-filter: blur(10px); padding: 15px; border-radius: 14px; color: white; font-size: 0.9rem; text-align: center; border: 1px solid rgba(255,255,255,0.2); }
.live-status-item { margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }

#countdown-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); color: white; font-size: 6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; z-index: 100; pointer-events: none; opacity: 0; transition: opacity 0.2s; backdrop-filter: blur(4px); }
#countdown-overlay.active { opacity: 1; }

.file-list { 
    margin-top: 15px; max-height: 300px; overflow-y: auto; padding-right: 5px; 
}
.file-item { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 14px; border-radius: 12px; margin-bottom: 10px; font-size: 0.95rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.file-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 70%; font-weight: 600; color: var(--text-main); }
.file-item button { color: #ef4444; background: rgba(239, 68, 68, 0.1); border: none; cursor: pointer; font-size: 1rem; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.file-item button:hover { background: #ef4444; color: white; }

.no-results {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
    grid-column: 1 / -1; display: none; animation: fadeIn 0.3s;
}
.no-results.visible { display: block; }

#red-result { width: 100%; display: flex; flex-direction: column; align-items: center; padding-bottom: 50px; }
.redactor-container {
    position: relative; width: 100%; max-width: 100%; height: auto; overflow: hidden; 
    border-radius: 12px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border: 2px solid #e2e8f0; background: #f8fafc;
    touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.redactor-container canvas { display: block; width: 100%; height: auto; pointer-events: none; }
.redactor-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; }

.redact-box { position: absolute; background: rgba(0, 0, 0, 0.9); border: 1px solid rgba(255,255,255, 0.5); cursor: grab; touch-action: none; }
.redact-box.active { border: 2px solid #4f46e5; background: rgba(0,0,0, 0.8); z-index: 50; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.redact-handle { position: absolute; bottom: -10px; right: -10px; width: 30px; height: 30px; background: #4f46e5; border: 3px solid white; border-radius: 50%; z-index: 60; }
.redact-close { position: absolute; top: -12px; left: -12px; width: 26px; height: 26px; background: #ef4444; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; border: 2px solid white; z-index: 60; }

.progress-wrapper {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--brand-gradient);
    transition: width 0.3s ease;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .split-layout { grid-template-columns: 1fr; }
    .close-fab { width: 48px; height: 48px; bottom: 25px; right: 25px; font-size: 1.3rem; }
    .main-viewport { padding: 15px; padding-bottom: 160px; } 
    .hero h1 { font-size: 2.8rem; }
    .seo-blog { padding: 30px; }
    .seo-blog h2 { font-size: 1.8rem; }
    .bento-card { min-height: 200px; padding: 25px; }
    .share-fab { width: 42px; height: 42px; top: 15px; right: 15px; font-size: 1rem; }
}