.photo-repair-page { max-width: 1120px; margin: 0 auto; padding: 42px 24px 64px; }
.photo-repair-hero { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.photo-repair-eyebrow { color: #1a72da; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.photo-repair-hero h1 { margin: 12px 0 10px; color: #14213d; font-size: clamp(2rem, 4vw, 3.4rem); }
.photo-repair-hero p { color: #526987; font-size: 1.1rem; line-height: 1.55; }
.photo-repair-card { background: #fff; border: 1px solid #d7e2f1; border-radius: 8px; box-shadow: 0 12px 34px rgba(21, 54, 96, .08); padding: 28px; }
.photo-upload { min-height: 330px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 30px 20px; border: 2px dashed #70a8ff; border-radius: 8px; background: #f8fbff; color: #5a7091; text-align: center; cursor: pointer; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.photo-upload:focus-visible { border-color: #2876e8; box-shadow: 0 0 0 4px rgba(40, 118, 232, .18); }
.photo-upload.dragging { border-color: #156fd1; background: #edf5ff; }
.photo-upload-icons { display: flex; align-items: center; gap: 23px; height: 65px; margin-bottom: 4px; }
.photo-upload-icons i:first-child { color: #6eadf4; font-size: 3.5rem; }
.photo-upload-icons i:last-child { color: #8251c5; font-size: 1.8rem; }
.photo-upload strong { color: #2b3540; font-size: 1.22rem; }
.photo-upload > span { font-size: 1.02rem; }
.photo-paste-hint { margin: 9px 0 14px; color: #6934bb; font-size: .92rem; }
.photo-paste-hint i { margin-right: 5px; }
.photo-paste-hint kbd { border-radius: 4px; background: #7040bd; color: #fff; font: inherit; font-size: .82rem; font-weight: 700; padding: 3px 7px; }
.photo-upload small { display: flex; align-items: center; gap: 6px; color: #64707b; font-size: .86rem; }
.photo-action, .photo-action-button, .editor-button, .photo-primary { border: 1px solid #c8d8ee; border-radius: 7px; background: #fff; color: #172746; font: inherit; font-weight: 700; cursor: pointer; padding: 11px 15px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.photo-action:hover, .photo-action-button:hover, .editor-button:hover { border-color: #2876e8; color: #135db8; }
.photo-primary { border-color: #1465ce; background: #146fd7; color: #fff; }
.photo-primary:hover { background: #0d5cb9; color: #fff; }
.photo-status { min-height: 24px; margin: 18px 0 0; color: #435d81; font-weight: 600; }
.photo-status.error { color: #bf263f; }
.photo-status.success { color: #14734a; }
.hidden { display: none !important; }
.processing-modal { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(8, 19, 37, .64); backdrop-filter: blur(3px); }
.processing-modal-card { width: min(960px, 100%); overflow: hidden; border: 1px solid #cbd9ed; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(4, 16, 34, .38); }
.processing-modal-copy { padding: 27px 30px 18px; text-align: center; }
.processing-kicker { color: #1b6fd4; font-size: .76rem; font-weight: 800; letter-spacing: .09em; }
.processing-modal h2 { min-height: 1.35em; margin: 8px 0 6px; color: #172746; font-size: clamp(1.35rem, 3vw, 2rem); }
.processing-title-letter { display: inline-block; opacity: 0; transform: translateX(18px); }.processing-title-letter.space { width: .28em; }.processing-title-entering .processing-title-letter { animation: processing-title-in .32s cubic-bezier(.2, .78, .25, 1) forwards; animation-delay: var(--title-in-delay); }.processing-title-pulse { animation: processing-title-pulse .68s ease-in-out; }.processing-title-exiting .processing-title-letter { animation: processing-title-out .28s ease-in forwards; animation-delay: var(--title-out-delay); }
@keyframes processing-title-in { to { opacity: 1; transform: translateX(0); } } @keyframes processing-title-pulse { 50% { transform: scale(1.075); color: #146fd7; } } @keyframes processing-title-out { to { opacity: 0; transform: translateX(-14px); } }
.processing-modal-copy p { margin: 0; color: #60728d; }
.processing-ad { display: grid; place-items: center; min-height: 132px; margin: 0 30px 18px; border: 1px solid #d7e1ee; border-radius: 6px; background: #fafcff; color: #6c7d92; }
.processing-ad > span { align-self: start; padding-top: 9px; color: #7d8998; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.processing-ad-carousel { display: block; width: min(760px, calc(100% - 30px)); aspect-ratio: 2056 / 765; margin: -8px auto 12px; overflow: hidden; border: 1px solid #d5e2f2; border-radius: 6px; background: #edf5ff; box-shadow: 0 2px 8px rgba(35, 99, 183, .08); }.processing-ad-track { display: flex; width: 200%; height: 100%; transform: translateX(0); transition: transform .58s ease; }.processing-ad-track img { display: block; width: 50%; height: 100%; object-fit: cover; flex: 0 0 50%; }
.processing-ad-unit { width: 100%; min-height: 88px; margin-top: -13px; }
.processing-console { margin: 0 30px 30px; text-align: left; }
.processing-console-title { margin: 0 0 8px; color: #20252c; font: .83rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.processing-console-log { min-height: 142px; max-height: 190px; overflow: auto; padding: 14px 15px; background: #050505; color: #f49b4c; font: .79rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: left; box-shadow: inset 0 0 22px rgba(245, 141, 54, .04); }
.processing-console-log p { margin: 0; }.processing-console-log p::before { content: ''; }.processing-console-log p.error { color: #ff7b6e; }.processing-console-log p.success { color: #ffb65c; }
.photo-editor { margin-top: 22px; }
.editor-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.brush-size-control { min-width: 220px; flex: 1; }
.brush-size-control label { display: flex; justify-content: space-between; color: #172746; font-weight: 700; margin-bottom: 8px; }
.brush-size-control output { color: #52719d; font-weight: 600; }
.brush-size-control input { width: 100%; accent-color: #1a72da; }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.editor-button { padding: 9px 11px; }
.editor-button.active { border-color: #146fd7; background: #eaf3ff; color: #105eb8; }
.editor-button:disabled { cursor: not-allowed; opacity: .45; }
.editor-help { color: #5e7190; font-size: .93rem; }
.mask-swatch { width: 12px; height: 12px; display: inline-block; vertical-align: -1px; margin-right: 6px; background: rgba(232, 46, 70, .72); border-radius: 2px; }
.canvas-frame { position: relative; overflow: hidden; margin: 14px auto 20px; max-width: 100%; border: 1px solid #cbd8ea; border-radius: 7px; background: #edf1f7; line-height: 0; touch-action: none; }
.canvas-frame canvas { display: block; width: 100%; height: auto; }
.canvas-frame #maskCanvas { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.photo-editor > .photo-primary { min-width: 190px; }
.photo-result { margin-top: 28px; border-top: 1px solid #dde6f2; padding-top: 26px; }
.photo-result h2 { color: #172746; font-size: 1.35rem; margin: 0 0 7px; }
.photo-result > p { color: #5d7090; margin: 0 0 18px; }
.photo-compare { position: relative; overflow: hidden; max-width: 100%; margin: 0 auto; background: #e8edf4; border-radius: 7px; line-height: 0; }
.photo-compare > img, .photo-before img { display: block; width: 100%; height: auto; }
.photo-before { position: absolute; inset: 0; width: 100%; overflow: hidden; clip-path: inset(0 50% 0 0); }
.photo-before img { width: 100%; max-width: none; }
.photo-divider { position: absolute; inset: 0 auto 0 50%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); transform: translateX(-1px); pointer-events: none; }
.photo-divider::after { content: '↔'; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: #146fd7; font: 700 18px/38px Arial, sans-serif; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.compare-label { position: absolute; top: 14px; z-index: 2; padding: 6px 9px; border-radius: 4px; background: rgba(14, 28, 50, .78); color: #fff; font-size: .76rem; font-weight: 800; line-height: 1; text-transform: uppercase; pointer-events: none; }
.compare-label-before { left: 14px; }.compare-label-after { right: 14px; }
.photo-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: none; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.photo-share { margin-top: 18px; padding: 16px; border: 1px solid #d4e0ef; border-radius: 7px; background: #f7faff; }.photo-share > p { margin: 0 0 12px; color: #566c8d; font-size: .9rem; }.share-link-row { display: flex; gap: 8px; }.share-link-row input { min-width: 0; flex: 1; border: 1px solid #cbd9eb; border-radius: 6px; background: #fff; color: #304765; font: .86rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 10px; }.share-network { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }.share-network .photo-action-button { padding: 9px 12px; }.share-network #shareWhatsapp { color: #177d45; }.share-network #shareFacebook { color: #2463b6; }
.privacy-note { display: flex; gap: 9px; align-items: flex-start; margin: 24px 0 0; color: #5a6e8c; font-size: .9rem; line-height: 1.45; }
.privacy-note i { color: #176ac8; margin-top: 2px; }
@media (max-width: 680px) { .photo-repair-page { padding: 28px 14px 48px; }.photo-repair-card { padding: 16px; }.editor-toolbar { align-items: stretch; flex-direction: column; }.editor-actions { justify-content: flex-start; }.editor-button span { display: none; }.editor-button { width: 42px; height: 42px; padding: 0; }.photo-upload { min-height: 260px; padding: 24px 14px; }.photo-upload-icons { gap: 18px; }.photo-upload-icons i:first-child { font-size: 3rem; }.photo-upload-icons i:last-child { font-size: 1.55rem; }.photo-paste-hint { margin-bottom: 8px; }.photo-upload small { font-size: .78rem; }.result-actions > * { flex: 1 1 100%; }.share-link-row { flex-direction: column; }.share-network .photo-action-button { flex: 1 1 calc(50% - 4px); }.processing-modal { padding: 14px; }.processing-modal-copy { padding: 22px 18px 15px; }.processing-ad, .processing-console { margin-right: 18px; margin-left: 18px; }.processing-ad { min-height: 105px; }.processing-console { margin-bottom: 18px; }.processing-console-log { min-height: 100px; font-size: .71rem; } }
@media (prefers-reduced-motion: reduce) { .processing-title-letter { opacity: 1; transform: none; }.processing-title-entering .processing-title-letter, .processing-title-pulse, .processing-title-exiting .processing-title-letter { animation: none; } }
