/* Personel portal — mobil uygulama kabuğu */

:root {
    --portal-app-bg: #f4f2ee;
    --portal-app-bar: #ffffff;
    --portal-nav-h: 64px;
    --portal-safe-bottom: env(safe-area-inset-bottom, 0px);
    --portal-safe-top: env(safe-area-inset-top, 0px);
    --brand-navy: #1c344c;
    --brand-navy-dark: #152a3d;
    --brand-navy-mid: #243d56;
    --brand-cream: #f0e9dc;
    --brand-cream-bg: #f5f1ea;
    --brand-surface: #eef2f6;
    --brand-surface-border: #dbe3ea;
    --brand-accent: #1c344c;
}

html.portal-app-root {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body.portal-app {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    background: var(--portal-app-bg);
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: #1c344c;
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
}

body.portal-app.pwa-standalone {
    background: var(--portal-app-bg);
}

.portal-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
    background: var(--portal-app-bg);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
}

@media (min-width: 769px) {
    .portal-shell {
        max-width: 1040px;
        box-shadow: none;
    }
}

/* Üst app bar */
.portal-app-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + var(--portal-safe-top)) 16px 12px;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e4dfd6;
}

.portal-app-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.portal-app-bar-left > div:not(.brand-bar-mark) {
    min-width: 0;
}

.portal-app-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.portal-app-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-app-subtitle {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-app-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.portal-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.portal-icon-btn svg {
    width: 18px;
    height: 18px;
}

.portal-icon-btn .portal-badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.portal-app-main {
    flex: 1;
    padding: 12px 14px calc(20px + var(--portal-nav-h) + var(--portal-safe-bottom));
}

@media (min-width: 769px) {
    .portal-app-main {
        padding: 20px 16px 32px;
    }
}

/* Masaüstü yatay sekmeler */
.portal-tabs {
    display: none;
    gap: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #fff;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

@media (min-width: 769px) {
    .portal-tabs {
        display: flex;
    }
}

.portal-tabs a {
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
}

.portal-tabs a:hover {
    background: #f8fafc;
    color: #334155;
}

.portal-tabs a.active {
    background: var(--brand-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(28, 52, 76, 0.25);
}

/* Mobil alt menü */
.portal-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 640px;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 6px 8px calc(6px + var(--portal-safe-bottom));
    background: rgba(245, 243, 239, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(28, 52, 76, 0.1);
    box-shadow: 0 -4px 24px rgba(28, 52, 76, 0.06);
}

@media (min-width: 769px) {
    .portal-bottom-nav {
        display: none;
    }
}

.portal-bottom-nav a,
.portal-bottom-nav button {
    flex: 1;
    min-width: 0;
    max-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.portal-bottom-nav a svg,
.portal-bottom-nav button svg {
    width: 22px;
    height: 22px;
}

.portal-bottom-nav a.active,
.portal-bottom-nav button.active {
    color: var(--brand-navy);
}

.portal-bottom-nav a.active svg,
.portal-bottom-nav button.active svg {
    stroke-width: 2.25;
}

.portal-bottom-nav .portal-nav-qr {
    color: #fff;
    margin-top: -18px;
}

.portal-bottom-nav .portal-nav-qr .portal-nav-qr-btn {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(28, 52, 76, 0.45);
    color: #fff;
}

.portal-bottom-nav .portal-nav-qr .portal-nav-qr-btn svg {
    width: 24px;
    height: 24px;
}

.portal-bottom-nav .portal-nav-qr span {
    color: var(--brand-navy-dark);
    margin-top: 2px;
}

.portal-bottom-nav .nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
}

/* Diğer menüsü (alt sayfa) */
.portal-more-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.45);
}

.portal-more-backdrop.open {
    display: block;
}

.portal-more-sheet {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(110%);
    bottom: 0;
    width: 100%;
    max-width: 640px;
    z-index: 70;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 8px 16px calc(16px + var(--portal-safe-bottom));
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12);
}

.portal-more-sheet.open {
    transform: translateX(-50%) translateY(0);
}

.portal-more-handle {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 4px auto 14px;
}

.portal-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.portal-more-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.portal-more-grid a.active {
    background: var(--brand-surface);
    border-color: rgba(28, 52, 76, 0.22);
    color: var(--brand-navy-dark);
}

.portal-more-grid a svg {
    width: 22px;
    height: 22px;
    color: var(--brand-navy);
}

/* Portal içerik kartları */
.portal-app .portal-content-inner {
    max-width: 100%;
}

.portal-app .grid-2,
.portal-app .grid-3 {
    display: grid;
    gap: 12px;
}

.portal-app .grid-2 {
    grid-template-columns: 1fr 1fr;
}

.portal-app .grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .portal-app .grid-2,
    .portal-app .grid-3 {
        grid-template-columns: 1fr;
    }

    .portal-app .stat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .portal-app .welcome-card,
    .portal-app .today-status {
        flex-direction: column;
        text-align: center;
    }

    .portal-app .today-status .times {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .portal-app .portal-header-legacy {
        display: none !important;
    }

    .portal-app .portal-desktop-only {
        display: none !important;
    }

    /* Dashboard hero mobil */
    .portal-dash-hero {
        padding: 18px 16px !important;
    }

    .portal-dash-hero-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .portal-dash-hero-clock {
        border-left: none !important;
        padding-left: 0 !important;
        width: 100%;
        text-align: center !important;
        margin-top: 8px;
    }
}

@media (min-width: 769px) {
    .portal-app .portal-mobile-only {
        display: none !important;
    }
}

/* Giriş ekranı — pdksnod marka */
body.portal-login-page {
    overflow-x: hidden;
    overflow-y: auto;
    background: #f5f3ef;
}

.portal-login-screen {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(24px + var(--portal-safe-top)) 16px calc(24px + var(--portal-safe-bottom));
    background: transparent;
}

.portal-login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.portal-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    border: 1px solid rgba(28, 52, 76, 0.1);
    box-shadow: 0 18px 48px rgba(28, 52, 76, 0.08);
    animation: portalLoginUp 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.portal-login-card .auth-brand {
    margin-bottom: 24px;
}

.portal-login-card-head {
    text-align: center;
    margin-bottom: 22px;
}

.portal-login-card-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: -0.03em;
    margin: 0 0 6px;
}

.portal-login-card-head p {
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
}

.portal-login-field {
    margin-bottom: 14px;
}

.portal-login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.portal-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.portal-login-input-wrap > svg.field-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.portal-login-input-wrap input {
    width: 100%;
    padding: 14px 44px 14px 42px;
    border: 1.5px solid #e4dfd6;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    color: #0f172a;
    background: #faf9f7;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.portal-login-input-wrap input:focus {
    outline: none;
    border-color: var(--brand-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(28, 52, 76, 0.12);
}

.portal-login-input-wrap input::placeholder {
    color: #94a3b8;
}

.portal-login-toggle-pw {
    position: absolute;
    right: 4px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.portal-login-toggle-pw:hover {
    color: var(--brand-navy);
    background: var(--brand-cream-bg);
}

.portal-login-toggle-pw svg {
    width: 18px;
    height: 18px;
}

.portal-login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.4;
    animation: portalLoginShake 0.4s ease;
}

.portal-login-error svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.portal-login-submit {
    width: 100%;
    margin-top: 6px;
    padding: 15px 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(28, 52, 76, 0.35);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.portal-login-submit:hover {
    box-shadow: 0 10px 28px rgba(28, 52, 76, 0.45);
}

.portal-login-submit:active {
    transform: scale(0.98);
}

.portal-login-submit.loading {
    opacity: 0.85;
    pointer-events: none;
}

.portal-login-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: portalSpin 0.7s linear infinite;
}

.portal-login-submit.loading .spinner {
    display: block;
}

.portal-login-submit.loading .btn-label {
    opacity: 0.85;
}

.portal-login-extra {
    margin: 0 0 14px;
    border-radius: 12px;
    background: #faf9f7;
    border: 1px solid #ece8e1;
}

.portal-login-extra summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.portal-login-extra summary::-webkit-details-marker {
    display: none;
}

.portal-login-extra summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #94a3b8;
    border-bottom: 1.5px solid #94a3b8;
    transform: rotate(45deg);
    margin-top: -4px;
    flex-shrink: 0;
}

.portal-login-extra[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.portal-login-extra summary span {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
}

.portal-login-extra .portal-login-field {
    padding: 0 14px 14px;
    margin-bottom: 0;
}

.portal-login-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    background: #faf9f7;
    border: 1px solid #ece8e1;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.portal-login-admin:hover {
    background: #f5f3ef;
    border-color: #ddd6cb;
    color: #1c344c;
}

.portal-login-admin svg {
    width: 16px;
    height: 16px;
    color: var(--brand-navy);
}

.portal-login-foot {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    padding: 0 8px;
}

@keyframes portalLoginUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes portalLoginShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

@keyframes portalSpin {
    to { transform: rotate(360deg); }
}

@media (min-width: 769px) {
    .portal-login-screen {
        padding: 32px;
    }

    .portal-login-wrap {
        gap: 24px;
    }
}

/* QR sayfası */
.portal-scan-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
    background: var(--portal-app-bg);
}

.portal-scan-main {
    flex: 1;
    padding: 16px 16px calc(20px + var(--portal-nav-h) + var(--portal-safe-bottom));
}

@media (min-width: 769px) {
    .portal-scan-main {
        padding-bottom: 24px;
    }
}

/* Bildirim banner (push izni) */
.portal-push-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--portal-nav-h) + var(--portal-safe-bottom) + 8px);
    width: calc(100% - 24px);
    max-width: 612px;
    z-index: 55;
    animation: portalSlideUp .35s ease;
}

@media (min-width: 769px) {
    .portal-push-banner {
        bottom: 16px;
        max-width: 420px;
    }
}

.portal-push-banner-inner {
    background: #0f172a;
    color: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-push-banner-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.portal-push-banner-text span {
    font-size: 12px;
    opacity: 0.82;
    line-height: 1.4;
}

.portal-push-banner-actions {
    display: flex;
    gap: 8px;
}

.portal-push-btn {
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.portal-push-btn.primary {
    background: var(--brand-navy);
    color: #fff;
}

.portal-push-btn.ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Toast bildirimleri */
.portal-toast-stack {
    position: fixed;
    top: calc(12px + var(--portal-safe-top));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.portal-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(28, 52, 76, 0.12);
    border-left: 4px solid var(--brand-navy);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.14);
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s;
}

.portal-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.portal-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand-surface);
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.portal-toast-icon svg {
    width: 16px;
    height: 16px;
}

.portal-toast-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #64748b;
}

.portal-toast-body strong {
    font-size: 13px;
    color: #0f172a;
}

.portal-toast-close {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

/* Uyarı kutusu (dashboard) */
.portal-alert-inbox {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.portal-alert-inbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--brand-cream-bg), #fff);
    border-bottom: 1px solid #e2e8f0;
}

.portal-alert-inbox-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.portal-alert-inbox-title svg {
    width: 18px;
    height: 18px;
    color: var(--brand-navy);
}

.portal-alert-inbox-count {
    font-size: 11px;
    font-weight: 700;
    background: #fef3c7;
    color: #b45309;
    padding: 3px 8px;
    border-radius: 999px;
}

.portal-alert-inbox-list {
    display: flex;
    flex-direction: column;
}

.portal-alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.portal-alert-item:last-child {
    border-bottom: none;
}

.portal-alert-item-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.portal-alert-item-main strong {
    font-size: 13px;
    color: #0f172a;
}

.portal-alert-item-main span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.portal-alert-warn {
    background: #fffbeb;
}

.portal-alert-danger {
    background: #fef2f2;
}

.portal-alert-item-link {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-navy);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--brand-surface);
}

.portal-alert-inbox-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-navy);
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
}

@keyframes portalSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* İlk giriş hoş geldin */
.portal-welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + var(--portal-safe-bottom));
    animation: portalFadeIn .25s ease;
}

@media (min-width: 769px) {
    .portal-welcome-overlay {
        align-items: center;
        padding-bottom: 16px;
    }
}

.portal-welcome-overlay.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.portal-welcome-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px 24px 20px 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    animation: portalWelcomeUp .35s cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 769px) {
    .portal-welcome-card {
        border-radius: 20px;
    }
}

.portal-welcome-hero {
    background: linear-gradient(145deg, var(--brand-navy), var(--brand-navy-dark) 55%, var(--brand-navy-dark));
    color: #fff;
    padding: 28px 24px 22px;
    text-align: center;
}

.portal-welcome-logo-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    overflow: hidden;
    line-height: 0;
}

.portal-welcome-logo-wrap .brand-bar-mark,
.portal-welcome-logo-wrap.brand-bar-mark {
    --brand-bar-mark-size: 56px;
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    flex: 0 0 56px;
    border-radius: 14px;
    margin: 0 auto;
}

.portal-dash-hero {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    color: #fff;
}

.portal-dash-hero .hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: var(--brand-navy-dark);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.portal-brand-panel {
    background: linear-gradient(135deg, var(--brand-navy-dark), var(--brand-navy));
    color: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.portal-brand-banner {
    background: linear-gradient(135deg, var(--brand-navy-dark), var(--brand-navy));
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.portal-brand-banner .btn-brand-light {
    background: #fff;
    color: var(--brand-navy-dark);
    border: 0;
    font-weight: 600;
    min-height: 40px;
}

.portal-surface-box {
    background: var(--brand-cream-bg);
    border: 1px solid var(--brand-surface-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--brand-navy-dark);
}

.portal-msg-ok {
    background: var(--brand-surface);
    color: var(--brand-navy-dark);
}

.welcome-card {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    color: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.welcome-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.welcome-card .subtitle { opacity: 0.85; font-size: 13px; }
.welcome-card .motivation { font-size: 12px; opacity: 0.7; margin-top: 8px; font-style: italic; }
.welcome-card .clock { font-size: 36px; font-weight: 700; opacity: 0.9; font-variant-numeric: tabular-nums; }
.welcome-card .clock-date { font-size: 12px; opacity: 0.7; text-align: right; }

@media (max-width: 768px) {
    .welcome-card { flex-direction: column; text-align: center; }
}

.portal-welcome-hero h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.portal-welcome-hero p {
    font-size: 13px;
    opacity: 0.88;
    line-height: 1.45;
}

.portal-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.portal-welcome-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.portal-welcome-action svg {
    width: 22px;
    height: 22px;
    color: var(--brand-navy);
    flex-shrink: 0;
}

.portal-welcome-action span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portal-welcome-action strong {
    font-size: 14px;
    color: #0f172a;
}

.portal-welcome-action em {
    font-size: 11px;
    color: #64748b;
    font-style: normal;
}

.portal-welcome-start {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    min-height: 48px;
}

@keyframes portalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes portalWelcomeUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

[data-portal-notif-badge] {
    display: none;
}

/* Giriş — cihazı hatırla + şirket seçimi (2026-10) */
.portal-login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 18px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.portal-login-remember input {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.portal-login-remember input::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
}

.portal-login-remember input:checked {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
}

.portal-login-remember input:checked::after {
    opacity: 1;
}

.portal-login-remember input:focus-visible {
    outline: 3px solid rgba(28, 52, 76, 0.25);
    outline-offset: 2px;
}

.portal-pick-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.portal-pick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e4dfd6;
    border-radius: 14px;
    background: #faf9f7;
    font-family: inherit;
    text-align: left;
    color: #94a3b8;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.portal-pick-item:hover,
.portal-pick-item:focus-visible {
    border-color: var(--brand-navy);
    background: #fff;
    outline: none;
}

.portal-pick-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-navy);
    color: #fff;
    display: grid;
    place-content: center;
    font-weight: 700;
    font-size: 16px;
}

.portal-pick-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.portal-pick-text strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-pick-text small {
    color: #64748b;
    font-size: 12px;
}

.portal-login-back {
    width: 100%;
    font-family: inherit;
    cursor: pointer;
}

/* ==========================================================================
   Giriş / Çıkış kartı + tam ekran QR katmanı (2026-10, mobil uygulama tarzı)
   ========================================================================== */

/* Üst çubuk logosu: 56px kutu çubuğu şişiriyordu */
.portal-app-bar .brand-bar-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
}
.portal-app-bar .brand-bar-mark img {
    width: 40px;
    height: 40px;
}

.portal-bottom-nav a > span:not(.nav-badge):not(.portal-nav-qr-btn) {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-card {
    --pc-accent: #10b981;
    --pc-accent-dark: #047857;
    position: relative;
    overflow: hidden;
    margin: 0 0 16px;
    padding: 20px 20px 18px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),
        linear-gradient(160deg, var(--brand-navy-mid) 0%, var(--brand-navy) 45%, var(--brand-navy-dark) 100%);
    box-shadow: 0 16px 40px rgba(28, 52, 76, 0.28);
    text-align: center;
}

.pc-card[data-next="out"] {
    --pc-accent: #f97316;
    --pc-accent-dark: #c2410c;
}

.pc-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    text-align: left;
}

.pc-greet {
    min-width: 0;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-hello {
    opacity: 0.7;
}

.pc-greet strong {
    font-weight: 700;
}

.pc-date {
    flex-shrink: 0;
    font-size: 12px;
    opacity: 0.65;
}

.pc-clock {
    margin-top: 14px;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.pc-hint {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.75;
}

.pc-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 156px;
    height: 156px;
    margin: 22px auto 20px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pc-btn-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--pc-accent);
    opacity: 0.22;
    animation: pcPulse 2.4s ease-out infinite;
}

.pc-btn-inner {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(145deg, var(--pc-accent), var(--pc-accent-dark));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease;
}

.pc-btn:active .pc-btn-inner {
    transform: scale(0.94);
}

.pc-btn-inner svg {
    width: 34px;
    height: 34px;
}

.pc-btn-label {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pc-card[data-state="done"] .pc-btn-ring {
    animation: none;
    opacity: 0.12;
}

@keyframes pcPulse {
    0%   { transform: scale(0.82); opacity: 0.35; }
    70%  { transform: scale(1.08); opacity: 0; }
    100% { transform: scale(1.08); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pc-btn-ring { animation: none; }
}

.pc-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.pc-btn + .pc-times {
    margin-top: 0;
}

.pc-time {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.pc-time-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
}

.pc-time-val {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pc-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.pc-links a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.pc-links a:active {
    background: rgba(255, 255, 255, 0.18);
}

.pc-links svg {
    width: 15px;
    height: 15px;
}

@media (min-width: 769px) {
    .pc-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "top   btn"
            "clock btn"
            "hint  btn"
            "times btn"
            "links btn";
        column-gap: 32px;
        text-align: left;
        padding: 24px 28px;
    }
    .pc-top   { grid-area: top; }
    .pc-clock { grid-area: clock; }
    .pc-hint  { grid-area: hint; }
    .pc-times { grid-area: times; margin-top: 16px; max-width: 420px; }
    .pc-btn + .pc-times { margin-top: 16px; }
    .pc-links { grid-area: links; max-width: 420px; }
    .pc-btn   { grid-area: btn; align-self: center; margin: 0; }
}

/* ---------- Tam ekran QR katmanı ---------- */
html.ps-open,
html.ps-open body {
    overflow: hidden;
}

.ps {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background: #0b1622;
    color: #fff;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.ps[hidden] {
    display: none;
}

.ps.ps-visible {
    opacity: 1;
    transform: none;
}

.ps-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10px + var(--portal-safe-top)) 12px 10px;
}

.ps-close,
.ps-head-spacer {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.ps-close {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.ps-close svg {
    width: 22px;
    height: 22px;
}

.ps-title {
    font-size: 16px;
    font-weight: 700;
}

.ps-body {
    position: relative;
    flex: 1;
    display: flex;
    min-height: 0;
}

.ps-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 24px calc(32px + var(--portal-safe-bottom));
    text-align: center;
}

.ps-view[hidden] {
    display: none;
}

.ps-scan {
    padding: 0 0 calc(28px + var(--portal-safe-bottom));
    justify-content: flex-start;
}

.ps-camera {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ps-reader,
.ps-reader video {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border: 0 !important;
}

/* Kütüphanenin kendi gölge kutusunu gizle, kendi çerçevemizi kullan */
.ps-reader #qr-shaded-region {
    display: none !important;
}

.ps-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(70vw, 260px);
    height: min(70vw, 260px);
    transform: translate(-50%, -50%);
    border-radius: 24px;
    box-shadow: 0 0 0 100vmax rgba(11, 22, 34, 0.55);
    pointer-events: none;
}

.ps-frame i {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 4px solid #fff;
}

.ps-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 24px; }
.ps-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 24px; }
.ps-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 24px; }
.ps-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 24px; }

.ps-laser {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    top: 10%;
    background: linear-gradient(90deg, transparent, #34d399, transparent);
    box-shadow: 0 0 12px #34d399;
    animation: psLaser 2s ease-in-out infinite alternate;
}

@keyframes psLaser {
    to { top: 90%; }
}

.ps-tip {
    margin: 18px 24px 0;
    font-size: 14px;
    opacity: 0.8;
}

.ps-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    animation: portalSpin 0.8s linear infinite;
}

.ps-busy-text {
    margin-top: 18px;
    font-size: 15px;
    opacity: 0.85;
}

.ps-check {
    width: 112px;
    height: 112px;
}

.ps-check svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-check circle {
    stroke: #10b981;
    fill: rgba(16, 185, 129, 0.15);
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: psDraw 0.5s ease-out forwards;
}

.ps-check path {
    stroke: #fff;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: psDraw 0.35s 0.4s ease-out forwards;
}

.ps.ps-out .ps-check circle {
    stroke: #f97316;
    fill: rgba(249, 115, 22, 0.15);
}

@keyframes psDraw {
    to { stroke-dashoffset: 0; }
}

.ps-result-dir {
    margin-top: 22px;
    font-size: 22px;
    font-weight: 700;
}

.ps-result-time {
    margin-top: 6px;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.ps-result-meta {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.7;
}

.ps-err-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.ps-err-icon svg {
    width: 44px;
    height: 44px;
}

.ps-queued-icon {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.ps-err-text {
    max-width: 340px;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
}

.ps-btn {
    width: 100%;
    max-width: 340px;
    min-height: 52px;
    margin-top: 28px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: var(--brand-navy);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.ps-btn + .ps-btn {
    margin-top: 10px;
}

.ps-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==========================================================================
   PWA katmanı (assets/js/portal-app.js) — 2026-10
   ========================================================================== */
/* Üst ilerleme çubuğu */
.pa-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #10b981, #34d399); opacity: 0; }
.pa-progress.run { opacity: 1; animation: paProg 8s cubic-bezier(.1, .7, .2, 1) forwards; }
.pa-progress.done { opacity: 0; transform: scaleX(1); transition: opacity .3s .1s, transform .15s; }
@keyframes paProg { from { transform: scaleX(0); } to { transform: scaleX(.92); } }

/* İçerik geçişi */
.portal-content { view-transition-name: portal-content; }
::view-transition-old(portal-content) { animation: paOut .16s ease both; }
::view-transition-new(portal-content) { animation: paIn .22s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes paOut { to { opacity: 0; transform: translateY(-4px); } }
@keyframes paIn { from { opacity: 0; transform: translateY(8px); } }
.portal-content.pa-fade { opacity: 0; }
.portal-content { transition: opacity .18s ease; }

/* Çevrimdışı şeridi */
.pa-net { position: fixed; left: 50%; top: calc(10px + var(--portal-safe-top)); z-index: 290; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); transform: translate(-50%, -80px); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); pointer-events: none; }
.pa-net.show { transform: translate(-50%, 0); }
.pa-net i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }

/* Kurulum kartı */
.pa-install { position: fixed; left: 12px; right: 12px; bottom: calc(var(--portal-nav-h) + 16px + var(--portal-safe-bottom)); z-index: 150; display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 40px 14px 14px; border-radius: 18px; background: #fff; border: 1px solid #e4dfd6; box-shadow: 0 20px 50px rgba(15, 23, 42, .22); transform: translateY(calc(100% + 120px)); transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); max-width: 520px; margin: 0 auto; }
.pa-install.show { transform: none; }
.pa-install img { border-radius: 14px; }
.pa-install-txt { display: flex; flex-direction: column; min-width: 0; }
.pa-install-txt strong { font-size: 14.5px; color: #0f172a; }
.pa-install-txt span { font-size: 12.5px; color: #64748b; line-height: 1.4; }
.pa-install-go { min-height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: #059669; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pa-install-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: #94a3b8; font-size: 22px; cursor: pointer; }
.pa-ios-steps { grid-column: 1 / -1; margin: 4px 0 0; padding: 12px 14px 12px 34px; border-radius: 12px; background: #f5f3ef; font-size: 13px; color: #334155; display: grid; gap: 6px; }
.pa-ios-steps svg { width: 16px; height: 16px; vertical-align: -3px; color: #2563eb; }
@media (min-width: 769px) { .pa-install { bottom: 24px; } }

/* Aşağı çekip yenile */
.pa-ptr { position: fixed; left: 50%; top: calc(8px + var(--portal-safe-top)); z-index: 280; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #059669; box-shadow: 0 6px 20px rgba(15, 23, 42, .18); transform: translate(-50%, -60px); opacity: 0; pointer-events: none; }
.pa-ptr svg { width: 20px; height: 20px; }
.pa-ptr.spin { opacity: 1 !important; transform: translate(-50%, 40px) !important; }
.pa-ptr.spin svg { animation: portalSpin .7s linear infinite; }

/* Kurulu uygulamada metin seçimi ve uzun basma menüsü daha uygulama gibi */
.is-standalone .portal-bottom-nav, .is-standalone .portal-app-bar { -webkit-user-select: none; user-select: none; }
.is-standalone a, .is-standalone button { -webkit-touch-callout: none; }
@media (prefers-reduced-motion: reduce) { .pa-net, .pa-install { transition: none; } ::view-transition-old(portal-content), ::view-transition-new(portal-content) { animation: none; } }

/* Sayaç kartları: sayı büyük, etiket küçük */
.portal-app .stat-card { display: flex; flex-direction: column; gap: 2px; }
.portal-app .stat-card .stat-number { order: 2; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #0f172a; font-variant-numeric: tabular-nums; }
.portal-app .stat-card .stat-number small { font-size: 14px; font-weight: 600; color: #94a3b8; }
.portal-app .stat-card .stat-label { order: 1; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: #64748b; text-transform: none; }

/* Güncelleme kartı (yeni sürüm hazır) */
.pa-update { position: fixed; left: 12px; right: 12px; top: calc(12px + var(--portal-safe-top)); z-index: 160; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #0f172a; color: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .35); transform: translateY(-140%); transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); max-width: 520px; margin: 0 auto; }
.pa-update.show { transform: none; }
.pa-update-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(16, 185, 129, .18); color: #34d399; }
.pa-update-ic svg { width: 20px; height: 20px; }
.pa-update-txt { display: flex; flex-direction: column; min-width: 0; }
.pa-update-txt strong { font-size: 14.5px; }
.pa-update-txt span { font-size: 12.5px; color: #94a3b8; line-height: 1.35; }
.pa-update-go { min-height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: #10b981; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pa-update-go:disabled { opacity: .7; }
