:root {
    --black: #070707;
    --black-soft: #111111;
    --panel: rgba(14, 14, 14, 0.92);
    --panel-border: rgba(255, 126, 0, 0.32);
    --orange: #ff7900;
    --orange-bright: #ff9d2e;
    --text: #f8f8f8;
    --muted: #a9a9a9;
    --danger: #ff4d4d;
    --success: #56d884;
    --topbar-height: 72px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--black);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--black);
    -webkit-tap-highlight-color: transparent;
}

button,
input,
a {
    font: inherit;
}

a {
    color: inherit;
}

.auth-screen {
    position: relative;
    min-height: 100svh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-screen::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.9)),
        radial-gradient(circle at 50% 20%, rgba(255, 121, 0, 0.17), transparent 42%);
    pointer-events: none;
}

/* Bu üç dosyayı kendi duvar kağıtlarınla değiştir. */
.landing-screen { background-image: url('../images/landing-bg.jpg'); }
.register-screen { background-image: url('../images/register-bg.jpg'); }
.login-screen { background-image: url('../images/login-bg.jpg'); }

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.auth-card {
    width: min(100%, 430px);
    padding: 28px;
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(19, 19, 19, 0.96), rgba(5, 5, 5, 0.92));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

.landing-card {
    text-align: center;
}

.brand-mark {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    place-items: center;
    border: 2px solid var(--orange);
    border-radius: 18px;
    color: var(--orange);
    font-family: Georgia, serif;
    font-size: 44px;
    font-weight: 900;
    transform: rotate(-3deg);
    box-shadow: 0 0 32px rgba(255, 121, 0, 0.24);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--orange);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 9vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.intro-text {
    max-width: 34ch;
    margin: 18px auto 24px;
    color: #d1d1d1;
    line-height: 1.6;
}

.button-stack {
    display: grid;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.btn-primary {
    color: #100900;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    box-shadow: 0 10px 30px rgba(255, 121, 0, 0.2);
}

.btn-secondary {
    border-color: rgba(255, 121, 0, 0.5);
    color: var(--orange-bright);
    background: rgba(255, 121, 0, 0.06);
}

.back-link {
    display: inline-block;
    margin-bottom: 26px;
    color: #c8c8c8;
    font-size: 0.9rem;
    text-decoration: none;
}

.auth-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.auth-form label {
    margin-top: 5px;
    color: #d7d7d7;
    font-size: 0.84rem;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #333;
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: rgba(0, 0, 0, 0.58);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-form input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.13);
}

.input-with-counter {
    position: relative;
}

.input-with-counter input {
    padding-right: 58px;
}

.input-with-counter span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: #808080;
    font-size: 0.75rem;
    transform: translateY(-50%);
}

.form-message {
    min-height: 22px;
    margin: 4px 0 2px;
    font-size: 0.86rem;
    line-height: 1.4;
}

.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }

.switch-text {
    margin: 22px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.switch-text a {
    color: var(--orange-bright);
    font-weight: 800;
    text-decoration: none;
}

.game-screen {
    min-height: 100svh;
    background:
        radial-gradient(circle at 90% 0, rgba(255, 121, 0, 0.12), transparent 32%),
        linear-gradient(180deg, #111, #050505 60%);
}

.top-stats {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: var(--topbar-height);
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid rgba(255, 121, 0, 0.3);
    background: rgba(7, 7, 7, 0.96);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.top-stat {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.top-stat:last-child {
    border-right: 0;
}

.stat-icon {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 1;
}

/* İkonlarını bu adlarla assets/images/icons klasörüne ekle. */
.stat-icon-nam { background-image: url('../images/icons/nam.png?v=7'); }
.stat-icon-money { background-image: url('../images/icons/para.png?v=7'); }
.stat-icon-bullets { background-image: url('../images/icons/mermi.png?v=7'); }
.stat-icon-energy { background-image: url('../images/icons/enerji.png?v=7'); }
.stat-icon-health { background-image: url('../images/icons/can.png?v=7'); }
.stat-icon-wanted { background-image: url('../images/icons/aranma.png?v=11'); }

.top-stat strong {
    overflow: hidden;
    max-width: 100%;
    margin-top: 4px;
    color: var(--orange-bright);
    font-size: clamp(0.72rem, 3vw, 0.94rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-stat-name strong {
    color: var(--text);
}

.game-content {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: calc(var(--topbar-height) + env(safe-area-inset-top) + 10px) 14px max(28px, env(safe-area-inset-bottom));
}

.player-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 13px;
    border: 1px solid rgba(255, 121, 0, 0.28);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.96), rgba(9, 9, 9, 0.96));
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.36);
}

.avatar-column {
    min-width: 0;
    text-align: center;
}

.profile-image {
    display: block;
    width: 82px;
    height: 82px;
    margin: 0 auto;
    border: 2px solid var(--orange);
    border-radius: 13px;
    object-fit: cover;
    background: #151515;
    box-shadow: 0 0 28px rgba(255, 121, 0, 0.16);
}

.avatar-column h1 {
    overflow: hidden;
    margin-top: 8px;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.level-text {
    margin: 3px 0 0;
    color: var(--orange-bright);
    font-size: 0.7rem;
    font-weight: 800;
}

.progress-column {
    display: grid;
    align-content: center;
    gap: 12px;
}

.progress-item {
    min-width: 0;
}

.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.68rem;
}

.progress-label span {
    color: #bdbdbd;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.progress-label strong {
    color: #e6e6e6;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: #050505;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 300ms ease;
}

.health-fill { background: linear-gradient(90deg, #a82020, #ff4d4d); }
.energy-fill { background: linear-gradient(90deg, #bd5b00, #ff9d2e); }
.xp-fill { background: linear-gradient(90deg, #505050, #d1d1d1); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.menu-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 76px;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid #252525;
    border-radius: 12px;
    color: var(--text);
    text-align: left;
    background: linear-gradient(145deg, #171717, #0b0b0b);
    cursor: pointer;
    text-decoration: none;
}

.menu-card:active {
    border-color: var(--orange);
    transform: scale(0.99);
}

.menu-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--orange);
    font-size: 1.25rem;
    line-height: 1;
}

.menu-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.menu-card strong {
    overflow: hidden;
    font-size: 0.84rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-card small {
    overflow: hidden;
    color: #858585;
    font-size: 0.66rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-link {
    display: block;
    width: fit-content;
    margin: 22px auto 0;
    color: #8c8c8c;
    font-size: 0.86rem;
    text-decoration: none;
}

@media (max-width: 420px) {
    :root { --topbar-height: 64px; }

    .auth-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .player-card {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
    }

    .profile-image {
        width: 68px;
        height: 68px;
    }

    .progress-column {
        gap: 10px;
    }

    .stat-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .menu-card {
        min-height: 68px;
        padding: 8px 9px;
    }

    .menu-card small {
        font-size: 0.62rem;
    }
}

@media (max-width: 340px) {
    .top-stats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .player-card {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }

    .profile-image {
        width: 58px;
        height: 58px;
    }

    .menu-grid {
        gap: 6px;
    }

    .menu-card {
        grid-template-columns: 25px minmax(0, 1fr);
        min-height: 64px;
        gap: 7px;
        padding: 8px;
        border-radius: 10px;
    }

    .menu-icon {
        width: 25px;
        height: 25px;
        font-size: 1.05rem;
    }

    .menu-card strong {
        font-size: 0.76rem;
    }

    .menu-card small {
        display: none;
    }
}

/* Sokaklar görev sayfası */
.menu-card {
    text-decoration: none;
}

.streets-content {
    padding-top: calc(var(--topbar-height) + env(safe-area-inset-top) + 10px);
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.streets-heading {
    padding: 12px 2px 14px;
}

.streets-heading h1 {
    font-size: clamp(1.65rem, 7vw, 2.3rem);
}


.streets-intro {
    margin: 7px 0 0;
    color: #989898;
    font-size: 0.76rem;
    line-height: 1.45;
}

.mission-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 12px;
}

.mission-tab {
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid #292929;
    border-radius: 11px;
    color: #a0a0a0;
    text-align: left;
    background: linear-gradient(145deg, #141414, #0a0a0a);
    cursor: pointer;
}

.mission-tab strong,
.mission-tab small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mission-tab strong {
    font-size: 0.75rem;
}

.mission-tab small {
    margin-top: 2px;
    color: #666;
    font-size: 0.61rem;
}

.mission-tab.is-active {
    border-color: rgba(255, 121, 0, 0.68);
    color: var(--text);
    background: linear-gradient(145deg, rgba(255, 121, 0, 0.2), rgba(20, 12, 5, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255, 157, 46, 0.07);
}

.mission-tab.is-active small {
    color: var(--orange-bright);
}

.mission-panel {
    display: none;
}

.mission-panel.is-active {
    display: block;
    animation: mission-panel-in 150ms ease-out;
}

@keyframes mission-panel-in {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.mission-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 8px;
}

.mission-group-title h2 {
    margin: 0;
    font-size: 0.94rem;
}

.mission-group-title p {
    margin: 2px 0 0;
    color: #747474;
    font-size: 0.66rem;
}

.mission-group-title > span {
    padding: 4px 7px;
    border: 1px solid #2d2d2d;
    border-radius: 999px;
    color: #777;
    font-size: 0.62rem;
    background: #0b0b0b;
}

.mission-list {
    display: grid;
    gap: 7px;
}

.mission-card {
    display: grid;
    width: 100%;
    min-height: 58px;
    grid-template-columns: 24px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #272727;
    border-radius: 12px;
    color: var(--text);
    text-align: left;
    background: linear-gradient(145deg, rgba(23, 23, 23, 0.98), rgba(9, 9, 9, 0.98));
    cursor: pointer;
    transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.mission-card:active {
    transform: scale(0.992);
}

.mission-card:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.mission-card:not(.is-locked):hover {
    border-color: rgba(255, 121, 0, 0.42);
    background: linear-gradient(145deg, rgba(28, 22, 17, 0.98), rgba(10, 9, 8, 0.98));
}

.mission-status {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--orange);
    font-size: 0.86rem;
}

.mission-name-wrap {
    min-width: 0;
}

.mission-name-wrap strong,
.mission-name-wrap small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mission-name-wrap strong {
    font-size: 0.79rem;
}

.mission-name-wrap small {
    margin-top: 3px;
    color: #747474;
    font-size: 0.62rem;
}

.mission-level {
    color: var(--orange-bright);
    font-size: 0.61rem;
    font-weight: 900;
    white-space: nowrap;
}

.mission-chevron {
    color: #6d6d6d;
    font-size: 1.08rem;
    line-height: 1;
}

.mission-card.is-locked {
    opacity: 0.56;
}

.mission-card.is-locked .mission-status,
.mission-card.is-locked .mission-level {
    filter: grayscale(1);
}

.mission-modal-open {
    overflow: hidden;
}

.mission-modal {
    position: fixed;
    z-index: 400;
    inset: 0;
    display: grid;
    visibility: hidden;
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    opacity: 0;
    pointer-events: none;
    transition: opacity 170ms ease, visibility 170ms ease;
}

.mission-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mission-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(7px);
    cursor: default;
}

.mission-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    max-height: calc(100svh - 36px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(255, 121, 0, 0.48);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 0, rgba(255, 121, 0, 0.14), transparent 35%),
        linear-gradient(145deg, #181818, #080808 72%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), inset 0 1px rgba(255, 255, 255, 0.04);
    transform: translateY(12px) scale(0.98);
    transition: transform 190ms ease;
}

.mission-modal.is-open .mission-modal-card {
    transform: translateY(0) scale(1);
}

.mission-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.mission-modal-eyebrow {
    margin: 0 0 4px;
    color: var(--orange);
    font-size: 0.61rem;
    font-weight: 950;
    letter-spacing: 0.15em;
}

.mission-modal-header h2 {
    margin: 0;
    font-size: clamp(1.2rem, 5vw, 1.55rem);
    line-height: 1.08;
}

.mission-modal-close {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0 0 3px;
    border: 1px solid rgba(255, 121, 0, 0.38);
    border-radius: 10px;
    color: var(--orange-bright);
    font-size: 1.65rem;
    line-height: 1;
    background: rgba(255, 121, 0, 0.08);
    cursor: pointer;
}

.mission-visual-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: #090909;
}

.mission-visual {
    display: block;
    width: 100%;
    height: clamp(190px, 46vw, 245px);
    object-fit: cover;
    background: #0c0c0c;
}

.mission-visual-wrap::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
    pointer-events: none;
}

.mission-visual-level {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 121, 0, 0.58);
    border-radius: 999px;
    color: var(--orange-bright);
    font-size: 0.67rem;
    font-weight: 950;
    background: rgba(7, 7, 7, 0.88);
}

.mission-modal-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.mission-modal-stat {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.mission-modal-stat-icon {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: #160b00;
    font-size: 0.9rem;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
}

.mission-modal-stat span:last-child {
    min-width: 0;
}

.mission-modal-stat small,
.mission-modal-stat strong,
.mission-modal-reward small,
.mission-modal-reward strong {
    display: block;
}

.mission-modal-stat small,
.mission-modal-reward small {
    color: #777;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.mission-modal-stat strong {
    margin-top: 3px;
    color: #f2f2f2;
    font-size: 0.9rem;
}

.mission-modal-reward {
    margin-top: 9px;
    padding: 12px;
    border: 1px solid rgba(255, 121, 0, 0.24);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 121, 0, 0.09), rgba(255, 121, 0, 0.025));
}

.mission-modal-reward strong {
    margin-top: 5px;
    color: var(--orange-bright);
    font-size: 0.82rem;
    line-height: 1.45;
}

.mission-modal-action {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border: 1px solid rgba(255, 121, 0, 0.2);
    border-radius: 11px;
    color: #8b6746;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    background: #26180c;
}

.mission-modal-action.is-locked {
    color: #777;
    border-color: #2b2b2b;
    background: #171717;
}

@media (max-width: 360px) {
    .mission-card {
        grid-template-columns: 21px minmax(0, 1fr) auto 15px;
        gap: 6px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .mission-modal-card {
        padding: 13px;
        border-radius: 17px;
    }

    .mission-modal-stats {
        gap: 7px;
    }

    .mission-modal-stat {
        gap: 7px;
        padding: 9px 8px;
    }

    .mission-modal-stat-icon {
        width: 28px;
        height: 28px;
    }
}

.bottom-home-nav {
    position: fixed;
    z-index: 110;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    padding: 8px 14px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 121, 0, 0.28);
    background: rgba(7, 7, 7, 0.97);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
}

.bottom-home-button {
    display: inline-flex;
    width: min(100%, 420px);
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 121, 0, 0.58);
    border-radius: 12px;
    color: #160b00;
    text-decoration: none;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    box-shadow: 0 8px 24px rgba(255, 121, 0, 0.16);
}

.bottom-home-button:active {
    transform: scale(0.99);
}

.bottom-home-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.bottom-home-button strong {
    font-size: 0.8rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .mission-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .mission-tab {
        padding: 8px 7px;
    }

    .mission-tab strong {
        font-size: 0.69rem;
    }
}

/* Görev penceresi: düzenlenmiş temel ödül alanı */
.mission-modal-reward {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 121, 0, 0.32);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 121, 0, 0.13), transparent 42%),
        linear-gradient(145deg, rgba(28, 18, 9, 0.96), rgba(10, 10, 10, 0.98));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.mission-reward-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.mission-reward-heading-icon {
    display: grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 157, 46, 0.45);
    border-radius: 9px;
    color: var(--orange-bright);
    font-size: 0.72rem;
    background: rgba(255, 121, 0, 0.1);
    box-shadow: 0 0 18px rgba(255, 121, 0, 0.09);
}

.mission-reward-heading > span:last-child {
    min-width: 0;
}

.mission-reward-heading small,
.mission-reward-heading strong {
    display: block;
}

.mission-reward-heading small {
    color: #7c7c7c;
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.11em;
}

.mission-reward-heading strong {
    margin-top: 2px;
    color: #f3f3f3;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.045em;
}

.mission-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mission-reward-grid[data-reward-count="1"] {
    grid-template-columns: 1fr;
}

.mission-reward-grid[data-reward-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-reward-grid[data-reward-count="3"] .mission-reward-item:last-child {
    grid-column: 1 / -1;
}

.mission-reward-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
}

.mission-reward-item[hidden] {
    display: none;
}

.mission-reward-icon {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 950;
}

.mission-reward-icon-money {
    color: #180d00;
    background: linear-gradient(135deg, #ffc15c, var(--orange));
    box-shadow: 0 6px 17px rgba(255, 121, 0, 0.15);
}

.mission-reward-icon-nam {
    color: #0a0a0a;
    background: linear-gradient(135deg, #f1f1f1, #8e8e8e);
    box-shadow: 0 6px 17px rgba(255, 255, 255, 0.08);
}

.mission-reward-icon-bonus {
    color: var(--orange-bright);
    border: 1px solid rgba(255, 121, 0, 0.42);
    background: rgba(255, 121, 0, 0.09);
}

.mission-reward-copy {
    min-width: 0;
}

.mission-reward-copy small,
.mission-reward-copy strong {
    display: block;
}

.mission-reward-copy small {
    color: #777;
    font-size: 0.53rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.mission-reward-copy strong {
    overflow: hidden;
    margin-top: 3px;
    color: #f5f5f5;
    font-size: clamp(0.72rem, 3.5vw, 0.9rem);
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 350px) {
    .mission-modal-reward {
        padding: 10px;
    }

    .mission-reward-item {
        gap: 7px;
        padding: 8px;
    }

    .mission-reward-icon {
        width: 30px;
        height: 30px;
    }
}

/* Görev başarı ihtimali hesap dökümü */
.mission-success-breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 8px;
}

.mission-success-breakdown > span {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;
    color: #777;
    font-size: 0.58rem;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.025);
}

.mission-success-breakdown strong {
    color: #e9e9e9;
    font-size: 0.67rem;
    white-space: nowrap;
}

.mission-success-breakdown > span:nth-child(2) strong,
.mission-success-breakdown > span:nth-child(3) strong {
    color: var(--orange-bright);
}

.mission-success-breakdown .mission-streak-info {
    grid-column: 1 / -1;
    justify-content: center;
    border-color: rgba(255, 121, 0, 0.22);
    color: #b98759;
    background: rgba(255, 121, 0, 0.055);
}

.mission-success-breakdown .mission-streak-info[hidden] {
    display: none;
}

@media (max-width: 350px) {
    .mission-success-breakdown {
        gap: 5px;
    }

    .mission-success-breakdown > span {
        padding: 6px;
        font-size: 0.53rem;
    }

    .mission-success-breakdown strong {
        font-size: 0.61rem;
    }
}

/* Aktif sokak görevi butonu ve sonuç bildirimi */
.mission-modal-action:not(:disabled) {
    color: #150b00;
    border-color: rgba(255, 157, 46, 0.72);
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    box-shadow: 0 9px 25px rgba(255, 121, 0, 0.2);
    cursor: pointer;
}

.mission-modal-action:not(:disabled):active {
    transform: translateY(1px) scale(0.995);
}

.mission-modal-action:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.mission-modal-action.is-energy-low {
    color: #a8a8a8;
    border-color: #303030;
    background: #191919;
    box-shadow: none;
}

.mission-result {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #333;
    border-radius: 11px;
    color: #d4d4d4;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
}

.mission-result[hidden] {
    display: none;
}

.mission-result.is-success {
    color: #8cf0ae;
    border-color: rgba(86, 216, 132, 0.4);
    background: rgba(25, 105, 56, 0.18);
}

.mission-result.is-failure {
    color: #ffb06a;
    border-color: rgba(255, 121, 0, 0.4);
    background: rgba(133, 58, 0, 0.2);
}

.mission-result.is-error {
    color: #ff8585;
    border-color: rgba(255, 77, 77, 0.38);
    background: rgba(120, 20, 20, 0.18);
}

/* Görev kartı yanındaki hızlı görev işlemi */
.mission-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    align-items: stretch;
    gap: 7px;
}

.quick-mission-button {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 6px;
    border: 1px solid rgba(255, 121, 0, 0.48);
    border-radius: 12px;
    color: #160b00;
    font-size: 0.63rem;
    font-weight: 950;
    line-height: 1.05;
    text-align: center;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    box-shadow: 0 6px 18px rgba(255, 121, 0, 0.13);
    cursor: pointer;
    transition: transform 140ms ease, opacity 140ms ease, border-color 140ms ease;
}

.quick-mission-button:not(:disabled):active {
    transform: scale(0.98);
}

.quick-mission-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.quick-mission-button:disabled {
    color: #777;
    border-color: #2d2d2d;
    background: linear-gradient(145deg, #1b1b1b, #101010);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
}

.quick-mission-button.is-busy {
    color: #d18b48;
    border-color: rgba(255, 121, 0, 0.3);
    background: #24170c;
}

.quick-mission-toast {
    position: fixed;
    z-index: 350;
    right: 14px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 14px;
    width: min(calc(100% - 28px), 460px);
    margin: 0 auto;
    padding: 11px 13px;
    border: 1px solid rgba(255, 121, 0, 0.4);
    border-radius: 12px;
    color: #ffd1a6;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.4;
    text-align: center;
    background: rgba(34, 20, 8, 0.97);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.52);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.quick-mission-toast[hidden] {
    display: none;
}

.quick-mission-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.quick-mission-toast.is-success {
    color: #8cf0ae;
    border-color: rgba(86, 216, 132, 0.42);
    background: rgba(14, 66, 35, 0.97);
}

.quick-mission-toast.is-failure {
    color: #ffbd80;
    border-color: rgba(255, 121, 0, 0.48);
    background: rgba(91, 40, 4, 0.97);
}

.quick-mission-toast.is-error {
    color: #ff9b9b;
    border-color: rgba(255, 77, 77, 0.42);
    background: rgba(75, 17, 17, 0.97);
}

@media (max-width: 360px) {
    .mission-row {
        grid-template-columns: minmax(0, 1fr) 76px;
        gap: 5px;
    }

    .quick-mission-button {
        min-height: 58px;
        padding: 6px 4px;
        font-size: 0.56rem;
    }
}

/* Görev bekleme süresi */
.mission-cooldown-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 121, 0, 0.22);
    border-radius: 10px;
    background: rgba(255, 121, 0, 0.055);
}

.mission-cooldown-info > span {
    color: var(--orange-bright);
    font-size: 1rem;
    line-height: 1;
}

.mission-cooldown-info small {
    color: #8f8f8f;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.mission-cooldown-info strong {
    color: #f0f0f0;
    font-size: 0.75rem;
}

.mission-modal-action.is-cooldown,
.quick-mission-button.is-cooldown {
    color: #ffbd80;
    border-color: rgba(255, 121, 0, 0.32);
    background: linear-gradient(145deg, #27180c, #17100a);
    box-shadow: none;
    opacity: 1;
}

.quick-mission-button.is-cooldown [data-quick-label] {
    font-variant-numeric: tabular-nums;
}

[data-mission-card-subtitle] {
    font-variant-numeric: tabular-nums;
}

/* Özel Görevler — saatli toplama yarışmaları */
.special-missions-content {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.special-missions-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.special-missions-heading .eyebrow {
    margin: 0;
}

.special-missions-heading > span {
    color: #777;
    font-size: 0.67rem;
    font-weight: 800;
}

.special-setup-warning {
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 77, 77, 0.38);
    border-radius: 12px;
    color: #ffaaaa;
    font-size: 0.75rem;
    line-height: 1.45;
    background: rgba(100, 18, 18, 0.2);
}

.special-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.special-mission-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 214px;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid #292929;
    border-radius: 15px;
    color: var(--text);
    text-align: left;
    background: linear-gradient(145deg, #171717, #090909);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.special-mission-card.is-active {
    border-color: rgba(255, 121, 0, 0.72);
    box-shadow: 0 0 0 1px rgba(255, 121, 0, 0.12), 0 14px 38px rgba(0, 0, 0, 0.38);
}

.special-mission-card:active {
    transform: scale(0.992);
}

.special-card-visual {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.4;
    overflow: hidden;
    background: #101010;
}

.special-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85));
    pointer-events: none;
}

.special-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.06);
}

.special-card-status {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    border: 1px solid #3a3a3a;
    border-radius: 999px;
    color: #8a8a8a;
    font-size: 0.53rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    background: rgba(7, 7, 7, 0.88);
}

.special-mission-card.is-active .special-card-status {
    color: #160b00;
    border-color: var(--orange-bright);
    background: var(--orange-bright);
    box-shadow: 0 0 16px rgba(255, 121, 0, 0.32);
}

.special-card-copy {
    display: block;
    min-width: 0;
    padding: 10px 10px 7px;
}

.special-card-copy strong,
.special-card-copy small,
.special-card-timer {
    display: block;
}

.special-card-copy strong {
    overflow: hidden;
    font-size: clamp(0.78rem, 3.4vw, 0.95rem);
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.special-card-copy small {
    margin-top: 4px;
    color: #8a8a8a;
    font-size: 0.59rem;
    font-weight: 800;
}

.special-card-timer {
    margin-top: 5px;
    color: var(--orange-bright);
    font-size: 0.62rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.special-card-prize {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: auto;
    padding: 0 10px 10px;
}

.special-card-prize b {
    overflow: hidden;
    padding: 6px 5px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 8px;
    color: #bcbcbc;
    font-size: 0.55rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.025);
}

.special-card-prize b:first-child {
    color: #e6e6e6;
}

.special-card-prize b:last-child {
    color: #ffb36c;
}

.special-rules-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 121, 0, 0.18);
    border-radius: 12px;
    background: rgba(255, 121, 0, 0.035);
}

.special-rules-note strong {
    flex: 0 0 auto;
    color: var(--orange-bright);
    font-size: 0.67rem;
}

.special-rules-note span {
    color: #8d8d8d;
    font-size: 0.64rem;
    line-height: 1.45;
}

.special-modal {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
}

.special-modal.is-open {
    display: flex;
}

.special-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(7px);
}

.special-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100svh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(255, 121, 0, 0.42);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(25, 25, 25, 0.99), rgba(6, 6, 6, 0.99));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
    overscroll-behavior: contain;
}

.special-modal-open {
    overflow: hidden;
}

.special-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.special-modal-header p,
.special-modal-header h2 {
    margin: 0;
}

.special-modal-header p {
    color: var(--orange);
    font-size: 0.56rem;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.special-modal-header h2 {
    margin-top: 3px;
    font-size: clamp(1.15rem, 5.5vw, 1.55rem);
    line-height: 1.05;
}

.special-modal-close {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #383838;
    border-radius: 10px;
    color: #d6d6d6;
    font-size: 1.35rem;
    line-height: 1;
    background: #151515;
    cursor: pointer;
}

.special-modal-visual-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 8.3;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background: #080808;
}

.special-modal-visual-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.special-modal-visual-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-modal-visual-wrap > span {
    position: absolute;
    z-index: 2;
    right: 9px;
    bottom: 9px;
    padding: 5px 9px;
    border: 1px solid #3b3b3b;
    border-radius: 999px;
    color: #8e8e8e;
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    background: rgba(7, 7, 7, 0.88);
}

.special-modal-visual-wrap > span.is-active {
    color: #160b00;
    border-color: var(--orange-bright);
    background: var(--orange-bright);
}

.special-modal-schedule {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 121, 0, 0.2);
    border-radius: 11px;
    background: rgba(255, 121, 0, 0.045);
}

.special-modal-schedule > span {
    color: var(--orange-bright);
    font-size: 1.1rem;
}

.special-modal-schedule small,
.special-modal-schedule strong {
    display: block;
}

.special-modal-schedule small {
    color: #777;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.special-modal-schedule strong {
    margin-top: 2px;
    color: #e8e8e8;
    font-size: 0.68rem;
}

.special-modal-schedule > b {
    color: var(--orange-bright);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.special-prize-grid,
.special-score-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.special-prize-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.03);
}

.special-prize-item > span {
    display: grid;
    flex: 0 0 auto;
    width: 33px;
    height: 33px;
    place-items: center;
    border-radius: 9px;
    color: #0d0d0d;
    font-weight: 950;
    background: linear-gradient(135deg, #f3f3f3, #8c8c8c);
}

.special-prize-item:last-child > span {
    color: #180c00;
    background: linear-gradient(135deg, #ffbd5e, var(--orange));
}

.special-prize-item small,
.special-prize-item strong {
    display: block;
}

.special-prize-item small {
    color: #707070;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.special-prize-item strong {
    margin-top: 3px;
    color: #f1f1f1;
    font-size: 0.78rem;
}

.special-score-strip > div {
    padding: 9px 10px;
    border: 1px solid rgba(255, 121, 0, 0.16);
    border-radius: 10px;
    text-align: center;
    background: rgba(255, 121, 0, 0.035);
}

.special-score-strip small,
.special-score-strip strong {
    display: block;
}

.special-score-strip small {
    color: #777;
    font-size: 0.51rem;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.special-score-strip strong {
    overflow: hidden;
    margin-top: 3px;
    color: var(--orange-bright);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.special-question-panel,
.special-inactive-panel {
    margin-top: 9px;
    padding: 12px;
    border: 1px solid rgba(255, 121, 0, 0.35);
    border-radius: 13px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 121, 0, 0.09), rgba(255, 121, 0, 0.025));
}

.special-question-panel[hidden],
.special-inactive-panel[hidden] {
    display: none;
}

.special-question-panel-top,
.special-inactive-panel-top {
    margin-top: 0;
    margin-bottom: 9px;
}

.special-question-panel-top {
    box-shadow: 0 12px 32px rgba(255, 121, 0, 0.08);
}

.special-question-panel > small {
    color: #a16f42;
    font-size: 0.56rem;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.special-question-panel > strong {
    display: block;
    margin: 8px 0 11px;
    color: #fff;
    font-size: clamp(1.65rem, 9vw, 2.35rem);
    font-weight: 950;
    letter-spacing: 0.02em;
}

.special-question-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.special-question-panel input {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #383838;
    border-radius: 10px;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
    background: rgba(0, 0, 0, 0.52);
}

.special-question-panel input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
}

.special-question-panel button {
    min-width: 104px;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--orange-bright);
    border-radius: 10px;
    color: #160b00;
    font-size: 0.7rem;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    cursor: pointer;
}

.special-question-panel button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.special-answer-result {
    margin-top: 8px;
    padding: 8px 9px;
    border: 1px solid #353535;
    border-radius: 9px;
    color: #c8c8c8;
    font-size: 0.67rem;
    font-weight: 850;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.38);
}

.special-answer-result[hidden] {
    display: none;
}

.special-answer-result.is-success {
    color: #8cf0ae;
    border-color: rgba(86, 216, 132, 0.4);
    background: rgba(25, 105, 56, 0.18);
}

.special-answer-result.is-failure {
    color: #ffc083;
    border-color: rgba(255, 121, 0, 0.42);
    background: rgba(133, 58, 0, 0.18);
}

.special-answer-result.is-error {
    color: #ff9999;
    border-color: rgba(255, 77, 77, 0.38);
    background: rgba(120, 20, 20, 0.18);
}

.special-answer-result.is-info {
    color: #d8b48f;
    border-color: rgba(255, 121, 0, 0.24);
    background: rgba(77, 42, 11, 0.18);
}

.special-inactive-panel strong,
.special-inactive-panel span {
    display: block;
}

.special-inactive-panel strong {
    color: #b8b8b8;
    font-size: 0.77rem;
}

.special-inactive-panel span {
    margin-top: 5px;
    color: #777;
    font-size: 0.64rem;
    line-height: 1.45;
}

.special-leaderboard {
    margin-top: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.special-leaderboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.special-leaderboard-title strong {
    color: #d9d9d9;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.special-leaderboard-title small {
    color: #676767;
    font-size: 0.57rem;
}

.special-leaderboard ol {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.special-leaderboard li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    color: #999;
    font-size: 0.66rem;
    background: rgba(255, 255, 255, 0.025);
}

.special-leaderboard li:first-child {
    color: #ffd2a8;
    background: rgba(255, 121, 0, 0.08);
}

.special-leaderboard li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.special-leaderboard li b {
    color: var(--orange-bright);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
    .special-mission-card {
        min-height: 198px;
    }

    .special-card-prize {
        grid-template-columns: 1fr;
    }

    .special-card-prize b {
        padding: 5px;
    }
}

@media (max-width: 350px) {
    .special-mission-grid {
        gap: 7px;
    }

    .special-mission-card {
        min-height: 188px;
        border-radius: 13px;
    }

    .special-card-copy {
        padding: 8px 8px 6px;
    }

    .special-card-prize {
        padding: 0 8px 8px;
    }

    .special-question-panel form {
        grid-template-columns: 1fr;
    }

    .special-question-panel button {
        width: 100%;
    }
}

/* İlk 5 özel görev ödülleri */
.special-rank-rewards {
    margin-top: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 121, 0, 0.22);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 121, 0, 0.055), rgba(255, 255, 255, 0.02));
}

.special-rank-rewards-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.special-rank-rewards-title strong {
    color: var(--orange-bright);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.special-rank-rewards-title small {
    color: #6f6f6f;
    font-size: 0.5rem;
}

.special-rank-rewards ol {
    display: grid;
    gap: 5px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.special-rank-rewards li {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.22);
}

.special-rank-rewards li span {
    display: grid;
    width: 27px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    color: #1a0c00;
    font-size: 0.67rem;
    font-weight: 950;
    background: linear-gradient(135deg, #ffb84f, var(--orange));
}

.special-rank-rewards li strong {
    overflow: hidden;
    color: #eeeeee;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.special-rank-rewards li:nth-child(2) span {
    color: #111;
    background: linear-gradient(135deg, #f2f2f2, #8c8c8c);
}

.special-rank-rewards li:nth-child(3) span {
    color: #160b03;
    background: linear-gradient(135deg, #d89459, #82502b);
}

.special-rank-rewards li:nth-child(n+4) span {
    color: #ddd;
    background: #262626;
}

/* Restoran enerji satın alma sistemi */
.top-stat-button {
    width: 100%;
    margin: 0;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    color: inherit;
    background: transparent;
    appearance: none;
    cursor: pointer;
}

.top-stat-button:active,
.top-stat-button:focus-visible {
    background: rgba(255, 121, 0, 0.1);
}

.top-stat-button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.restaurant-modal {
    position: fixed;
    z-index: 520;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.restaurant-modal.is-open {
    display: flex;
}

.restaurant-modal-open {
    overflow: hidden;
}

.restaurant-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.restaurant-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 680px);
    max-height: 94svh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    border: 1px solid rgba(255, 121, 0, 0.48);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 121, 0, 0.13), transparent 34%),
        linear-gradient(155deg, #181818, #080808 72%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.restaurant-modal.is-open .restaurant-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.restaurant-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.restaurant-modal-header p,
.restaurant-modal-header h2 {
    margin: 0;
}

.restaurant-modal-header p {
    color: var(--orange-bright);
    font-size: 0.63rem;
    font-weight: 950;
    letter-spacing: 0.15em;
}

.restaurant-modal-header h2 {
    margin-top: 3px;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.restaurant-modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 121, 0, 0.34);
    border-radius: 11px;
    color: #f5f5f5;
    background: rgba(255, 121, 0, 0.08);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.restaurant-hero {
    position: relative;
    min-height: 142px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 149, 46, 0.27), transparent 34%),
        linear-gradient(135deg, #2a1708, #090909 70%);
}

.restaurant-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.87));
    pointer-events: none;
}

.restaurant-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 142px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 17px;
    text-align: right;
}

.restaurant-hero-copy span {
    color: var(--orange-bright);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.restaurant-hero-copy strong {
    max-width: 28ch;
    margin-top: 5px;
    font-size: 0.85rem;
    line-height: 1.35;
}

.restaurant-wallet-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.restaurant-wallet-strip > span {
    display: flex;
    min-width: 0;
    min-height: 53px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.28);
}

.restaurant-wallet-strip small {
    color: #777;
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.restaurant-wallet-strip strong {
    overflow: hidden;
    max-width: 100%;
    margin-top: 3px;
    color: var(--orange-bright);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.restaurant-setup-warning {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 77, 77, 0.35);
    border-radius: 10px;
    color: #ffb0b0;
    background: rgba(120, 0, 0, 0.16);
    font-size: 0.72rem;
    line-height: 1.45;
}

.restaurant-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.restaurant-product {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
    border: 1px solid rgba(255, 121, 0, 0.17);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(27, 27, 27, 0.96), rgba(8, 8, 8, 0.96));
}

.restaurant-product-image {
    position: relative;
    min-height: 70px;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 157, 46, 0.28), transparent 40%),
        #111;
}

.restaurant-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-product-image b {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #150b00;
    background: var(--orange-bright);
    font-size: 0.59rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.restaurant-product-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.restaurant-product-copy strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.restaurant-product-copy span {
    margin-top: 3px;
    color: var(--orange-bright);
    font-size: 0.69rem;
    font-weight: 900;
}

.restaurant-product-copy small {
    margin-top: 3px;
    color: #858585;
    font-size: 0.59rem;
}

.restaurant-buy-button {
    grid-column: 1 / -1;
    min-height: 34px;
    border: 1px solid rgba(255, 121, 0, 0.48);
    border-radius: 9px;
    color: #160b00;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    font-size: 0.65rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.restaurant-buy-button:disabled {
    border-color: #292929;
    color: #666;
    background: #151515;
    cursor: not-allowed;
}

.restaurant-challenge {
    margin-top: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 121, 0, 0.4);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 121, 0, 0.13), transparent 43%),
        rgba(0, 0, 0, 0.44);
}

.restaurant-challenge-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.restaurant-challenge-heading span {
    color: #858585;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.restaurant-challenge-heading strong {
    color: var(--orange-bright);
    font-size: 0.75rem;
}

.restaurant-challenge > p {
    margin: 6px 0 0;
    color: #9c9c9c;
    font-size: 0.68rem;
}

.restaurant-question {
    display: grid;
    min-height: 76px;
    margin-top: 10px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    background: #060606;
    font-size: clamp(1.65rem, 8vw, 2.3rem);
    font-weight: 950;
    letter-spacing: 0.03em;
    box-shadow: inset 0 0 28px rgba(255, 121, 0, 0.08);
}

.restaurant-challenge form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 9px;
}

.restaurant-challenge input {
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #333;
    border-radius: 10px;
    outline: none;
    color: #fff;
    background: #0b0b0b;
    font-size: 1rem;
    font-weight: 850;
}

.restaurant-challenge input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
}

.restaurant-challenge form button {
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    color: #180c00;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    font-size: 0.66rem;
    font-weight: 950;
    cursor: pointer;
}

.restaurant-challenge form button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.restaurant-challenge-cancel {
    display: block;
    margin: 8px auto 0;
    border: 0;
    color: #858585;
    background: transparent;
    font-size: 0.67rem;
    cursor: pointer;
}

.restaurant-result {
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
}

.restaurant-result.is-success {
    color: #88efaa;
    background: rgba(24, 120, 62, 0.17);
}

.restaurant-result.is-error {
    color: #ff9d9d;
    background: rgba(130, 0, 0, 0.17);
}

@media (max-width: 520px) {
    .restaurant-modal-card {
        padding: 13px;
        border-radius: 17px;
    }

    .restaurant-hero,
    .restaurant-hero-copy {
        min-height: 118px;
    }

    .restaurant-product {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 7px;
        padding: 7px;
    }

    .restaurant-product-image {
        min-height: 61px;
    }
}

@media (max-width: 360px) {
    .restaurant-product-grid {
        grid-template-columns: 1fr;
    }

    .restaurant-challenge form {
        grid-template-columns: 1fr;
    }
}

/* İşletmeler */
.businesses-content {
    padding-bottom: calc(105px + env(safe-area-inset-bottom));
}

.businesses-heading {
    margin-bottom: 14px;
}

.businesses-heading h1 {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
}

.businesses-heading > span {
    display: block;
    margin-top: 7px;
    color: #969696;
    font-size: 0.78rem;
    line-height: 1.45;
}

.business-setup-warning {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 121, 0, 0.35);
    border-radius: 12px;
    color: #ffc58c;
    background: rgba(255, 121, 0, 0.08);
    font-size: 0.72rem;
    line-height: 1.45;
}

.business-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
    padding: 4px;
    border: 1px solid #252525;
    border-radius: 13px;
    background: #090909;
}

.business-tab {
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    color: #898989;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.business-tab b {
    display: inline-grid;
    min-width: 20px;
    min-height: 20px;
    margin-left: 4px;
    place-items: center;
    border-radius: 999px;
    color: #111;
    background: #666;
    font-size: 0.65rem;
}

.business-tab.is-active {
    color: #160b00;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
}

.business-tab.is-active b {
    background: rgba(0, 0, 0, 0.24);
}

.business-tab-panel[hidden] {
    display: none !important;
}

.business-purchase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.business-purchase-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 15px;
    background: linear-gradient(145deg, #171717, #090909);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24);
}

.business-purchase-card.is-owned {
    border-color: rgba(255, 121, 0, 0.36);
}

.business-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 121, 0, 0.28), transparent 48%),
        #0b0b0b url('../images/businesses/default-business.svg') center / cover no-repeat;
}

.business-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
}

.business-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card-image span {
    position: absolute;
    z-index: 1;
    right: 8px;
    bottom: 8px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 121, 0, 0.45);
    border-radius: 8px;
    color: var(--orange-bright);
    background: rgba(0, 0, 0, 0.72);
    font-size: 0.64rem;
    font-weight: 950;
}

.business-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 10px;
}

.business-card-copy > strong {
    font-size: 0.93rem;
}

.business-card-copy > p {
    min-height: 34px;
    margin: 5px 0 9px;
    color: #8d8d8d;
    font-size: 0.65rem;
    line-height: 1.35;
}

.business-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: auto;
}

.business-card-stats span {
    display: grid;
    gap: 3px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9px;
    background: #080808;
}

.business-card-stats small {
    color: #707070;
    font-size: 0.53rem;
    font-weight: 900;
}

.business-card-stats b {
    color: #efefef;
    font-size: 0.73rem;
}

.business-purchase-button {
    min-height: 40px;
    margin: 0 10px 10px;
    border: 0;
    border-radius: 10px;
    color: #160b00;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    font-size: 0.65rem;
    font-weight: 950;
    cursor: pointer;
}

.business-purchase-button:disabled {
    color: #686868;
    background: #1d1d1d;
    cursor: not-allowed;
}

.business-empty-state {
    display: grid;
    min-height: 190px;
    place-content: center;
    gap: 7px;
    padding: 24px;
    border: 1px dashed #333;
    border-radius: 16px;
    color: #aaa;
    text-align: center;
    background: rgba(10, 10, 10, 0.72);
}

.business-empty-state strong {
    color: #eee;
}

.business-empty-state span {
    font-size: 0.76rem;
}

.owned-business-grid {
    display: grid;
    gap: 9px;
}

.owned-business-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 22px;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 8px;
    border: 1px solid #282828;
    border-radius: 14px;
    color: #fff;
    text-align: left;
    background: linear-gradient(145deg, #181818, #090909);
    cursor: pointer;
}

.owned-business-card:active {
    border-color: var(--orange);
    transform: scale(0.995);
}

.owned-business-image {
    display: block;
    width: 96px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #0a0a0a url('../images/businesses/default-business.svg') center / cover no-repeat;
}

.owned-business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owned-business-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.owned-business-copy strong {
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owned-business-copy small {
    color: #969696;
    font-size: 0.66rem;
}

.owned-business-copy b {
    color: var(--orange-bright);
    font-size: 0.72rem;
}

.owned-business-arrow {
    color: #666;
    font-size: 1.7rem;
}

.business-modal {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.business-modal.is-open {
    display: flex;
}

.business-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(7px);
}

.business-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 590px);
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(255, 121, 0, 0.38);
    border-radius: 19px;
    background: linear-gradient(145deg, #171717, #070707);
    box-shadow: 0 25px 90px rgba(0, 0, 0, 0.72);
}

body.business-modal-open {
    overflow: hidden;
}

.business-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.business-modal-header p {
    margin: 0 0 3px;
    color: var(--orange);
    font-size: 0.6rem;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.business-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.business-modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #333;
    border-radius: 10px;
    color: #ddd;
    background: #0b0b0b;
    font-size: 1.35rem;
    cursor: pointer;
}

.business-modal-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    background: #090909 url('../images/businesses/default-business.svg') center / cover no-repeat;
}

.business-modal-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-income-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.business-income-strip span {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255, 121, 0, 0.16);
    border-radius: 11px;
    background: rgba(255, 121, 0, 0.045);
}

.business-income-strip small {
    color: #858585;
    font-size: 0.57rem;
    font-weight: 950;
}

.business-income-strip strong {
    min-height: 1.1em;
    color: var(--orange-bright);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.business-collect-button {
    width: 100%;
    min-height: 43px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    color: #140a00;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    font-size: 0.69rem;
    font-weight: 950;
    cursor: pointer;
}

.business-collect-button:disabled {
    color: #686868;
    background: #1e1e1e;
    cursor: not-allowed;
}

.business-upgrade-panel {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 11px;
    margin-top: 11px;
    padding: 10px;
    border: 1px solid #292929;
    border-radius: 13px;
    background: #0b0b0b;
}

.business-unit-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    min-height: 0;
    overflow: hidden;
    align-self: start;
    border-radius: 10px;
    background: #111 url('../images/businesses/default-business.svg') center / cover no-repeat;
}

.business-unit-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.business-unit-copy {
    min-width: 0;
}

.business-unit-copy > small {
    color: var(--orange);
    font-size: 0.55rem;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.business-unit-copy h3 {
    margin: 4px 0;
    font-size: 1rem;
}

.business-unit-copy p {
    margin: 0;
    color: #858585;
    font-size: 0.66rem;
    line-height: 1.4;
}

.business-unit-progress {
    display: grid;
    gap: 5px;
    margin-top: 9px;
}

.business-unit-progress > span {
    color: #bbb;
    font-size: 0.65rem;
}

.business-unit-progress > div {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #020202;
}

.business-unit-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b74f00, var(--orange-bright));
}

.business-unit-copy button {
    width: 100%;
    min-height: 39px;
    margin-top: 9px;
    border: 1px solid rgba(255, 121, 0, 0.4);
    border-radius: 9px;
    color: var(--orange-bright);
    background: rgba(255, 121, 0, 0.07);
    font-size: 0.62rem;
    font-weight: 950;
    cursor: pointer;
}

.business-unit-copy button:disabled {
    color: #666;
    border-color: #292929;
    background: #151515;
    cursor: not-allowed;
}

.business-result {
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
}

.business-result.is-success {
    color: #88efaa;
    background: rgba(24, 120, 62, 0.17);
}

.business-result.is-error {
    color: #ff9d9d;
    background: rgba(130, 0, 0, 0.17);
}

@media (max-width: 440px) {
    .business-purchase-grid {
        grid-template-columns: 1fr;
    }

    .business-purchase-card {
        display: flex;
        flex-direction: column;
    }

    .business-card-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .business-card-image img {
        width: 100%;
        height: 100%;
    }

    .business-card-copy > p {
        min-height: 0;
    }

    .business-upgrade-panel {
        grid-template-columns: 1fr;
    }

    .business-unit-image {
        width: 100%;
        aspect-ratio: 3 / 2;
    }
}

/* İşletme koruma sistemi */
.business-modal-title-area {
    min-width: 0;
    flex: 1;
}

.business-modal-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.business-modal-title-row h2 {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-guard-button {
    display: inline-flex;
    min-height: 31px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid rgba(255, 121, 0, 0.42);
    border-radius: 999px;
    color: var(--orange-bright);
    background: rgba(255, 121, 0, 0.08);
    font-size: 0.56rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.business-guard-button b {
    display: grid;
    min-width: 20px;
    min-height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    color: #130900;
    background: var(--orange-bright);
    font-size: 0.62rem;
}

.business-guard-modal {
    position: fixed;
    z-index: 560;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.business-guard-modal.is-open {
    display: flex;
}

.business-guard-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.business-guard-card {
    position: relative;
    z-index: 1;
    width: min(100%, 660px);
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(255, 121, 0, 0.42);
    border-radius: 19px;
    background: linear-gradient(145deg, #171717, #060606);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.8);
}

.business-guard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.business-guard-header p {
    margin: 0 0 3px;
    color: var(--orange);
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.13em;
}

.business-guard-header h2 {
    margin: 0;
    font-size: 1.16rem;
}

.business-guard-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.business-guard-summary span {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(255, 121, 0, 0.18);
    border-radius: 11px;
    background: rgba(255, 121, 0, 0.05);
}

.business-guard-summary small,
.business-guard-stats small,
.business-guard-total-price small {
    color: #858585;
    font-size: 0.55rem;
    font-weight: 950;
    letter-spacing: 0.05em;
}

.business-guard-summary strong {
    color: var(--orange-bright);
    font-size: 0.92rem;
}

.business-guard-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.business-guard-option {
    overflow: hidden;
    border: 1px solid #292929;
    border-radius: 14px;
    background: #0b0b0b;
}

.business-guard-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #111 url('../images/businesses/default-business.svg') center / cover no-repeat;
}

.business-guard-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-guard-copy {
    padding: 10px;
}

.business-guard-option-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.business-guard-option-heading > div {
    min-width: 0;
}

.business-guard-option-heading small {
    color: var(--orange);
    font-size: 0.52rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.business-guard-option-heading h3 {
    margin: 3px 0 0;
    font-size: 0.92rem;
}

.business-guard-option-heading > b {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    color: #ddd;
    background: #1c1c1c;
    font-size: 0.55rem;
}

.business-guard-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
}

.business-guard-stats span {
    display: grid;
    gap: 3px;
    padding: 7px;
    border-radius: 9px;
    background: #151515;
}

.business-guard-stats strong {
    color: #eee;
    font-size: 0.68rem;
}

.business-guard-range-label {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.business-guard-range-label > span {
    color: #aaa;
    font-size: 0.62rem;
    font-weight: 850;
}

.business-guard-range-label input[type="range"] {
    width: 100%;
    accent-color: var(--orange);
    cursor: pointer;
}

.business-guard-quantity-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 7px;
    margin-top: 8px;
}

.business-guard-quantity-row label,
.business-guard-total-price {
    display: grid;
    gap: 4px;
    padding: 7px 8px;
    border: 1px solid #292929;
    border-radius: 9px;
    background: #111;
}

.business-guard-quantity-row label > span {
    color: #858585;
    font-size: 0.52rem;
    font-weight: 950;
}

.business-guard-quantity-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 900;
}

.business-guard-total-price strong {
    color: var(--orange-bright);
    font-size: 0.72rem;
}

.business-guard-buy {
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    border: 1px solid rgba(255, 121, 0, 0.45);
    border-radius: 9px;
    color: #140900;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    font-size: 0.63rem;
    font-weight: 950;
    cursor: pointer;
}

.business-guard-buy:disabled {
    color: #686868;
    border-color: #292929;
    background: #191919;
    cursor: not-allowed;
}

.business-guard-note {
    margin: 9px 2px 0;
    color: #777;
    font-size: 0.6rem;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 560px) {
    .business-guard-options {
        grid-template-columns: 1fr;
    }

    .business-modal-title-row {
        width: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 7px;
    }

    .business-modal-title-row h2 {
        flex: 1 1 auto;
        font-size: 1rem;
    }

    .business-guard-button {
        min-height: 28px;
        padding: 0 8px;
        font-size: 0.52rem;
    }
}

/* Mobil işletme başlığı: Koruma butonunu işletme adıyla kesin olarak aynı satırda tut. */
@media (max-width: 560px) {
    .business-modal-title-area {
        position: relative;
        min-width: 0;
        padding-right: 88px;
    }

    .business-modal-title-row {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .business-modal-title-row h2 {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin: 0;
        font-size: 0.96rem;
        line-height: 28px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .business-guard-button {
        position: absolute;
        right: 0;
        bottom: 0;
        display: inline-flex;
        width: auto;
        min-width: 80px;
        min-height: 28px;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        padding: 0 7px;
        white-space: nowrap;
    }
}

/* Havalimanı ve ülkeler arası seyahat */
.airport-content {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.airport-hero-card,
.airport-destinations {
    overflow: hidden;
    border: 1px solid rgba(255, 121, 0, 0.28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(24, 24, 24, 0.97), rgba(7, 7, 7, 0.97));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

.airport-hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 121, 0, 0.16), rgba(0, 0, 0, 0.7)),
        #101010 url('../images/airport/default-airport.svg') center / cover no-repeat;
}

.airport-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.85));
    pointer-events: none;
}

.airport-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.airport-hero-image > span {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 12px;
    left: 14px;
    color: #fff;
    font-size: clamp(0.72rem, 3.2vw, 1rem);
    font-weight: 950;
    letter-spacing: 0.13em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.airport-current-country {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 15px;
}

.airport-current-flag,
.airport-country-flag {
    overflow: hidden;
    border: 1px solid rgba(255, 121, 0, 0.34);
    border-radius: 12px;
    background: #111 url('../images/airport/default-flag.svg') center / cover no-repeat;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.airport-current-flag {
    width: 82px;
    aspect-ratio: 3 / 2;
}

.airport-current-flag img,
.airport-country-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.airport-current-country small,
.airport-country-copy small,
.airport-section-heading p,
.airport-cooldown-status small {
    color: var(--orange);
    font-size: 0.55rem;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.airport-current-country h1 {
    margin: 4px 0 0;
    font-size: clamp(1.18rem, 5vw, 1.7rem);
    letter-spacing: -0.025em;
}

.airport-current-country p {
    margin: 7px 0 0;
    color: #999;
    font-size: 0.68rem;
    line-height: 1.45;
}

.airport-setup-warning {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 91, 91, 0.35);
    border-radius: 12px;
    color: #ffb0b0;
    background: rgba(130, 0, 0, 0.18);
    font-size: 0.7rem;
    line-height: 1.45;
}

.airport-destinations {
    margin-top: 12px;
    padding: 14px;
}

.airport-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.airport-section-heading p {
    margin: 0 0 3px;
}

.airport-section-heading h2 {
    margin: 0;
    font-size: 1.05rem;
}

.airport-cooldown-status {
    display: grid;
    min-width: 104px;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid rgba(95, 210, 130, 0.28);
    border-radius: 10px;
    text-align: right;
    background: rgba(30, 120, 60, 0.1);
}

.airport-cooldown-status small {
    color: #79c991;
}

.airport-cooldown-status strong {
    color: #91efad;
    font-size: 0.74rem;
}

.airport-cooldown-status.is-active {
    border-color: rgba(255, 121, 0, 0.32);
    background: rgba(255, 121, 0, 0.08);
}

.airport-cooldown-status.is-active small,
.airport-cooldown-status.is-active strong {
    color: var(--orange-bright);
}

.airport-country-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.airport-country-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #292929;
    border-radius: 13px;
    background: linear-gradient(145deg, #171717, #0a0a0a);
}

.airport-country-flag {
    width: 78px;
    aspect-ratio: 3 / 2;
}

.airport-country-copy {
    min-width: 0;
}

.airport-country-copy h3 {
    overflow: hidden;
    margin: 3px 0 4px;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.airport-country-copy > span {
    color: #bbb;
    font-size: 0.65rem;
    font-weight: 850;
}

.airport-travel-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255, 121, 0, 0.5);
    border-radius: 9px;
    color: #140900;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    font-size: 0.65rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.airport-travel-button:disabled {
    color: #707070;
    border-color: #2b2b2b;
    background: #191919;
    cursor: not-allowed;
}

.airport-result {
    margin: 11px 0 0;
    padding: 10px 11px;
    border-radius: 10px;
    color: #ddd;
    background: #151515;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.4;
}

.airport-result.is-success {
    color: #91efad;
    background: rgba(30, 120, 60, 0.16);
}

.airport-result.is-error {
    color: #ffabab;
    background: rgba(130, 0, 0, 0.18);
}

@media (max-width: 560px) {
    .airport-country-grid {
        grid-template-columns: 1fr;
    }

    .airport-current-country {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 11px;
        padding: 12px;
    }

    .airport-current-flag {
        width: 70px;
    }

    .airport-destinations {
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .airport-section-heading {
        align-items: flex-start;
    }

    .airport-cooldown-status {
        min-width: 92px;
        padding: 7px 8px;
    }

    .airport-country-card {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    .airport-country-flag {
        width: 66px;
    }
}

/* Kaçakçılık ve ülkelere göre değişen karaborsa fiyatları */
.smuggling-content {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.smuggling-heading-card,
.smuggling-market-card {
    border: 1px solid rgba(255, 121, 0, 0.28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(24, 24, 24, 0.98), rgba(7, 7, 7, 0.98));
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

.smuggling-heading-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 15px;
}

.smuggling-heading-copy {
    min-width: 0;
}

.smuggling-heading-copy > p,
.smuggling-panel-heading small,
.smuggling-location-card small,
.smuggling-market-clock small,
.smuggling-product-title > div > small,
.smuggling-product-title > span small {
    color: var(--orange);
    font-size: 0.54rem;
    font-weight: 950;
    letter-spacing: 0.11em;
}

.smuggling-heading-copy > p {
    margin: 0 0 4px;
}

.smuggling-heading-copy h1 {
    margin: 0;
    font-size: clamp(1.3rem, 5vw, 1.85rem);
    letter-spacing: -0.035em;
}

.smuggling-heading-copy > span {
    display: block;
    max-width: 560px;
    margin-top: 7px;
    color: #999;
    font-size: 0.68rem;
    line-height: 1.45;
}

.smuggling-location-card {
    display: grid;
    grid-template-columns: 56px minmax(0, auto);
    gap: 9px;
    align-items: center;
    min-width: 155px;
    padding: 8px 10px;
    border: 1px solid #303030;
    border-radius: 12px;
    background: rgba(15, 15, 15, 0.84);
}

.smuggling-location-flag {
    width: 56px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid rgba(255, 121, 0, 0.34);
    border-radius: 8px;
    background: #111 url('../images/airport/default-flag.svg') center / cover no-repeat;
}

.smuggling-location-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smuggling-location-card strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: 0.82rem;
}

.smuggling-market-clock {
    display: grid;
    min-width: 122px;
    gap: 4px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 121, 0, 0.34);
    border-radius: 12px;
    text-align: right;
    background: rgba(255, 121, 0, 0.08);
}

.smuggling-market-clock strong {
    color: var(--orange-bright);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.smuggling-setup-warning {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 91, 91, 0.35);
    border-radius: 12px;
    color: #ffb0b0;
    background: rgba(130, 0, 0, 0.18);
    font-size: 0.7rem;
    line-height: 1.45;
}

.smuggling-market-card {
    margin-top: 12px;
    padding: 13px;
}

.smuggling-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 13px;
}

.smuggling-tab {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #303030;
    border-radius: 10px;
    color: #999;
    background: #151515;
    font-size: 0.68rem;
    font-weight: 950;
    cursor: pointer;
}

.smuggling-tab b {
    padding: 4px 7px;
    border-radius: 7px;
    color: #bbb;
    background: #090909;
    font-size: 0.62rem;
    font-style: normal;
}

.smuggling-tab b i {
    font-style: normal;
}

.smuggling-tab.is-active {
    color: #160a00;
    border-color: rgba(255, 155, 55, 0.65);
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
}

.smuggling-tab.is-active b {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
}

.smuggling-panel {
    display: none;
}

.smuggling-panel.is-active {
    display: block;
}

.smuggling-panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.smuggling-panel-heading h2 {
    margin: 3px 0 0;
    font-size: 1.05rem;
}

.smuggling-panel-heading > span {
    color: #8c8c8c;
    font-size: 0.62rem;
    font-weight: 800;
}

.smuggling-panel-heading > span strong {
    color: #fff;
}

.smuggling-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.smuggling-product-card {
    overflow: hidden;
    border: 1px solid #2b2b2b;
    border-radius: 14px;
    background: linear-gradient(145deg, #171717, #090909);
}

.smuggling-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #101010 url('../images/smuggling/default-product.svg') center / cover no-repeat;
}

.smuggling-product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.86));
    pointer-events: none;
}

.smuggling-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smuggling-product-image > span {
    position: absolute;
    z-index: 1;
    right: 9px;
    bottom: 8px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    color: #ddd;
    background: rgba(0, 0, 0, 0.72);
    font-size: 0.56rem;
    font-weight: 900;
}

.smuggling-product-image > span b {
    color: var(--orange-bright);
}

.smuggling-product-main {
    padding: 11px;
}

.smuggling-product-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.smuggling-product-title h3 {
    margin: 3px 0 0;
    font-size: 0.96rem;
}

.smuggling-product-title > span {
    display: grid;
    min-width: 90px;
    gap: 2px;
    text-align: right;
}

.smuggling-product-title > span strong {
    color: var(--orange-bright);
    font-size: 0.9rem;
}

.smuggling-country-prices {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.smuggling-country-price {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    min-height: 34px;
    padding: 4px 7px 4px 4px;
    border: 1px solid #292929;
    border-radius: 8px;
    background: #101010;
}

.smuggling-country-price.is-current {
    border-color: rgba(255, 121, 0, 0.55);
    background: rgba(255, 121, 0, 0.08);
    box-shadow: inset 3px 0 0 var(--orange);
}

.smuggling-country-price img {
    display: block;
    width: 28px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
    background: #1c1c1c;
}

.smuggling-country-price span {
    overflow: hidden;
    color: #aaa;
    font-size: 0.59rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smuggling-country-price strong {
    color: #ddd;
    font-size: 0.65rem;
}

.smuggling-country-price.is-current span,
.smuggling-country-price.is-current strong {
    color: var(--orange-bright);
}


.smuggling-country-price.is-cheapest {
    border-color: rgba(50, 205, 95, 0.62);
    background: rgba(50, 205, 95, 0.09);
}

.smuggling-country-price.is-cheapest strong,
.smuggling-country-price.is-cheapest span {
    color: #55e985;
}

.smuggling-country-price.is-most-expensive {
    border-color: rgba(238, 70, 70, 0.64);
    background: rgba(238, 70, 70, 0.09);
}

.smuggling-country-price.is-most-expensive strong,
.smuggling-country-price.is-most-expensive span {
    color: #ff6767;
}

.smuggling-country-price.is-current.is-cheapest {
    box-shadow: inset 3px 0 0 #38d66d;
}

.smuggling-country-price.is-current.is-most-expensive {
    box-shadow: inset 3px 0 0 #ef4d4d;
}

.smuggling-buy-controls {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #292929;
}

.smuggling-buy-controls input[type="range"] {
    width: 100%;
    accent-color: var(--orange);
    cursor: pointer;
}

.smuggling-buy-controls input[type="range"]:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.smuggling-quantity-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 7px;
    margin-top: 7px;
}

.smuggling-quantity-row label,
.smuggling-total-price {
    display: grid;
    gap: 3px;
    padding: 7px 8px;
    border: 1px solid #292929;
    border-radius: 9px;
    background: #111;
}

.smuggling-quantity-row label > span,
.smuggling-total-price > span {
    color: #858585;
    font-size: 0.51rem;
    font-weight: 950;
}

.smuggling-quantity-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 900;
}

.smuggling-total-price strong {
    color: var(--orange-bright);
    font-size: 0.76rem;
}

.smuggling-buy-button {
    width: 100%;
    min-height: 41px;
    margin-top: 8px;
    border: 1px solid rgba(255, 121, 0, 0.5);
    border-radius: 9px;
    color: #160a00;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    font-size: 0.64rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.smuggling-buy-button:disabled {
    color: #707070;
    border-color: #2b2b2b;
    background: #191919;
    cursor: not-allowed;
}

.smuggling-result {
    margin: 11px 0 0;
    padding: 10px 11px;
    border-radius: 10px;
    color: #ddd;
    background: #151515;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.4;
}

.smuggling-result.is-success {
    color: #91efad;
    background: rgba(30, 120, 60, 0.16);
}

.smuggling-result.is-error {
    color: #ffabab;
    background: rgba(130, 0, 0, 0.18);
}

@media (max-width: 720px) {
    .smuggling-heading-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .smuggling-heading-copy {
        grid-column: 1 / -1;
    }

    .smuggling-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .smuggling-heading-card,
    .smuggling-market-card {
        border-radius: 14px;
    }

    .smuggling-heading-card {
        gap: 8px;
        padding: 11px;
    }

    .smuggling-location-card {
        grid-template-columns: 44px minmax(0, 1fr);
        min-width: 0;
        padding: 7px;
    }

    .smuggling-location-flag {
        width: 44px;
    }

    .smuggling-location-card strong {
        font-size: 0.7rem;
    }

    .smuggling-market-clock {
        min-width: 108px;
        padding: 8px;
    }

    .smuggling-market-clock small {
        font-size: 0.47rem;
    }

    .smuggling-market-card {
        padding: 10px;
    }

    .smuggling-tab {
        min-height: 42px;
        padding: 0 8px;
        font-size: 0.61rem;
    }

    .smuggling-tab b {
        padding: 4px 5px;
        font-size: 0.56rem;
    }

    .smuggling-panel-heading {
        align-items: flex-start;
    }

    .smuggling-panel-heading > span {
        max-width: 120px;
        text-align: right;
    }
}

/* Kaçakçılık alış / satış penceresi */
.smuggling-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #292929;
}

.smuggling-trade-button {
    min-height: 42px;
    border-radius: 9px;
    font-size: 0.64rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.smuggling-trade-buy {
    border: 1px solid rgba(255, 121, 0, 0.5);
    color: #160a00;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
}

.smuggling-trade-sell {
    border: 1px solid rgba(75, 210, 120, 0.5);
    color: #a8f7be;
    background: rgba(42, 160, 80, 0.12);
}

.smuggling-trade-button:disabled {
    border-color: #2b2b2b;
    color: #707070;
    background: #191919;
    cursor: not-allowed;
}

.smuggling-trade-modal {
    position: fixed;
    z-index: 560;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.smuggling-trade-modal.is-open {
    display: flex;
}

.smuggling-trade-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
}

.smuggling-trade-card {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(255, 121, 0, 0.42);
    border-radius: 19px;
    background: linear-gradient(145deg, #171717, #060606);
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.8);
}

body.smuggling-trade-modal-open {
    overflow: hidden;
}

.smuggling-trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.smuggling-trade-header p {
    margin: 0 0 3px;
    color: var(--orange);
    font-size: 0.58rem;
    font-weight: 950;
    letter-spacing: 0.13em;
}

.smuggling-trade-header h2 {
    margin: 0;
    font-size: 1.14rem;
}

.smuggling-trade-header h2 b {
    color: var(--orange-bright);
    font-size: inherit;
}

.smuggling-trade-header h2 b.is-sell {
    color: #75e89a;
}

.smuggling-trade-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #333;
    border-radius: 10px;
    color: #ddd;
    background: #0b0b0b;
    font-size: 1.35rem;
    cursor: pointer;
}

.smuggling-trade-product {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
    gap: 10px;
}

.smuggling-trade-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: #101010 url('../images/smuggling/default-product.svg') center / cover no-repeat;
}

.smuggling-trade-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smuggling-trade-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    align-content: stretch;
}

.smuggling-trade-summary > span {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255, 121, 0, 0.15);
    border-radius: 10px;
    background: rgba(255, 121, 0, 0.045);
}

.smuggling-trade-summary small,
.smuggling-trade-range-label > span,
.smuggling-trade-quantity-row label > span,
.smuggling-trade-total small {
    color: #888;
    font-size: 0.52rem;
    font-weight: 950;
}

.smuggling-trade-summary strong {
    overflow: hidden;
    color: var(--orange-bright);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smuggling-trade-range-label {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.smuggling-trade-range-label input[type="range"] {
    width: 100%;
    accent-color: var(--orange);
    cursor: pointer;
}

.smuggling-trade-range-label input[type="range"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.smuggling-trade-quantity-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    margin-top: 9px;
}

.smuggling-trade-quantity-row label,
.smuggling-trade-total {
    display: grid;
    gap: 4px;
    padding: 9px 10px;
    border: 1px solid #292929;
    border-radius: 10px;
    background: #101010;
}

.smuggling-trade-quantity-row input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 950;
}

.smuggling-trade-total strong {
    color: var(--orange-bright);
    font-size: 0.9rem;
}

.smuggling-trade-confirm {
    width: 100%;
    min-height: 45px;
    margin-top: 9px;
    border: 1px solid rgba(255, 121, 0, 0.5);
    border-radius: 10px;
    color: #160a00;
    background: linear-gradient(135deg, var(--orange-bright), var(--orange));
    font-size: 0.67rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.smuggling-trade-confirm.is-sell {
    border-color: rgba(75, 210, 120, 0.5);
    color: #06150b;
    background: linear-gradient(135deg, #7cf3a3, #39b965);
}

.smuggling-trade-confirm:disabled {
    border-color: #2b2b2b;
    color: #707070;
    background: #191919;
    cursor: not-allowed;
}

.smuggling-trade-note {
    margin: 8px 0 0;
    color: #858585;
    font-size: 0.61rem;
    line-height: 1.45;
    text-align: center;
}

.smuggling-trade-card .smuggling-result {
    margin-top: 9px;
}

@media (max-width: 520px) {
    .smuggling-trade-product {
        grid-template-columns: 1fr;
    }

    .smuggling-trade-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 360px) {
    .smuggling-action-buttons {
        gap: 6px;
    }

    .smuggling-trade-button {
        min-height: 40px;
        font-size: 0.58rem;
    }

    .smuggling-trade-card {
        padding: 11px;
    }

    .smuggling-trade-quantity-row {
        grid-template-columns: 92px minmax(0, 1fr);
    }
}


/* Yüzen telefon butonu */
.floating-phone-button {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    z-index: 980;
    display: grid;
    width: 52px;
    height: 52px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 138, 26, 0.85);
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 180, 82, 0.38), transparent 38%),
        linear-gradient(145deg, #ff8b1a, #b64100 72%);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.46),
        0 0 0 3px rgba(255, 121, 0, 0.12);
    font: inherit;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    will-change: left, top, transform;
}

.floating-phone-fallback {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    transform: rotate(-16deg);
    pointer-events: none;
}

.floating-phone-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.floating-phone-image[hidden],
.floating-phone-fallback[hidden] {
    display: none !important;
}

.floating-phone-button:active,
.floating-phone-button.is-dragging {
    cursor: grabbing;
}

.floating-phone-button.is-dragging {
    transform: scale(1.08);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.58),
        0 0 0 5px rgba(255, 121, 0, 0.2);
}

.floating-phone-button.is-holding:not(.is-dragging) {
    animation: floating-phone-hold 0.28s ease-in-out infinite alternate;
}

@keyframes floating-phone-hold {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
}

@media (max-width: 380px) {
    .floating-phone-button {
        width: 48px;
        height: 48px;
    }

    .floating-phone-fallback {
        font-size: 1.42rem;
    }
}

/* Akıllı telefon penceresi */
.smartphone-modal {
    position: fixed;
    z-index: 1400;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
}

.smartphone-modal.is-open {
    display: flex;
}

.smartphone-modal-open {
    overflow: hidden;
}

.smartphone-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
}

.smartphone-device {
    position: relative;
    z-index: 1;
    width: min(92vw, 390px);
    height: min(88svh, 780px);
    min-height: 560px;
    padding: 9px;
    border: 1px solid #3f3f43;
    border-radius: 48px;
    background: linear-gradient(145deg, #404044, #08080a 24%, #1e1e21 76%, #050506);
    box-shadow:
        0 38px 100px rgba(0, 0, 0, 0.88),
        inset 0 0 0 2px rgba(255, 255, 255, 0.07),
        inset 0 0 20px rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateY(24px) scale(0.94);
    transition: opacity 190ms ease, transform 220ms ease;
}

.smartphone-modal.is-open .smartphone-device {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.smartphone-side-button {
    position: absolute;
    width: 4px;
    border-radius: 3px 0 0 3px;
    background: linear-gradient(#77777c, #202024);
    box-shadow: -1px 0 2px rgba(255, 255, 255, 0.16);
}

.smartphone-side-button-volume {
    top: 132px;
    left: -4px;
    height: 74px;
}

.smartphone-side-button-power {
    top: 166px;
    right: -4px;
    height: 88px;
    border-radius: 0 3px 3px 0;
}

.smartphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    color: #fff;
    background:
        radial-gradient(circle at 14% 4%, rgba(255, 153, 55, 0.46), transparent 27%),
        radial-gradient(circle at 90% 28%, rgba(136, 42, 22, 0.42), transparent 34%),
        radial-gradient(circle at 50% 92%, rgba(235, 103, 18, 0.2), transparent 35%),
        linear-gradient(150deg, #251009 0%, #09090c 43%, #170a06 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.42);
}

.smartphone-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.035) 43%, transparent 48%),
        repeating-linear-gradient(140deg, transparent 0 56px, rgba(255, 121, 0, 0.018) 57px 58px);
    pointer-events: none;
}

.smartphone-dynamic-island {
    position: absolute;
    z-index: 8;
    top: 10px;
    left: 50%;
    display: flex;
    width: 104px;
    height: 29px;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    border-radius: 18px;
    background: #020203;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: translateX(-50%);
}

.smartphone-camera {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #334d77, #07101c 55%, #000);
    box-shadow: 0 0 3px rgba(44, 93, 160, 0.65);
}

.smartphone-status-bar {
    position: absolute;
    z-index: 7;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 21px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 850;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.smartphone-status-time {
    min-width: 44px;
    letter-spacing: 0.01em;
}

.smartphone-status-icons {
    display: flex;
    min-width: 111px;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.smartphone-signal {
    display: flex;
    height: 12px;
    align-items: flex-end;
    gap: 1.5px;
}

.smartphone-signal i {
    display: block;
    width: 2.5px;
    border-radius: 2px;
    background: currentColor;
}

.smartphone-signal i:nth-child(1) { height: 4px; }
.smartphone-signal i:nth-child(2) { height: 6px; }
.smartphone-signal i:nth-child(3) { height: 9px; }
.smartphone-signal i:nth-child(4) { height: 12px; }

.smartphone-network {
    font-size: 0.53rem;
    font-weight: 950;
}

.smartphone-wifi {
    position: relative;
    width: 14px;
    height: 11px;
    overflow: hidden;
}

.smartphone-wifi::before,
.smartphone-wifi::after {
    content: "";
    position: absolute;
    left: 50%;
    border: 1.8px solid #fff;
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    transform: translateX(-50%);
}

.smartphone-wifi::before {
    top: 1px;
    width: 13px;
    height: 8px;
}

.smartphone-wifi::after {
    top: 5px;
    width: 6px;
    height: 4px;
}

.smartphone-battery-wrap {
    display: flex;
    align-items: center;
    gap: 3px;
}

.smartphone-battery-wrap small {
    min-width: 14px;
    font-size: 0.48rem;
    line-height: 1;
    text-align: right;
}

.smartphone-battery {
    position: relative;
    display: block;
    width: 20px;
    height: 10px;
    padding: 1.5px;
    border: 1.3px solid rgba(255, 255, 255, 0.92);
    border-radius: 3px;
}

.smartphone-battery::after {
    content: "";
    position: absolute;
    top: 2px;
    right: -3px;
    width: 2px;
    height: 4px;
    border-radius: 0 2px 2px 0;
    background: #fff;
}

.smartphone-battery-level {
    display: block;
    width: 87%;
    height: 100%;
    border-radius: 1px;
    background: #fff;
    transition: width 180ms ease, background-color 180ms ease;
}

.smartphone-close {
    position: absolute;
    z-index: 10;
    top: 51px;
    right: 16px;
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.36);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.smartphone-home {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow-y: auto;
    padding: 62px 16px 122px;
    scrollbar-width: none;
}

.smartphone-home::-webkit-scrollbar {
    display: none;
}

.smartphone-clock-widget {
    min-height: 128px;
    padding: 18px 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.smartphone-clock-widget p,
.smartphone-clock-widget h2,
.smartphone-clock-widget span {
    margin: 0;
}

.smartphone-clock-widget p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.74rem;
    font-weight: 720;
}

.smartphone-clock-widget h2 {
    margin-top: 2px;
    font-size: clamp(2.5rem, 12vw, 4.15rem);
    font-weight: 320;
    line-height: 1;
    letter-spacing: -0.07em;
}

.smartphone-clock-widget span {
    display: block;
    margin-top: 10px;
    color: #ffb467;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.smartphone-app-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 10px;
    margin-top: 23px;
}

.smartphone-app {
    display: grid;
    min-width: 0;
    padding: 0;
    place-items: center;
    gap: 7px;
    border: 0;
    color: #fff;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
}

.smartphone-app-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #555, #222);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.2);
    font-size: 1.48rem;
    font-weight: 850;
    line-height: 1;
    transition: transform 120ms ease, filter 120ms ease;
}

.smartphone-app:active .smartphone-app-icon {
    filter: brightness(0.78);
    transform: scale(0.91);
}

.smartphone-app small {
    max-width: 72px;
    overflow: hidden;
    font-size: 0.61rem;
    font-weight: 720;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px #000;
    white-space: nowrap;
}

.app-streets { background: linear-gradient(145deg, #282828, #050505); }
.app-special { background: linear-gradient(145deg, #ff9630, #9c2900); }
.app-business { background: linear-gradient(145deg, #dc9b32, #6a3300); }
.app-airport { background: linear-gradient(145deg, #4eaaff, #1557a6); }
.app-smuggling { background: linear-gradient(145deg, #b32a2a, #430606); }
.app-messages { background: linear-gradient(145deg, #5bea75, #07902d); }
.app-contacts { background: linear-gradient(145deg, #65aaff, #2544a2); }
.app-settings { background: linear-gradient(145deg, #9ea2aa, #3f4248); }
.app-illegal-chat { background: linear-gradient(145deg, #9b35ff, #2a0054); }
.app-notifications { background: linear-gradient(145deg, #ff625f, #8b0f16); }

.smartphone-toast {
    position: sticky;
    bottom: 2px;
    display: none;
    width: fit-content;
    max-width: 92%;
    margin: 24px auto 0;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    background: rgba(15, 15, 17, 0.8);
    font-size: 0.7rem;
    font-weight: 750;
    text-align: center;
    backdrop-filter: blur(14px);
}

.smartphone-toast.is-visible {
    display: block;
    animation: smartphone-toast-in 170ms ease both;
}

@keyframes smartphone-toast-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.smartphone-dock {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 24px;
    left: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.27), inset 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(19px);
}

.smartphone-dock-app {
    display: grid;
    width: 49px;
    height: 49px;
    margin: auto;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #fff;
    background: #333;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.22);
    font-size: 1.34rem;
    text-decoration: none;
    cursor: pointer;
}

.dock-phone { background: linear-gradient(145deg, #5ce976, #087e29); }
.dock-chat { background: linear-gradient(145deg, #4a9cff, #1852a2); }
.dock-home { background: linear-gradient(145deg, #ff9c3f, #a83800); }
.dock-camera { background: linear-gradient(145deg, #6e7078, #27282d); }

.smartphone-home-indicator {
    position: absolute;
    z-index: 9;
    bottom: 7px;
    left: 50%;
    width: 116px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transform: translateX(-50%);
}

@media (max-width: 420px) {
    .smartphone-device {
        width: min(96vw, 390px);
        height: min(91svh, 780px);
        min-height: 520px;
        border-radius: 42px;
    }

    .smartphone-screen {
        border-radius: 34px;
    }

    .smartphone-app-grid {
        gap: 16px 7px;
    }

    .smartphone-app-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .smartphone-dock-app {
        width: 46px;
        height: 46px;
    }
}

@media (max-height: 650px) {
    .smartphone-device {
        height: 95svh;
        min-height: 480px;
    }

    .smartphone-home {
        padding-top: 54px;
    }

    .smartphone-clock-widget {
        min-height: 104px;
        padding: 13px 15px;
    }

    .smartphone-clock-widget h2 {
        font-size: 2.8rem;
    }

    .smartphone-app-grid {
        margin-top: 16px;
        gap: 13px 8px;
    }
}

/* İllegalChat genel sohbet uygulaması */
.illegal-chat-view {
    position: absolute;
    z-index: 6;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    padding: 47px 0 10px;
    opacity: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(135, 40, 255, 0.24), transparent 30%),
        linear-gradient(180deg, #141019 0%, #09090c 100%);
    pointer-events: none;
    transform: translateX(12%);
    transition: opacity 160ms ease, transform 190ms ease, visibility 0s linear 190ms;
}

.illegal-chat-view.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
}

.illegal-chat-header {
    display: grid;
    min-height: 56px;
    flex: 0 0 auto;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    padding: 5px 13px 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(12, 9, 16, 0.86);
    backdrop-filter: blur(18px);
}

.illegal-chat-back {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.illegal-chat-heading {
    min-width: 0;
    text-align: center;
}

.illegal-chat-heading strong,
.illegal-chat-heading small {
    display: block;
}

.illegal-chat-heading strong {
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.illegal-chat-heading small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 0.58rem;
    font-weight: 720;
}

.illegal-chat-online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 3px;
    border-radius: 50%;
    background: #55df74;
    box-shadow: 0 0 8px rgba(85, 223, 116, 0.72);
}

.illegal-chat-messages {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 13px 12px 10px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(171, 92, 255, 0.5) transparent;
}

.illegal-chat-empty {
    width: min(88%, 260px);
    margin: auto;
    padding: 15px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.68rem;
    line-height: 1.45;
    text-align: center;
}

.illegal-chat-message {
    display: flex;
    width: 100%;
}

.illegal-chat-message.is-other {
    justify-content: flex-start;
}

.illegal-chat-message.is-own {
    justify-content: flex-end;
}

.illegal-chat-bubble {
    position: relative;
    width: fit-content;
    max-width: 79%;
    padding: 8px 10px 6px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;
    box-shadow: 0 5px 13px rgba(0, 0, 0, 0.17);
}

.illegal-chat-message.is-other .illegal-chat-bubble {
    border-bottom-left-radius: 5px;
    background: #242128;
}

.illegal-chat-message.is-own .illegal-chat-bubble {
    border-color: rgba(217, 174, 255, 0.2);
    border-bottom-right-radius: 5px;
    background: linear-gradient(145deg, #7627bc, #4e137c);
}

.illegal-chat-sender {
    display: block;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 3px;
    color: #d5a0ff;
    font-size: 0.61rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.illegal-chat-bubble p {
    margin: 0;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.38;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.illegal-chat-bubble time {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.49rem;
    font-weight: 700;
    line-height: 1;
    text-align: right;
}

.illegal-chat-status {
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 13px;
    color: rgba(255, 255, 255, 0.62);
    background: rgba(8, 8, 10, 0.72);
    font-size: 0.58rem;
    font-weight: 720;
    text-align: center;
}

.illegal-chat-status.is-error {
    color: #ffaaa6;
}

.illegal-chat-compose {
    display: grid;
    min-height: 55px;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) 43px;
    gap: 8px;
    align-items: center;
    padding: 7px 10px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(10, 8, 13, 0.93);
    backdrop-filter: blur(18px);
}

.illegal-chat-compose input {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    outline: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    font: inherit;
    font-size: 0.72rem;
}

.illegal-chat-compose input:focus {
    border-color: rgba(187, 111, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(151, 55, 235, 0.14);
}

.illegal-chat-compose input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.illegal-chat-compose button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0 2px 0 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #9d42ed, #57118f);
    box-shadow: 0 7px 16px rgba(92, 17, 143, 0.38);
    font-size: 1.05rem;
    cursor: pointer;
}

.illegal-chat-compose button:disabled,
.illegal-chat-compose input:disabled {
    opacity: 0.55;
}

.smartphone-modal.chat-app-open .smartphone-close {
    display: none;
}

@media (max-height: 650px) {
    .illegal-chat-view {
        padding-bottom: 7px;
    }

    .illegal-chat-header {
        min-height: 50px;
    }

    .illegal-chat-compose {
        min-height: 49px;
    }
}

/* Baskın Ekibi */
.raid-team-screen {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 0%, rgba(126, 15, 15, .18), transparent 36%),
        #090909;
}

.raid-team-content {
    padding-bottom: 92px;
}

.raid-team-root {
    width: min(100%, 920px);
    margin: 0 auto;
}

.raid-team-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid #382020;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(44, 13, 13, .96), rgba(12, 12, 12, .98));
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.raid-team-hero > div:first-child {
    min-width: 0;
}

.raid-team-hero p,
.raid-team-modal-header p {
    margin: 0 0 4px;
    color: #e05656;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.7px;
}

.raid-team-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 5vw, 38px);
    line-height: 1;
}

.raid-team-hero > div:first-child > span {
    display: block;
    margin-top: 9px;
    color: #bdbdbd;
    font-size: 13px;
    line-height: 1.45;
}

.raid-team-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    gap: 8px;
    min-width: 250px;
}

.raid-team-summary span,
.raid-team-modal-stats span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #332020;
    border-radius: 13px;
    background: rgba(0, 0, 0, .35);
}

.raid-team-summary small,
.raid-team-modal-stats small,
.raid-team-quantity-row span,
.raid-team-stats small {
    color: #8f8f8f;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
}

.raid-team-summary strong,
.raid-team-modal-stats strong {
    color: #fff;
    font-size: 18px;
}

.raid-team-warning {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #70431c;
    border-radius: 13px;
    color: #ffd08a;
    background: rgba(95, 49, 10, .26);
    font-size: 13px;
}

.raid-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.raid-team-card {
    overflow: hidden;
    border: 1px solid #302323;
    border-radius: 18px;
    background: linear-gradient(160deg, #171717, #0b0b0b);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
}

.raid-team-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #111 url('../images/raid-team/default-team.svg') center / cover no-repeat;
}

.raid-team-image::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .9));
    pointer-events: none;
}

.raid-team-image img,
.raid-team-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.raid-team-image > span {
    position: absolute;
    z-index: 1;
    left: 12px;
    bottom: 11px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #cfcfcf;
    background: rgba(0, 0, 0, .72);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .65px;
}

.raid-team-image > span b {
    margin-left: 4px;
    color: #fff;
    font-size: 11px;
}

.raid-team-card-body {
    padding: 14px;
}

.raid-team-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.raid-team-title-row > div {
    min-width: 0;
}

.raid-team-title-row small {
    color: #a34d4d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.raid-team-title-row h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 19px;
}

.raid-team-title-row > strong {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid #533131;
    border-radius: 9px;
    color: #ffd0d0;
    background: #251313;
    font-size: 12px;
}

.raid-team-card-body > p {
    min-height: 40px;
    margin: 10px 0;
    color: #a9a9a9;
    font-size: 12px;
    line-height: 1.55;
}

.raid-team-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 11px;
}

.raid-team-stats span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 9px;
    border-radius: 10px;
    background: #0b0b0b;
}

.raid-team-stats b {
    color: #f1f1f1;
    font-size: 15px;
}

.raid-team-open-buy,
.raid-team-confirm {
    width: 100%;
    min-height: 43px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #b82e2e, #6d1010);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .7px;
    cursor: pointer;
}

.raid-team-open-buy:disabled,
.raid-team-confirm:disabled {
    color: #777;
    background: #242424;
    cursor: not-allowed;
}

.raid-team-result,
.raid-team-modal-result {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
}

.raid-team-result.is-success,
.raid-team-modal-result.is-success {
    color: #9cf0ad;
    background: rgba(26, 111, 43, .28);
}

.raid-team-result.is-error,
.raid-team-modal-result.is-error {
    color: #ffb2b2;
    background: rgba(130, 27, 27, .32);
}

.raid-team-modal {
    position: fixed;
    z-index: 1850;
    inset: 0;
    display: none;
    place-items: center;
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
}

.raid-team-modal.is-open {
    display: grid;
}

.raid-team-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(5px);
}

.raid-team-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 500px);
    max-height: calc(100vh - 28px);
    overflow: auto;
    border: 1px solid #4b2929;
    border-radius: 20px;
    background: linear-gradient(160deg, #1d1111, #0b0b0b 48%);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .65);
}

body.raid-team-modal-open {
    overflow: hidden;
}

.raid-team-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
}

.raid-team-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
}

.raid-team-modal-header > button {
    width: 36px;
    height: 36px;
    border: 1px solid #4e3333;
    border-radius: 50%;
    color: #ddd;
    background: #171111;
    font-size: 25px;
    line-height: 1;
}

.raid-team-modal-image {
    aspect-ratio: 3 / 2;
    margin: 0 14px;
    overflow: hidden;
    border: 1px solid #392626;
    border-radius: 14px;
    background: #111 url('../images/raid-team/default-team.svg') center / cover no-repeat;
}

.raid-team-modal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 12px 14px 0;
}

.raid-team-modal-stats span {
    padding: 9px;
}

.raid-team-modal-stats strong {
    font-size: 14px;
}

.raid-team-range-label {
    display: block;
    margin: 12px 14px 0;
    padding: 12px;
    border-radius: 12px;
    background: #101010;
}

.raid-team-range-label > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.raid-team-range-label b {
    color: #e5e5e5;
    font-size: 11px;
    letter-spacing: .7px;
}

.raid-team-range-label small {
    color: #777;
    font-size: 10px;
}

.raid-team-range-label input[type="range"] {
    width: 100%;
    accent-color: #bd3030;
}

.raid-team-quantity-row {
    display: grid;
    grid-template-columns: .8fr 1fr 1.2fr;
    gap: 7px;
    padding: 10px 14px 0;
}

.raid-team-quantity-row > label,
.raid-team-quantity-row > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    border: 1px solid #302222;
    border-radius: 11px;
    background: #0d0d0d;
}

.raid-team-quantity-row input {
    width: 100%;
    min-width: 0;
    height: 35px;
    border: 1px solid #4b2929;
    border-radius: 8px;
    color: #fff;
    background: #171010;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.raid-team-quantity-row strong {
    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.raid-team-confirm {
    width: calc(100% - 28px);
    margin: 12px 14px 14px;
}

.raid-team-modal-result {
    margin: -5px 14px 14px;
}

@media (max-width: 680px) {
    .raid-team-hero {
        flex-direction: column;
    }

    .raid-team-summary {
        min-width: 0;
    }

    .raid-team-grid {
        grid-template-columns: 1fr;
    }

    .raid-team-card-body > p {
        min-height: 0;
    }
}

@media (max-width: 430px) {
    .raid-team-content {
        padding-inline: 10px;
    }

    .raid-team-hero {
        padding: 14px;
        border-radius: 15px;
    }

    .raid-team-modal {
        padding-inline: 8px;
    }

    .raid-team-modal-card {
        border-radius: 17px;
    }

    .raid-team-modal-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .raid-team-modal-stats span {
        padding: 7px;
    }

    .raid-team-modal-stats small {
        font-size: 7px;
    }

    .raid-team-modal-stats strong {
        font-size: 12px;
    }

    .raid-team-quantity-row {
        grid-template-columns: .75fr 1fr 1.2fr;
    }

    .raid-team-quantity-row > label,
    .raid-team-quantity-row > div {
        padding: 7px;
    }

    .raid-team-quantity-row span {
        font-size: 7px;
    }

    .raid-team-quantity-row strong,
    .raid-team-quantity-row input {
        font-size: 12px;
    }
}

/* Banka */
.bank-content {
    padding-bottom: 104px;
}

.bank-root {
    width: min(100%, 960px);
    margin: 0 auto;
}

.bank-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid #44361b;
    border-radius: 22px;
    background: linear-gradient(145deg, #1a160d, #090909 54%);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .36);
}

.bank-hero-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #55431f;
    border-radius: 17px;
    background: #0b0b0b url('../images/bank/default-bank.svg') center / cover no-repeat;
}

.bank-hero-image img,
.bank-fx-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bank-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.bank-hero-copy > small,
.bank-section-header small,
.bank-action-card > small,
.bank-fx-title small {
    color: #a58545;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.bank-hero-copy h1 {
    margin: 4px 0 8px;
    color: #fff4cf;
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1;
}

.bank-hero-copy p,
.bank-fx-note,
.bank-interest-deposit > p,
.bank-interest-active > p {
    margin: 0;
    color: #aaa18d;
    font-size: 12px;
    line-height: 1.55;
}

.bank-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 15px;
}

.bank-hero-stats span,
.bank-interest-summary span,
.bank-fx-stats span {
    min-width: 0;
    padding: 9px;
    border: 1px solid #342b1a;
    border-radius: 11px;
    background: rgba(8, 8, 8, .65);
}

.bank-hero-stats small,
.bank-interest-summary small,
.bank-fx-stats small,
.bank-fx-trade-row small {
    display: block;
    margin-bottom: 4px;
    color: #756c58;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.bank-hero-stats strong,
.bank-interest-summary strong,
.bank-fx-stats b {
    color: #f3d781;
    font-size: 14px;
}

.bank-setup-warning {
    margin: 12px 0 0;
    padding: 11px 13px;
    border: 1px solid #6d3a20;
    border-radius: 11px;
    color: #ffc18e;
    background: rgba(94, 42, 14, .3);
    font-size: 12px;
    text-align: center;
}

.bank-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 14px 0 10px;
    padding: 6px;
    border: 1px solid #30291b;
    border-radius: 14px;
    background: #0d0d0d;
}

.bank-tabs button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    color: #827b6c;
    background: transparent;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

.bank-tabs button.is-active {
    color: #16120a;
    background: linear-gradient(135deg, #e1bd62, #98702b);
    box-shadow: 0 8px 18px rgba(116, 79, 20, .26);
}

.bank-panel {
    padding: 16px;
    border: 1px solid #30291b;
    border-radius: 18px;
    background: linear-gradient(145deg, #15130e, #090909 52%);
}

.bank-panel[hidden] {
    display: none !important;
}

.bank-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.bank-section-header h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 24px;
}

.bank-section-header > span {
    padding: 8px 10px;
    border: 1px solid #46391f;
    border-radius: 10px;
    color: #b9aa87;
    background: #0b0b0b;
    font-size: 10px;
    white-space: nowrap;
}

.bank-section-header > span b {
    color: #f1d477;
}

.bank-vault-progress {
    height: 8px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #242116;
}

.bank-vault-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #84611f, #f0d377);
    transition: width .25s ease;
}

.bank-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bank-action-card,
.bank-interest-deposit,
.bank-interest-active {
    padding: 13px;
    border: 1px solid #332b1c;
    border-radius: 14px;
    background: rgba(8, 8, 8, .74);
}

.bank-action-card h3 {
    margin: 5px 0 12px;
    color: #ded8ca;
    font-size: 13px;
}

.bank-action-card label,
.bank-wide-control label,
.bank-fx-range {
    display: block;
    margin-bottom: 9px;
}

.bank-action-card label span,
.bank-wide-control label span,
.bank-fx-range span {
    display: block;
    margin-bottom: 6px;
    color: #817966;
    font-size: 9px;
    font-weight: 800;
}

.bank-action-card input[type="range"],
.bank-wide-control input[type="range"],
.bank-fx-range input[type="range"] {
    width: 100%;
    accent-color: #d3ae53;
}

.bank-action-card input[type="number"],
.bank-wide-control input[type="number"],
.bank-fx-trade-row input {
    width: 100%;
    height: 42px;
    border: 1px solid #4a3c20;
    border-radius: 10px;
    color: #fff3c8;
    background: #15130e;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.bank-action-card button,
.bank-wide-control button,
.bank-interest-active button,
.bank-fx-buttons button {
    width: 100%;
    min-height: 42px;
    margin-top: 9px;
    border: 0;
    border-radius: 10px;
    color: #171207;
    background: linear-gradient(135deg, #e7c466, #9d742c);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .6px;
}

.bank-action-card button:disabled,
.bank-wide-control button:disabled,
.bank-interest-active button:disabled,
.bank-fx-buttons button:disabled {
    color: #777;
    background: #242424;
    cursor: not-allowed;
}

.bank-interest-badge {
    color: #aee6b6 !important;
    border-color: #285636 !important;
    background: rgba(29, 98, 47, .22) !important;
}

.bank-interest-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.bank-interest-summary strong {
    overflow-wrap: anywhere;
}

.bank-interest-deposit[hidden],
.bank-interest-active[hidden] {
    display: none !important;
}

.bank-wide-control {
    display: grid;
    grid-template-columns: 1fr minmax(130px, .5fr) minmax(170px, .7fr);
    align-items: end;
    gap: 9px;
    margin-top: 12px;
}

.bank-wide-control label {
    margin: 0;
}

.bank-wide-control button {
    margin: 0;
}

.bank-interest-active button {
    margin-top: 12px;
}

.bank-fx-timer {
    color: #b5aa92 !important;
}

.bank-fx-note {
    margin: -2px 0 12px;
    padding: 10px 12px;
    border-left: 3px solid #9c7935;
    background: rgba(88, 65, 22, .13);
}

.bank-fx-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.bank-fx-card {
    overflow: hidden;
    border: 1px solid #342c1e;
    border-radius: 16px;
    background: #0b0b0b;
}

.bank-fx-image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #0b0b0b url('../images/bank/default-currency.svg') center / cover no-repeat;
}

.bank-fx-image > span {
    position: absolute;
    right: 10px;
    bottom: 8px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: #fff5ca;
    background: rgba(0, 0, 0, .74);
    font-size: 25px;
    font-weight: 950;
}

.bank-fx-card-body {
    padding: 12px;
}

.bank-fx-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
}

.bank-fx-title h3 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 20px;
}

.bank-fx-title > strong {
    padding: 7px 8px;
    border: 1px solid #3f3520;
    border-radius: 9px;
    color: #bbb19a;
    background: #11100d;
    font-size: 9px;
    white-space: nowrap;
}

.bank-fx-title > strong b {
    color: #f4d675;
}

.bank-fx-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
}

.bank-fx-stats span {
    padding: 8px;
}

.bank-fx-stats b {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.bank-fx-trade-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.bank-fx-trade-row > div {
    padding: 7px 9px;
    border: 1px solid #342c1e;
    border-radius: 10px;
    background: #11100d;
}

.bank-fx-trade-row strong {
    color: #f4d675;
    font-size: 14px;
}

.bank-fx-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.bank-fx-buttons button:last-child {
    color: #e8e8e8;
    background: linear-gradient(135deg, #484848, #222);
}

.bank-result {
    margin: 12px 0 0;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 12px;
    text-align: center;
}

.bank-result.is-success {
    color: #a9ecb4;
    background: rgba(29, 105, 47, .26);
}

.bank-result.is-error {
    color: #ffb1a8;
    background: rgba(128, 32, 25, .3);
}

@media (max-width: 760px) {
    .bank-hero {
        grid-template-columns: 1fr;
    }

    .bank-action-grid,
    .bank-fx-grid {
        grid-template-columns: 1fr;
    }

    .bank-interest-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bank-wide-control {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .bank-content {
        padding-inline: 9px;
    }

    .bank-hero,
    .bank-panel {
        padding: 12px;
        border-radius: 16px;
    }

    .bank-hero-copy p {
        font-size: 11px;
    }

    .bank-hero-stats span,
    .bank-interest-summary span {
        padding: 7px;
    }

    .bank-section-header {
        align-items: flex-start;
    }

    .bank-section-header h2 {
        font-size: 20px;
    }

    .bank-section-header > span {
        max-width: 52%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bank-fx-title {
        align-items: center;
    }

    .bank-fx-title > strong {
        white-space: normal;
        text-align: right;
    }
}

/* Mermi Fabrikası */
.ammo-factory-content{padding-bottom:92px}.ammo-factory-root{max-width:980px;margin:0 auto}.ammo-factory-hero{display:grid;grid-template-columns:minmax(280px,46%) 1fr;overflow:hidden;border:1px solid rgba(255,157,44,.32);border-radius:20px;background:linear-gradient(145deg,#17120d,#090909);box-shadow:0 18px 50px rgba(0,0,0,.38)}.ammo-factory-hero>img{width:100%;height:100%;min-height:280px;object-fit:cover;aspect-ratio:16/9}.ammo-factory-hero-copy{padding:24px;display:flex;flex-direction:column;justify-content:center}.ammo-factory-hero-copy>small,.ammo-buy-card header small,.ammo-job-card small,.ammo-owner-strip small,.ammo-management-card header small{color:#f0a43a;font-weight:800;letter-spacing:.12em}.ammo-factory-hero-copy h1{margin:5px 0 8px;font-size:clamp(26px,5vw,42px)}.ammo-factory-hero-copy p{margin:0 0 18px;color:#c9c3bb}.ammo-factory-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ammo-factory-summary span,.ammo-sales-summary span{padding:11px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.035)}.ammo-factory-summary small,.ammo-sales-summary small{display:block;color:#8f8a83;font-size:10px}.ammo-factory-summary strong,.ammo-sales-summary strong{display:block;margin-top:3px;color:#fff;font-size:17px}.ammo-warning,.ammo-result,.ammo-management-result{margin:14px 0 0;padding:12px 14px;border-radius:12px;background:rgba(244,179,48,.12);border:1px solid rgba(244,179,48,.28)}.ammo-result.is-error,.ammo-management-result.is-error{background:rgba(224,55,55,.12);border-color:rgba(224,55,55,.36);color:#ff8b8b}.ammo-buy-card,.ammo-job-card,.ammo-owner-strip{margin-top:15px;border:1px solid rgba(255,255,255,.09);border-radius:17px;background:#101010;padding:18px}.ammo-buy-card header,.ammo-job-card,.ammo-owner-strip{display:flex;align-items:center;justify-content:space-between;gap:14px}.ammo-buy-card h2,.ammo-job-card h2{margin:3px 0 0}.ammo-buy-card>label{display:block;margin:18px 0 10px}.ammo-buy-card>label span{display:block;margin-bottom:7px;font-size:11px;font-weight:800;color:#9c958c}.ammo-buy-card input[type=range]{width:100%;accent-color:#ed8d20}.ammo-buy-row{display:grid;grid-template-columns:140px 1fr auto;gap:10px;align-items:stretch}.ammo-buy-row input,.ammo-inline-control input,.ammo-manage-box>input,.ammo-application-list input{min-width:0;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:#080808;color:#fff;padding:12px;font:inherit}.ammo-buy-row>div{padding:9px 13px;border-radius:11px;background:#171717}.ammo-buy-row small{display:block;color:#8d8780}.ammo-buy-row button,.ammo-job-card button,.ammo-owner-strip button,.ammo-inline-control button,.ammo-application-list button{border:0;border-radius:11px;background:linear-gradient(135deg,#f0a13a,#a64e0b);color:#fff;font-weight:900;padding:11px 15px;cursor:pointer}.ammo-buy-row button:disabled,.ammo-job-card button:disabled{opacity:.45;cursor:not-allowed}.ammo-job-card p{margin:5px 0 0;color:#aaa}.ammo-owner-strip{background:linear-gradient(135deg,rgba(218,112,24,.17),rgba(80,29,0,.2));border-color:rgba(238,137,41,.34)}.ammo-owner-strip strong{display:block;margin-top:4px}.ammo-empty-note{color:#aaa;text-align:center;padding:16px}.ammo-management-modal{position:fixed;inset:0;z-index:1400;display:none;align-items:center;justify-content:center;padding:14px}.ammo-management-modal.is-open{display:flex}.ammo-management-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.82)}.ammo-management-card{position:relative;width:min(760px,100%);max-height:min(88vh,820px);overflow:auto;border:1px solid rgba(244,143,43,.35);border-radius:20px;background:#0b0b0b;box-shadow:0 30px 90px rgba(0,0,0,.68);padding:18px}.ammo-management-open{overflow:hidden}.ammo-management-card>header{display:flex;justify-content:space-between;align-items:center}.ammo-management-card>header h2{margin:3px 0}.ammo-management-card>header button{width:36px;height:36px;border:0;border-radius:50%;background:#252525;color:#fff;font-size:23px}.ammo-management-tabs{display:flex;gap:7px;overflow:auto;margin:15px 0}.ammo-management-tabs button{flex:1;min-width:max-content;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:#141414;color:#aaa;padding:10px;font-weight:800}.ammo-management-tabs button.is-active{background:#ef8f24;color:#fff}.ammo-management-panel{display:none}.ammo-management-panel.is-active{display:block}.ammo-manage-box{padding:15px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:#111;margin-bottom:11px}.ammo-manage-box h3{margin:0 0 4px}.ammo-manage-box p{margin:0 0 11px;color:#999}.ammo-inline-control{display:grid;grid-template-columns:1fr auto;gap:8px}.ammo-manage-box>input{width:100%;margin-bottom:8px}.ammo-simple-list,.ammo-application-list{display:grid;gap:8px}.ammo-simple-list>div,.ammo-application-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px;border-radius:11px;background:#151515;border:1px solid rgba(255,255,255,.06)}.ammo-simple-list span small{display:block;color:#8e8881;margin-top:2px}.ammo-simple-list em{font-style:normal;color:#ec9b37;text-align:right}.ammo-application-list article{display:grid;grid-template-columns:1fr 145px auto}.ammo-application-list article>div{display:flex;gap:6px}.ammo-application-list button[data-application-action=reject]{background:#4b2020}.ammo-sales-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px}.ammo-sales-list em small{color:#777}.ammo-management-result{position:sticky;bottom:0;background:#1a130b}
@media(max-width:700px){.ammo-factory-hero{grid-template-columns:1fr}.ammo-factory-hero>img{min-height:auto;aspect-ratio:16/9}.ammo-factory-hero-copy{padding:17px}.ammo-buy-row{grid-template-columns:110px 1fr}.ammo-buy-row button{grid-column:1/-1}.ammo-job-card,.ammo-owner-strip{align-items:flex-start;flex-direction:column}.ammo-job-card button,.ammo-owner-strip button{width:100%}.ammo-application-list article{grid-template-columns:1fr}.ammo-application-list article>div button{flex:1}.ammo-management-card{max-height:92vh;border-radius:16px}.ammo-management-tabs button{font-size:11px}.ammo-inline-control{grid-template-columns:1fr}.ammo-inline-control button{width:100%}}

/* Telefon bildirim uygulaması */
.smartphone-app[data-notifications-open]{position:relative}.phone-notification-badge{position:absolute;top:-3px;right:8px;min-width:18px;height:18px;padding:0 4px;border-radius:10px;background:#ff3535;color:#fff;font-size:10px;font-weight:900;display:grid;place-items:center;border:2px solid #111}.phone-notifications-view{position:absolute;inset:0;z-index:18;display:none;flex-direction:column;padding-top:54px;background:linear-gradient(180deg,#171717,#080808);color:#fff}.phone-notifications-view.is-open{display:flex}.phone-notifications-header{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,.09);background:rgba(10,10,10,.94)}.phone-notifications-back{width:36px;height:36px;border:0;border-radius:50%;background:#292929;color:#fff;font-size:29px;line-height:1}.phone-notifications-header strong{display:block;font-size:17px}.phone-notifications-header small{color:#8d8d8d}.phone-notifications-list{flex:1;overflow:auto;padding:10px;display:grid;align-content:start;gap:8px}.phone-notification-card{padding:11px;border-radius:13px;background:#181818;border:1px solid rgba(255,255,255,.08)}.phone-notification-card.is-unread{border-color:rgba(255,105,45,.55);box-shadow:inset 3px 0 #f06e25}.phone-notification-heading{display:flex;justify-content:space-between;gap:8px}.phone-notification-heading strong{font-size:13px}.phone-notification-heading time{font-size:9px;color:#777;white-space:nowrap}.phone-notification-card p{margin:6px 0 0;color:#c8c8c8;font-size:12px;line-height:1.4}.phone-notification-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.phone-notification-actions button{border:0;border-radius:9px;background:#1e9b55;color:#fff;font-weight:900;padding:8px}.phone-notification-actions button.is-reject{background:#8b2828}.phone-notifications-empty{text-align:center;color:#777;padding:25px 8px}.phone-notifications-status{margin:6px 10px 12px;padding:8px;border-radius:9px;background:rgba(34,159,90,.14);font-size:11px}.phone-notifications-status.is-error{background:rgba(194,44,44,.17);color:#ff9b9b}.smartphone-modal.notifications-app-open .smartphone-home,.smartphone-modal.notifications-app-open .smartphone-dock{visibility:hidden}

/* Mermi fabrikası yönetim paneli: büyük pencere, çalışan işlemleri ve 24 saatlik satış görünümü */
.ammo-management-modal {
    padding: 12px;
}

.ammo-management-card {
    width: min(1180px, calc(100vw - 24px));
    height: min(900px, calc(100dvh - 24px));
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ammo-management-card > header,
.ammo-management-tabs,
.ammo-management-result {
    flex: 0 0 auto;
}

.ammo-management-panel.is-active {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.ammo-worker-list > div {
    align-items: center;
}

.ammo-worker-list > div > span {
    min-width: 0;
}

.ammo-dismiss-worker,
.ammo-leave-job-button {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #a92c2c, #641515) !important;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.ammo-dismiss-worker {
    flex: 0 0 auto;
    padding: 10px 14px;
}

.ammo-dismiss-worker:disabled,
.ammo-leave-job-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ammo-sales-retention-note {
    margin: 0 0 10px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    background: #121212;
    color: #8f8a83;
    font-size: .72rem;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .ammo-management-modal {
        padding: 0;
    }

    .ammo-management-card {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border-width: 0;
        border-radius: 0;
        padding: max(14px, env(safe-area-inset-top)) 13px max(14px, env(safe-area-inset-bottom));
    }

    .ammo-management-card > header {
        padding-top: 2px;
    }

    .ammo-worker-list > div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ammo-dismiss-worker {
        min-width: 74px;
    }
}
