/**
 * Mendeva BackOffice - Ek Bileşen Stilleri (app.css)
 * dashboard.css'i tamamlar: karşılama/etkinlik banner'ları, binary hacim,
 * referans kartları, hızlı erişim, duyuru, istatistik kartı varyantları,
 * giriş sayfası.  (Orijinaldeki inline stiller temiz sınıflara taşındı.)
 */

/* ==================== KARŞILAMA BANNER ==================== */
.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-bottom: 1.5rem;
}
.welcome-left { display: flex; align-items: center; gap: 16px; }
.welcome-emoji {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}
.welcome-left h2 { font-size: 1.35rem; font-weight: 700; color: #fff; }
.welcome-badge { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; }
.welcome-badge .star { font-size: 0.95rem; }
.uye-no-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex; align-items: center; gap: 10px;
}
.uye-no-box .lbl { font-size: 0.8rem; opacity: 0.85; }
.uye-no-box .val { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.5px; }

/* ==================== ETKİNLİK BANNER ==================== */
.event-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 40%, #c2410c 100%);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
    margin-bottom: 1.5rem;
}
.event-deco {
    position: absolute;
    right: 24px; top: 50%;
    transform: translateY(-50%);
    font-size: 150px;
    line-height: 1;
    opacity: 0.15;
    pointer-events: none;
}
.event-inner {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.event-tags { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.event-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 10px; border-radius: 10px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3px;
}
.event-date { font-size: 0.85rem; opacity: 0.95; }
.event-inner h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.event-inner p { opacity: 0.95; font-size: 0.9rem; }
.event-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ticket-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #c2410c;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}
.ticket-btn:hover { transform: translateY(-2px); }
.ticket-price {
    background: #c2410c; color: #fff;
    padding: 3px 10px; border-radius: 8px;
    font-size: 0.85rem;
}

/* ==================== İSTATİSTİK KARTI VARYANTLARI ==================== */
/* Gradyanlı kartlar */
.stat-card.is-gradient .stat-value,
.stat-card.is-gradient .stat-label,
.stat-card.is-gradient .stat-change { color: #fff; }
.stat-card.is-gradient .stat-label,
.stat-card.is-gradient .stat-change { opacity: 0.9; }
.stat-card.is-gradient .stat-icon { background: rgba(255, 255, 255, 0.2); }

.stat-card.grad-green  { background: linear-gradient(135deg, #48bb78, #38a169); }
.stat-card.grad-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.grad-emerald{ background: linear-gradient(135deg, #48bb78, #276749); }

/* İkon renk varyantları (dashboard.css'e ek) */
.stat-icon.pink { background: linear-gradient(135deg, #ec4899, #f472b6); }
.stat-icon.cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.stat-icon i { font-size: 1.3rem; color: #fff; }
.stat-icon .emoji { font-size: 1.5rem; }

/* ==================== BINARY HACİM ==================== */
.binary-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.binary-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.25rem;
}
.binary-header h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); }
.binary-detay { color: var(--primary); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.binary-detay:hover { text-decoration: underline; }
.binary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.binary-card {
    border-radius: var(--radius);
    padding: 20px; color: #fff; text-align: center;
}
.binary-card.left    { background: linear-gradient(135deg, #667eea, #764ba2); }
.binary-card.matched { background: linear-gradient(135deg, #48bb78, #38a169); }
.binary-card.right   { background: linear-gradient(135deg, #ed8936, #dd6b20); }
.binary-leg-title { font-size: 0.9rem; opacity: 0.9; }
.binary-leg-value { font-size: 2rem; font-weight: 700; margin: 4px 0; }
.binary-leg-label { font-size: 0.85rem; opacity: 0.85; }
.binary-leg-foot {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
}
.binary-leg-foot .row { display: flex; justify-content: space-between; }
.binary-leg-foot .row + .row { margin-top: 4px; }
.binary-card.matched .binary-leg-foot .center { text-align: center; opacity: 0.95; }

/* ==================== REFERANS KARTLARI ==================== */
.ref-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 1.5rem;
}
.ref-card {
    border-radius: var(--radius-lg);
    padding: 24px; color: #fff;
}
.ref-card.purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.ref-card.orange { background: linear-gradient(135deg, #ed8936, #dd6b20); }
.ref-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.ref-card p { opacity: 0.9; font-size: 0.9rem; margin-bottom: 16px; }
.ref-card.orange .ref-link-input button { color: #dd6b20; }

/* ==================== ALT IZGARA (Duyurular + Hızlı Erişim) ==================== */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.ann-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px;
    border-left: 3px solid var(--primary);
    background: var(--bg-light);
    border-radius: 8px;
}
.ann-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(102, 126, 234, 0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.ann-title { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.ann-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.ann-detail { font-size: 0.85rem; color: var(--text-gray); margin: 2px 0; }
.ann-date { font-size: 0.75rem; color: var(--text-light); }

/* Hızlı Erişim */
.quick-access { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qa-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}
.qa-item:hover { background: var(--bg-gray); transform: translateY(-2px); }
.qa-item i { font-size: 1.5rem; color: var(--primary); }
.qa-item span { font-size: 0.9rem; font-weight: 600; }

/* ==================== DUYURU MODAL ==================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: #fff; border-radius: var(--radius-lg);
    width: 100%; max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden; animation: fadeIn 0.25s ease;
}
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}
.modal-head h3 { font-size: 1.05rem; }
.modal-close {
    background: rgba(255, 255, 255, 0.2); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
    font-size: 1.1rem; line-height: 1;
}
.modal-body { padding: 1.25rem; }
.modal-body .m-title { font-weight: 600; margin-bottom: 0.35rem; }
.modal-body .m-detail { color: var(--text-gray); font-size: 0.92rem; }
.modal-body .m-date { color: var(--text-light); font-size: 0.8rem; margin-top: 0.75rem; }

/* ==================== GENEL: bölüm iç grid ==================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ==================== GİRİŞ SAYFASI ==================== */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 1rem;
}
.login-card {
    background: #fff;
    width: 100%; max-width: 400px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 2.25rem 2rem;
}
.login-logo { text-align: center; margin-bottom: 1.5rem; display: flex; justify-content: center; }

/* ==================== MARKA (MENDEVA) ==================== */
.brand-mark { display: flex; flex-direction: column; line-height: 1; }
.brand-word {
    font-size: 1.5rem; font-weight: 800; letter-spacing: 0.5px;
    background: linear-gradient(135deg, #8b9cf7, #a78bda);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-tag {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 3px;
    margin-top: 3px; color: rgba(255, 255, 255, 0.45);
}
.brand-mark.on-light .brand-word {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; background-clip: text;
}
.brand-mark.on-light .brand-tag { color: var(--text-gray); }
.brand-mark.lg .brand-word { font-size: 2.1rem; letter-spacing: 1px; }
.brand-mark.lg .brand-tag { font-size: 0.75rem; letter-spacing: 4px; margin-top: 6px; }
.brand-mark.lg { align-items: center; }

.sidebar.collapsed .sidebar-logo { justify-content: center; }
.sidebar.collapsed .brand-mark { display: none; }
.login-title { text-align: center; font-size: 1.15rem; font-weight: 600; margin-bottom: 0.25rem; }
.login-sub { text-align: center; color: var(--text-gray); font-size: 0.9rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text-dark); }
.form-control {
    width: 100%; padding: 0.75rem 1rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}
.btn-primary {
    width: 100%; padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border: none; border-radius: var(--radius);
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.login-alert {
    background: #fff5f5; color: #c53030;
    border: 1px solid #feb2b2; border-radius: var(--radius);
    padding: 0.75rem 1rem; font-size: 0.88rem; margin-bottom: 1rem;
}
.login-hint {
    margin-top: 1.25rem; text-align: center;
    font-size: 0.8rem; color: var(--text-light);
}

/* ==================== BASİT SAYFA (stub) ==================== */
.page-placeholder {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 3rem 2rem; text-align: center;
}
.page-placeholder .pp-icon {
    width: 72px; height: 72px; margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.75rem;
}
.page-placeholder h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.page-placeholder p { color: var(--text-gray); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .ref-cards-grid, .bottom-grid, .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .binary-grid { grid-template-columns: 1fr; }
    .event-inner { flex-direction: column; align-items: flex-start; }
    .event-deco { font-size: 90px; opacity: 0.12; }
}
@media (max-width: 480px) {
    .quick-access { grid-template-columns: 1fr; }
    .welcome-banner { flex-direction: column; align-items: flex-start; }
}

/* ==================== FONT AWESOME İKON UYUMU ==================== */
.topbar-btn i, .menu-toggle i { font-size: 18px; }
.dropdown-item i { width: 18px; text-align: center; font-size: 15px; }
.dropdown-arrow { font-size: 12px; }
.toggle-icon { font-size: 16px; }

/* Sidebar rozet (YENİ) */
.nav-item { justify-content: flex-start; }
.nav-badge {
    margin-left: auto;
    background: #f56565; color: #fff;
    font-size: 0.6rem; font-weight: 700;
    padding: 2px 7px; border-radius: 10px;
    letter-spacing: 0.5px;
}
.nav-item.active .nav-badge { background: rgba(255,255,255,0.9); color: var(--primary); }
.sidebar.collapsed .nav-badge { display: none; }

/* Dil seçici */
.nav-lang { display: flex; gap: 8px; padding: 0.25rem 1.25rem; }
.lang-pill {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75); border-radius: 8px;
    padding: 6px 10px; font-size: 0.8rem; cursor: pointer; transition: var(--transition);
}
.lang-pill:hover { background: rgba(255,255,255,0.15); color: #fff; }
.lang-pill.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-color: transparent; }
.sidebar.collapsed .nav-lang { display: none; }

/* ==================== VERİ TABLOSU ==================== */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
    text-align: left; padding: 0.75rem 1rem;
    background: var(--bg-light); color: var(--text-gray);
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td {
    padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
    color: var(--text-dark); white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-light); }

.pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 10px;
    font-size: 0.75rem; font-weight: 600;
}
.pill.blue   { background: rgba(66, 153, 225, 0.15); color: #2b6cb0; }
.pill.purple { background: rgba(102, 126, 234, 0.15); color: #5a4fcf; }
.pill.green  { background: rgba(72, 187, 120, 0.15); color: #276749; }
.pill.orange { background: rgba(237, 137, 54, 0.15); color: #9c4221; }
.pill.gray   { background: var(--bg-gray); color: var(--text-gray); }
.pill.red    { background: rgba(245, 101, 101, 0.15); color: #c53030; }

.table-empty {
    padding: 3rem 1rem; text-align: center; color: var(--text-gray);
}
.table-empty i { font-size: 2rem; opacity: 0.4; margin-bottom: 0.75rem; display: block; }

.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.mini-stat {
    background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
}
.mini-stat .ms-label { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 0.35rem; }
.mini-stat .ms-value { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }

/* ==================== PROFİL ==================== */
.profile-head {
    display: flex; align-items: center; gap: 1.25rem;
    padding-bottom: 1.5rem; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.profile-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
}
.profile-head h2 { font-size: 1.3rem; margin-bottom: 4px; }
.profile-head .p-sub { color: var(--text-gray); font-size: 0.9rem; }
.profile-head .p-badges { display: flex; gap: 8px; margin-top: 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.form-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; }
.btn-secondary {
    padding: 0.75rem 1.5rem; background: var(--bg-light); color: var(--text-dark);
    border: 1px solid var(--border); border-radius: var(--radius);
    font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-secondary:hover { background: var(--bg-gray); }
.btn-primary.w-auto { width: auto; padding: 0.75rem 1.75rem; }

.alert-success {
    background: #f0fff4; color: #276749; border: 1px solid #9ae6b4;
    border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9rem; margin-bottom: 1rem;
}

/* ==================== CÜZDAN ==================== */
.wallet-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border-radius: var(--radius-lg); padding: 2rem;
    margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.wallet-hero .wh-label { font-size: 0.9rem; opacity: 0.85; }
.wallet-hero .wh-value { font-size: 2.25rem; font-weight: 800; margin-top: 4px; }
.wallet-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.wb-card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.25rem 1.5rem; }
.wb-card .wb-src { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 0.35rem; }
.wb-card .wb-amt { font-size: 1.35rem; font-weight: 700; color: var(--text-dark); }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .profile-head { flex-direction: column; text-align: center; }
}

/* ==================== AĞAÇ GÖRÜNÜMÜ (Binary) ==================== */
.tree-wrap { overflow-x: auto; padding: 0.5rem 0 1rem; }
.tree { display: flex; flex-direction: column; align-items: center; min-width: 560px; }
.tree-node {
    background: var(--bg-white); border: 2px solid var(--border); border-radius: var(--radius);
    padding: 0.7rem 1.1rem; text-align: center; min-width: 150px; box-shadow: var(--shadow);
}
.tree-node.root { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-color: transparent; }
.tree-node.empty { border-style: dashed; color: var(--text-light); box-shadow: none; }
.tree-node .tn-name { font-weight: 600; font-size: 0.87rem; }
.tree-node .tn-meta { font-size: 0.72rem; color: var(--text-gray); margin-top: 2px; }
.tree-node.root .tn-meta { color: rgba(255, 255, 255, 0.85); }
.tree-row { display: flex; gap: 3rem; margin-top: 1.75rem; position: relative; }
.tree-row::before { content: ''; position: absolute; top: -1rem; left: 50%; width: 1px; height: 1rem; background: var(--border); }
.tree-col { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; position: relative; }
.tree-col::before { content: ''; position: absolute; top: -1.75rem; left: 50%; width: 1px; height: 1rem; background: var(--border); }
.tree-col-children { display: flex; gap: 1.25rem; margin-top: 1.25rem; position: relative; }
.tree-col-children::before { content: ''; position: absolute; top: -1.25rem; left: 50%; width: 1px; height: 1.25rem; background: var(--border); }

/* Unilevel nested list */
.unilevel-tree, .unilevel-tree ul { list-style: none; }
.unilevel-tree { padding-left: 0; }
.unilevel-tree ul { margin-top: 0.6rem; padding-left: 1.5rem; border-left: 1px dashed var(--border); }
.unilevel-tree li { margin-bottom: 0.6rem; }
.ul-node { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--bg-light); padding: 0.5rem 0.9rem; border-radius: var(--radius); font-size: 0.87rem; }
.ul-node .ul-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ==================== SSS AKORDEON ==================== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    cursor: pointer; font-weight: 600; padding: 0.9rem 0; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.75rem;
    color: var(--text-gray); transition: transform 0.2s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 0 1.1rem; color: var(--text-gray); font-size: 0.92rem; line-height: 1.7; }

/* ==================== HESAPLAYICI ==================== */
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: start; }
.calc-result { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.calc-result .cr-label { font-size: 0.85rem; opacity: 0.9; }
.calc-result .cr-value { font-size: 2.1rem; font-weight: 800; margin-top: 4px; }
.calc-result .cr-sub { font-size: 0.78rem; opacity: 0.85; margin-top: 10px; }
.range-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-gray); margin-top: 4px; }

/* ==================== KARİYER MERDİVENİ ==================== */
.ladder { display: flex; justify-content: space-between; margin-top: 2rem; position: relative; }
.ladder::before { content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.ladder-step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: relative; z-index: 1; flex: 1; }
.ladder-dot {
    width: 28px; height: 28px; border-radius: 50%; background: var(--bg-white);
    border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: var(--text-gray);
}
.ladder-step.done .ladder-dot { background: var(--success); border-color: var(--success); color: #fff; }
.ladder-step.current .ladder-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2); }
.ladder-step .ls-label { font-size: 0.75rem; color: var(--text-gray); text-align: center; }
.ladder-step.current .ls-label { color: var(--text-dark); font-weight: 700; }

.progress-track { background: var(--bg-gray); border-radius: 20px; height: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 20px; }

/* ==================== BELGELER ==================== */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.doc-card { display: flex; align-items: center; gap: 0.9rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.doc-icon {
    width: 44px; height: 44px; border-radius: 10px; background: rgba(102, 126, 234, 0.12);
    color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.doc-name { font-weight: 600; font-size: 0.9rem; }
.doc-meta { font-size: 0.78rem; color: var(--text-gray); margin-top: 2px; }

/* ==================== PAKET / BİLET KARTLARI ==================== */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.plan-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; position: relative; }
.plan-card.current { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12); }
.plan-card .plan-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 700;
    padding: 3px 12px; border-radius: 10px; white-space: nowrap;
}
.plan-card h3 { font-size: 1.1rem; margin: 0.5rem 0 0.25rem; }
.plan-card .plan-price { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.9rem; }
.plan-card ul { list-style: none; text-align: left; margin-bottom: 1.25rem; }
.plan-card ul li { padding: 0.32rem 0; font-size: 0.86rem; color: var(--text-gray); display: flex; gap: 0.5rem; align-items: flex-start; }
.plan-card ul li i { color: var(--success); margin-top: 3px; flex-shrink: 0; }

/* ==================== AYARLAR ==================== */
.settings-section { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.settings-section h3 { font-size: 1rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
    .calc-grid { grid-template-columns: 1fr; }
    .tree-row, .tree-col-children { gap: 1.25rem; }
}

/* Dil pill artık <a> — alt çizgi/hizalama düzeltmesi */
.lang-pill { text-decoration: none; display: inline-flex; align-items: center; }
/* Avatar arka plan resimliyken içerik gizli kalsın */
.user-avatar[style*="background-image"] { font-size: 0; }

/* ==================== SAYFALAMA ==================== */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.pager-btn {
    min-width: 36px; height: 36px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-dark); text-decoration: none; font-size: 0.88rem;
    background: var(--bg-white); transition: var(--transition);
}
.pager-btn:hover { background: var(--bg-light); }
.pager-btn.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-color: transparent; }
.pager-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ==================== PLAN SAYFALARI ==================== */
.page-head { margin-bottom: 1.25rem; }
.page-head h2 { font-size: 1.4rem; }
.page-head .muted, .muted { color: var(--text-gray); font-size: 0.9rem; }
.career-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem;
}
.career-hero .ch-badge { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; }
.career-hero .mini-stat { background: rgba(255,255,255,0.12); box-shadow: none; }
.career-hero .ms-label { color: rgba(255,255,255,0.85); }
.career-hero .ms-value { color: #fff; }
.ladder { flex-wrap: wrap; gap: 0.5rem; }
.ladder-step { min-width: 84px; }
.ladder-step .ls-label small { color: var(--text-light); }

/* Prim kartı (motor açıklaması) */
.engine-hero { color:#fff; border-radius:var(--radius-lg); padding:1.5rem; margin-bottom:1.5rem; }
.engine-hero h3 { margin-bottom:0.5rem; }
.engine-hero p { opacity:0.92; font-size:0.92rem; line-height:1.7; }
.rate-badge { display:inline-block; background:rgba(255,255,255,0.2); padding:4px 12px; border-radius:20px; font-weight:700; font-size:0.85rem; margin-right:6px; }

/* Dönem seçici şeridi */
.period-strip { display:flex; gap:8px; overflow-x:auto; padding-bottom:6px; margin-bottom:1.5rem; }
.period-chip { flex-shrink:0; background:var(--bg-white); border:1px solid var(--border); border-radius:12px; padding:10px 14px; text-align:center; min-width:80px; text-decoration:none; color:var(--text-dark); }
.period-chip:hover { border-color:var(--primary); }
.period-chip.active { background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; border-color:transparent; }
.period-chip .pc-m { font-size:0.75rem; opacity:0.8; }
.period-chip .pc-v { font-weight:700; font-size:0.95rem; margin-top:2px; }

/* Ürün mağazası */
.shop-cats { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:1.25rem; }
.shop-cat { background:var(--bg-white); border:1px solid var(--border); border-radius:20px; padding:8px 14px; font-size:0.85rem; cursor:pointer; color:var(--text-dark); }
.shop-cat.active { background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; border-color:transparent; }
.shop-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; }
.shop-card { background:var(--bg-white); border:1px solid var(--border); border-radius:var(--radius-lg); padding:1.25rem; text-align:center; }
.shop-card .sc-name { font-weight:600; font-size:0.92rem; min-height:2.6em; }
.shop-card .sc-cp { display:inline-block; background:rgba(102,126,234,0.12); color:var(--primary); font-size:0.75rem; font-weight:700; padding:2px 8px; border-radius:8px; margin:0.5rem 0; }
.shop-card .sc-price { font-size:1.15rem; font-weight:800; color:var(--text-dark); margin-bottom:0.75rem; }

/* Wallet hero bileşenler */
.wallet-components { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.wc-box { background:var(--bg-white); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:1rem 1.25rem; }
.wc-box .wc-l { font-size:0.8rem; color:var(--text-gray); }
.wc-box .wc-v { font-size:1.25rem; font-weight:700; margin-top:2px; }
.wc-box.pos .wc-v { color:var(--success); }
.wc-box.neg .wc-v { color:var(--danger); }
.ledger-item { display:flex; align-items:center; gap:0.85rem; padding:0.85rem 0; border-bottom:1px solid var(--border); }
.ledger-item:last-child { border-bottom:none; }
.ledger-ic { width:38px; height:38px; border-radius:10px; background:var(--bg-light); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.ledger-body { flex:1; min-width:0; }
.ledger-title { font-weight:600; font-size:0.9rem; }
.ledger-note { font-size:0.8rem; color:var(--text-gray); }
.ledger-amt { font-weight:700; white-space:nowrap; }
.ledger-amt.in { color:var(--success); }
.ledger-amt.out { color:var(--danger); }

/* Tablo mini avatar */
.mini-avatar { width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,var(--primary),var(--secondary)); color:#fff; font-size:0.7rem; font-weight:700; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }

/* Toggle satırı (ayarlar) */
.toggle-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0.9rem 0; border-bottom:1px solid var(--border); cursor:pointer; }
.toggle-row:last-child { border-bottom:none; }
.tr-title { font-weight:600; font-size:0.92rem; }
.tr-desc { font-size:0.8rem; color:var(--text-gray); }
.toggle-sw { appearance:none; width:44px; height:24px; background:var(--border); border-radius:20px; position:relative; cursor:pointer; transition:background 0.2s; flex-shrink:0; }
.toggle-sw:checked { background:linear-gradient(135deg,var(--primary),var(--secondary)); }
.toggle-sw::after { content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; background:#fff; border-radius:50%; transition:left 0.2s; }
.toggle-sw:checked::after { left:22px; }

/* ==================== GTRANSLATE DİL SEÇİCİ (İndeva birebir) ==================== */
.sidebar-lang-section { margin-top: 8px; }
.sidebar-lang-wrapper { padding: 6px 12px 0; }
.sidebar-lang-wrapper .gtranslate_wrapper { display: block; }
.sidebar-lang-wrapper .gt_selector {
    width: 100%; padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px; color: #fff; font-size: 13px; cursor: pointer; outline: none;
}
.sidebar-lang-wrapper .gt_selector option { background: #16213e; color: #fff; }
.sidebar-lang-wrapper .gt_selector:focus,
.sidebar-lang-wrapper .gt_selector:hover { border-color: var(--primary); }
/* Google Translate üst bar'ını gizle */
.goog-te-banner-frame.skiptranslate { display: none !important; }
.skiptranslate iframe { display: none !important; }
body { top: 0 !important; }
.sidebar.collapsed .sidebar-lang-section { display: none; }

/* ==================== TAKVIM ==================== */
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-head { text-align:center; font-size:0.75rem; font-weight:700; color:var(--text-gray); padding:6px 0; text-transform:uppercase; }
.cal-cell { min-height:64px; border:1px solid var(--border); border-radius:8px; padding:6px; }
.cal-cell.empty { border:none; }
.cal-cell.has { background:rgba(102,126,234,0.08); border-color:var(--primary); }
.cal-day { font-size:0.8rem; color:var(--text-gray); }
.cal-cp { font-size:0.8rem; font-weight:700; color:var(--primary); margin-top:4px; }
@media (max-width:640px){ .cal-cell{min-height:48px;} .cal-cp{font-size:0.7rem;} }
