/* =========================================================
   Giriş / Kayıt + Admin & Müşteri Paneli stilleri
   (style.css'teki değişkenleri ve butonları kullanır)
   ========================================================= */

/* ---------- Ortak yardımcılar ---------- */
.block { display: block; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.small { font-size: .85rem; }
.mb-1 { margin-bottom: .9rem; }
.inline { display: inline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.link { color: var(--primary); font-weight: 500; font-size: .9rem; }
.link:hover { text-decoration: underline; }

.btn-sm { padding: .4rem .8rem; font-size: .82rem; border-radius: 8px; }
.btn-danger { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .45); color: #fca5a5; }
.btn-danger:hover { background: rgba(239, 68, 68, .22); border-color: #ef4444; }
.btn-amber { background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .45); color: #fcd34d; }
.btn-amber:hover { background: rgba(245, 158, 11, .24); border-color: #f59e0b; color: #fde68a; }
.btn-primary .wa-svg { color: #fff; }

/* Etiketler */
.tag {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .18rem .6rem; border-radius: 999px;
    font-size: .74rem; font-weight: 600; white-space: nowrap; vertical-align: middle;
    border: 1px solid transparent;
}
.tag.sm { font-size: .65rem; padding: .1rem .45rem; }
.tag-green  { background: rgba(37, 211, 102, .12); color: #5ee89a; border-color: rgba(37, 211, 102, .3); }
.tag-blue   { background: rgba(52, 183, 241, .12); color: #7dd3fc; border-color: rgba(52, 183, 241, .3); }
.tag-gray   { background: rgba(134, 150, 160, .12); color: #a8b5bd; border-color: rgba(134, 150, 160, .25); }
.tag-red    { background: rgba(239, 68, 68, .12); color: #fca5a5; border-color: rgba(239, 68, 68, .3); }
.tag-purple { background: rgba(139, 92, 246, .14); color: #c4b5fd; border-color: rgba(139, 92, 246, .35); }
.tag-amber  { background: rgba(245, 158, 11, .14); color: #fcd34d; border-color: rgba(245, 158, 11, .38); }

/* Uyarılar */
.alert {
    padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem;
    font-size: .92rem; border: 1px solid;
}
.alert-success { background: rgba(37, 211, 102, .1); border-color: rgba(37, 211, 102, .35); color: #86efac; }
.alert-error   { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .35); color: #fca5a5; }
.alert-info    { background: rgba(52, 183, 241, .1); border-color: rgba(52, 183, 241, .35); color: #7dd3fc; }

/* ---------- Formlar ---------- */
.form { display: flex; flex-direction: column; gap: 1.05rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; }
.field label .muted { font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=tel],
.form input[type=number], .form input[type=search], .form select, .form textarea,
.search input, .search select {
    width: 100%; padding: .75rem .95rem; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    font: 400 .95rem 'Inter', sans-serif; transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 80px; }
.form select, .search select { cursor: pointer; }
.form select:disabled { opacity: .55; cursor: not-allowed; }
.form input:focus, .form select:focus, .form textarea:focus, .search input:focus, .search select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 211, 102, .15);
}
.form input::placeholder, .form textarea::placeholder, .search input::placeholder { color: #55646c; }

.has-error input, .has-error select { border-color: #ef4444 !important; }
.field-error { color: #fca5a5; font-size: .8rem; }

.input-group { position: relative; display: flex; }
.input-group input { padding-right: 4.8rem !important; }
.input-addon {
    position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
    padding: .3rem .6rem; border-radius: 6px; font: 600 .75rem 'Inter', sans-serif; cursor: pointer;
}
.input-addon:hover { color: var(--text); }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .2rem; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.check a { color: var(--primary); }
.check.has-error span { color: #fca5a5; }

/* ---------- Giriş / Kayıt ---------- */
.auth-body { min-height: 100vh; }
.auth-wrap {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2.5rem 1rem;
}
.auth-logo { margin-bottom: 1.8rem; }
.auth-card {
    width: 100%; max-width: 520px; padding: 2.4rem;
    background: rgba(17, 23, 24, .85); backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 20px;
    box-shadow: 0 40px 120px -40px rgba(37, 211, 102, .3);
}
.auth-card h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.auth-sub { margin: .35rem 0 1.6rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: .92rem; }
.auth-switch a, .auth-foot a { color: var(--primary); font-weight: 600; }
.auth-foot { margin-top: 1.6rem; font-size: .85rem; }
.plan-chip {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .8rem 1rem; margin-bottom: 1.2rem; border-radius: 10px;
    background: rgba(37, 211, 102, .08); border: 1px dashed rgba(37, 211, 102, .45);
    font-size: .88rem;
}
.plan-chip span { color: var(--muted); }
.plan-chip b { color: #7ff0ae; }

/* ---------- Panel düzeni ---------- */
.panel-body { --side-w: 250px; }
.panel-body .card { padding: 1.5rem; }
.panel-body .card:hover { transform: none; border-color: var(--border); }
.panel-body .card.p-0 { padding: 0; }

.sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 300;
    display: flex; flex-direction: column; padding: 1.3rem 1rem;
    background: var(--bg-alt); border-right: 1px solid var(--border);
    transition: transform .3s ease;
}
.sidebar-logo { padding: 0 .5rem 1.5rem; font-size: 1.25rem; }
.side-nav, .side-bottom { display: flex; flex-direction: column; gap: .2rem; }
.side-bottom { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.side-nav a, .side-bottom a {
    display: flex; align-items: center; gap: .7rem;
    padding: .7rem .8rem; border-radius: 10px;
    color: var(--muted); font-weight: 500; font-size: .93rem; transition: all .2s;
}
.side-nav a:hover, .side-bottom a:hover { background: var(--surface); color: var(--text); }
.side-nav a.active {
    background: linear-gradient(90deg, rgba(37, 211, 102, .16), rgba(37, 211, 102, .04));
    color: var(--text); box-shadow: inset 3px 0 0 var(--primary);
}
.side-bottom a.danger:hover { color: #fca5a5; background: rgba(239, 68, 68, .08); }
.side-ico { width: 22px; text-align: center; font-size: 1.05rem; }
.sidebar-backdrop { display: none; }

.panel-main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 1rem;
    padding: .9rem 2rem; min-height: 68px;
    background: rgba(7, 9, 10, .82); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 1.2rem; font-weight: 700; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.topbar-user-info { text-align: right; line-height: 1.25; }
.topbar-user-info b { display: block; font-size: .9rem; }
.topbar-user-info small { color: var(--muted); font-size: .78rem; }
.side-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: .3rem; }
.side-toggle span { width: 22px; height: 2px; background: var(--text); }

.panel-content { padding: 2rem; flex: 1; width: 100%; max-width: 1400px; }

.avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--gradient); color: #fff; font-weight: 700; font-size: .9rem;
}
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }

/* Kartlar & başlıklar */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.card-head h3 { font-size: 1.02rem; font-weight: 700; }
.card-head.pad { padding: 1.2rem 1.5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-2.align-start { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }

/* İstatistikler */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.stat { position: relative; display: flex; flex-direction: column; gap: .2rem; overflow: hidden; }
.stat small { color: var(--muted); font-size: .85rem; font-weight: 500; }
.stat strong { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; }
.stat em { font-style: normal; font-size: .8rem; color: var(--muted); }
.stat em.up { color: var(--primary); }
.stat-ico {
    position: absolute; top: 1.2rem; right: 1.2rem; width: 42px; height: 42px;
    display: grid; place-items: center; font-size: 1.2rem; border-radius: 12px;
    background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .25);
}

/* Tablolar */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
    text-align: left; padding: .8rem 1rem; white-space: nowrap;
    color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--border);
}
.table td { padding: .85rem 1rem; border-bottom: 1px solid rgba(31, 43, 44, .7); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.table td small.block { font-size: .78rem; margin-top: .1rem; }
.card:not(.p-0) .table th:first-child, .card:not(.p-0) .table td:first-child { padding-left: 0; }
.card:not(.p-0) .table th:last-child, .card:not(.p-0) .table td:last-child { padding-right: 0; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem !important; }
.user-cell { display: flex; align-items: center; gap: .7rem; }
.user-cell:hover b { color: var(--primary); }

/* Araç çubuğu, sekmeler, sayfalama */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.search { display: flex; gap: .6rem; flex: 1; max-width: 640px; }
.search input { flex: 1; padding: .65rem .95rem; }
.search select { width: auto; padding: .65rem .95rem; }
.tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.tabs a {
    padding: .45rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
    color: var(--muted); border: 1px solid var(--border); background: var(--surface);
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: #fff; background: var(--gradient); border-color: transparent; }
.list-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; font-size: .9rem; }
.pagination { display: flex; gap: .3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; padding: 0 .6rem; display: grid; place-items: center;
    border-radius: 8px; font-size: .86rem; color: var(--muted);
}
.pagination a { border: 1px solid var(--border); background: var(--surface); }
.pagination a:hover { color: var(--text); border-color: var(--primary); }
.pagination a.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* Dağılım çubukları */
.dist { display: flex; flex-direction: column; gap: 1.1rem; }
.dist-label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .4rem; }
.dist-label b { font-weight: 600; color: var(--muted); font-size: .84rem; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--gradient); }
.bar span.blue { background: linear-gradient(90deg, #34B7F1, #0ea5e9); }

/* Üye detay */
.back-link { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.back-link:hover { color: var(--text); }
.profile-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.profile-info { flex: 1; min-width: 220px; }
.profile-info h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.profile-stats div { display: flex; flex-direction: column; }
.profile-stats small { color: var(--muted); font-size: .78rem; }
.profile-stats b { font-size: .98rem; }
.danger-zone { border-color: rgba(239, 68, 68, .3) !important; }
.danger-zone h3 { color: #fca5a5; }

/* Müşteri paneli */
.welcome {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1.8rem; margin-bottom: 1.5rem; border-radius: var(--radius);
    background: radial-gradient(circle at top right, rgba(37, 211, 102, .18), transparent 60%), var(--surface);
    border: 1px solid var(--border);
}
.welcome h2 { font-size: 1.5rem; font-weight: 800; }
.sub-pill {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .55rem 1rem; border-radius: 999px; font-size: .9rem;
    background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .35);
}
.sub-pill b { color: #7ff0ae; }
.sub-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }
.empty-state { text-align: center; padding: 4rem 1.5rem !important; }
.empty-ico { font-size: 2.6rem; margin-bottom: .8rem; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: .3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
    .sidebar-backdrop.show { display: block; position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .55); }
    .panel-main { margin-left: 0; }
    .side-toggle { display: flex; }
    .topbar { padding: .8rem 1.2rem; }
    .panel-content { padding: 1.2rem; }
}
@media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .topbar-user-info { display: none; }
    .auth-card { padding: 1.6rem; }
    .search { flex-wrap: wrap; }
    .profile-stats { gap: 1.2rem; }
}

/* =========================================================
   Kurulum kartı + Kurulum sihirbazı (modal)
   ========================================================= */
.setup-card {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    padding: 2rem !important;
    background: radial-gradient(circle at 0% 50%, rgba(37, 211, 102, .12), transparent 55%), var(--surface);
}
.setup-card-ico {
    width: 72px; height: 72px; flex-shrink: 0; display: grid; place-items: center;
    border-radius: 20px; background: var(--gradient); color: #fff;
    box-shadow: 0 0 0 8px rgba(37, 211, 102, .08), 0 15px 40px -10px rgba(37, 211, 102, .6);
}
.setup-card-text { flex: 1; min-width: 220px; }
.setup-card-text h3 { font-size: 1.25rem; margin: .35rem 0 .2rem; }
.setup-card-actions { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.setup-card-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }

body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .2s ease;
}
.modal-box {
    position: relative; width: 100%; max-width: 610px; max-height: calc(100vh - 2rem); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(37, 211, 102, .08);
    opacity: 0; transform: translateY(16px) scale(.98); transition: all .22s ease;
}
.modal.show .modal-backdrop { opacity: 1; }
.modal.show .modal-box { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 1.1rem; }
.modal-x {
    width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg); color: var(--muted); cursor: pointer; font-size: .9rem;
}
.modal-x:hover { color: var(--text); border-color: var(--primary); }
.modal-body { padding: 1.6rem; }
.modal-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.1rem 1.6rem; border-top: 1px solid var(--border); background: rgba(0, 0, 0, .15);
}

/* Adım göstergesi */
.stepper { list-style: none; display: flex; padding: 1.3rem 1.6rem 0; counter-reset: s; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem; position: relative; text-align: center; }
.stepper li:not(:last-child)::after {
    content: ''; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px);
    height: 2px; background: var(--border); transition: background .3s;
}
.stepper li.done:not(:last-child)::after { background: var(--primary); }
.stepper-dot {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 700; font-size: .9rem; color: var(--muted);
    background: var(--bg); border: 2px solid var(--border); transition: all .3s;
}
.stepper-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stepper li.current .stepper-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px rgba(37, 211, 102, .15); }
.stepper li.current .stepper-label { color: var(--text); }
.stepper li.done .stepper-dot { background: var(--gradient); border-color: transparent; color: transparent; position: relative; }
.stepper li.done .stepper-dot::after { content: '✓'; position: absolute; color: #fff; }

/* Adım içerikleri */
.wiz-step { text-align: center; }
.wiz-step.enter { animation: wizIn .3s ease; }
@keyframes wizIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wiz-step .field { text-align: left; margin-top: 1.4rem; }
.wiz-step input[type=tel] { font-size: 1.15rem !important; letter-spacing: .04em; padding: .9rem 1rem !important; text-align: center; }
.wiz-ico {
    width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center;
    font-size: 1.8rem; border-radius: 18px;
    background: rgba(37, 211, 102, .1); border: 1px solid rgba(37, 211, 102, .3);
}
.wiz-step h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: .3rem; }
.wiz-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.3rem 0; }
.wiz-summary div {
    display: flex; flex-direction: column; gap: .2rem; padding: .9rem; border-radius: 12px;
    background: var(--bg); border: 1px solid var(--border);
}
.wiz-summary small { color: var(--muted); font-size: .78rem; }
.wiz-summary b { font-size: .98rem; }
.modal-body .alert { margin: 1rem 0 0; text-align: left; }

/* ---------- Adım 3: Kodu telefonunuza girin ---------- */
.wiz-step-pair { text-align: left; }
.pair-title {
    font-size: 1.45rem !important; font-weight: 700; letter-spacing: -.02em;
    color: var(--text); margin-bottom: .25rem !important;
}
.pair-sub {
    font-size: .94rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.5;
}
.pair-sub strong { color: var(--text); font-weight: 700; }
.pair-edit { color: var(--primary); font-weight: 600; }
.pair-edit:hover { text-decoration: underline; }

.pair-box {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.55rem 1rem; margin-bottom: 1.5rem;
    text-align: center;
}
.pair-slots {
    display: flex; align-items: center; justify-content: center; gap: .42rem;
}
.pair-char {
    width: 44px; height: 50px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid rgba(255, 255, 255, .14);
    display: grid; place-items: center;
    font-size: 1.2rem; font-weight: 700; color: var(--text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    transition: all .25s ease;
}
.pair-char.filled {
    background: var(--surface);
    border-color: rgba(37, 211, 102, .5);
    box-shadow: 0 4px 16px -4px rgba(37, 211, 102, .25);
}
.pair-char.waiting::before {
    content: '•'; color: var(--muted); opacity: .45;
    animation: pairPulse 1.4s ease-in-out infinite;
}
.pair-dash {
    font-size: 1.3rem; font-weight: 700; color: var(--muted);
    padding: 0 .15rem; user-select: none;
}
.pair-waiting {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    margin-top: .95rem; font-size: .83rem; color: var(--muted);
}
.pair-waiting[hidden] { display: none !important; }
.pair-spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .25); border-top-color: var(--primary);
    animation: spin .8s linear infinite;
}
@keyframes pairPulse { 0%, 100% { opacity: .25; } 50% { opacity: .75; } }

.pair-guide {
    list-style: none; display: flex; flex-direction: column; gap: .95rem;
    margin: 0; padding: 0;
}
.pair-guide li {
    display: flex; align-items: center; gap: .85rem; position: relative;
}
.pair-guide li:not(:last-child)::after {
    content: ''; position: absolute; left: 13px; top: 28px; bottom: -16px;
    width: 1.5px; background: var(--border);
}
.pair-num {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--surface-2); border: 1.5px solid var(--border);
    color: var(--text); font-size: .8rem; font-weight: 600;
    position: relative; z-index: 1;
}
.pair-text {
    font-size: .93rem; color: var(--muted); line-height: 1.5;
}
.pair-text b { color: var(--text); font-weight: 700; }
.pair-ico {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; border-radius: 6px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); vertical-align: -5px; margin: 0 1px;
}
.pair-ico-wa {
    background: #25D366; border-color: #25D366; color: #fff;
}

/* ---------- Lütfen Bekleyiniz (Yükleniyor) Ekranı ---------- */
.wait-screen {
    text-align: center; padding: .5rem 0 .2rem;
    animation: wizIn .35s ease;
}
.wait-screen[hidden] { display: none !important; }
.wait-loader {
    position: relative; width: 88px; height: 88px; margin: 0 auto 1.25rem;
    display: grid; place-items: center;
}
.wait-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, .15);
    border-top-color: var(--primary);
    animation: spin 1.1s linear infinite;
}
.wait-ring-2 {
    inset: 10px;
    border-width: 2.5px;
    border-color: rgba(52, 183, 241, .14);
    border-bottom-color: #34B7F1;
    animation: spin 1.6s linear infinite reverse;
}
.wait-core {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 0 24px rgba(37, 211, 102, .45);
    animation: waitPulse 1.8s ease-in-out infinite;
}
@keyframes waitPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(37, 211, 102, .35); }
    50% { transform: scale(1.07); box-shadow: 0 0 32px rgba(37, 211, 102, .65); }
}
.wait-title {
    font-size: 1.4rem !important; font-weight: 800; letter-spacing: -.02em;
    color: var(--text); margin-bottom: .45rem !important;
}
.wait-desc {
    color: var(--muted); font-size: .95rem; max-width: 440px;
    margin: 0 auto 1.35rem; line-height: 1.55;
}
.wait-progress-wrap {
    background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.15rem 1.25rem; margin-bottom: 1.25rem;
}
.wait-progress {
    height: 8px; border-radius: 99px; background: var(--surface-2);
    overflow: hidden; position: relative; margin-bottom: .75rem;
}
.wait-progress-bar {
    position: absolute; top: 0; bottom: 0; width: 45%;
    border-radius: 99px; background: var(--gradient);
    animation: waitBar 1.6s ease-in-out infinite;
}
@keyframes waitBar {
    0% { left: -45%; }
    100% { left: 100%; }
}
.wait-status {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-size: .84rem; color: var(--text); font-weight: 500;
}
.wait-warning {
    display: flex; align-items: flex-start; gap: .85rem; text-align: left;
    padding: 1rem 1.15rem; border-radius: 12px;
    background: rgba(245, 158, 11, .09); border: 1px solid rgba(245, 158, 11, .38);
}
.wait-warning-ico {
    font-size: 1.35rem; line-height: 1; flex-shrink: 0; margin-top: .1rem;
}
.wait-warning-body {
    font-size: .86rem; color: #fde68a; line-height: 1.5;
}
.wait-warning-body strong {
    display: block; font-size: .92rem; color: #fcd34d; margin-bottom: .25rem;
}
.wait-warning-body p {
    margin: 0; color: rgba(254, 243, 199, .88);
}
.wait-warning-body b {
    color: #fff; font-weight: 600;
}

/* ---------- Admin Kurulum & Kod Verme ---------- */
.side-badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 .45rem;
    border-radius: 999px; background: #ef4444; color: #fff;
    font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center;
}
.setup-alert-card {
    border-color: rgba(37, 211, 102, .4) !important;
    background: radial-gradient(circle at 0% 0%, rgba(37, 211, 102, .1), transparent 55%), var(--surface);
    margin-bottom: 1.5rem;
}
.code-form {
    display: inline-flex; align-items: center; gap: .45rem; flex-wrap: nowrap;
}
.code-input {
    width: 135px !important; padding: .42rem .65rem !important;
    border-radius: 8px !important; background: var(--bg) !important;
    border: 1px solid var(--border) !important; color: var(--text) !important;
    font: 700 .88rem 'Inter', monospace !important; letter-spacing: .08em;
    text-transform: uppercase; text-align: center;
}
.code-input:focus {
    outline: none; border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .15);
}

.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
    content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .setup-card { flex-direction: column; text-align: center; }
    .stepper-label { font-size: .7rem; }
    .wiz-summary { grid-template-columns: 1fr; }
    .modal-body, .modal-head, .modal-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
    .pair-slots { gap: .25rem; }
    .pair-char { width: 34px; height: 42px; font-size: 1rem; border-radius: 8px; }
    .pair-dash { font-size: 1.05rem; padding: 0 .05rem; }
}

/* =========================================================
   Müşteri Paneli: Bağlı Cihazlar, Paket & Üyelik, Destek
   ========================================================= */
.area-customer .side-badge {
    background: var(--primary);
    color: #041309;
}

/* Dashboard Üyelik Kutusu */
.dash-sub-box {
    display: flex; flex-direction: column; gap: 1.1rem;
}
.dash-sub-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.dash-sub-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
}
.dash-sub-meta div {
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: .75rem .85rem; display: flex; flex-direction: column; gap: .2rem;
}
.dash-sub-meta small { font-size: .75rem; color: var(--muted); }
.dash-sub-meta b { font-size: .92rem; }
.dash-sub-actions {
    display: flex; gap: .6rem; flex-wrap: wrap;
}

/* Bağlı Cihazlar */
.device-draft-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.device-draft-actions {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.device-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.35rem;
}
.device-card {
    display: flex; flex-direction: column; gap: 1.25rem;
    background: radial-gradient(circle at 100% 0%, rgba(37, 211, 102, .08), transparent 55%), var(--surface);
}
.device-card-head {
    display: flex; align-items: center; gap: 1rem;
}
.device-ico {
    width: 54px; height: 54px; border-radius: 15px; flex-shrink: 0;
    background: var(--gradient); color: #fff; display: grid; place-items: center;
    box-shadow: 0 8px 24px -6px rgba(37, 211, 102, .45);
}
.device-meta h3 {
    font-size: 1.15rem; font-weight: 800; margin: .25rem 0 .1rem;
}
.device-details {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.device-detail-item {
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: .75rem .9rem; display: flex; flex-direction: column; gap: .2rem;
}
.device-detail-item small { font-size: .75rem; color: var(--muted); }
.device-detail-item b { font-size: .9rem; }
.device-card-foot {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto;
}

/* Paket & Üyelik Yönetimi */
.sub-overview-card {
    background: radial-gradient(circle at 0% 0%, rgba(37, 211, 102, .12), transparent 55%), var(--surface);
}
.sub-overview-top {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap;
}
.sub-title-row {
    display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin: .35rem 0 .4rem;
}
.sub-title-row h2 { font-size: 1.45rem; font-weight: 800; }
.sub-overview-actions {
    display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
}
.sub-metrics {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--border);
}
.sub-metric {
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem;
}
.sub-metric small { color: var(--muted); font-size: .78rem; }
.sub-metric strong { font-size: 1.25rem; font-weight: 800; }
.mt-bar { margin-top: .35rem; }

.panel-pricing-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
.current-plan-card {
    border-color: rgba(52, 183, 241, .55) !important;
}
.badge-current {
    background: linear-gradient(135deg, #34B7F1, #0ea5e9) !important;
    color: #fff !important;
}

/* Destek & Yardım */
.support-topic-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
}
.support-topic-card .btn { margin-top: auto; }
.support-faq-list {
    display: flex; flex-direction: column; gap: .9rem;
}
.support-faq-item {
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 1.1rem 1.25rem;
}
.support-faq-item h4 {
    font-size: .96rem; font-weight: 700; margin-bottom: .35rem; color: var(--text);
}

@media (max-width: 1024px) {
    .sub-metrics { grid-template-columns: repeat(2, 1fr); }
    .panel-pricing-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .sub-metrics, .dash-sub-meta, .device-details { grid-template-columns: 1fr; }
    .device-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Gelişmiş Admin Paneli: Paket Editörü, Duyuru, Impersonation
   ========================================================= */

/* Admin Hızlı Kısayol Çubuğu */
.admin-quick-bar {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    margin-bottom: 1.35rem;
}
.quick-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem .95rem; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-size: .84rem; font-weight: 600;
    transition: .18s;
}
.quick-chip:hover {
    border-color: rgba(37, 211, 102, .45);
    background: var(--surface-2);
    transform: translateY(-1px);
}

/* Müşteri Olarak Gör (Impersonation) Üst Bandı */
.impersonate-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .9rem 1.25rem; margin-bottom: 1.25rem; border-radius: 12px;
    background: linear-gradient(90deg, rgba(168, 85, 247, .2), rgba(59, 130, 246, .16));
    border: 1px solid rgba(168, 85, 247, .45); color: #f3e8ff;
    font-size: .9rem;
}

/* Müşteri Paneli Duyuru / Kampanya Bandı */
.ann-banner {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: .95rem 1.3rem; margin-bottom: 1.35rem; border-radius: 14px;
    border: 1px solid var(--border);
}
.ann-body {
    display: flex; align-items: center; gap: .85rem;
}
.ann-ico {
    font-size: 1.35rem; flex-shrink: 0;
}
.ann-body strong {
    display: block; font-size: .95rem; margin-bottom: .1rem;
}
.ann-body span {
    font-size: .86rem; opacity: .9;
}
.ann-green {
    background: radial-gradient(circle at 0% 50%, rgba(37, 211, 102, .18), transparent 70%), var(--surface);
    border-color: rgba(37, 211, 102, .4);
}
.ann-blue {
    background: radial-gradient(circle at 0% 50%, rgba(52, 183, 241, .18), transparent 70%), var(--surface);
    border-color: rgba(52, 183, 241, .4);
}
.ann-amber {
    background: radial-gradient(circle at 0% 50%, rgba(245, 158, 11, .18), transparent 70%), var(--surface);
    border-color: rgba(245, 158, 11, .45);
}
.ann-red {
    background: radial-gradient(circle at 0% 50%, rgba(239, 68, 68, .18), transparent 70%), var(--surface);
    border-color: rgba(239, 68, 68, .45);
}

/* Paket & Fiyatlandırma Editörü */
.pkg-admin-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.pkg-edit-card {
    display: flex; flex-direction: column; gap: .95rem;
}
.pkg-edit-card.featured-border {
    border-color: rgba(37, 211, 102, .5);
    box-shadow: 0 0 0 1px rgba(37, 211, 102, .2);
}
.pkg-edit-head {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding-bottom: .8rem; border-bottom: 1px solid var(--border);
}
.pkg-id-chip {
    margin-left: .45rem; padding: .2rem .5rem; border-radius: 6px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: .76rem; color: var(--muted);
}
.pkg-toggles {
    display: flex; gap: 1.25rem; flex-wrap: wrap;
    padding-top: .5rem; border-top: 1px solid var(--border);
}

/* Toplu Fiyat / Gün Ekleme Çubuğu */
.bulk-price-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.bulk-price-controls {
    display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}
.bulk-price-controls select,
.bulk-price-controls input {
    padding: .5rem .75rem; border-radius: 9px;
    background: var(--bg); border: 1px solid var(--border);
    color: var(--text); font: inherit; font-size: .86rem;
}

/* Yapışkan Kaydetme Çubuğu */
.sticky-save-bar {
    position: sticky; bottom: 1rem; z-index: 20;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    margin-top: 1.35rem; padding: 1rem 1.4rem; border-radius: 14px;
    background: rgba(13, 18, 20, .92); backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 211, 102, .45);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}

/* IBAN Bilgi Kutusu (Müşteri Yükseltme Modalı) */
.iban-info-box {
    padding: .95rem 1.1rem; border-radius: 11px;
    background: rgba(37, 211, 102, .07);
    border: 1px solid rgba(37, 211, 102, .3);
    font-size: .86rem; line-height: 1.5;
}

/* Güvenlik Sayfası Stat Kartları */
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .25rem;
}
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 500; }
.stat-val { font-size: 1.55rem; font-weight: 800; line-height: 1.15; margin-top: .15rem; }
.stat-sub { color: var(--muted); font-size: .76rem; }

@media (max-width: 960px) {
    .pkg-admin-grid { grid-template-columns: 1fr; }
    .sticky-save-bar { position: static; }
}

/* =========================================================
   Lisans / Aktivasyon Kodu Sistemi (Müşteri & Admin)
   ========================================================= */
.license-redeem-card {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    background: radial-gradient(circle at 100% 50%, rgba(37, 211, 102, .11), transparent 60%), var(--surface);
    border-color: rgba(37, 211, 102, .35);
}
.license-redeem-info {
    display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 240px;
}
.license-redeem-ico {
    width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
    background: rgba(37, 211, 102, .14); border: 1px solid rgba(37, 211, 102, .35);
    display: grid; place-items: center; font-size: 1.4rem;
}
.license-redeem-info h3 {
    font-size: 1.05rem; font-weight: 800; margin-bottom: .15rem;
}
.license-redeem-form {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.license-input {
    width: 240px; padding: .68rem .95rem; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    font: 700 .92rem 'Inter', monospace; letter-spacing: .06em; text-transform: uppercase;
}
.license-input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .15);
}

/* Admin Lisans Üretici Hızlı Gün Çipleri & Kod Rozeti */
.day-preset-row {
    display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
}
.day-chip {
    padding: .35rem .7rem; border-radius: 8px; cursor: pointer;
    background: var(--bg); border: 1px solid var(--border);
    color: var(--muted); font: 600 .78rem 'Inter', sans-serif; transition: .15s;
}
.day-chip:hover, .day-chip.active {
    background: rgba(37, 211, 102, .15); border-color: var(--primary); color: #6ee7a0;
}
.lic-code-badge {
    padding: .32rem .65rem; border-radius: 8px;
    background: var(--bg); border: 1px solid rgba(37, 211, 102, .35);
    color: #6ee7a0; font: 700 .88rem 'Inter', monospace; letter-spacing: .05em;
    user-select: all;
}

@media (max-width: 640px) {
    .license-redeem-form { width: 100%; }
    .license-input { flex: 1; width: auto; min-width: 0; }
}
