/* Yatay taşmayı önle: uzun URL / adres satırları */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

.ac-break-safe {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ac-nav-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f472b6, #fb7185);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.ac-toast {
    position: fixed;
    top: 4.5rem;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    left: auto;
    z-index: 85;
    max-width: min(22rem, calc(100vw - 1.5rem));
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    animation: ac-slide-in 0.35s ease;
}

.ac-toast--ok {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #a7f3d0;
}

.ac-toast--err {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

@keyframes ac-slide-in {
    from {
        opacity: 0;
        transform: translateX(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ac-card-shell {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ac-card-shell::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 60%;
    background: radial-gradient(ellipse at top, var(--ac-accent, #6366f1) 0%, transparent 65%);
    opacity: 0.22;
    pointer-events: none;
}

.ac-glass {
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mobil: sabit alt menü (Flutter kabuğu ile aynı mantık) */
.ac-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    border-top: 1px solid rgba(30, 41, 59, 0.85);
    background: rgba(2, 6, 23, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.safe-area-pb {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ac-mobile-nav-item {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.25rem 0.125rem;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    color: rgb(148 163 184);
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, transform 0.15s ease;
}

a.ac-mobile-nav-item:hover,
button.ac-mobile-nav-item:hover {
    color: rgb(226 232 240);
}

.ac-mobile-nav-item--active {
    color: rgb(129 140 248);
    transform: scale(1.04);
}

.ac-mobile-nav-item__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ac-mobile-nav-item__icon--badge .ac-nav-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.55rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    font-size: 0.6rem;
    line-height: 1.1rem;
}

.ac-mobile-nav-item__label {
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.125rem;
}

.ac-mobile-more-sheet:not(.hidden) {
    animation: ac-sheet-up 0.22s ease;
}

@keyframes ac-sheet-up {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
