.top{position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid #eef;z-index:10}.nav{height:72px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:900;font-size:23px;color:var(--p)}nav{display:flex;gap:16px;align-items:center}.hamb{display:none}.inline{display:inline}.inline button{background:transparent;color:#111;padding:0}.hero{padding:75px 0;background:radial-gradient(circle at top left,#f3e8ff,#fff 45%,#fff1f7)}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:34px;align-items:center}.hero h1{font-size:clamp(38px,7vw,68px);line-height:1.02;margin:10px 0}.hero p{font-size:18px;color:var(--mut)}.orb-card{background:#111827;color:#fff;border-radius:30px;padding:35px;min-height:340px}.orb{width:160px;height:160px;border-radius:50%;margin:20px auto;background:radial-gradient(circle,#fff 0 12%,#c084fc 13% 35%,#581c87 36% 58%,#111827 59%);box-shadow:0 0 70px #a855f7}.ico{font-size:34px}.scan{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px;align-items:center}.consent{background:#faf5ff;border:1px solid #e9d5ff;border-radius:14px;padding:12px}.consent input{width:auto}.cam{position:relative;background:#111827;border-radius:28px;overflow:hidden;min-height:460px}.cam video{width:100%;height:460px;object-fit:cover;display:block}.eye{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:290px;height:150px;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 999px rgba(0,0,0,.25)}.cup{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:260px;height:260px;border:3px dashed #fff;border-radius:50%;box-shadow:0 0 0 999px rgba(0,0,0,.22)}.line{position:absolute;left:0;right:0;top:10%;height:3px;background:linear-gradient(90deg,transparent,#fff,transparent);animation:scan 2.5s infinite}@keyframes scan{50%{top:88%}}#msg{font-weight:800;color:var(--p)}.result-head{padding:65px 0;background:linear-gradient(135deg,#111827,#581c87);color:#fff}.notice{background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:14px;padding:12px;margin-top:14px}.auth{display:flex;justify-content:center}.form{width:min(480px,100%)}footer{background:#111827;color:#fff;padding:30px 0;margin-top:50px}.foot{display:flex;justify-content:space-between;gap:20px}footer a{color:#ddd}@media(max-width:850px){.hero-grid,.scan{grid-template-columns:1fr}nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:18px;flex-direction:column;align-items:flex-start;box-shadow:0 20px 50px #0002}nav.open{display:flex}.hamb{display:block;background:#f3f4f6;color:#111}.foot{display:block}.cam,.cam video{height:360px;min-height:360px}}

.type-icon-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
}

.hero-media {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.hero-media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Mobile camera scan layout */
.scan-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    grid-template-areas:
        "copy camera"
        "controls camera";
    gap: 22px;
    align-items: start;
}

.scan-copy {
    grid-area: copy;
}

.scan-controls {
    grid-area: controls;
}

.scan-camera {
    grid-area: camera;
    position: sticky;
    top: 86px;
    width: 100%;
    min-height: 420px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .16);
}

.scan-camera video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

.scan-camera .eye,
.scan-camera .cup,
.scan-camera .line {
    z-index: 2;
}

.camera-empty {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 24px;
    color: #dbeafe;
    text-align: center;
}

.camera-empty strong {
    font-size: 22px;
}

.camera-empty span {
    color: #93c5fd;
}

.camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.camera-message {
    margin-top: 12px;
    min-height: 24px;
    font-weight: 700;
}

@media (max-width: 850px) {
    .scan-page {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "camera"
            "controls";
        gap: 14px;
        padding-top: 14px;
    }

    .scan-copy h1 {
        margin-bottom: 8px;
    }

    .scan-copy p {
        margin: 8px 0;
    }

    .scan-camera {
        position: relative;
        top: auto;
        min-height: auto;
        height: min(62vh, 520px);
        aspect-ratio: auto;
        border-radius: 20px;
    }

    .scan-controls {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 0 -12px;
        padding: 12px;
        background: rgba(255, 255, 255, .96);
        border: 1px solid rgba(229, 231, 235, .9);
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -12px 32px rgba(15, 23, 42, .12);
        backdrop-filter: blur(10px);
    }

    .camera-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .camera-actions .btn {
        width: 100%;
        padding: 11px 10px;
        font-size: 14px;
    }

    .camera-message {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .scan-camera {
        height: 58vh;
    }

    .camera-actions {
        grid-template-columns: 1fr;
    }
}

/* === CLEAN HOME SPACING START === */
.hero {
    padding: 42px 0 34px;
}

.hero-grid {
    display: grid;
    align-items: center;
    gap: 28px;
}

.hero h1 {
    margin: 10px 0 12px;
    line-height: 1.12;
}

.hero p {
    margin: 0 0 18px;
}

.hero .btn {
    margin-top: 0;
}

.orb-card {
    padding: 22px;
}

.hero-media {
    margin: 0 0 16px;
}

.hero-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    border-radius: 18px;
}

.section {
    padding: 34px 0;
}

.section h2 {
    margin: 0 0 18px;
}

.cards {
    gap: 18px;
}

.card {
    padding: 20px;
}

.card h3 {
    margin: 10px 0 8px;
}

.card p {
    margin: 0 0 14px;
}

.card .btn,
.card .btn.sm {
    margin-top: 6px;
}

footer {
    margin-top: 26px;
    padding: 28px 0;
}

.foot {
    gap: 18px;
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0 26px;
    }

    .hero-grid {
        gap: 20px;
    }

    .orb-card {
        padding: 18px;
    }

    .hero-media img {
        max-height: 280px;
    }

    .section {
        padding: 26px 0;
    }

    .cards {
        gap: 14px;
    }

    .card {
        padding: 18px;
    }

    footer {
        margin-top: 18px;
        padding: 24px 0;
    }
}
/* === CLEAN HOME SPACING END === */

/* === CLEAN FORTUNE TYPE ICONS START === */
.cards .card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ico {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    border-radius: 22px;
    overflow: hidden;
    font-size: 42px;
    line-height: 1;
}

.type-icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    margin-top: 0;
}

.card p {
    line-height: 1.55;
}

@media (max-width: 768px) {
    .ico {
        width: 66px;
        height: 66px;
        border-radius: 18px;
        font-size: 36px;
        margin-bottom: 12px;
    }
}
/* === CLEAN FORTUNE TYPE ICONS END === */

/* === CLEAN FORTUNE FOOTER START === */
.site-footer {
    margin-top: 30px;
    padding: 34px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.18), transparent 28%),
        radial-gradient(circle at 88% 0%, rgba(168, 85, 247, 0.16), transparent 32%),
        rgba(12, 10, 20, 0.96);
    color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
    gap: 26px;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 26px;
}

.footer-brand h3,
.footer-col h4 {
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.2;
}

.footer-brand p {
    max-width: 360px;
    margin: 0;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    line-height: 1.35;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-footer {
        padding-top: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-brand {
        gap: 12px;
    }
}
/* === CLEAN FORTUNE FOOTER END === */

/* === CLEAN MOBILE SCAN FINAL START === */
@media (max-width: 768px) {
    html,
    body.is-scan-page {
        min-height: 100%;
        background: #0c0a14;
        overscroll-behavior-y: contain;
    }

    body.is-scan-page {
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.is-scan-page .top {
        position: sticky;
        top: 0;
        z-index: 50;
        min-height: 56px;
    }

    body.is-scan-page main {
        width: 100%;
        min-height: calc(100dvh - 56px);
        overflow: visible;
    }

    body.is-scan-page .site-footer {
        display: none !important;
    }

    body.is-scan-page .scan.scan-page {
        width: 100%;
        max-width: none;
        min-height: calc(100dvh - 56px);
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 10px 12px 18px;
        box-sizing: border-box;
    }

    body.is-scan-page .scan-copy {
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body.is-scan-page .scan-copy h1 {
        margin: 0 0 4px;
        font-size: 20px;
        line-height: 1.15;
    }

    body.is-scan-page .scan-copy p,
    body.is-scan-page .camera-help {
        display: block;
        visibility: visible;
        opacity: 1;
        margin: 6px 0;
        font-size: 13px;
        line-height: 1.35;
    }

    body.is-scan-page .scan-copy p:has(input[type="checkbox"]),
    body.is-scan-page .scan-copy label:has(input[type="checkbox"]),
    body.is-scan-page .consent,
    body.is-scan-page .kvkk-consent,
    body.is-scan-page .scan-consent {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        margin: 8px 0;
        padding: 12px 13px;
        box-sizing: border-box;
        border: 1px solid rgba(245, 158, 11, 0.55);
        border-radius: 16px;
        background: rgba(245, 158, 11, 0.16);
        color: #fff;
        font-weight: 800;
    }

    body.is-scan-page input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        margin: 0;
        accent-color: #f59e0b;
    }

    body.is-scan-page .scan-controls {
        width: 100%;
        max-width: none;
        align-self: stretch;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        position: sticky;
        top: 56px;
        z-index: 40;
        overflow: visible;
    }

    body.is-scan-page .camera-actions {
        width: 100%;
        max-width: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
        border-radius: 16px;
        background: rgba(12, 10, 20, 0.88);
        backdrop-filter: blur(10px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
        overflow: visible;
    }

    body.is-scan-page .camera-actions .btn,
    body.is-scan-page .camera-actions button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        margin: 0;
        padding: 9px 8px;
        box-sizing: border-box;
        border-radius: 12px;
        font-size: 13px;
        line-height: 1.1;
        white-space: nowrap;
        text-align: center;
    }

    body.is-scan-page #msg,
    body.is-scan-page .camera-message,
    body.is-scan-page .scan-status,
    body.is-scan-page .camera-status,
    body.is-scan-page .countdown,
    body.is-scan-page .scan-countdown {
        display: block;
        visibility: visible;
        opacity: 1;
        width: 100%;
        min-height: 42px;
        margin: 8px 0 0;
        padding: 11px 13px;
        box-sizing: border-box;
        border: 1px solid rgba(245, 158, 11, 0.65);
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.92);
        color: #fff;
        font-size: 14px;
        line-height: 1.4;
        font-weight: 800;
        text-align: left;
        overflow: visible;
        max-height: none;
        z-index: 80;
    }

    body.is-scan-page #msg:empty,
    body.is-scan-page .camera-message:empty {
        display: none;
    }

    body.is-scan-page .cam.scan-camera {
        position: relative;
        width: 100%;
        max-width: none;
        height: clamp(320px, 58dvh, 620px);
        margin: 0;
        overflow: hidden;
        border-radius: 18px;
        box-sizing: border-box;
    }

    body.is-scan-page .cam.scan-camera video,
    body.is-scan-page .cam.scan-camera canvas {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body.is-scan-page .camera-empty {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px;
        text-align: center;
    }

    body.is-scan-page .result,
    body.is-scan-page .scan-result,
    body.is-scan-page .result-box,
    body.is-scan-page .fortune-result,
    body.is-scan-page #result,
    body.is-scan-page #scanResult {
        overflow: visible;
        max-height: none;
    }
}

@media (max-width: 380px) {
    body.is-scan-page .scan.scan-page {
        gap: 8px;
        padding: 8px 10px 16px;
    }

    body.is-scan-page .camera-actions {
        gap: 6px;
        padding: 7px;
    }

    body.is-scan-page .camera-actions .btn,
    body.is-scan-page .camera-actions button {
        min-height: 38px;
        font-size: 12px;
        padding: 8px 6px;
    }

    body.is-scan-page .cam.scan-camera {
        height: clamp(280px, 54dvh, 560px);
    }
}
/* === CLEAN MOBILE SCAN FINAL END === */

/* === CLEAN EYE SCAN HUD START === */
.has-eye-scan-hud .eye {
    opacity: 0;
}

.eye-scan-hud {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.eye-scan-status {
    display: flex;
    justify-content: center;
}

.eye-scan-status-label {
    max-width: 92%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(8, 8, 12, .70);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .01em;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.eye-scan-frame-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.eye-scan-frame {
    position: relative;
    width: min(72vw, 310px);
    height: min(46vw, 195px);
    border: 2px solid rgba(255, 255, 255, .94);
    border-radius: 999px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .12),
        0 0 32px rgba(255, 255, 255, .16),
        inset 0 0 24px rgba(255, 255, 255, .08);
}

.eye-scan-frame::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
}

.eye-scan-line {
    position: absolute;
    left: 7%;
    right: 7%;
    top: -12%;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .96), transparent);
    box-shadow: 0 0 18px rgba(255, 255, 255, .55);
}

.eye-scan-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 14px rgba(255, 255, 255, .20);
}

.eye-scan-marker.top {
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
}

.eye-scan-marker.right {
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
}

.eye-scan-marker.bottom {
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
}

.eye-scan-marker.left {
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
}

.eye-scan-orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, .20);
    transform: translate(-50%, -50%);
}

.eye-scan-orbit-a {
    width: min(82vw, 352px);
    height: min(54vw, 235px);
}

.eye-scan-orbit-b {
    width: min(89vw, 382px);
    height: min(61vw, 262px);
    opacity: .58;
}

.eye-scan-metrics {
    display: grid;
    gap: 8px;
}

.eye-scan-metric {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.eye-scan-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}

.eye-scan-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff, #c7f0ff);
    transition: width .28s ease;
}

.eye-scan-hud[data-state="aligning"] .eye-scan-orbit-a {
    animation: eyeOrbitSpin 10s linear infinite;
}

.eye-scan-hud[data-state="aligning"] .eye-scan-orbit-b {
    animation: eyeOrbitSpinReverse 14s linear infinite;
}

.eye-scan-hud[data-state="ready"] .eye-scan-frame {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .18),
        0 0 42px rgba(180, 240, 255, .30),
        inset 0 0 26px rgba(255, 255, 255, .10);
}

.eye-scan-hud[data-state="ready"] .eye-scan-marker {
    border-color: rgba(185, 245, 255, .98);
    box-shadow: 0 0 18px rgba(185, 245, 255, .36);
}

.eye-scan-hud[data-state="scanning"] .eye-scan-orbit-a {
    animation: eyeOrbitSpin 5.6s linear infinite;
}

.eye-scan-hud[data-state="scanning"] .eye-scan-orbit-b {
    animation: eyeOrbitSpinReverse 7.5s linear infinite;
}

.eye-scan-hud[data-state="scanning"] .eye-scan-line {
    opacity: 1;
    animation: eyeScanSweep 2.1s linear infinite;
}

.eye-scan-hud[data-state="error"] .eye-scan-frame,
.eye-scan-hud[data-state="error"] .eye-scan-marker {
    border-color: rgba(255, 170, 170, .96);
}

.eye-scan-hud[data-state="error"] .eye-scan-frame {
    box-shadow:
        0 0 0 1px rgba(255, 140, 140, .18),
        0 0 34px rgba(255, 90, 90, .24);
}

.eye-scan-hud[data-state="error"] .eye-scan-status-label {
    border-color: rgba(255, 170, 170, .36);
    background: rgba(80, 18, 24, .80);
}

@keyframes eyeScanSweep {
    0% {
        top: 8%;
    }

    50% {
        top: 50%;
    }

    100% {
        top: 88%;
    }
}

@keyframes eyeOrbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes eyeOrbitSpinReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .eye-scan-hud {
        padding: 12px;
    }

    .eye-scan-status-label {
        font-size: 12px;
        padding: 8px 12px;
    }

    .eye-scan-frame {
        width: min(76vw, 300px);
        height: min(48vw, 188px);
    }

    .eye-scan-metric {
        grid-template-columns: 54px 1fr;
        font-size: 11px;
    }
}
/* === CLEAN EYE SCAN HUD END === */
