:root {
    --ax-bg: #eef2f8;
    --ax-bg-soft: #f8fafc;
    --ax-surface: #ffffff;
    --ax-surface-elevated: rgba(255, 255, 255, 0.92);
    --ax-border: rgba(15, 23, 42, 0.08);
    --ax-border-strong: rgba(15, 23, 42, 0.12);
    --ax-text: #0f172a;
    --ax-text-soft: #334155;
    --ax-muted: #64748b;
    --ax-primary: #4338ca;
    --ax-primary-2: #6366f1;
    --ax-primary-dark: #1e1b4b;
    --ax-accent: #0ea5e9;
    --ax-success: #059669;
    --ax-success-soft: #ecfdf5;
    --ax-danger: #dc2626;
    --ax-danger-soft: #fef2f2;
    --ax-warning: #d97706;
    --ax-warning-soft: #fff7ed;
    --ax-info-soft: #eff6ff;
    --ax-sidebar: #0b1224;
    --ax-sidebar-2: #121a33;
    --ax-radius: 16px;
    --ax-radius-sm: 12px;
    --ax-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --ax-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --ax-shadow-lg: 0 28px 80px rgba(15, 23, 42, 0.12);
    --ax-ring: 0 0 0 4px rgba(99, 102, 241, 0.14);
    --ax-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ax-font);
    color: var(--ax-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.ax-icon { display: block; flex-shrink: 0; }

/* ─── AUTH ─── */
body.ax-auth {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.12), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.12), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.ax-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
}

.ax-auth-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.35), transparent 32%),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.22), transparent 28%),
        linear-gradient(145deg, #0b1224 0%, #151f3d 42%, #1e1b4b 100%);
    color: #fff;
    padding: clamp(32px, 5vw, 64px);
}

.ax-auth-hero__mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent);
}

.ax-auth-hero__glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: .45;
    pointer-events: none;
}

.ax-auth-hero__glow--1 {
    width: 280px;
    height: 280px;
    top: 12%;
    right: 8%;
    background: #6366f1;
}

.ax-auth-hero__glow--2 {
    width: 220px;
    height: 220px;
    bottom: 10%;
    left: 10%;
    background: #0ea5e9;
}

.ax-auth-hero__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 128px);
}

.ax-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}

.ax-brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.ax-brand__name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ax-brand__name span { color: #a5b4fc; }

.ax-brand__tag {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}

.ax-auth-hero h1 {
    margin: 36px 0 14px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ax-auth-hero__lead {
    margin: 0;
    color: rgba(255,255,255,.76);
    line-height: 1.75;
    font-size: 16px;
}

.ax-auth-features {
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.ax-auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,.88);
    font-weight: 600;
}

.ax-auth-features__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.1);
    color: #c7d2fe;
}

.ax-auth-trust {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.ax-auth-trust__item {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}

.ax-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
}

.ax-card {
    width: min(460px, 100%);
    background: var(--ax-surface-elevated);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 22px;
    box-shadow: var(--ax-shadow-lg);
    padding: 32px;
    backdrop-filter: blur(16px);
}

.ax-card h2 {
    margin: 8px 0 10px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.ax-card__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ax-primary-2);
}

.ax-card__desc {
    margin: 0 0 4px;
    color: var(--ax-muted);
    line-height: 1.65;
}

.ax-field { margin-top: 18px; }

.ax-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ax-text-soft);
}

.ax-field input,
.ax-field select,
.ax-field textarea {
    width: 100%;
    border: 1px solid var(--ax-border-strong);
    border-radius: 12px;
    padding: 13px 15px;
    font: inherit;
    background: #fff;
    color: var(--ax-text);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ax-field input:focus,
.ax-field select:focus,
.ax-field textarea:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: var(--ax-ring);
}

.ax-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ax-btn:hover { transform: translateY(-1px); }
.ax-btn:active { transform: translateY(0); }

.ax-btn--primary {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.28);
}

.ax-btn--primary:hover {
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.34);
}

.ax-btn--secondary {
    background: #fff;
    color: var(--ax-text);
    border: 1px solid var(--ax-border-strong);
}

.ax-btn--ghost {
    background: transparent;
    color: var(--ax-muted);
    padding-inline: 10px;
    box-shadow: none;
}

.ax-btn--ghost:hover {
    color: var(--ax-primary);
    transform: none;
}

.ax-btn--sm {
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.ax-btn--block { width: 100%; margin-top: 20px; }

.ax-alert {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.ax-alert--error {
    background: var(--ax-danger-soft);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ax-alert--info,
.ax-alert--success {
    background: var(--ax-info-soft);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.ax-links {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.ax-links a {
    color: var(--ax-primary);
    text-decoration: none;
    font-weight: 700;
}

.ax-resend {
    margin-top: 14px;
    text-align: center;
}

/* ─── APP SHELL ─── */
body.ax-app {
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fafc 0%, var(--ax-bg) 100%);
}

.ax-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.ax-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 120px),
        linear-gradient(180deg, var(--ax-sidebar) 0%, var(--ax-sidebar-2) 100%);
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.08);
}

.ax-sidebar__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 18px;
}

.ax-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 8px 10px;
}

.ax-sidebar__brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}

.ax-sidebar__brand-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ax-sidebar__brand-text span { color: #a5b4fc; }

.ax-sidebar__brand-sub {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.42);
    margin-top: 2px;
}

.ax-nav-section {
    margin-bottom: 22px;
}

.ax-nav-section__label {
    padding: 0 12px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.36);
}

.ax-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.ax-nav a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    transform: translateX(2px);
}

.ax-nav a.active {
    background: linear-gradient(135deg, rgba(99,102,241,.24), rgba(67,56,202,.18));
    border-color: rgba(165,180,252,.18);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.ax-nav a .ax-icon { opacity: .88; }

.ax-sidebar__footer {
    margin-top: auto;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

.ax-sidebar__status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.72);
}

.ax-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.ax-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ax-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ax-border);
}

.ax-topbar__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ax-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ax-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ax-breadcrumb__sep { opacity: .45; }

.ax-topbar__title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ax-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ax-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ax-border);
    box-shadow: var(--ax-shadow-sm);
}

.ax-user-chip__avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.ax-user-chip__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ax-user-chip__name {
    font-size: 13px;
    font-weight: 800;
}

.ax-user-chip__role {
    font-size: 11px;
    font-weight: 700;
    color: var(--ax-muted);
}

.ax-content {
    padding: 24px 28px 40px;
}

.ax-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ax-page-head__copy { min-width: 0; }

.ax-page-title {
    margin: 0 0 6px;
    font-size: clamp(28px, 3vw, 34px);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.ax-page-sub {
    margin: 0;
    color: var(--ax-muted);
    line-height: 1.65;
    max-width: 720px;
}

.ax-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ax-grid {
    display: grid;
    gap: 18px;
}

.ax-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ax-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ax-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ax-stat {
    position: relative;
    overflow: hidden;
    background: var(--ax-surface);
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius);
    padding: 20px;
    box-shadow: var(--ax-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ax-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ax-shadow);
}

.ax-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--ax-stat-accent, var(--ax-primary-2));
}

.ax-stat--indigo { --ax-stat-accent: #6366f1; }
.ax-stat--emerald { --ax-stat-accent: #10b981; }
.ax-stat--sky { --ax-stat-accent: #0ea5e9; }
.ax-stat--amber { --ax-stat-accent: #f59e0b; }
.ax-stat--rose { --ax-stat-accent: #f43f5e; }
.ax-stat--violet { --ax-stat-accent: #8b5cf6; }
.ax-stat--slate { --ax-stat-accent: #64748b; }

.ax-stat__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ax-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--ax-stat-accent, #6366f1) 12%, white);
    color: var(--ax-stat-accent, #6366f1);
}

.ax-stat__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ax-muted);
}

.ax-stat__value {
    margin-top: 10px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.ax-stat__hint {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ax-muted);
}

.ax-panel {
    background: var(--ax-surface);
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius);
    overflow: hidden;
    box-shadow: var(--ax-shadow-sm);
}

.ax-panel + .ax-panel { margin-top: 20px; }

.ax-panel__head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--ax-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #fff, #fafbfd);
}

.ax-panel__head strong {
    font-size: 15px;
    letter-spacing: -0.01em;
}

.ax-panel__head-sub {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ax-muted);
}

.ax-panel__body { padding: 0; }

.ax-panel__body--padded { padding: 20px; }

.ax-table-wrap { overflow-x: auto; }

.ax-table {
    width: 100%;
    border-collapse: collapse;
}

.ax-table th,
.ax-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.ax-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ax-table tbody tr {
    transition: background .15s ease;
}

.ax-table tbody tr:hover {
    background: #fafbff;
}

.ax-table a {
    color: var(--ax-primary);
    text-decoration: none;
    font-weight: 700;
}

.ax-table a:hover { text-decoration: underline; }

.ax-table__primary {
    display: block;
    font-weight: 800;
    color: var(--ax-text);
}

.ax-table__secondary {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--ax-muted);
}

.ax-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.ax-badge--ok {
    background: var(--ax-success-soft);
    color: #047857;
    border: 1px solid #bbf7d0;
}

.ax-badge--warn {
    background: var(--ax-warning-soft);
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.ax-badge--muted {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.ax-badge--violet {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.ax-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    background: var(--ax-surface);
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius);
    box-shadow: var(--ax-shadow-sm);
}

.ax-toolbar__search {
    position: relative;
    flex: 1 1 280px;
}

.ax-toolbar__search .ax-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ax-muted);
}

.ax-toolbar__search input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--ax-border-strong);
    border-radius: 12px;
    font: inherit;
    background: #fff;
}

.ax-toolbar select {
    min-width: 180px;
    border: 1px solid var(--ax-border-strong);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.ax-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ax-form-grid .ax-field--full { grid-column: 1 / -1; }

.ax-mb-16 { margin-bottom: 16px; }

.ax-sample-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.ax-sample-card {
    border: 1px dashed var(--ax-border, #e2e8f0);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
}

.ax-sample-card strong {
    display: block;
    color: #0f172a;
    margin-bottom: 6px;
}

.ax-table__sub {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.ax-table__detail {
    max-width: 280px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 13px;
    color: #475569;
}

.ax-toolbar__input {
    min-width: 110px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font: inherit;
}

.ax-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.ax-modal[hidden] {
    display: none !important;
}

.ax-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.ax-modal__panel {
    position: relative;
    width: min(480px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    border: 1px solid #e2e8f0;
}

.ax-modal__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 0;
}

.ax-modal__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6366f1;
}

.ax-modal__title {
    margin: 6px 0 0;
    font-size: 22px;
}

.ax-modal__sub {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.ax-modal__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.ax-modal__body {
    padding: 18px 22px 22px;
}

body.ax-modal-open {
    overflow: hidden;
}

/* Geçici başvuru detay modalı */
#axBasvuruModal .ax-modal__panel { width: min(640px, 94vw); }
#axBasvuruModal .ax-modal__body { max-height: 72vh; overflow-y: auto; }

.bx-detay {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bx-detay__group {
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-sm);
    padding: 12px 14px;
    background: var(--ax-bg-soft);
}

.bx-detay__group:last-child:nth-child(odd) { grid-column: 1 / -1; }

.bx-detay__group-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ax-primary);
    margin-bottom: 8px;
}

.bx-detay__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--ax-border);
}

.bx-detay__row:last-child { border-bottom: none; }

.bx-detay__k {
    font-size: 12px;
    color: var(--ax-text-soft);
    white-space: nowrap;
}

.bx-detay__v {
    font-size: 13px;
    font-weight: 700;
    color: var(--ax-text);
    text-align: right;
    word-break: break-word;
}

@media (max-width: 640px) {
    .bx-detay { grid-template-columns: 1fr; }
}

.ax-table__firm-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ax-table__firm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.ax-table__firm-link:hover .ax-table__primary {
    color: #4338ca;
}

.ax-table__actions-head {
    min-width: 220px;
}

.ax-row--highlight {
    background: rgba(251, 191, 36, 0.08);
}

.ax-badge--takip-beklemede {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.ax-badge--takip-yenileyecek {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.ax-badge--takip-yenilemeyecek {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.ax-badge--info {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.ax-text-warn {
    color: #b45309;
    font-weight: 700;
}

.ax-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ax-inline-form {
    display: inline;
    margin: 0;
}

.ax-task-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ax-task-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ax-task-btn--ok {
    color: #047857;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.ax-task-btn--no {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff1f2;
    font-size: 16px;
    line-height: 1;
}

.ax-toolbar__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.ax-table--compact .ax-table__sub {
    display: none;
}

.ax-form-section {
    margin-bottom: 22px;
}

.ax-form-section__title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ax-muted);
}

.ax-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ax-info-item {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--ax-border);
}

.ax-info-item__label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ax-muted);
    margin-bottom: 6px;
}

.ax-info-item__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ax-text);
}

.ax-empty {
    padding: 42px 24px;
    text-align: center;
    color: var(--ax-muted);
    font-weight: 600;
}

.ax-hero-banner {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 24px 26px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.12), transparent 30%),
        linear-gradient(135deg, #312e81 0%, #4338ca 52%, #0ea5e9 100%);
    box-shadow: var(--ax-shadow);
}

.ax-hero-banner__title {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.ax-hero-banner__text {
    margin: 0;
    max-width: 640px;
    color: rgba(255,255,255,.82);
    line-height: 1.65;
}

@media (max-width: 1100px) {
    .ax-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .ax-auth-shell,
    .ax-shell { grid-template-columns: 1fr; }

    .ax-sidebar {
        position: relative;
        height: auto;
    }

    .ax-topbar,
    .ax-content { padding-inline: 18px; }

    .ax-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ax-grid--3,
    .ax-form-grid,
    .ax-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .ax-grid--4,
    .ax-grid--3,
    .ax-form-grid,
    .ax-info-grid { grid-template-columns: 1fr; }

    .ax-user-chip__meta { display: none; }

    .ax-card { padding: 24px; }
}

/* ===== Bildirim zili & profil menüsü ===== */
.ax-notif { position: relative; }

.ax-notif__trigger {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--ax-border);
    box-shadow: var(--ax-shadow-sm);
    color: var(--ax-text-soft);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.ax-notif__trigger:hover { background: var(--ax-bg-soft); color: var(--ax-primary); }

.ax-notif__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ax-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 2px #fff;
}

.ax-notif__bell {
    display: inline-grid;
    place-items: center;
    transform-origin: 50% 0;
}

/* Okunmamış bildirim varsa zil ikonu canlı şekilde yanıp sönsün */
.ax-notif.has-unread .ax-notif__trigger {
    color: var(--ax-danger);
    border-color: color-mix(in srgb, var(--ax-danger) 45%, var(--ax-border));
    animation: ax-notif-ring 2s ease-in-out infinite;
}

.ax-notif.has-unread .ax-notif__bell {
    animation: ax-notif-swing 2s ease-in-out infinite;
}

.ax-notif.has-unread .ax-notif__badge {
    animation: ax-notif-badge-pulse 1.1s ease-in-out infinite;
}

.ax-notif.is-open.has-unread .ax-notif__trigger,
.ax-notif.is-open.has-unread .ax-notif__bell,
.ax-notif.is-open.has-unread .ax-notif__badge {
    animation: none;
}

@keyframes ax-notif-swing {
    0%, 60%, 100% { transform: rotate(0deg); }
    70% { transform: rotate(14deg); }
    80% { transform: rotate(-12deg); }
    88% { transform: rotate(7deg); }
    94% { transform: rotate(-4deg); }
}

@keyframes ax-notif-ring {
    0%, 100% { box-shadow: var(--ax-shadow-sm), 0 0 0 0 color-mix(in srgb, var(--ax-danger) 40%, transparent); }
    50% { box-shadow: var(--ax-shadow-sm), 0 0 0 6px color-mix(in srgb, var(--ax-danger) 0%, transparent); }
}

@keyframes ax-notif-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
    .ax-notif.has-unread .ax-notif__trigger,
    .ax-notif.has-unread .ax-notif__bell,
    .ax-notif.has-unread .ax-notif__badge {
        animation: none;
    }
}

.ax-notif__panel,
.ax-usermenu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-sm);
    box-shadow: var(--ax-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 60;
}

.ax-notif.is-open .ax-notif__panel,
.ax-usermenu.is-open .ax-usermenu__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ax-notif__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ax-border);
    font-weight: 800;
    font-size: 13px;
}

.ax-notif__head-form { margin: 0; }

.ax-notif__mark-all {
    border: none;
    background: none;
    color: var(--ax-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.ax-notif__mark-all:hover { text-decoration: underline; }

.ax-notif__list { max-height: 380px; overflow-y: auto; }

.ax-notif__empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--ax-muted);
    font-size: 13px;
}

.ax-notif__item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ax-border);
    color: var(--ax-text);
    text-decoration: none;
    transition: background .12s ease;
}

.ax-notif__item:last-child { border-bottom: none; }
.ax-notif__item:hover { background: var(--ax-bg-soft); }

.ax-notif__item.is-unread {
    background: var(--ax-info-soft);
    border-left: 3px solid var(--ax-primary);
}

.ax-notif__item-title { font-size: 13px; font-weight: 800; margin-bottom: 2px; }
.ax-notif__item-msg { font-size: 12px; color: var(--ax-text-soft); line-height: 1.5; }
.ax-notif__item-time { font-size: 11px; color: var(--ax-muted); margin-top: 4px; }

.ax-usermenu { position: relative; }

.ax-user-chip--btn {
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.ax-usermenu__panel { width: 240px; padding: 8px; }

.ax-usermenu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: none;
    border: none;
    color: var(--ax-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}

.ax-usermenu__item:hover { background: var(--ax-bg-soft); color: var(--ax-primary); }
.ax-usermenu__item--danger:hover { background: var(--ax-danger-soft); color: var(--ax-danger); }
.ax-usermenu__logout { margin: 0; }
.ax-usermenu__sep { height: 1px; background: var(--ax-border); margin: 6px 4px; }

/* ===== Profil & ayar sayfaları ===== */
.ax-page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ax-profile-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ax-border);
}

.ax-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4338ca);
}

.ax-profile-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.ax-profile-role { font-size: 13px; color: var(--ax-muted); font-weight: 700; }

.ax-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ax-detail-item { display: flex; flex-direction: column; gap: 4px; }

.ax-detail-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ax-muted);
}

.ax-detail-value { font-size: 15px; font-weight: 700; color: var(--ax-text); }

.ax-field__hint { font-size: 12px; color: var(--ax-muted); margin-top: 4px; }

.ax-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ax-border);
}

.ax-toggle-list { display: flex; flex-direction: column; gap: 12px; }

.ax-toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-sm);
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}

.ax-toggle-row:hover { border-color: var(--ax-border-strong); background: var(--ax-bg-soft); }
.ax-toggle-row input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ax-primary); }
.ax-toggle-row__text { display: flex; flex-direction: column; gap: 3px; }
.ax-toggle-row__text strong { font-size: 14px; font-weight: 800; }
.ax-toggle-row__text span { font-size: 12px; color: var(--ax-muted); line-height: 1.5; }

.ax-panel--accent { border-left: 4px solid var(--ax-primary); }

@media (max-width: 640px) {
    .ax-detail-grid { grid-template-columns: 1fr; }
}

/* ===== Admin & rol yönetimi ===== */
.ax-btn--danger {
    background: var(--ax-danger);
    color: #fff;
    border: 1px solid var(--ax-danger);
}

.ax-btn--danger:hover { filter: brightness(0.95); }

.ax-badge--role {
    background: rgba(67, 56, 202, 0.10);
    color: var(--ax-primary);
}

.ax-table__actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ax-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ax-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ax-primary); }

.ax-role-card__head { margin-bottom: 12px; }
.ax-role-card__name { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ax-role-card__sub { font-size: 12px; color: var(--ax-muted); margin-top: 4px; }

.ax-role-card__meta {
    display: flex;
    gap: 14px;
    margin: 12px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ax-text-soft);
}

.ax-chip-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }

.ax-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ax-bg-soft);
    border: 1px solid var(--ax-border);
    font-size: 11px;
    font-weight: 700;
    color: var(--ax-text-soft);
}

.ax-role-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--ax-border);
}

.ax-yetki-grup { margin-bottom: 18px; }

.ax-yetki-grup__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ax-muted);
    margin-bottom: 10px;
}

.ax-yetki-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ax-yetki-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-sm);
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}

.ax-yetki-row:hover { border-color: var(--ax-border-strong); background: var(--ax-bg-soft); }
.ax-yetki-row.is-on { border-color: var(--ax-primary); background: rgba(67, 56, 202, 0.05); }
.ax-yetki-row input[type="checkbox"] { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--ax-primary); }
.ax-yetki-row__text { display: flex; flex-direction: column; gap: 2px; }
.ax-yetki-row__text strong { font-size: 13px; font-weight: 800; }
.ax-yetki-row__text span { font-size: 11px; color: var(--ax-muted); line-height: 1.4; }

.ax-empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 520px;
    margin: 0 auto;
}

.ax-empty-state__icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: var(--ax-danger);
    background: var(--ax-danger-soft);
}

.ax-empty-state .ax-btn { margin-top: 18px; }

@media (max-width: 640px) {
    .ax-yetki-grid { grid-template-columns: 1fr; }
}
