:root {
    color-scheme: dark;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #080c14;
    color: #fff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

.pwa-install-button {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(25,34,54,.76);
    color: rgba(255,255,255,.95);
    box-shadow: 0 12px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    font: inherit;
    font-size: 12px;
    font-weight: 680;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.pwa-install-button[hidden] {
    display: none;
}

.pwa-install-button:hover {
    transform: translateY(-2px);
    background: rgba(39,51,78,.88);
    border-color: rgba(255,255,255,.36);
}

.pwa-install-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
    .pwa-install-button {
        display: none !important;
    }
}

@media (max-width: 680px) {
    .pwa-install-button {
        top: 12px;
        right: 12px;
    }
}

.dex-toast-host {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    left: 50%;
    z-index: 9999;
    width: min(520px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    transform: translateX(-50%);
    pointer-events: none;
}

.dex-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 13px 14px 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.18);
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08)),
        rgba(18,24,38,.86);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow:
        0 18px 40px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.18);
    color: #fff;
    opacity: 0;
    transform: translateY(-14px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
}

.dex-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dex-toast.is-leaving {
    opacity: 0;
    transform: translateY(-10px) scale(.98);
}

.dex-toast--success {
    border-color: rgba(74,222,128,.42);
}

.dex-toast--error {
    border-color: rgba(248,113,113,.48);
}

.dex-toast--info {
    border-color: rgba(96,165,250,.42);
}

.dex-toast-content {
    min-width: 0;
}

.dex-toast-title {
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 760;
    color: rgba(255,255,255,.96);
}

.dex-toast-message {
    font-size: 13px;
    line-height: 1.38;
    color: rgba(255,255,255,.82);
    overflow-wrap: anywhere;
}

.dex-toast-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.74);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.dex-toast-close:hover {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.96);
}

button,
input {
    font: inherit;
}

.login-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transform: scale(1.01);
    animation: bgReveal 0.4s ease forwards;
}

.login-bg-image,
.login-bg-video {
    display: block;
}

.dex-sky-bg {
    --dex-bg-1: #040814;
    --dex-bg-2: #0a1938;
    --dex-bg-3: #151d4b;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 72%, rgba(88, 216, 255, 0.20), transparent 34%),
        radial-gradient(circle at 22% 20%, rgba(139, 92, 246, 0.27), transparent 36%),
        radial-gradient(ellipse at 52% 44%, rgba(27, 151, 199, 0.09), transparent 44%),
        linear-gradient(135deg, var(--dex-bg-1) 0%, var(--dex-bg-2) 48%, var(--dex-bg-3) 100%);
}

.dex-sky-bg::before {
    content: "";
    position: absolute;
    inset: -28%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.44;
    filter: blur(52px);
    transform: rotate(-12deg) scale(1.04);
    background:
        linear-gradient(90deg,
            transparent 16%,
            rgba(56, 151, 232, 0.08) 34%,
            rgba(119, 82, 218, 0.16) 49%,
            rgba(34, 211, 238, 0.09) 64%,
            transparent 83%);
    animation: dexSkyNebulaDrift 48s ease-in-out infinite alternate;
}

.dex-sky-canvas,
.dex-sky-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dex-sky-canvas {
    display: block;
    z-index: 0;
    background: transparent;
}

.dex-sky-depth {
    z-index: 2;
    background:
        radial-gradient(circle at 14% 82%, rgba(37, 99, 235, 0.25), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(20, 184, 166, 0.17), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.47));
}

.dex-sky-aurora {
    z-index: 3;
    filter: blur(48px);
    opacity: 0.74;
    transform: scale(1.08);
    animation: dexSkyAuroraDrift 36s ease-in-out infinite alternate;
    background:
        radial-gradient(ellipse at 22% 32%, rgba(88, 216, 255, 0.18), transparent 43%),
        radial-gradient(ellipse at 68% 62%, rgba(139, 92, 246, 0.22), transparent 47%),
        radial-gradient(ellipse at 54% 24%, rgba(34, 211, 238, 0.13), transparent 40%);
}

.dex-sky-vignette {
    z-index: 4;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.14) 56%, rgba(0, 0, 0, 0.49) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.20), transparent 42%, rgba(0, 0, 0, 0.11));
}

.dex-sky-noise {
    z-index: 5;
    opacity: 0.06;
    mix-blend-mode: soft-light;
    background-image:
        linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
}

@keyframes dexSkyAuroraDrift {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1.08) rotate(-1deg);
    }

    100% {
        transform: translate3d(1.5%, 1.4%, 0) scale(1.12) rotate(1.2deg);
    }
}

@keyframes dexSkyNebulaDrift {
    0% {
        transform: translate3d(-1.5%, -0.7%, 0) rotate(-12deg) scale(1.04);
    }

    100% {
        transform: translate3d(1.8%, 1.1%, 0) rotate(-10.5deg) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dex-sky-bg::before,
    .dex-sky-aurora {
        animation: none !important;
    }
}

@keyframes bgReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

html:has(.login-shell),
body:has(.login-shell) {
    overflow-x: hidden;
    background: #080c14;
}

.login-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(6,10,20,.18) 0%, rgba(6,10,20,.05) 18%, rgba(6,10,20,.14) 54%, rgba(6,10,20,.43) 100%),
        radial-gradient(circle at 50% 42%, rgba(255,255,255,.075), transparent 30%),
        linear-gradient(180deg, rgba(10,14,24,0) 0%, rgba(10,14,24,.16) 72%, rgba(10,14,24,.53) 100%);
    pointer-events: none;
}

.login-top-logo {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
    user-select: none;
}

.login-top-logo span {
    font-size: clamp(36px, 2.95vw, 46px);
    font-weight: 620;
    color: rgba(255,255,255,.95);
    letter-spacing: .2px;
    text-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.login-top-logo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.34));
}

.login-top-logo-placeholder {
    display: block;
    width: min(360px, 42vw);
    height: 62px;
}

.login-shell {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 108px 24px 220px;
}

.login-center-stack {
    width: min(460px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.login-center-stack--setup {
    width: min(700px, calc(100vw - 40px));
    gap: 14px;
}

.login-clock-panel,
.login-card-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
}

.login-clock-panel {
    text-align: center;
    user-select: none;
    pointer-events: none;
}

.login-time {
    font-size: clamp(100px, 9.8vw, 130px);
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: .94;
    color: rgba(255,255,255,.98);
    text-shadow: 0 16px 36px rgba(0,0,0,.24);
}

.login-date {
    margin-top: 10px;
    font-size: clamp(24px, 2.35vw, 30px);
    font-weight: 460;
    color: rgba(255,255,255,.88);
    letter-spacing: .01em;
    text-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    pointer-events: auto;
    position: relative;
    padding: 24px 30px 20px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.06) 100%),
        rgba(12,17,28,.34);
    backdrop-filter: blur(20px) saturate(155%);
    -webkit-backdrop-filter: blur(20px) saturate(155%);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow:
        0 26px 60px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 0%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,0));
    opacity: .78;
}

.login-input-wrap,
.login-brand,
.hatirla-satir,
.login-button,
.login-copyright,
.login-card-status,
.bilgi-kutu,
.setup-card,
.setup-grid,
.setup-title {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.login-brand--text {
    margin-bottom: 22px;
}

.login-card-title {
    color: rgba(255,255,255,.96);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: 1.15;
    text-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.login-card-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.24));
}

.login-card-logo-placeholder {
    display: block;
    width: 68px;
    height: 68px;
}

.login-input-wrap {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px 9px;
    border-bottom: 1px solid rgba(255,255,255,.24);
}

.login-input-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.78);
    flex-shrink: 0;
}

.login-input-icon svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-input {
    flex: 1;
    padding: 4px 0;
    border: none;
    background: none;
    color: #fff;
    caret-color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 15px;
    outline: none;
    min-width: 0;
    width: 100%;
}

.login-input::placeholder {
    color: rgba(255,255,255,.6);
}

.login-input:disabled {
    color: rgba(255,255,255,.54);
    -webkit-text-fill-color: rgba(255,255,255,.54);
    cursor: not-allowed;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    -webkit-text-fill-color: #fff;
    transition: background-color 5000s;
}

.hatirla-satir {
    margin-bottom: 16px;
}

.hatirla-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.74);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.hatirla-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #fff;
}

.login-button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(242,244,247,.94));
    color: #111827;
    cursor: pointer;
    transition: transform .18s, opacity .18s, box-shadow .18s;
    box-shadow: 0 16px 28px rgba(15,23,42,.18);
}

.login-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(15,23,42,.22);
}

.login-button:disabled {
    opacity: .56;
    cursor: not-allowed;
}

.login-copyright {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,.6);
    letter-spacing: .2px;
}

.login-card-status {
    display: block;
    width: 100%;
    min-height: 18px;
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    line-height: 18px;
    color: rgba(255,255,255,.6);
    letter-spacing: .2px;
}

.login-card-status--error {
    color: rgba(254,202,202,.96);
    font-weight: 650;
}

.bilgi-kutu {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(55,138,221,.16);
    border: 1px solid rgba(96,165,250,.38);
    border-radius: 14px;
    color: rgba(255,255,255,.94);
    font-size: 13px;
    line-height: 1.5;
    padding: 11px 14px;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
}

.setup-repair-error {
    border-color: rgba(248, 113, 113, .46);
    background: rgba(153, 27, 27, .18);
}

.setup-repair-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.setup-login-card {
    width: min(700px, calc(100vw - clamp(24px, 5vw, 64px)));
    height: auto;
    min-height: clamp(360px, 40vh, 400px);
    padding: clamp(12px, 1.8vh, 18px) clamp(16px, 2.6vw, 26px) clamp(14px, 2vh, 18px);
}

.setup-card {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.setup-step-panel {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    animation: setupStepEnter .16s ease-out both;
    will-change: opacity, transform;
}

.setup-step-panel > .setup-grid {
    flex: 1;
    align-content: start;
}

.setup-step-panel > .button-row {
    margin-top: auto;
}

@keyframes setupStepEnter {
    from {
        opacity: .18;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .setup-step-panel {
        animation: none !important;
    }
}

.setup-title {
    margin: 0 0 clamp(6px, 1.2vh, 10px);
    text-align: center;
    font-size: clamp(19px, 2.4vh, 23px);
    font-weight: 660;
    color: rgba(255,255,255,.97);
    letter-spacing: -.01em;
    line-height: 1.1;
}

.setup-grid {
    --setup-column-gap: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--setup-column-gap);
}

.setup-connection-grid {
    row-gap: 0;
}

.setup-license-grid {
    padding-top: clamp(4px, 1vh, 10px);
    row-gap: clamp(3px, .7vh, 7px);
}

.setup-existing-system {
    display: grid;
    gap: 7px;
    padding: 16px 18px;
    border: 1px solid rgba(92, 220, 181, .42);
    border-radius: 14px;
    background: rgba(32, 122, 101, .14);
    color: rgba(255, 255, 255, .88);
}

.setup-existing-system strong {
    color: #83e8c8;
    font-size: 15px;
}

.setup-existing-system span {
    font-size: 14px;
}

.setup-existing-system small {
    color: rgba(255, 255, 255, .64);
    line-height: 1.45;
}

.setup-license-capacity-warning {
    display: grid;
    gap: 6px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 190, 108, .52);
    border-radius: 14px;
    background: rgba(128, 77, 24, .2);
    color: rgba(255, 246, 230, .9);
}

.setup-license-capacity-warning strong {
    color: #ffd08f;
    font-size: 14px;
}

.setup-license-capacity-warning span {
    color: rgba(255, 246, 230, .76);
    font-size: 13px;
    line-height: 1.45;
}

.setup-brand-company-row,
.setup-user-row,
.setup-user-profile-row {
    min-width: 0;
    display: grid;
    gap: var(--setup-column-gap, 18px);
}

.setup-brand-company-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-user-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-user-profile-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-brand-field {
    min-width: 0;
}

.setup-asset-picker {
    min-width: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 0 0 5px;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.24);
}

.setup-asset-select {
    position: relative;
    width: 72px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    color: rgba(255,255,255,.84);
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.setup-asset-select:hover,
.setup-asset-select:focus-within {
    border-color: rgba(255,255,255,.48);
    background: rgba(255,255,255,.035);
    box-shadow: 0 0 0 2px rgba(255,255,255,.045);
}

.setup-asset-select img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.setup-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.setup-asset-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,.68);
    font-size: 12px;
}

.setup-field {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.setup-company-field {
    min-width: 0;
    justify-content: flex-end;
}

.setup-company-field .setup-field__wrap {
    margin-bottom: 0;
    padding-bottom: 5px;
}

.setup-field__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.setup-field--full {
    grid-column: 1 / -1;
}

.setup-field--reserved {
    opacity: .58;
    pointer-events: none;
}

.setup-field--reserved .login-input-wrap {
    border-bottom-color: rgba(255,255,255,.14);
}

.setup-field--reserved > span:first-child,
.setup-field--reserved .login-input::placeholder {
    color: rgba(255,255,255,.18) !important;
    -webkit-text-fill-color: rgba(255,255,255,.18) !important;
    font-weight: 400;
}

.setup-field--sql-credential {
    min-height: 58px;
}

.setup-field > span:first-child {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(255,255,255,.66);
}

.setup-field__wrap {
    margin-bottom: clamp(4px, .8vh, 7px);
    padding-bottom: clamp(4px, .7vh, 6px);
}

.setup-field__input {
    font-size: 14px;
}

.setup-field__input::placeholder {
    color: rgba(255,255,255,.20) !important;
    -webkit-text-fill-color: rgba(255,255,255,.20) !important;
    font-weight: 400;
    opacity: 1;
}

.setup-field__input:placeholder-shown {
    color: rgba(255,255,255,.20);
    -webkit-text-fill-color: rgba(255,255,255,.20);
    font-weight: 400;
}

.setup-field--reserved .setup-field__input:placeholder-shown {
    color: rgba(255,255,255,.16);
    -webkit-text-fill-color: rgba(255,255,255,.16);
}

.setup-field__input:not(:placeholder-shown) {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.setup-field__input--code {
    text-transform: none;
}

.setup-auth-mode {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--setup-column-gap, 18px);
    margin: 4px 0 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.22);
}

.setup-auth-option {
    width: 100%;
    min-height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.76);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.setup-auth-option:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.26);
    background: rgba(255,255,255,.11);
    color: rgba(255,255,255,.94);
}

.setup-auth-option--active {
    border-color: rgba(255,255,255,.36);
    background:
        linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.10)),
        rgba(255,255,255,.08);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.button-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 18px);
    margin-top: clamp(10px, 1.7vh, 14px);
}

.button-row--install {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-secondary-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: clamp(40px, 5vh, 46px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.setup-secondary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.12);
}

.setup-secondary-btn:disabled {
    opacity: .56;
    cursor: not-allowed;
}

.setup-primary-btn {
    margin: 0;
}

.login-footer {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: min(1240px, calc(100vw - 48px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    z-index: 4;
    align-items: stretch;
}

.login-footer.login-footer--unavailable {
    width: min(300px, calc(100vw - 48px));
    grid-template-columns: 1fr;
    margin-inline: auto;
}

.footer-card {
    min-height: 134px;
    padding: 13px 16px 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)),
        rgba(10,14,24,.36);
    backdrop-filter: blur(20px) saturate(155%);
    -webkit-backdrop-filter: blur(20px) saturate(155%);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow:
        0 18px 34px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.18);
    color: #fff;
    transition:
        transform .26s cubic-bezier(.22,1,.36,1),
        box-shadow .26s cubic-bezier(.22,1,.36,1),
        border-color .26s ease,
        background .26s ease;
    will-change: transform;
}

.footer-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 0%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
    opacity: .82;
    transition: opacity .26s ease;
}

.footer-card:hover {
    transform: translateY(-4px);
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.075)),
        rgba(10,14,24,.40);
    border-color: rgba(255,255,255,.28);
    box-shadow:
        0 28px 46px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.footer-card:hover::after {
    opacity: 1;
}

.footer-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.footer-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.footer-card-label {
    font-size: 12px;
    font-weight: 520;
    letter-spacing: .02em;
    color: rgba(255,255,255,.96);
}

.footer-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 10.5px;
    color: rgba(255,255,255,.72);
}

.footer-card-caret {
    font-size: 12px;
    color: rgba(255,255,255,.78);
}

.footer-card-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 20px;
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    letter-spacing: 1px;
    background: rgba(255,255,255,.04);
}

.footer-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fb7185;
    box-shadow: 0 0 0 0 rgba(251,113,133,.55);
    animation: haberdot 2.3s infinite;
}

.footer-service-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245,158,11,.72);
}

.promo-card-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 66px;
}

.promo-app-icon-wrap {
    width: 72px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 400px;
}

.promo-app-icon {
    width: 62px;
    height: 62px;
    display: block;
    object-fit: contain;
    transform-origin: center;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.24));
}

.promo-service-icon {
    width: 72px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-service-icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: rgba(255,255,255,.72);
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.22));
}

.promo-card--unavailable {
    cursor: default;
    border-color: rgba(245,158,11,.26);
}

.promo-card--unavailable:hover {
    transform: none;
    border-color: rgba(245,158,11,.26);
    box-shadow:
        0 18px 34px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.promo-card-unavailable-note {
    color: rgba(245,190,96,.92);
}

.promo-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.promo-card-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 17px;
    font-weight: 720;
    line-height: 1.08;
    letter-spacing: -.01em;
    color: rgba(255,255,255,.98);
}

.promo-card-slogan {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 11.5px;
    font-weight: 450;
    line-height: 1.28;
    color: rgba(255,255,255,.70);
}

.promo-card--glow .promo-app-icon {
    animation: promoLogoGlow 2.8s ease-in-out infinite;
}

.promo-card--pulse .promo-app-icon {
    animation: promoLogoPulse 2.4s ease-in-out infinite;
}

.promo-card--float .promo-app-icon {
    animation: promoLogoFloat 3.2s ease-in-out infinite;
}

@keyframes promoLogoGlow {
    0%, 100% {
        filter: drop-shadow(0 8px 14px rgba(0,0,0,.22)) drop-shadow(0 0 0 rgba(97,160,255,0));
    }
    50% {
        filter: drop-shadow(0 11px 18px rgba(0,0,0,.28)) drop-shadow(0 0 12px rgba(97,160,255,.70));
    }
}

@keyframes promoLogoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.075); }
}

@keyframes promoLogoFloat {
    0%, 100% { transform: translateY(2px) rotateX(0); }
    50% { transform: translateY(-5px) rotateX(4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .promo-card .promo-app-icon,
    .promo-card .footer-live-dot {
        animation: none !important;
    }
}

.footer-weather-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 66px;
}

.footer-weather-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.weather-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 68px;
    flex: 0 0 74px;
    filter: drop-shadow(0 9px 18px rgba(69,116,186,.24));
}

.weather-visual-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.weather-sun,
.weather-cloud,
.weather-drop {
    transform-box: fill-box;
    transform-origin: center;
}

.footer-weather-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    min-width: 0;
    text-align: right;
}

.footer-weather-temp {
    font-size: 28px;
    font-weight: 390;
    line-height: .95;
    color: #fff;
    letter-spacing: 0;
}

.footer-weather-highlow {
    font-size: 14.5px;
    font-weight: 650;
    line-height: 1.05;
    color: rgba(255,255,255,.94);
    white-space: nowrap;
}

.footer-weather-desc {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.14;
    color: rgba(255,255,255,.98);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-weather-more {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 8px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 620;
    color: #f3c892;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-card-meta {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255,255,255,.68);
}

.footer-market-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 5px;
}

.footer-market-row {
    display: grid;
    grid-template-areas:
        "name"
        "change"
        "value";
    align-content: start;
    gap: 3px;
    min-width: 0;
}

.footer-market-row:nth-child(2) {
    justify-items: center;
    text-align: center;
}

.footer-market-row:nth-child(3) {
    justify-items: end;
    text-align: right;
}

.footer-market-name {
    grid-area: name;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 680;
    color: rgba(255,255,255,.86);
}

.footer-market-change {
    grid-area: change;
    min-height: 14px;
    font-size: 11.5px;
    font-weight: 760;
    color: rgba(255,255,255,.62);
}

.footer-market-value {
    grid-area: value;
    font-size: 15.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
}

.footer-card-more {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 8px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 620;
    color: #f3c892;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-news-title,
.footer-announcement-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

.footer-news-meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: rgba(255,255,255,.66);
}

.yukari {
    color: #8ef1a5;
}

.asagi {
    color: #ff9cab;
}

@keyframes haberdot {
    0% {
        box-shadow: 0 0 0 0 rgba(251,113,133,.46);
        opacity: .9;
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251,113,133,0);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251,113,133,0);
        opacity: .8;
    }
}

.app-placeholder {
    min-height: 100vh;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #11171b;
}

.app-placeholder h1 { margin: 0 0 8px; }

.eyebrow {
    color: #58c7b1;
    font-weight: 700;
    letter-spacing: 0;
}

@media (max-width: 1200px) {
    .login-shell {
        padding-bottom: 252px;
    }

    .login-footer {
        width: min(980px, calc(100vw - 48px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-height: 880px) {
    html:has(.login-shell),
    body:has(.login-shell) {
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    .login-top-logo {
        top: 16px;
        left: 20px;
    }

    .login-top-logo span {
        font-size: clamp(26px, 2.1vw, 34px);
    }

    .login-top-logo img {
        width: 50px;
        height: 50px;
    }

    .login-shell {
        position: relative;
        inset: auto;
        min-height: 100vh;
        justify-content: flex-start;
        padding: 82px 24px 28px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .login-center-stack {
        gap: 14px;
    }

    .login-time {
        font-size: clamp(74px, 11.2vh, 108px);
    }

    .login-date {
        margin-top: 6px;
        font-size: clamp(18px, 2.3vh, 24px);
    }

    .login-card {
        padding: 22px 28px 18px;
    }

    .setup-login-card {
        padding: 18px 24px 16px;
        height: auto;
        min-height: auto;
    }

    .setup-card {
        min-height: 0;
    }

    .button-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .button-row--install {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .login-footer {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        width: min(1240px, calc(100vw - 48px));
        margin-top: 22px;
    }
}

@media (max-width: 760px) {
    html:has(.login-shell),
    body:has(.login-shell) {
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    .login-top-logo {
        top: 18px;
        left: 18px;
    }

    .login-top-logo span {
        font-size: 29px;
    }

    .login-top-logo img {
        width: 50px;
        height: 50px;
    }

    .login-shell {
        position: relative;
        justify-content: flex-start;
        padding: 88px 14px 24px;
        overflow-y: auto;
        overflow-x: hidden;
        min-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }

    .login-center-stack {
        width: 100%;
        gap: 16px;
    }

    .login-card {
        max-width: none;
        padding: 22px 20px 18px;
        border-radius: 20px;
    }

    .setup-login-card {
        padding: 18px 18px 16px;
        border-radius: 20px;
        height: auto;
        min-height: auto;
    }

    .setup-card {
        min-height: 0;
    }

    .setup-grid,
    .setup-brand-company-row,
    .setup-user-row,
    .setup-user-profile-row,
    .setup-auth-mode {
        grid-template-columns: 1fr;
    }

    .login-time {
        font-size: 72px;
    }

    .login-date {
        font-size: 18px;
    }

    .login-footer {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 28px;
        grid-template-columns: 1fr;
    }

    .footer-card {
        min-height: auto;
    }

}

@media (max-width: 520px) {
    .button-row,
    .button-row--install {
        grid-template-columns: 1fr;
    }
}

/* Kurulu uygulamada üst marka başlığı masaüstü uygulaması ölçüsünde kalır. */
@media (display-mode: standalone), (display-mode: fullscreen) {
    .login-top-logo {
        top: 16px;
        left: 24px;
        min-height: 72px;
        gap: 15px;
    }

    .login-top-logo img {
        width: 68px;
        height: 68px;
    }

    .login-top-logo span {
        font-size: clamp(40px, 3vw, 48px);
        line-height: 1;
        font-weight: 620;
    }

    .login-shell {
        padding-top: 104px;
    }
}

@media (display-mode: standalone) and (max-width: 760px),
       (display-mode: fullscreen) and (max-width: 760px) {
    .login-top-logo {
        top: 14px;
        left: 18px;
        min-height: 58px;
        gap: 12px;
    }

    .login-top-logo img {
        width: 56px;
        height: 56px;
    }

    .login-top-logo span {
        font-size: 31px;
    }

    .login-shell {
        padding-top: 88px;
    }
}
