@keyframes spin {from {transform:rotate(0deg)} to {transform:rotate(360deg)}}
@keyframes fadeIn {from {opacity:0;transform:translateY(10px)} to {opacity:1;transform:translateY(0)}}
@keyframes fqcPulse {0% {opacity:0.35} 50% {opacity:0.8} 100% {opacity:0.35}}
.hidden {display:none !important}
/* Step Sections */
.cd-step-section {display:none}
.cd-step-section.active {display:block}
#step-image-upload.active {display:flex;flex-direction:column;align-items:center}
/* Upload Button */
.upload-button {border:0;background-color:#4FAFFC;color:#fff;text-transform:uppercase;font-weight:700;border-radius:2em;padding:.7em 1.2em .7em 3.6em;font-size:1em;position:relative;cursor:pointer;transition:all 0.3s ease}
.upload-button:hover {background-color:#3a9ae8;transform:translateY(-2px)}
.upload-button:before {display:flex;align-items:center;justify-content:center;content:"^";font-size:1.6em;font-weight:700;background-color:#fff;color:#4FAFFC;border:1px solid currentColor;position:absolute;border-radius:50%;width:1.7em;height:1.7em;left:3px;top:0;bottom:0;margin-top:auto;margin-bottom:auto;box-shadow:0 0 0 3px #fff}
#hero.content-grid-mod .upload-button::before {display:none}
#hero.content-grid-mod .upload-button {padding:10px 32px;font-family:"Inter",sans-serif}
/* Status Indicators */
.cd-image-status {background:#e8f5e8;border:1px solid #4caf50;border-radius:8px;padding:12px 16px;margin:10px 0;display:none}
.cd-image-status.success {background:#e8f5e8;border-color:#4caf50;color:#2e7d32}
.cd-image-status.warning {background:#fff3e0;border-color:#ff9800;color:#e65100}
.cd-image-status.error {background:#ffebee;border-color:#f44336;color:#c62828}
.cd-image-status.info {background:#e3f2fd;border-color:#2196f3;color:#1565c0}
.cd-image-status .status-text {font-weight:600;margin-bottom:4px}
.cd-image-status .status-details {font-size:13px;opacity:0.85}
/* Hints */
.cd-custom-hint {font-size:12px!important;line-height:1.45;color:rgba(255,255,255,0.6);margin:8px 0 0}
.cd-input-hint {display:block;font-size:12px!important;line-height:1.45;color:rgba(255,255,255,0.55);margin-top:4px}
.cd-fqc-hint {font-size:12px!important;line-height:1.5;color:rgba(255,255,255,0.55);margin:12px 0 0;max-width:960px}
.cd-fqc-compare-hint {font-size:12px!important;line-height:1.5;color:rgba(255,255,255,0.55);margin:10px 0 0}
.cd-fqc-url-hint {font-size:12px!important;line-height:1.45;color:rgba(255,255,255,0.45);margin:5px 0 0}
.cd-upload-subtitle {font-size:16px;color:#fff;max-width:640px;text-align:center}
/* Container */
.cd-fqc-container {animation:fadeIn 0.3s ease;background:rgba(35,67,106,0.5);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:16px}
/* Summary Cards */
.cd-fqc-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cd-fqc-summary-card {background:#1a3a5c;border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:3px;min-width:0}
.cd-fqc-card-label {font-size:11px!important;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;color:rgba(255,255,255,0.55)}
.cd-fqc-card-value {font-size:30px;line-height:1.15;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;word-break:break-word}
.cd-fqc-card-meta {font-size:11px!important;line-height:1.45;color:rgba(255,255,255,0.6)}
.cd-fqc-best-card {border-color:rgba(72,196,216,0.55);background:linear-gradient(140deg,#1a3a5c,#17506a)}
.cd-fqc-best-card .cd-fqc-card-value {color:#7FE6F5}
.cd-fqc-saving-card .cd-fqc-card-value {color:#8BE58B}
.cd-fqc-saving-card .cd-fqc-card-value.is-negative {color:#FFB27A}
/* Toolbar */
.cd-fqc-toolbar {background:#1a3a5c;border-radius:10px;padding:10px 12px;display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.cd-settings-group {flex:1;min-width:220px}
.cd-settings-group label {display:block;color:rgba(255,255,255,0.9);font-size:12px!important;font-weight:500;margin-bottom:4px}
.cd-control-select {width:100%;max-width:320px;padding:6px 10px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:6px;color:#fff;font-size:14px;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}
.cd-control-select:focus {outline:none;border-color:#4FAFFC;background-color:rgba(79,175,252,0.1)}
.cd-control-select option {background:#1a3a5c;color:#fff}
.cd-fqc-toolbar-actions {display:flex;gap:8px;align-items:center;padding-top:18px}
.cd-compare-btn {display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:6px;color:#fff;font-size:12px!important;cursor:pointer;transition:all 0.2s ease}
.cd-compare-btn:hover {background:rgba(79,175,252,0.2);border-color:#4FAFFC}
.cd-compare-btn svg {fill:currentColor}
/* Matrix */
.cd-fqc-matrix-wrapper {overflow-x:auto;padding-bottom:4px}
.cd-fqc-grid {display:grid;grid-template-columns:minmax(140px,180px) repeat(var(--fqc-cols,4),minmax(120px,1fr));gap:8px;min-width:600px}
.cd-fqc-corner {display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:6px 4px;font-size:10px!important;line-height:1.35;color:rgba(255,255,255,0.45);text-transform:uppercase;letter-spacing:0.06em}
.cd-fqc-col-head {display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:6px 8px;text-align:center}
.cd-fqc-tier-name {color:#fff;font-size:14px;font-weight:600;line-height:1.2}
.cd-fqc-tier-code {font-size:10px!important;line-height:1.4;color:rgba(255,255,255,0.45);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.cd-fqc-row-head {display:flex;align-items:center;gap:10px;padding:8px;background:#1a3a5c;border-radius:10px;min-width:0}
.cd-fqc-row-thumb {flex:0 0 auto;width:54px;height:40px;border-radius:6px;overflow:hidden;background:#0f2840;display:flex;align-items:center;justify-content:center}
.cd-fqc-row-thumb img {width:100%;height:100%;object-fit:cover;display:block}
.cd-fqc-row-thumb img:not([src]) {opacity:0}
.cd-fqc-fmt-text {display:flex;flex-direction:column;gap:1px;min-width:0}
.cd-fqc-fmt-name {color:#fff;font-size:14px;font-weight:600;line-height:1.2}
.cd-fqc-fmt-code {font-size:10px!important;line-height:1.4;color:rgba(255,255,255,0.5);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.cd-fqc-fmt-note {font-size:10px!important;line-height:1.4;color:rgba(255,255,255,0.4)}
/* Cells */
.cd-fqc-cell {position:relative;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:10px 10px 9px;background:rgba(255,255,255,0.06);border:2px solid rgba(255,255,255,0.1);border-radius:10px;color:#fff;cursor:pointer;text-align:left;transition:border-color 0.2s ease,background 0.2s ease,transform 0.2s ease;min-width:0;font-family:inherit}
.cd-fqc-cell:hover {background:rgba(79,175,252,0.16);border-color:rgba(79,175,252,0.5);transform:translateY(-1px)}
.cd-fqc-cell.is-active {border-color:#4FAFFC;background:rgba(79,175,252,0.2)}
.cd-fqc-cell.is-best {border-color:#48C4D8;background:linear-gradient(140deg,rgba(72,196,216,0.22),rgba(79,175,252,0.12))}
.cd-fqc-cell.is-best::after {content:"BEST";position:absolute;top:-9px;right:8px;background:#48C4D8;color:#08283a;font-size:9px;font-weight:800;letter-spacing:0.08em;padding:2px 6px;border-radius:4px}
.cd-fqc-cell.is-pending {cursor:default}
.cd-fqc-cell.is-pending:hover {transform:none;background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.1)}
.cd-fqc-cell.is-pending .cd-fqc-cell-size {color:rgba(255,255,255,0.35);animation:fqcPulse 1.2s ease-in-out infinite}
.cd-fqc-cell.is-error {cursor:default;border-color:rgba(255,150,120,0.35);background:rgba(255,120,90,0.08)}
.cd-fqc-cell.is-error:hover {transform:none}
.cd-fqc-cell.is-over-limit {cursor:default;border-color:rgba(255,200,120,0.35);background:rgba(255,190,90,0.08)}
.cd-fqc-cell.is-over-limit:hover {transform:none}
.cd-fqc-cell.is-over-limit .cd-fqc-cell-note {color:rgba(255,205,140,0.9)}
.cd-fqc-cell.is-error .cd-fqc-cell-size {color:rgba(255,178,122,0.85);font-size:16px}
.cd-fqc-cell-thumb {display:block;width:100%;height:56px;border-radius:6px;overflow:hidden;background:#0f2840;margin-bottom:2px}
.cd-fqc-cell-thumb img {width:100%;height:100%;object-fit:cover;display:block}
.cd-fqc-cell-thumb img:not([src]) {opacity:0}
.cd-fqc-cell-size {font-size:22px;font-weight:700;line-height:1.15;color:#fff;font-variant-numeric:tabular-nums}
.cd-fqc-cell-saving {font-size:12px!important;font-weight:600;line-height:1.3;color:#8BE58B;font-variant-numeric:tabular-nums;min-height:16px}
.cd-fqc-cell-saving.is-negative {color:#FFB27A}
.cd-fqc-cell-bar {display:block;height:5px;border-radius:3px;background:rgba(255,255,255,0.12);overflow:hidden}
.cd-fqc-cell-bar i {display:block;height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#48C4D8,#4FAFFC);transition:width 0.35s ease}
.cd-fqc-cell-note {font-size:10px!important;line-height:1.4;color:rgba(255,255,255,0.5);min-height:14px}
/* Compare Panel */
.cd-fqc-compare {background:#1a3a5c;border-radius:12px;padding:14px}
.cd-fqc-compare-header {display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.cd-fqc-compare-title h4 {color:#fff;font-size:16px;font-weight:600;margin:0 0 3px}
.cd-fqc-compare-meta {font-size:11px!important;line-height:1.45;color:rgba(255,255,255,0.6)}
.cd-fqc-compare-tools {display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.cd-fqc-mode-btn {padding:6px 12px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);border-radius:6px;color:rgba(255,255,255,0.75);font-size:12px!important;cursor:pointer;transition:all 0.2s ease}
.cd-fqc-mode-btn:hover {background:rgba(79,175,252,0.18);color:#fff}
.cd-fqc-mode-btn.active {background:rgba(79,175,252,0.25);border-color:#4FAFFC;color:#fff}
.cd-fqc-compare-stage {position:relative;width:100%;aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:#0f2840;touch-action:none;user-select:none}
.cd-fqc-compare-stage.is-actual {cursor:grab}
.cd-fqc-compare-stage.is-actual.is-panning {cursor:grabbing}
.cd-fqc-compare-stage.is-loading::after {content:"";position:absolute;top:10px;right:10px;width:22px;height:22px;border:3px solid rgba(255,255,255,0.2);border-top-color:#4FAFFC;border-radius:50%;animation:spin 0.6s linear infinite;z-index:6}
.cd-fqc-compare-img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;display:block;pointer-events:none}
.cd-fqc-compare-stage.is-actual .cd-fqc-compare-img {object-fit:none}
.cd-fqc-compare-variant {clip-path:inset(0 50% 0 0);z-index:2}
.cd-fqc-compare-handle {position:absolute;top:0;bottom:0;left:50%;width:3px;margin-left:-1.5px;background:#4FAFFC;cursor:ew-resize;z-index:4;box-shadow:0 0 10px rgba(0,0,0,0.5)}
.cd-fqc-compare-handle span {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;background:#4FAFFC;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,0.45)}
.cd-fqc-compare-tag {position:absolute;bottom:10px;z-index:5;padding:3px 8px;border-radius:5px;background:rgba(8,26,42,0.75);color:rgba(255,255,255,0.85);font-size:10px!important;line-height:1.4;pointer-events:none}
.cd-fqc-tag-left {left:10px}
.cd-fqc-tag-right {right:10px}
/* URL Row */
.cd-fqc-url-row {display:flex;gap:8px;align-items:center;margin-top:12px;flex-wrap:wrap}
.cd-fqc-url-input {flex:1;min-width:200px;padding:7px 10px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);border-radius:6px;color:rgba(255,255,255,0.85);font-size:12px!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.cd-fqc-url-input:focus {outline:none;border-color:#4FAFFC}
.cd-fqc-compare-actions {display:flex;justify-content:flex-start;margin-top:12px}
.cd-download-btn {display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 20px;background:linear-gradient(135deg,#48C4D8,#4FAFFC);border:none;border-radius:8px;color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all 0.3s ease;box-shadow:0 2px 8px rgba(72,196,216,0.3)}
.cd-download-btn:hover {transform:translateY(-1px);box-shadow:0 4px 12px rgba(72,196,216,0.4)}
.cd-download-btn svg {fill:currentColor;width:14px;height:14px}
/* Buttons Row */
.cd-buttons-row {display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.cd-start-over-section {display:flex;gap:10px}
.cd-start-over-btn {padding:8px 16px;background:transparent;border:1px solid rgba(255,255,255,0.3);border-radius:8px;color:rgba(255,255,255,0.7);font-size:13px;cursor:pointer;transition:all 0.3s ease}
.cd-start-over-btn:hover {border-color:rgba(255,255,255,0.6);color:#fff}
/* Loader */
.cd-tool-file-preview-wrapper {display:none}
.cd-tool-file-preview-wrapper.active {display:flex;align-items:center;justify-content:center}
.cd-tool-preview-loader {display:flex;flex-direction:column;align-items:center;gap:15px;padding:30px}
.cd-tool-preview-loader[data-loader-view="full"] {position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(17,17,17,0.9);z-index:9999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px)}
.cd-tool-preview-loader img {width:50px;height:50px;animation:spin 1s infinite linear}
.cd-tool-preview-loader span {color:#fff;font-size:16px;font-weight:500}
/* Hero Overrides */
#hero.content-grid-mod::before {background:radial-gradient(circle,rgba(0,101,173,1) 0%,rgba(3,31,51,1) 82%);background-size:300vw;background-repeat:no-repeat;background-position:right bottom;height:70%}
#hero.content-grid-mod::after {content:"";position:absolute;left:0;right:0;bottom:0;top:auto;margin:auto;height:30%;background-color:#0D1E32;background-image:url("../../../../assets/img/clouds.svg");background-size:700px;background-repeat:no-repeat;background-position:-360px -370px}
#hero.content-grid-mod {border-bottom:0;z-index:99}
#hero.content-grid-mod .converter-wrapper {background-color:#23436A;padding:50px;border-radius:24px;margin-top:76px;transition:height 0.3s ease-out}
.preview-active#hero.content-grid-mod .converter-wrapper.format-quality-comparison-wrapper {padding:30px;max-width:100%;width:100%}
#hero.content-grid-mod .converter-wrapper .drop-area {background-color:#355A90;border-radius:16px;padding:50px 60px;height:auto;margin:0 auto 40px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid transparent;transition:all 0.3s ease}
#hero.content-grid-mod .converter-wrapper .drop-area.highlight {box-shadow:0 10px 20px rgba(0,0,0,0.2);border:2px solid #4FAFFC}
#hero.content-grid-mod .converter-wrapper .drop-area h2 {font-weight:300;font-size:42px;color:#fff;margin-bottom:20px;line-height:1.2;text-align:center}
#hero.content-grid-mod .converter-wrapper .drop-area p {font-size:16px;color:#fff;line-height:1.5;font-family:"Inter",sans-serif;margin:16px auto}
#hero.content-grid-mod .converter-wrapper .drop-area::before {content:"";display:flex;height:80px;width:80px;background-image:url("../../../../assets/img/upload.svg");background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:20px}
/* Stock Assets */
#hero.content-grid-mod .converter-wrapper .cd-stock-assets {display:flex;align-items:center;justify-content:center;gap:20px;width:100%}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .info {text-align:left}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .info h4 {font-size:20px;font-weight:500;color:#fff;line-height:1.3;margin-bottom:0}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-items {display:flex;gap:15px}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item img {max-width:140px;max-height:100px;border-radius:8px;border:3px solid #fff;cursor:pointer;transition:transform 0.2s ease;object-fit:cover}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item img:hover {transform:scale(1.05)}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-mini-upload-area {width:80px;height:80px;background-image:url("../../../../assets/img/upload_area.svg");background-size:cover;background-repeat:no-repeat;display:none;border-radius:8px;background-color:#23436a;cursor:pointer}
.preview-active#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-mini-upload-area {display:unset}
.preview-active#hero.content-grid-mod .converter-wrapper .cd-stock-assets {justify-content:flex-start}
/* Top Bar */
#hero .cd_header_top_bar {display:none}
.cd_header_top_bar {width:100%;background:#3f5fff;color:#fff;display:flex;align-items:center;justify-content:center;padding:10px 30px;height:auto;z-index:99;position:relative;font-size:14px}
.cd_header_top_bar .cd_header_top_bar_content a {color:#fff;text-transform:uppercase;text-decoration:underline;margin-left:8px}
/* Responsive */
@media (max-width:991px) {
#hero.content-grid-mod .converter-wrapper {padding:25px}
.preview-active#hero.content-grid-mod .converter-wrapper.format-quality-comparison-wrapper {padding:20px;max-width:100%}
.cd-fqc-container {padding:15px}
.cd-fqc-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
.cd-fqc-card-value {font-size:26px}
.cd-fqc-toolbar-actions {padding-top:0}
}
@media (max-width:767px) {
#hero.content-grid-mod .converter-wrapper {padding:15px;margin-top:40px;border-radius:12px}
.preview-active#hero.content-grid-mod .converter-wrapper.format-quality-comparison-wrapper {padding:12px}
#hero.content-grid-mod .converter-wrapper .drop-area {padding:25px 20px}
#hero.content-grid-mod .converter-wrapper .drop-area h2 {font-size:24px;margin-bottom:16px}
#hero.content-grid-mod .converter-wrapper .drop-area::before {height:60px;width:60px}
.cd-fqc-container {padding:12px}
.cd-fqc-summary {grid-template-columns:minmax(0,1fr)}
.cd-fqc-card-value {font-size:24px}
.cd-fqc-grid {grid-template-columns:minmax(120px,150px) repeat(var(--fqc-cols,4),minmax(112px,1fr));min-width:520px;gap:6px}
.cd-fqc-row-thumb {width:42px;height:32px}
.cd-fqc-fmt-name {font-size:13px}
.cd-fqc-cell {padding:8px}
.cd-fqc-cell-size {font-size:18px}
.cd-fqc-cell-thumb {height:44px}
.cd-fqc-compare-stage {aspect-ratio:4/3}
.cd-fqc-compare-header {flex-direction:column}
.cd_header_top_bar {padding:10px 16px;font-size:13px;text-align:center}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets {flex-direction:column;align-items:flex-start}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-items {flex-wrap:wrap}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item img {max-width:100px;max-height:75px}
}
@media (max-width:575px) {
.cd-fqc-grid {min-width:460px}
.cd-fqc-cell-size {font-size:17px}
.cd-fqc-tier-name {font-size:13px}
}
/* Print */
@media print {
.cd-fqc-toolbar,.cd-fqc-compare,.cd-start-over-section,.cd_header_top_bar {display:none !important}
}
.cd-custom-hint,.cd-fqc-compare-hint,.cd-fqc-hint,.cd-fqc-url-hint,.cd-input-hint{font-size:12px!important}
