/* ==============================================
   Quote Tool - Part Analyzer Styles
   ============================================== */

/* Hero */
.qt-hero {
    margin-top: 90px;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #2d3748 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.qt-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(46, 163, 242, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.qt-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    position: relative;
}

.qt-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 22px;
    position: relative;
}

.qt-faq-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.qt-faq-btn:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    text-decoration: none;
}

/* App Section */
.qt-app-section {
    padding: 30px 0 60px;
    background: #f0f4f8;
    min-height: 80vh;
}

.qt-container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Upload Area */
.qt-upload-area {
    background: white;
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 20px;
}

.qt-upload-area:hover,
.qt-upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(0, 94, 184, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 94, 184, 0.1);
}

.qt-upload-area.drag-over {
    border-color: var(--secondary-color);
    background: rgba(46, 163, 242, 0.05);
    border-style: solid;
}

.qt-upload-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.qt-upload-area:hover .qt-upload-icon {
    transform: translateY(-5px);
}

.qt-upload-inner h3 {
    font-size: 22px;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.qt-upload-inner p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.qt-file-types {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.qt-file-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #edf2f7, #e2e8f0);
    color: #4a5568;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* File Info Bar */
.qt-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.qt-file-name {
    font-weight: 600;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.qt-file-name::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #48bb78;
    border-radius: 50%;
}

/* Buttons */
.qt-btn-small {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qt-btn-primary {
    background: var(--primary-color);
    color: white;
}

.qt-btn-primary:hover {
    background: var(--secondary-color);
}

.qt-btn-danger {
    background: #fc8181;
    color: white;
}

.qt-btn-danger:hover {
    background: #f56565;
}

/* Loading */
.qt-loading {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
}

.qt-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: qt-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes qt-spin {
    to { transform: rotate(360deg); }
}

.qt-loading p {
    color: var(--text-color);
    font-size: 16px;
}

/* Main Content Layout */
.qt-main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}

/* Viewer Panel */
.qt-viewer-panel {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Toolbar */
.qt-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #1a202c;
    border-bottom: 1px solid #2d3748;
    flex-wrap: wrap;
    gap: 8px;
}

.qt-toolbar-left,
.qt-toolbar-right {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.qt-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: #a0aec0;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.qt-tool-btn:hover {
    background: #2d3748;
    color: white;
}

.qt-tool-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

.qt-tool-btn svg {
    flex-shrink: 0;
}

/* Toolbar separator */
.qt-toolbar-sep {
    width: 1px;
    height: 24px;
    background: #4a5568;
    margin: 0 4px;
    flex-shrink: 0;
}

/* Measure Dropdown */
.qt-tool-dropdown {
    position: relative;
}

.qt-dropdown-arrow {
    margin-left: 2px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.qt-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 4px;
    min-width: 160px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qt-dropdown-menu.open {
    display: block;
}

.qt-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    color: #a0aec0;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.qt-dropdown-item:hover {
    background: #2d3748;
    color: white;
}

.qt-dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

.qt-dropdown-item svg {
    flex-shrink: 0;
}

.qt-dropdown-divider {
    height: 1px;
    background: #4a5568;
    margin: 4px 8px;
}

.qt-dropdown-snap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #a0aec0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    user-select: none;
}

.qt-dropdown-snap:hover {
    background: #2d3748;
    color: white;
}

.qt-dropdown-snap input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.qt-dropdown-snap svg {
    flex-shrink: 0;
}

/* View Bar */
.qt-view-bar {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #2d3748;
    border-bottom: 1px solid #4a5568;
}

.qt-view-label {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
    white-space: nowrap;
}

.qt-view-btn {
    padding: 4px 10px;
    background: transparent;
    color: #a0aec0;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.qt-view-btn:hover {
    background: #4a5568;
    color: white;
}

.qt-view-btn.active {
    background: var(--primary-color);
    color: white;
}

.qt-view-btn-iso {
    margin-left: auto;
}

/* Measure type badge */
.qt-mtype {
    display: inline-block;
    padding: 1px 6px;
    background: var(--primary-color);
    color: white;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Viewer Container */
.qt-viewer {
    position: relative;
    width: 100%;
    height: 600px;
    background: #edf0f5;
    overflow: hidden;
}

.qt-viewer canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#viewer3D,
#viewer2D,
#viewerPDF {
    display: none;
}

#measureOverlay {
    pointer-events: none;
    z-index: 10;
}

#measureOverlay.measuring {
    pointer-events: auto;
    cursor: crosshair;
}

#measureOverlay.calibrating {
    pointer-events: auto;
    cursor: crosshair;
}

#measureOverlay.faceview {
    pointer-events: none;
}

/* Measurement Results */
.qt-measure-results {
    padding: 10px 15px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    max-height: 150px;
    overflow-y: auto;
}

.qt-measure-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qt-measure-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    border-left: 3px solid var(--primary-color);
    cursor: pointer;
    transition: background 0.15s ease;
}

.qt-measure-item:hover {
    background: #fee2e2;
}

.qt-measure-item .label {
    color: var(--text-color);
}

.qt-measure-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qt-measure-item .value {
    font-weight: 700;
    color: var(--heading-color);
    font-family: 'Courier New', monospace;
}

.qt-measure-delete {
    display: none;
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.qt-measure-item:hover .qt-measure-delete {
    display: inline;
}

.qt-measure-delete:hover {
    opacity: 1;
}

/* Side Panel */
.qt-side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Panel Cards */
.qt-panel-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qt-panel-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--heading-color);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}

.qt-panel-card h4 svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Scale Controls */
.qt-scale-inputs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qt-scale-ratio label,
.qt-unit-select label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.qt-scale-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
}

.qt-scale-row input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--heading-color);
}

.qt-scale-row input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.1);
}

.qt-scale-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qt-preset-btn {
    padding: 5px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qt-preset-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.qt-preset-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.qt-unit-select select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--heading-color);
    background: white;
    cursor: pointer;
}

.qt-unit-select select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Calibrate Info */
.qt-calibrate-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-color);
    background: #ebf8ff;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.5;
}

.qt-calibrate-msg svg {
    flex-shrink: 0;
    color: var(--primary-color);
    margin-top: 1px;
}

.qt-calibrate-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qt-calibrate-row input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.qt-calibrate-row input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.qt-calibrate-row span {
    font-weight: 600;
    color: var(--text-color);
    font-size: 13px;
}

/* Properties Grid */
.qt-props-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qt-prop-item {
    background: #f7fafc;
    padding: 12px;
    border-radius: 8px;
}

.qt-prop-item.qt-prop-full {
    grid-column: 1 / -1;
}

.qt-prop-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.qt-prop-item span {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading-color);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.qt-prop-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.qt-prop-copy-row span {
    flex: 1;
    min-width: 0;
}

.qt-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #a0aec0;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.qt-copy-btn:hover {
    background: #edf2f7;
    color: var(--primary-color);
    border-color: #cbd5e0;
}

.qt-copy-btn.copied {
    background: #c6f6d5;
    color: #276749;
    border-color: #9ae6b4;
}

.qt-prop-custom {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}

/* Stock Definition */
.qt-stock-shape-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.qt-shape-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qt-shape-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.qt-shape-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.qt-shape-btn svg {
    flex-shrink: 0;
}

.qt-stock-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.qt-stock-dim {
    flex: 1;
}

.qt-stock-dim label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.qt-stock-dim input {
    width: 100%;
    padding: 8px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--heading-color);
    text-align: center;
    box-sizing: border-box;
}

.qt-stock-dim input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 94, 184, 0.1);
}

.qt-stock-dim input::placeholder {
    color: #cbd5e0;
    font-weight: 400;
}

.qt-stock-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.qt-stock-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.qt-stock-add {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.qt-stock-add:hover {
    background: #bee3f8;
    border-color: #90cdf4;
}

.qt-stock-add:active {
    background: #90cdf4;
}

.qt-stock-reset {
    margin-left: auto;
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.qt-stock-reset:hover {
    background: #fed7d7;
    border-color: #feb2b2;
}

.qt-stock-reset:active {
    background: #feb2b2;
}

.qt-stock-reset svg {
    flex-shrink: 0;
}

.qt-stock-volume-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.qt-stock-volume-row span:first-child {
    color: var(--text-color);
    font-weight: 600;
}

.qt-stock-volume-row span:last-child {
    font-weight: 700;
    color: var(--heading-color);
    font-family: 'Courier New', monospace;
}

.qt-stock-preview-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
    padding: 8px 0 0;
}

.qt-stock-preview-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e53e3e;
    cursor: pointer;
    flex-shrink: 0;
}

.qt-stock-preview-toggle svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

/* Material Select */
.qt-material-select {
    margin-bottom: 16px;
}

.qt-material-select label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.qt-material-select select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: var(--heading-color);
    background: white;
    cursor: pointer;
}

.qt-material-select select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Weight Results */
.qt-weight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.qt-weight-card {
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.qt-weight-card label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.qt-weight-card small {
    display: block;
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.8;
}

.qt-weight-net {
    background: linear-gradient(135deg, #ebf8ff, #bee3f8);
    color: #2b6cb0;
}

.qt-weight-net .qt-weight-value {
    color: #2b6cb0;
}

.qt-weight-stock {
    background: linear-gradient(135deg, #fefcbf, #fefcbf);
    color: #975a16;
}

.qt-weight-stock .qt-weight-value {
    color: #975a16;
}

.qt-weight-value {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    display: block;
}

.qt-weight-detail {
    background: #f7fafc;
    border-radius: 8px;
    padding: 12px;
}

.qt-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

.qt-detail-row span:first-child {
    color: var(--text-color);
}

.qt-detail-row span:last-child {
    font-weight: 600;
    color: var(--heading-color);
}

/* Price Calculator */
.qt-price-calculator {
    margin-top: 14px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 14px;
}

.qt-price-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #166534;
    margin-bottom: 12px;
}

.qt-price-input-row {
    margin-bottom: 12px;
}

.qt-price-input-row label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.qt-price-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #86efac;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.qt-price-input-wrap:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.qt-price-symbol {
    padding: 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
    background: #f0fdf4;
    border-right: 1.5px solid #bbf7d0;
    line-height: 40px;
    height: 40px;
}

.qt-price-input-wrap input[type="number"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #14532d;
    background: transparent;
    height: 40px;
    min-width: 0;
    -moz-appearance: textfield;
}

.qt-price-input-wrap input[type="number"]::-webkit-outer-spin-button,
.qt-price-input-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qt-price-unit {
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border-left: 1.5px solid #bbf7d0;
    line-height: 40px;
    height: 40px;
    white-space: nowrap;
}

.qt-price-result {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    border: 1.5px solid #bbf7d0;
}

.qt-price-result-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #166534;
    margin-bottom: 6px;
}

.qt-price-value {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #16a34a;
    display: block;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.qt-price-value.qt-price-empty {
    color: #9ca3af;
    font-size: 22px;
}

.qt-price-formula {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* ==================== ISKREX VIEWER BADGE ==================== */
.qt-viewer {
    position: relative;
}

.qt-iskrex-viewer-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 8px;
    background: rgba(10, 22, 40, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    z-index: 10;
    line-height: 1;
}

.qt-iskrex-viewer-badge svg {
    color: #a78bfa;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.qt-iskrex-viewer-badge strong {
    background: linear-gradient(135deg, #a78bfa, #818cf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.qt-iskrex-viewer-badge:hover {
    background: rgba(10, 22, 40, 0.9);
    border-color: rgba(167, 139, 250, 0.6);
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.qt-iskrex-viewer-badge:hover svg {
    transform: rotate(-10deg) scale(1.2);
}

/* ==================== SIMPLE ISKREX SIGNATURE ==================== */
.qt-simple-sig {
    display: flex;
    justify-content: center;
    padding: 14px 0 2px;
}

.qt-simple-sig-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qt-simple-sig-company {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

.qt-simple-sig-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px 7px 12px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.22s ease;
}

.qt-simple-sig-badge:hover {
    border-color: #a78bfa;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.18);
    transform: translateY(-1px);
}

.qt-simple-sig-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #94a3b8;
}

.qt-simple-sig-divider {
    width: 1px;
    height: 14px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.qt-simple-sig-bolt {
    color: #7c3aed;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

.qt-simple-sig-badge:hover .qt-simple-sig-bolt {
    transform: rotate(-10deg) scale(1.15);
}

.qt-simple-sig-name {
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.2px;
}

.qt-simple-sig-ltd {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #94a3b8;
    align-self: flex-end;
    padding-bottom: 1px;
}

/* Fullscreen viewer mode */
.qt-main-content.qt-fullscreen {
    grid-template-columns: 1fr;
}

.qt-main-content.qt-fullscreen .qt-side-panel {
    display: none;
}

.qt-main-content.qt-fullscreen .qt-viewer {
    height: calc(100vh - 140px);
}

/* Responsive */
@media (max-width: 1200px) {
    .qt-main-content {
        grid-template-columns: 1fr 340px;
    }
}

@media (max-width: 980px) {
    .qt-hero {
        margin-top: 70px;
        padding: 40px 0 30px;
    }

    .qt-hero h1 {
        font-size: 32px;
    }

    .qt-hero p {
        font-size: 15px;
    }

    .qt-main-content {
        grid-template-columns: 1fr;
    }

    .qt-viewer {
        height: 450px;
    }

    .qt-tool-btn span {
        display: none;
    }

    .qt-tool-btn {
        padding: 8px 10px;
    }
}

@media (max-width: 600px) {
    .qt-hero {
        margin-top: 60px;
        padding: 30px 0 20px;
    }

    .qt-hero h1 {
        font-size: 26px;
    }

    .qt-upload-area {
        padding: 40px 20px;
    }

    .qt-upload-inner h3 {
        font-size: 18px;
    }

    .qt-viewer {
        height: 350px;
    }

    .qt-props-grid {
        grid-template-columns: 1fr;
    }

    .qt-weight-row {
        grid-template-columns: 1fr;
    }

    .qt-weight-value {
        font-size: 18px;
    }
}
