/* ═══════════════════════════════════════════════
   AUTH.CSS  —  YDT Master Google Login & Profil
   ═══════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   LOGIN OVERLAY — A+ Modeli
   • Zorunlu giriş görünümü + "Misafir olarak devam et"
   • lo- prefix sistemi
   ══════════════════════════════════════════════════════ */

/* ── Overlay zemin ──────────────────────────────────── */
#login-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity .35s ease;
}
@media (max-height: 700px) {
    #login-overlay {
        align-items: flex-start;
        padding: 16px 16px 32px;
    }
}
#login-overlay.lo-ready { opacity: 1; }
#login-overlay.lo-exit  { opacity: 0; pointer-events: none; }
#login-overlay {
    color-scheme: dark;
}

/* ── Animasyonlu arka plan katmanı ──────────────────── */
.lo-bg-layer {
    position: fixed; inset: 0;
    background: linear-gradient(145deg, #0a0a18 0%, #11112a 50%, #0d1a2e 100%);
    overflow: hidden;
}
.lo-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .55;
    animation: orbFloat 8s ease-in-out infinite alternate;
}
.lo-orb-1 {
    width: 420px; height: 420px; top: -120px; left: -80px;
    background: radial-gradient(circle, #e63946 0%, transparent 70%);
    animation-duration: 9s;
}
.lo-orb-2 {
    width: 360px; height: 360px; bottom: -100px; right: -60px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    animation-duration: 11s; animation-direction: alternate-reverse;
}
.lo-orb-3 {
    width: 200px; height: 200px; top: 40%; left: 55%;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    animation-duration: 7s;
}
@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -20px) scale(1.08); }
}
.lo-grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Kart ───────────────────────────────────────────── */
.lo-card {
    position: relative; z-index: 1;
    width: min(440px, 100%);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 28px;
    padding: 36px 32px 28px;
    backdrop-filter: blur(40px) saturate(1.6);
    -webkit-backdrop-filter: blur(40px) saturate(1.6);
    box-shadow:
        0 32px 80px rgba(0,0,0,.55),
        0 0 0 1px rgba(255,255,255,.06) inset;
    transform: translateY(32px) scale(.96);
    transition: transform .42s cubic-bezier(.34,1.4,.64,1), opacity .35s ease;
    opacity: 0;
}
#login-overlay.lo-ready .lo-card {
    transform: none;
    opacity: 1;
    transition-delay: .08s;
}

/* ── Logo & Marka ───────────────────────────────────── */
.lo-brand {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px;
}
.lo-logo-wrap {
    position: relative; width: 52px; height: 52px; flex-shrink: 0;
}
.lo-logo-ring {
    position: absolute; inset: -3px;
    border-radius: 17px;
    background: conic-gradient(from 0deg, #e63946, #f97316, #e63946);
    animation: logoSpin 4s linear infinite;
    opacity: .8;
}
@keyframes logoSpin { to { transform: rotate(360deg); } }
.lo-logo-icon {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: #0a0a18;
    border-radius: 14px;
    font-size: 1.6rem;
    line-height: 1;
    text-align: center;
}
.lo-brand-text {
    display: flex; flex-direction: column; gap: 2px;
}
.lo-brand-name {
    font-size: 1.1rem; font-weight: 800; color: #fff;
    letter-spacing: -.3px;
}
.lo-brand-tag {
    font-size: .7rem; font-weight: 600;
    color: rgba(255,255,255,.4); letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── Başlık ─────────────────────────────────────────── */
.lo-headline { margin-bottom: 24px; }
.lo-title {
    font-size: clamp(1.7rem, 5vw, 2.1rem);
    font-weight: 900; color: #fff;
    letter-spacing: -.04em; margin: 0 0 6px; line-height: 1.1;
}
.lo-title-accent {
    background: linear-gradient(90deg, #e63946, #f97316);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lo-subtitle {
    font-size: .85rem; color: rgba(255,255,255,.5);
    margin: 0; line-height: 1.5;
}

/* ── Stats satırı ───────────────────────────────────── */
.lo-stats-row {
    display: flex; align-items: center; justify-content: space-around;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px; padding: 14px 8px;
    margin-bottom: 24px;
}
.lo-stat { text-align: center; }
.lo-stat-num {
    display: block; font-size: 1.15rem; font-weight: 900;
    color: #fff; letter-spacing: -.03em; line-height: 1;
}
.lo-stat-lbl {
    display: block; font-size: .65rem; font-weight: 600;
    color: rgba(255,255,255,.4); text-transform: uppercase;
    letter-spacing: .06em; margin-top: 3px;
}
.lo-stat-div {
    width: 1px; height: 32px;
    background: rgba(255,255,255,.12);
}

/* ── Google butonu ──────────────────────────────────── */
.lo-btn-google {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 15px 20px;
    background: #fff;
    border: none; border-radius: 16px; cursor: pointer;
    font-size: .95rem; font-weight: 700; color: #111;
    transition: all .22s; box-shadow: 0 4px 20px rgba(0,0,0,.3);
    margin-bottom: 14px;
    position: relative; overflow: hidden;
}
.lo-btn-google::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(66,133,244,.08), transparent);
    transform: translateX(-100%);
    transition: transform .4s;
}
.lo-btn-google:hover::before { transform: translateX(100%); }
.lo-btn-google:hover {
    box-shadow: 0 8px 28px rgba(66,133,244,.35);
    transform: translateY(-2px);
}
.lo-btn-google:active { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.lo-btn-google span:first-of-type { flex: 1; text-align: left; }
.lo-btn-google-arrow {
    font-size: 1rem; opacity: .5;
    transition: opacity .2s, transform .2s;
}
.lo-btn-google:hover .lo-btn-google-arrow { opacity: 1; transform: translateX(3px); }

/* ── Perk listesi ───────────────────────────────────── */
.lo-perks {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 20px;
}
.lo-perk {
    display: flex; align-items: center; gap: 10px;
    font-size: .78rem; color: rgba(255,255,255,.55);
    font-weight: 500;
}
.lo-perk-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #e63946, #f97316);
    box-shadow: 0 0 8px rgba(230,57,70,.5);
}

/* ── Ayırıcı ────────────────────────────────────────── */
.lo-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 14px;
    color: rgba(255,255,255,.25); font-size: .72rem;
}
.lo-divider::before, .lo-divider::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(255,255,255,.1);
}

/* ── Misafir butonu ─────────────────────────────────── */
.lo-btn-guest {
    width: 100%; padding: 13px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px; cursor: pointer;
    font-size: .85rem; font-weight: 600;
    color: rgba(255,255,255,.5);
    transition: all .22s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 16px;
}
.lo-btn-guest:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.25);
    color: rgba(255,255,255,.75);
}
.lo-guest-note {
    font-size: .68rem; font-weight: 500;
    color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.06);
    border-radius: 99px; padding: 2px 8px;
}

/* ── Yasal ──────────────────────────────────────────── */
.lo-legal {
    font-size: .68rem; color: rgba(255,255,255,.25);
    text-align: center; margin: 0; line-height: 1.5;
}
.lo-legal-link {
    color: rgba(255,255,255,.4); text-decoration: underline;
}
.lo-legal-link:hover { color: rgba(255,255,255,.65); }

/* ══════════════════════════════════════════════════════
   MISAFIR BANNER — sayfa içi kayıt teşviki
   ══════════════════════════════════════════════════════ */
#guest-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 900;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.34,1.3,.64,1);
}
#guest-banner.gb-visible { transform: translateY(0); }

.gb-inner {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-top: 1px solid rgba(230,57,70,.3);
    padding: 14px 20px;
    box-shadow: 0 -8px 32px rgba(0,0,0,.3);
}
.gb-icon {
    font-size: 1.3rem; flex-shrink: 0;
}
.gb-text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 1px;
}
.gb-text strong {
    font-size: .82rem; font-weight: 800; color: #fff;
    display: block;
}
.gb-text span {
    font-size: .72rem; color: rgba(255,255,255,.5);
    display: block;
}
.gb-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #e63946, #c1121f);
    border: none; border-radius: 10px; cursor: pointer;
    font-size: .8rem; font-weight: 800; color: #fff;
    white-space: nowrap; flex-shrink: 0;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(230,57,70,.4);
}
.gb-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230,57,70,.5); }
.gb-close {
    background: none; border: none; cursor: pointer;
    font-size: .85rem; color: rgba(255,255,255,.3);
    padding: 6px; transition: color .2s; flex-shrink: 0;
}
.gb-close:hover { color: rgba(255,255,255,.7); }

@media (max-width: 480px) {
    .gb-inner { padding: 12px 14px; gap: 8px; }
    .gb-text span { display: none; }
    .gb-btn { padding: 8px 14px; font-size: .75rem; }
}

/* ── Profil Hero (Google Auth versiyonu) ────── */
.profil-google-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 22px; padding: 28px 24px 24px;
    margin-bottom: 16px; position: relative; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.profil-google-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 0%, rgba(230,57,70,.25) 0%, transparent 60%);
    pointer-events: none;
}
.profil-gh-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    flex-wrap: wrap;
}
.profil-gh-photo {
    width: 64px; height: 64px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.25);
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.profil-gh-photo-placeholder {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #e63946, #c1121f);
    border: 3px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; flex-shrink: 0;
}
.profil-gh-info { flex: 1 1 0; min-width: 0; }
.profil-gh-greeting {
    font-size: .75rem; font-weight: 600;
    color: rgba(255,255,255,.6); margin-bottom: 3px;
    text-transform: uppercase; letter-spacing: .06em;
}
.profil-gh-name {
    font-size: 1.25rem; font-weight: 800;
    color: #fff; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profil-gh-email {
    font-size: .72rem; color: rgba(255,255,255,.45);
}
.profil-gh-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    border-radius: 99px; padding: 3px 10px;
    font-size: .68rem; font-weight: 700; color: rgba(255,255,255,.75);
    margin-top: 10px; position: relative;
    max-width: 100%; width: fit-content; line-height: 1.35; white-space: normal;
}

.profil-gh-logout {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px; padding: 7px 12px;
    font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.7);
    cursor: pointer; transition: all .2s; flex-shrink: 0;
    align-self: flex-start; margin-left: auto;
}
.profil-gh-logout:hover { background: rgba(230,57,70,.3); color: #fff; }

/* ── Özellik Kartları ───────────────────────── */
@media (max-width: 480px) {
    .profil-google-hero { padding: 22px 16px 18px; }
    .profil-gh-top { gap: 12px; }
    .profil-gh-info { flex: 1 1 calc(100% - 76px); }
    .profil-gh-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.15;
    }
    .profil-gh-email { overflow-wrap: anywhere; }
    .profil-gh-badge {
        font-size: .64rem;
        padding: 4px 9px;
    }
}

.profil-feature-cards {
    display: grid; grid-template-columns: 1fr;
    gap: 12px; margin-bottom: 16px;
}
@media (min-width: 600px) {
    .profil-feature-cards { grid-template-columns: repeat(3, 1fr); }
}
.profil-feat-card {
    background: var(--white, #fff);
    border: 2px solid #3b82f6;
    border-radius: 18px; padding: 20px 18px;
    cursor: pointer; transition: all .3s;
    box-shadow: 0 4px 18px rgba(59,130,246,.10);
    display: flex; flex-direction: column; gap: 8px;
}
.profil-feat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(59,130,246,.2);
    border-color: #2563eb;
}
.profil-feat-icon {
    font-size: 2rem; margin-bottom: 2px;
}
.profil-feat-name {
    font-size: .92rem; font-weight: 800; color: var(--ink, #1a1a2e);
}
.profil-feat-why {
    font-size: .75rem; color: var(--ink3, #888); line-height: 1.5;
}
.profil-feat-cta {
    display: inline-block; margin-top: 4px;
    font-size: .73rem; font-weight: 700;
    color: var(--red, #e63946);
}

/* ── Başarı Tablosu ─────────────────────────── */
.profil-basari {
    background: var(--white, #fff);
    border: 2px solid #e63946;
    border-radius: 18px; padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 18px rgba(230,57,70,.12);
}
.profil-basari-title {
    font-size: .78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink3, #888); margin-bottom: 16px;
    display: flex; align-items: center; gap: 6px;
}
.profil-basari-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.profil-basari-item {
    text-align: center;
    background: var(--bg, #f8f8fc); border-radius: 14px;
    padding: 14px 8px;
}
.profil-basari-val {
    font-size: 1.5rem; font-weight: 900;
    color: var(--red, #e63946); display: block;
    line-height: 1.1; word-break: break-word;
}
/* Çalışma süresi uzun olabilir — daha küçük font */
#auth-stat-time {
    font-size: clamp(.85rem, 3.5vw, 1.2rem);
}
.profil-basari-lbl {
    font-size: .68rem; font-weight: 600;
    color: var(--ink3, #888); margin-top: 5px; display: block;
    text-transform: uppercase; letter-spacing: .04em;
}

/* ── Sync durumu ────────────────────────────── */
.auth-sync-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 12px;
    background: var(--bg, #f8f8fc); margin-bottom: 12px;
    font-size: .75rem; font-weight: 600; color: var(--ink3, #888);
    transition: all .3s;
}
.auth-sync-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #94a3b8; flex-shrink: 0; transition: background .3s;
}
.auth-sync-bar.synced .auth-sync-dot { background: #22c55e; }
.auth-sync-bar.syncing .auth-sync-dot {
    background: #f59e0b;
    animation: syncPulse 1s infinite;
}
@keyframes syncPulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Dark mode ──────────────────────────────── */
[data-theme="dark"] {
    .login-card { background: #1a1a2e; }
    .btn-google { background: #1e1e30; border-color: #333; color: #f0f0f0; }
    .profil-feat-card { background: #1a1a2e; border-color: #2a2a3e; }
    .profil-basari { background: #1a1a2e; border-color: #2a2a3e; }
    .profil-basari-item { background: #13131f; }
}

/* ═══════════════════════════════════════════════
   PROFİL SAYFASI EK WİDGET'LAR  (pp- prefix)
   ═══════════════════════════════════════════════ */

/* ── Genel Section ── */
.pp-section {
    background: var(--white, #fff);
    border: 2px solid #8b5cf6;
    border-radius: 18px; padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(139,92,246,.10);
}
.pp-section-title {
    font-size: .75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink3, #888); margin-bottom: 14px;
}

/* ── Progress Bar ── */
.pp-bar-wrap {
    height: 10px; background: var(--bg, #f4f4f8);
    border-radius: 99px; overflow: hidden;
}
.pp-bar {
    height: 100%; border-radius: 99px;
    transition: width .7s cubic-bezier(.4,0,.2,1);
    min-width: 3px;
}
.pp-bar-xp    { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }
.pp-bar-daily { background: linear-gradient(90deg, #e63946, #c1121f); }

/* ── Seviye & XP ── */
.pp-level-row {
    display: flex; align-items: center; gap: 16px;
}
.pp-level-badge {
    width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(109,40,217,.3);
}
.pp-level-lbl {
    font-size: .5rem; font-weight: 800; color: rgba(255,255,255,.7);
    letter-spacing: .08em; text-transform: uppercase;
}
.pp-level-num {
    font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1;
}
.pp-xp-col { flex: 1; }
.pp-xp-top {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 8px;
}
.pp-xp-label { font-size: .72rem; font-weight: 700; color: var(--ink3, #888); }
.pp-xp-val   { font-size: .72rem; font-weight: 800; color: #6d28d9; }

/* ── Günlük Hedef ── */
.pp-daily-top {
    display: flex; justify-content: space-between; align-items: center;
}
.pp-daily-val { font-size: 1rem; font-weight: 900; color: var(--ink, #1a1a2e); }
.pp-daily-lbl { font-size: .72rem; font-weight: 700; color: var(--ink3, #888); }

/* ── Aktivite Takvimi ── */
.pp-calendar {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 4px; margin-bottom: 8px;
}
.pp-cal-cell {
    aspect-ratio: 1; border-radius: 4px;
    background: var(--bg, #f4f4f8);
    cursor: default; transition: transform .1s;
}
.pp-cal-cell:hover { transform: scale(1.3); }
.pp-cal-cell[data-intensity="0"] { background: var(--bg, #f0f0f5); }
.pp-cal-cell[data-intensity="1"] { background: #bbf7d0; }
.pp-cal-cell[data-intensity="2"] { background: #4ade80; }
.pp-cal-cell[data-intensity="3"] { background: #16a34a; }
.pp-cal-cell[data-intensity="4"] { background: #14532d; }
.pp-cal-legend {
    display: flex; align-items: center; gap: 4px;
    justify-content: flex-end;
    font-size: .65rem; color: var(--ink3, #aaa); font-weight: 600;
}
.pp-cal-legend .pp-cal-cell {
    width: 12px; height: 12px; border-radius: 3px; aspect-ratio: auto;
}

/* ── Motivasyon ── */
.pp-motivation {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border: 2px solid #e63946; border-radius: 18px;
    padding: 18px 20px; display: flex; align-items: flex-start; gap: 12px;
    box-shadow: 0 4px 18px rgba(230,57,70,.10);
}
.pp-motivation-icon { font-size: 1.5rem; flex-shrink: 0; }
.pp-motivation-text {
    font-size: .88rem; font-weight: 700;
    color: #92400e; line-height: 1.5;
}

/* ── Dark mode ── */
[data-theme="dark"] {
    .pp-section { background: #1a1a2e; border-color: #2a2a3e; }
    .pp-motivation { background: #1e1a0e; border-color: #3d3000; }
    .pp-motivation-text { color: #fbbf24; }
}

/* ══════════════════════════════════════════════════════
   AUTH REQUIRED MODAL — AI özellik erişim engeli
   ══════════════════════════════════════════════════════ */
#auth-required-modal {
    position: fixed; inset: 0; z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease;
}
#auth-required-modal.arm-visible {
    opacity: 1; pointer-events: auto;
}
.arm-backdrop {
    position: absolute; inset: 0;
    background: rgba(10, 10, 24, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.arm-card {
    position: relative; z-index: 1;
    width: min(380px, 100%);
    background: var(--white, #fff);
    border-radius: 24px;
    padding: 32px 28px 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.06);
    text-align: center;
    transform: scale(.92) translateY(16px);
    transition: transform .32s cubic-bezier(.34,1.4,.64,1);
}
#auth-required-modal.arm-visible .arm-card {
    transform: none;
}
.arm-icon {
    font-size: 2.4rem; margin-bottom: 12px; display: block;
}
.arm-title {
    font-size: 1.25rem; font-weight: 900;
    color: var(--ink, #1a1a2e);
    margin: 0 0 10px; letter-spacing: -.02em;
}
.arm-desc {
    font-size: .85rem; color: var(--ink2, #555);
    line-height: 1.6; margin: 0 0 24px;
}
.arm-desc strong { color: var(--ink, #1a1a2e); font-weight: 800; }
.arm-sub {
    display: block; margin-top: 4px;
    font-size: .78rem; color: var(--ink3, #999);
}
.arm-btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 20px;
    background: #fff; border: 2px solid #e2e8f0;
    border-radius: 14px; cursor: pointer;
    font-size: .92rem; font-weight: 700; color: #1a1a2e;
    transition: all .22s; box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-bottom: 10px;
}
.arm-btn-google:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 16px rgba(66,133,244,.2);
    transform: translateY(-1px);
}
.arm-btn-cancel {
    width: 100%; padding: 11px;
    background: transparent; border: 1.5px solid var(--border, #e5e5e5);
    border-radius: 14px; cursor: pointer;
    font-size: .82rem; font-weight: 600; color: var(--ink3, #888);
    transition: all .2s;
}
.arm-btn-cancel:hover {
    background: var(--bg, #f8f8fc);
    color: var(--ink2, #555);
}
[data-theme="dark"] {
    .arm-card { background: #1a1a2e; border: 1px solid rgba(255,255,255,.08); }
    .arm-title { color: #fff; }
    .arm-desc { color: rgba(255,255,255,.6); }
    .arm-desc strong { color: #fff; }
    .arm-btn-google { background: #1e1e30; border-color: #333; color: #f0f0f0; }
    .arm-btn-cancel { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.4); }
    .arm-btn-cancel:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }
}

/* ── Özellik badge ── */
.arm-feature-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 20px;
    font-size: .75rem; font-weight: 700;
    margin-bottom: 14px;
}

/* ── Avantajlar listesi ── */
.arm-benefits {
    display: flex; flex-direction: column; gap: 8px;
    margin: 0 0 22px; text-align: left;
    background: var(--bg, #f7f7fb);
    border-radius: 14px; padding: 14px;
    border: 1px solid var(--border, #ebebf0);
}
.arm-benefit-item {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .8rem; color: var(--ink2, #555); line-height: 1.5;
}
.arm-benefit-icon {
    font-size: 1rem; flex-shrink: 0; margin-top: 1px;
}
/* ── Ana buton (e-posta) ── */
.arm-btn-primary {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 20px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border: none; border-radius: 14px; cursor: pointer;
    font-size: .92rem; font-weight: 700; color: #fff;
    transition: all .22s; box-shadow: 0 4px 16px rgba(124,58,237,.35);
    margin-bottom: 10px; font-family: inherit;
}
.arm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,58,237,.45);
}
[data-theme="dark"] {
    .arm-feature-badge { opacity: .9; }
    .arm-benefits { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
    .arm-benefit-item { color: rgba(255,255,255,.6); }
}

/* ══════════════════════════════════════════════════════
   PROFİL SAYFASI — MİSAFİR HERO
   Giriş yapılmamış kullanıcıya gösterilen teşvik bölümü
   ══════════════════════════════════════════════════════ */
.profil-guest-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #0d1a2e 100%);
    border-radius: 22px;
    padding: 28px 24px 24px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.07);
}
/* Dekoratif orb'lar */
.pgh-orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px); pointer-events: none;
}
.pgh-orb-1 {
    width: 260px; height: 260px;
    top: -80px; right: -60px;
    background: radial-gradient(circle, rgba(230,57,70,.45) 0%, transparent 70%);
}
.pgh-orb-2 {
    width: 180px; height: 180px;
    bottom: -60px; left: -40px;
    background: radial-gradient(circle, rgba(59,130,246,.35) 0%, transparent 70%);
}

/* İçerik satırı */
.pgh-content {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 20px;
}
.pgh-avatar {
    width: 58px; height: 58px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 2px dashed rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.pgh-text { flex: 1; min-width: 0; }
.pgh-label {
    font-size: .62rem; font-weight: 800;
    color: rgba(255,255,255,.4);
    letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 4px;
}
.pgh-title {
    font-size: 1.15rem; font-weight: 900;
    color: #fff; letter-spacing: -.02em;
    margin-bottom: 5px; line-height: 1.2;
}
.pgh-sub {
    font-size: .75rem; color: rgba(255,255,255,.5);
    line-height: 1.5;
}

/* Perk grid */
.pgh-perks {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px; margin-bottom: 20px;
}
@media (min-width: 420px) {
    .pgh-perks { grid-template-columns: repeat(4, 1fr); }
}
.pgh-perk {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 10px 8px;
    font-size: .7rem; font-weight: 600;
    color: rgba(255,255,255,.55); text-align: center;
}
.pgh-perk-icon { font-size: 1.15rem; }

/* Giriş aksiyonları */
.pgh-auth-actions {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 10px;
}
.pgh-btn-copy {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 2px; flex: 1; min-width: 0; text-align: left;
}
.pgh-btn-main {
    font-size: .92rem; font-weight: 800; line-height: 1.15;
}
.pgh-btn-sub {
    font-size: .68rem; font-weight: 700; line-height: 1.2;
    opacity: .7;
}
.pgh-btn-google .pgh-btn-main,
.pgh-btn-google .pgh-btn-sub { color: #111; }
.pgh-btn-google .pgh-btn-sub { opacity: .55; }

.pgh-btn-email {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px; cursor: pointer;
    transition: all .22s; color: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    font-family: inherit;
}
.pgh-btn-email:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.28);
}
.pgh-btn-email:active { transform: none; }
.pgh-btn-email-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px;
    background: rgba(230,57,70,.20);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.pgh-btn-email-copy {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 2px; min-width: 0; flex: 1; text-align: left;
}
.pgh-btn-email .pgh-btn-main,
.pgh-btn-email .pgh-btn-sub { color: #fff; }
.pgh-btn-email .pgh-btn-sub { opacity: .58; }
.pgh-btn-email .pgh-btn-arrow { margin-left: auto; opacity: .78; }
.pgh-btn-email:hover .pgh-btn-arrow { opacity: 1; transform: translateX(4px); }

.pgh-auth-note {
    position: relative; z-index: 1;
    margin: -2px 0 18px;
    font-size: .7rem; line-height: 1.45;
    color: rgba(255,255,255,.5);
}

/* Google giriş butonu */
.pgh-btn-google {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 20px;
    background: #fff; border: none;
    border-radius: 14px; cursor: pointer;
    font-size: .95rem; font-weight: 800; color: #111;
    transition: all .22s;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    font-family: inherit;
}
.pgh-btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(66,133,244,.35);
}
.pgh-btn-google:active { transform: none; }
.pgh-btn-arrow {
    font-size: 1rem; opacity: .5;
    transition: opacity .2s, transform .2s;
}
.pgh-btn-google:hover .pgh-btn-arrow { opacity: 1; transform: translateX(4px); }

/* ── Tab Sistemi ─────────────────────────────────────── */
@media (max-width: 480px) {
    .pgh-auth-actions { gap: 8px; }
    .pgh-btn-email {
        padding: 12px 14px;
        gap: 10px;
    }
    .pgh-btn-email-icon {
        width: 36px; height: 36px;
        border-radius: 11px;
        font-size: .95rem;
    }
    .pgh-btn-main { font-size: .88rem; }
    .pgh-btn-sub { font-size: .65rem; }
    .pgh-auth-note { margin-bottom: 14px; }
}

.lo-tabs {
    display: flex;
    background: rgba(255,255,255,.05);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 16px;
}
.lo-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    font-weight: 700;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.lo-tab-active {
    background: rgba(255,255,255,.12);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ── Input ───────────────────────────────────────────── */
#login-overlay .lo-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: .92rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s, background .2s, box-shadow .2s, color .2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}
#login-overlay .lo-input:focus {
    border-color: #e63946;
    background: rgba(255,255,255,.12);
}
#login-overlay .lo-input::placeholder { color: rgba(255,255,255,.4); }

/* Autofill beyaz arka plan fix — Android WebView dahil */
#login-overlay .lo-input:-webkit-autofill,
#login-overlay .lo-input:-webkit-autofill:hover,
#login-overlay .lo-input:-webkit-autofill:focus,
#login-overlay .lo-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a1a2e inset !important;
    box-shadow: 0 0 0 1000px #1a1a2e inset !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    caret-color: #fff !important;
    background-color: #1a1a2e !important;
    border-color: rgba(255,255,255,.15) !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

/* Disabled / readonly state (şifre alanına geçince email input'u) */
#login-overlay .lo-input:not(:focus) {
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}

/* Input label wrapper */
#login-overlay .lo-input-wrap { display: flex; flex-direction: column; gap: 5px; }
#login-overlay .lo-input-label {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    letter-spacing: .4px;
    text-transform: uppercase;
    padding-left: 2px;
}

/* ── Butonlar ────────────────────────────────────────── */
.lo-btn-primary {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #c1121f, #e63946);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    box-shadow: 0 4px 16px rgba(230,57,70,.35);
}
.lo-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230,57,70,.45); }
.lo-btn-primary:active { transform: scale(.98); }
.lo-btn-primary:disabled { opacity: .6; cursor: default; transform: none; }

.lo-btn-register { background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 4px 16px rgba(124,58,237,.35); }
.lo-btn-register:hover { box-shadow: 0 6px 20px rgba(124,58,237,.45); }

.lo-btn-text {
    background: none;
    border: none;
    color: rgba(255,255,255,.45);
    font-size: .78rem;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    padding: 2px;
    transition: color .15s;
}
.lo-btn-text:hover { color: rgba(255,255,255,.75); }

.lo-register-note {
    font-size: .7rem;
    color: rgba(255,255,255,.35);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   PROFİL SAYFASI — RENKLİ ÇERÇEVE SİSTEMİ
   Kırmızı · Mor · Mavi rotasyonu
   ═══════════════════════════════════════════════ */

/* Profil Düzenle & Rozetlerim — admin-section */
.admin-section {
    background: var(--white, #fff);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

/* Profil Düzenle → Kırmızı */
.admin-section:has(#profil-name-inp),
.profil-edit-card {
    border: 2px solid #e63946;
    box-shadow: 0 4px 18px rgba(230,57,70,.10);
}

/* Rozetlerim → Mor */
.admin-section:has(#profil-badge-preview),
.profil-badge-card {
    border: 2px solid #8b5cf6;
    box-shadow: 0 4px 18px rgba(139,92,246,.10);
}

/* Sync butonu sarıcı */
.profil-sync-wrap {
    text-align: center;
    margin-top: 16px;
}

/* pp-section renk varyantları — sıralı çerçeve */
/* Seviye & XP → Mor (default pp-section'dan geliyor) */
/* Günlük Hedef → Kırmızı */
.pp-section-red {
    border-color: #e63946 !important;
    box-shadow: 0 4px 18px rgba(230,57,70,.10) !important;
}
/* Aktivite Takvimi → Mavi */
.pp-section-blue {
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 18px rgba(59,130,246,.10) !important;
}

/* Dark mode */
[data-theme="dark"] {
    .admin-section { background: #1a1a2e; }
    .admin-section:has(#profil-name-inp) { border-color: #e63946; }
    .admin-section:has(#profil-badge-preview) { border-color: #8b5cf6; }
    .pp-section-red { border-color: #e63946 !important; }
    .pp-section-blue { border-color: #3b82f6 !important; }
}

/* ═══════════════════════════════════════════════
   PROFİL — GÜNLÜK HAKLAR & LİMİTLER KARTI
   ═══════════════════════════════════════════════ */

.pp-limits-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pp-limit-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-limit-left {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 130px;
    flex-shrink: 0;
}

.pp-limit-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pp-limit-name {
    font-size: .78rem;
    font-weight: 800;
    color: var(--ink, #1a1a2e);
    line-height: 1.2;
}

.pp-limit-sub {
    font-size: .65rem;
    color: var(--ink3, #888);
    margin-top: 1px;
}

.pp-limit-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pp-limit-bar-wrap {
    flex: 1;
    height: 7px;
    background: var(--bg, #f4f4f8);
    border-radius: 99px;
    overflow: hidden;
}

.pp-limit-bar {
    height: 100%;
    border-radius: 99px;
    transition: width .7s cubic-bezier(.4,0,.2,1);
    min-width: 0;
}

.pp-limit-bar.full {
    background: linear-gradient(90deg, #e63946, #c1121f) !important;
    animation: limitPulse 2s infinite;
}

@keyframes limitPulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .6; }
}

.pp-limit-count {
    font-size: .72rem;
    font-weight: 800;
    color: var(--ink2, #555);
    min-width: 44px;
    text-align: right;
    font-family: monospace;
    white-space: nowrap;
}

.pp-limit-count.full {
    color: #e63946;
}

.pp-limits-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border, #ebebf0);
    font-size: .68rem;
    color: var(--ink3, #888);
    text-align: center;
    line-height: 1.5;
}

/* Admin modu — tüm bar'lar indigo */
.pp-limits-card.is-admin .pp-limit-bar {
    background: linear-gradient(90deg, #6366f1, #4f46e5) !important;
    width: 100% !important;
}
.pp-limits-card.is-admin .pp-limit-count {
    color: #6366f1;
}
.pp-limits-card.is-admin .pp-limit-count::after {
    content: ' ∞';
}

/* Dark mode */
[data-theme="dark"] {
    .pp-limits-card { background: #1a1a2e; }
    .pp-limit-name  { color: #f0f0f8; }
    .pp-limit-bar-wrap { background: #2a2a40; }
}
