:root {
    --sidebar-width: 260px;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --body-bg: #f1f5f9;
    --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
    --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
}

body {
    background: var(--body-bg);
    font-family: var(--font-display);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0b1020 0%, #1e1b4b 55%, #312e81 100%);
    color: #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
}

.sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand h4 {
    margin: 0;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.sidebar-brand small {
    color: #94a3b8;
    font-size: 0.75rem;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
}

.sidebar-nav .nav-link {
    color: #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-main {
    padding: 1.5rem;
}

.stat-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.content-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.content-card .card-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.content-card .card-body {
    padding: 1.25rem;
}

.table-modern {
    margin: 0;
}

.table-modern thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    padding: 0.875rem 1rem;
}

.table-modern tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.filter-pills .btn {
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.service-parca_kontor { background: #dbeafe; color: #1d4ed8; }
.service-fatura { background: #dcfce7; color: #15803d; }
.service-epin { background: #fef3c7; color: #b45309; }
.service-sanal_pos { background: #ede9fe; color: #6d28d9; }
.service-internet_basvuru { background: #ffe4e6; color: #be123c; }

.package-card {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
}

.package-card:hover,
.package-card.selected {
    border-color: var(--primary);
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.operator-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.operator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.operator-btn.active {
    color: #fff !important;
}

.category-btn.active {
    color: #fff !important;
}

/* Anlık Raporlama */
.live-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #ef4444;
    display: inline-block; animation: pulse-live 1.5s infinite;
}
.live-dot-sm { animation: pulse-live 1.5s infinite; }
@keyframes pulse-live {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}
.live-report-header { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); color: #fff; padding: 1.25rem 1.5rem; border-radius: 1rem; }
.live-report-header .text-muted { color: rgba(255,255,255,0.6) !important; }
.live-report-header .btn-outline-primary { color: #c7d2fe; border-color: rgba(255,255,255,0.3); }
.live-report-header .btn-outline-primary.active,
.live-report-header .btn-outline-primary:hover { background: #4f46e5; color: #fff; border-color: #4f46e5; }

.kpi-card {
    background: #fff; border-radius: 1rem; padding: 1.25rem;
    box-shadow: var(--card-shadow); border: 1px solid #e2e8f0;
    position: relative; overflow: hidden; height: 100%;
}
.kpi-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.kpi-revenue::before { background: #4f46e5; }
.kpi-profit::before { background: #10b981; }
.kpi-loss::before { background: #ef4444; }
.kpi-net::before { background: #8b5cf6; }
.kpi-rate::before { background: #f59e0b; }
.kpi-icon { font-size: 1.25rem; color: #94a3b8; margin-bottom: 0.5rem; }
.kpi-value { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.kpi-label { font-size: 0.78rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.25rem; }

.tx-row.tx-success { border-left: 3px solid #10b981; }
.tx-row.tx-failed { border-left: 3px solid #ef4444; }
.tx-row.tx-pending { border-left: 3px solid #f59e0b; }

.hero-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    color: #fff;
    padding: 4rem 0;
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.form-section {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

.home-login-card {
    background: #fff;
    color: #1e293b;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.home-login-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.home-login-card .input-group-text {
    background: #f8fafc;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-content {
        margin-left: 0;
    }
}

/* Banka hesaplari */
.iban-code,
.iban-display code {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.bank-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.bank-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    background: #4f46e5;
    color: #fff;
    margin-bottom: 0.5rem;
}

.bank-card-body {
    padding: 1rem 1.25rem;
}

.bank-field {
    margin-bottom: 1rem;
}

.bank-field span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.iban-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bank-card-footer {
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
