/* ========== Jobilet — Organizatör (Firma) paneli ========== */
:root {
    --firma-sidebar-w: 300px;
    --firma-slate-900: #0f172a;
    --firma-slate-800: #1e293b;
    --firma-slate-700: #334155;
    --firma-accent: #6366f1;
    --firma-accent-hover: #4f46e5;
    --firma-pink: #e91e78;
    --firma-page: #f1f5f9;
    --firma-card-radius: 16px;
    --firma-shadow: 0 4px 24px rgba(15, 23, 42, 0.055);
    --firma-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.09);
}

body.firma-panel {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    color: var(--firma-slate-900);
    background-color: #eef2ff;
    background-image: radial-gradient(ellipse 120% 80% at 0% -20%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 100% 0%, rgba(233, 30, 120, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 40%, #eef2ff 100%);
    -webkit-font-smoothing: antialiased;
}

/* ——— Sidebar ——— */
.firma-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1039;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.firma-sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.firma-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--firma-sidebar-w);
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 1040;
    background: linear-gradient(165deg, #1e1b4b 0%, #172554 35%, #0f172a 70%, #020617 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 8px 0 40px rgba(15, 23, 42, 0.25);
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
}
.firma-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 60% at 50% -10%, rgba(99, 102, 241, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(233, 30, 120, 0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}
.firma-sidebar > * {
    position: relative;
    z-index: 1;
}

.firma-sidebar-brand {
    padding: 1.35rem 1.15rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.firma-sidebar-logo-link {
    display: block;
    text-decoration: none;
    margin-bottom: 0.65rem;
}
.firma-sidebar-logo-link:hover .firma-sidebar-logo-bg {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}
.firma-sidebar-logo-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    padding: 0.65rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.firma-sidebar-logo-img {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.firma-sidebar-product {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(196, 181, 253, 0.85);
}

.firma-sidebar-user {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}
.firma-sidebar-user .firma-sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
}
.firma-sidebar-user strong {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.35;
    word-break: break-word;
}

.firma-sidebar-nav {
    padding: 0.75rem 0.65rem 1.25rem;
    list-style: none;
    margin: 0;
}
.firma-sidebar-nav .nav-item {
    margin-bottom: 0.15rem;
}
.firma-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
}
.firma-sidebar-nav .nav-link i {
    width: 1.25rem;
    text-align: center;
    opacity: 0.9;
    font-size: 0.95rem;
}
.firma-sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}
.firma-sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #a21caf 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.firma-sidebar-nav-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem !important;
    margin-top: 0.35rem !important;
}
.firma-sidebar-nav .nav-link.text-danger {
    color: #fca5a5 !important;
}
.firma-sidebar-nav .nav-link.text-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca !important;
}
.firma-nav-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}
.firma-nav-muted:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.firma-sidebar-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.firma-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ——— Main column ——— */
.firma-main {
    margin-left: var(--firma-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.firma-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.firma-topbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    border-radius: 12px;
    transition: background 0.15s ease;
}
.firma-topbar-logo:hover {
    background: rgba(99, 102, 241, 0.08);
}
.firma-topbar-logo img {
    height: 34px;
    width: auto;
    max-width: 118px;
    object-fit: contain;
    vertical-align: middle;
}

.firma-btn-menu {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff, #f1f5f9);
    color: var(--firma-slate-800);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
}
.firma-btn-menu:hover {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--firma-accent);
}

.firma-topbar-title {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 800;
    color: var(--firma-slate-900);
    margin: 0;
    letter-spacing: -0.02em;
}
.firma-topbar-sub {
    font-size: 0.8rem;
    color: var(--firma-slate-700);
    opacity: 0.85;
}

.firma-topbar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}
.firma-badge-komisyon {
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.5em 1em;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    letter-spacing: 0.02em;
}
.firma-topbar-firma {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--firma-slate-700);
    max-width: 220px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.firma-content {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.firma-panel .alert.firma-card {
    border-radius: var(--firma-card-radius);
    border: none;
    box-shadow: var(--firma-shadow);
}
.firma-panel .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
    color: #065f46;
    border-left: 4px solid #10b981 !important;
}
.firma-panel .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.06));
    color: #991b1b;
    border-left: 4px solid #ef4444 !important;
}

/* ——— Cards & stats ——— */
.firma-card {
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: var(--firma-card-radius);
    box-shadow: var(--firma-shadow);
    overflow: hidden;
    background: #fff;
}
.firma-card .card-header {
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1rem 1.35rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--firma-slate-900);
    letter-spacing: -0.02em;
}

.firma-stat-card {
    border: none;
    border-radius: var(--firma-card-radius);
    padding: 1.25rem 1.35rem;
    color: #fff;
    box-shadow: var(--firma-shadow-lg);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.firma-stat-card::after {
    content: "";
    position: absolute;
    right: -20%;
    top: -40%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.firma-stat-card h6 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.88;
    margin-bottom: 0.35rem;
}
.firma-stat-card h3 {
    font-size: clamp(1.25rem, 4vw, 1.65rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}
.firma-stat-card .firma-stat-icon {
    font-size: 2rem;
    opacity: 0.35;
}
.firma-stat-primary {
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}
.firma-stat-success {
    background: linear-gradient(135deg, #059669, #047857);
}
.firma-stat-warning {
    background: linear-gradient(135deg, #d97706, #b45309);
}
.firma-stat-info {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

/* ——— Tables ——— */
.firma-table-wrap {
    border-radius: 0 0 var(--firma-card-radius) var(--firma-card-radius);
}
.firma-table-wrap .table {
    font-size: 0.875rem;
}
.firma-table-wrap thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--firma-slate-700);
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    white-space: nowrap;
}
.firma-table-wrap tbody td {
    vertical-align: middle;
    border-color: #f1f5f9;
}

/* ——— Links & back ——— */
.firma-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--firma-accent);
    text-decoration: none;
    margin-bottom: 1rem;
}
.firma-back-link:hover {
    color: var(--firma-accent-hover);
}

/* ——— Auth pages (premium) ——— */
body.firma-auth {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    background: #070b14;
    min-height: 100vh;
    color: #e2e8f0;
}

.firma-auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 120% 80% at 20% -20%, rgba(99, 102, 241, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 100% 0%, rgba(236, 72, 153, 0.2) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
        linear-gradient(165deg, #0a0f1c 0%, #111827 38%, #0f172a 100%);
    pointer-events: none;
}
.firma-auth-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.firma-auth-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem 2rem;
}

.firma-auth-split {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    min-height: auto;
}
@media (min-width: 992px) {
    .firma-auth-split {
        flex-direction: row;
        align-items: stretch;
        min-height: min(640px, calc(100vh - 4rem));
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
}

.firma-auth-showcase {
    flex: 0 0 auto;
    width: 100%;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
@media (min-width: 992px) {
    .firma-auth-showcase {
        flex: 0 0 42%;
        width: 42%;
        max-width: 42%;
        padding: 3rem 2.5rem 3rem 3.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }
    .firma-auth-showcase--narrow {
        flex: 0 0 36%;
        width: 36%;
        max-width: 36%;
    }
}

.firma-auth-showcase-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}
.firma-auth-showcase-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, transparent 70%);
    top: -80px;
    left: -60px;
    filter: blur(40px);
    opacity: 0.6;
    pointer-events: none;
}

.firma-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fde68a;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.12));
    border: 1px solid rgba(251, 191, 36, 0.35);
    margin-bottom: 1.25rem;
}
.firma-auth-badge i {
    font-size: 0.65rem;
    opacity: 0.9;
}

.firma-auth-wordmark {
    font-size: clamp(2rem, 5vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(120deg, #fff 0%, #e0e7ff 35%, #c4b5fd 70%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.firma-auth-showcase h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.35;
    margin-bottom: 1.5rem;
}
.firma-auth-showcase-lead {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.firma-auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.firma-auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.45;
}
.firma-auth-features li i {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.firma-auth-form-col {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem 2.5rem;
}
@media (min-width: 992px) {
    .firma-auth-form-col {
        padding: 2.5rem 2rem 3rem;
        overflow-y: auto;
        max-height: min(720px, calc(100vh - 4rem));
    }
}

.firma-auth-wrap {
    width: 100%;
    max-width: 440px;
    padding: 0;
}
.firma-auth-wrap--wide {
    max-width: 720px;
}

.firma-auth-card {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 0 1px rgba(255, 255, 255, 0.06) inset, 0 32px 64px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.firma-auth-card-top {
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #f59e0b);
    opacity: 0.95;
}

.firma-auth-card .card-body {
    padding: 1.75rem 1.5rem 1.85rem;
    background: rgba(15, 23, 42, 0.55);
}
@media (min-width: 576px) {
    .firma-auth-card .card-body {
        padding: 2rem 2rem 2.15rem;
    }
}

.firma-auth-card--light .card-body {
    background: rgba(248, 250, 252, 0.97);
    color: #0f172a;
}

.firma-auth-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.35rem;
}
.firma-auth-card--light .firma-auth-eyebrow {
    color: #64748b;
}

.firma-auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.35rem;
}
.firma-auth-card--light .firma-auth-title {
    color: #0f172a;
}

.firma-auth-subtitle {
    font-size: 0.9rem;
    color: rgba(203, 213, 225, 0.88);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.firma-auth-card--light .firma-auth-subtitle {
    color: #64748b;
}

.firma-auth-card .form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 0.4rem;
}
.firma-auth-card--light .form-label {
    color: #334155;
}

.firma-auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}
.firma-auth-input-group > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}
.firma-auth-card--light .firma-auth-input-group > i {
    color: #64748b;
}
.firma-auth-input-group .form-control {
    padding-left: 2.65rem;
}

.firma-auth-card .form-control,
.firma-auth-card .form-select {
    border-radius: 12px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.5);
    color: #f1f5f9;
    font-size: 0.92rem;
}
.firma-auth-card .form-control::placeholder {
    color: rgba(148, 163, 184, 0.65);
}
.firma-auth-card--light .form-control,
.firma-auth-card--light .form-select {
    background: #fff;
    border-color: #e2e8f0;
    color: #0f172a;
}
.firma-auth-card--light .form-control::placeholder {
    color: #94a3b8;
}

.firma-auth-card .form-control:focus,
.firma-auth-card .form-select:focus {
    border-color: rgba(129, 140, 248, 0.8);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.75);
}
.firma-auth-card--light .form-control:focus,
.firma-auth-card--light .form-select:focus {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.firma-auth-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    margin-top: 0.25rem;
    color: #fff !important;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 45%, #9333ea 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), 0 12px 32px rgba(124, 58, 237, 0.25);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.firma-auth-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45), 0 16px 40px rgba(124, 58, 237, 0.3);
}
.firma-auth-btn:active {
    transform: translateY(0);
}

.firma-auth-foot {
    text-align: center;
    margin-top: 1.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    color: rgba(203, 213, 225, 0.85);
}
.firma-auth-card--light .firma-auth-foot {
    border-top-color: #e2e8f0;
    color: #64748b;
}
.firma-auth-foot a {
    color: #a5b4fc;
    font-weight: 700;
    text-decoration: none;
}
.firma-auth-foot a:hover {
    color: #c4b5fd;
    text-decoration: underline;
}
.firma-auth-card--light .firma-auth-foot a {
    color: #4f46e5;
}
.firma-auth-card--light .firma-auth-foot a:hover {
    color: #6366f1;
}

.firma-auth-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 1.15rem;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.85);
}
.firma-auth-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.firma-auth-trust i {
    color: #34d399;
    font-size: 0.8rem;
}

.firma-auth-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #818cf8;
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
}
.firma-auth-card--light .firma-auth-section-title {
    color: #4f46e5;
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

.firma-auth-mobile-brand {
    text-align: center;
    padding: 1.25rem 1rem 0.5rem;
}
@media (min-width: 992px) {
    .firma-auth-mobile-brand {
        display: none;
    }
}
.firma-auth-mobile-brand .firma-auth-wordmark {
    font-size: 1.65rem;
    margin-bottom: 0.25rem;
}
.firma-auth-mobile-brand p {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.65);
    margin: 0;
}

/* Auth: ikon + input çakışmasını önleyen satır düzeni (giris / kayit) */
.firma-auth-field {
    margin-bottom: 1.1rem;
}
.firma-auth-field:last-of-type {
    margin-bottom: 0.35rem;
}
.firma-auth-field .form-label {
    margin-bottom: 0.35rem;
}
.firma-auth-field__control {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.55);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.firma-auth-field__control:focus-within {
    border-color: rgba(129, 140, 248, 0.85);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}
.firma-auth-field__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.1rem;
    color: #94a3b8;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.12);
}
.firma-auth-field__icon--narrow {
    width: 2.75rem;
}
.firma-auth-field__control .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #f1f5f9 !important;
    padding: 0.65rem 1rem;
    min-width: 0;
    flex: 1;
}
.firma-auth-field__control .form-control::placeholder {
    color: rgba(148, 163, 184, 0.65);
}
.firma-auth-field__control .form-control:focus {
    background: transparent !important;
    color: #fff !important;
}
.firma-auth-field__control--light {
    background: #fff;
    border-color: #e2e8f0;
}
.firma-auth-field__control--light:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.firma-auth-field__control--light .firma-auth-field__icon {
    background: #f8fafc;
    border-right-color: #e2e8f0;
    color: #64748b;
}
.firma-auth-field__control--light .form-control {
    color: #0f172a !important;
}
.firma-auth-field__control--light .form-control::placeholder {
    color: #94a3b8;
}
.firma-auth-select--inline {
    border-radius: 12px;
    min-height: 48px;
    border: 1px solid #e2e8f0;
    font-size: 0.92rem;
}
.firma-auth-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.firma-auth-fieldset legend.firma-auth-section-title {
    float: none;
    width: 100%;
}
body.firma-auth--giris .firma-auth-wrap--login {
    max-width: 440px;
}

/* ——— Firma kayıt: premium başvuru kartı ——— */
.firma-auth-wrap--register-premium {
    max-width: 100%;
}
.firma-auth-card--register {
    border-radius: 22px !important;
}
.firma-auth-reg-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 38%, #5b21b6 88%);
}
.firma-auth-reg-hero::after {
    content: "";
    position: absolute;
    right: -25%;
    top: -45%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle, rgba(233, 30, 120, 0.18) 0%, transparent 62%);
    pointer-events: none;
}
.firma-auth-reg-hero > * {
    position: relative;
    z-index: 1;
}
.firma-auth-reg-hero__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.firma-auth-reg-hero__eyebrow {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    opacity: 0.88;
}
.firma-auth-reg-hero__title {
    letter-spacing: -0.02em;
}
.firma-auth-reg-hero__lead {
    opacity: 0.92;
    line-height: 1.55;
    max-width: 38rem;
}

.firma-auth-reg-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.25rem;
    position: relative;
}
.firma-auth-reg-steps::before {
    content: "";
    position: absolute;
    left: 9%;
    right: 9%;
    top: 14px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12));
    z-index: 0;
}
.firma-auth-reg-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}
.firma-auth-reg-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.firma-auth-reg-step__lab {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.1rem;
}
@media (max-width: 380px) {
    .firma-auth-reg-step__lab {
        font-size: 0.52rem;
        letter-spacing: 0.04em;
    }
    .firma-auth-reg-step__num {
        width: 26px;
        height: 26px;
        font-size: 0.62rem;
    }
}

.firma-auth-reg-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.3rem;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.firma-auth-reg-panel:hover {
    border-color: rgba(99, 102, 241, 0.18);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.08);
}
.firma-auth-reg-panel--accent {
    border-color: rgba(99, 102, 241, 0.25);
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 55%);
}
.firma-auth-reg-panel__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}
.firma-auth-reg-panel__title i {
    font-size: 0.88rem;
    opacity: 0.95;
}
.firma-auth-reg-panel__hint {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 1rem;
    line-height: 1.55;
}
.firma-auth-reg-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.3rem;
}

.firma-auth-field__control--select {
    padding: 0;
}
.firma-auth-field__control--select .firma-auth-field__icon {
    align-self: stretch;
}
.firma-auth-field__control--select .form-select {
    padding: 0.65rem 2rem 0.65rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #0f172a !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    cursor: pointer;
}
.firma-auth-field__control--select:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

.firma-auth-reg-footer {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0 !important;
}
.firma-auth-reg-footer__trust {
    line-height: 1.5;
}

.firma-auth-btn--register {
    padding: 0.95rem 1.35rem;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

body.firma-auth--kayit .firma-auth-showcase {
    display: none !important;
}
body.firma-auth--kayit .firma-auth-split {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    min-height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}
body.firma-auth--kayit .firma-auth-main {
    padding: 0.5rem 0.65rem 1rem;
    justify-content: flex-start;
    align-items: stretch;
}
@media (min-width: 576px) {
    body.firma-auth--kayit .firma-auth-split {
        max-width: 640px;
    }
}
@media (min-width: 768px) {
    body.firma-auth--kayit .firma-auth-split {
        max-width: 700px;
    }
}
body.firma-auth--kayit .firma-auth-form-col {
    padding: 0.25rem 0 0.5rem;
    max-height: none;
    overflow: visible;
}
body.firma-auth--kayit .firma-auth-register-body {
    max-height: min(68dvh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
body.firma-auth--kayit .firma-auth-card.firma-auth-card--light {
    border-radius: 22px !important;
}
body.firma-auth--kayit .firma-auth-reg-hero {
    border-radius: 0;
}

/* ——— Chart container ——— */
.firma-chart-box {
    position: relative;
    min-height: 260px;
    height: 320px;
}
@media (max-width: 575.98px) {
    .firma-chart-box {
        min-height: 220px;
        height: 260px;
    }
}

/* ——— Mobile sidebar ——— */
@media (max-width: 991.98px) {
    .firma-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .firma-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.25);
    }
    .firma-sidebar-close {
        display: flex;
    }
    .firma-sidebar-brand {
        padding-right: 3.5rem;
        position: relative;
    }
    .firma-main {
        margin-left: 0;
    }
    .firma-btn-menu {
        display: flex;
    }
    .firma-topbar {
        padding: 0.75rem 1rem;
    }
    .firma-topbar-firma {
        max-width: 140px;
    }
}

@media (max-width: 575.98px) {
    .firma-content {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1.5rem !important;
    }
    .firma-topbar-meta {
        width: 100%;
        justify-content: flex-start;
    }
}

body.firma-panel.firma-no-scroll {
    overflow: hidden;
}

/* ——— Firma destek (merkez, sohbet, form) ——— */
.firma-destek-breadcrumb {
    --bs-breadcrumb-divider: "›";
    background: transparent;
    padding: 0;
}
.firma-destek-breadcrumb a {
    color: var(--firma-accent);
    text-decoration: none;
    font-weight: 600;
}
.firma-destek-breadcrumb a:hover {
    text-decoration: underline;
}

.firma-destek-hub__hero {
    border-radius: var(--firma-card-radius);
    border: 1px solid rgba(99, 102, 241, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 242, 255, 0.9) 50%, rgba(255, 255, 255, 0.92) 100%);
    overflow: hidden;
    position: relative;
}
.firma-destek-hub__hero::after {
    content: "";
    position: absolute;
    right: -20%;
    top: -40%;
    width: 55%;
    height: 140%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
    pointer-events: none;
}
.firma-destek-hub__hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 1.35rem;
}
@media (min-width: 768px) {
    .firma-destek-hub__hero-inner {
        padding: 1.75rem 2rem;
    }
}
.firma-destek-hub__eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--firma-accent);
    margin: 0;
}
.firma-destek-hub__title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--firma-slate-900);
}
@media (min-width: 768px) {
    .firma-destek-hub__title {
        font-size: 1.55rem;
    }
}
.firma-destek-hub__lead {
    font-size: 0.9rem;
    color: var(--firma-slate-700);
    max-width: 36rem;
    line-height: 1.55;
}
.firma-destek-hub__hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    min-width: 200px;
}
.firma-destek-hub__stat {
    font-size: 0.8rem;
    color: var(--firma-slate-700);
    text-align: center;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.firma-destek-btn-primary {
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
.firma-destek-btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.firma-destek-empty__icon {
    width: 4rem;
    height: 4rem;
    margin-inline: auto;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), rgba(233, 30, 120, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--firma-accent);
}

.firma-destek-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.firma-destek-ticket {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--firma-card-radius);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.firma-destek-ticket:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: var(--firma-shadow-lg);
    transform: translateY(-1px);
}
.firma-destek-ticket__main {
    display: flex;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}
.firma-destek-ticket__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.06));
    color: var(--firma-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.firma-destek-ticket__badge {
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.02em;
}
.firma-destek-ticket__kat {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--firma-slate-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.firma-destek-ticket__konu {
    font-size: 1rem;
    font-weight: 700;
    color: var(--firma-slate-900);
    letter-spacing: -0.01em;
}
.firma-destek-ticket__preview {
    font-size: 0.82rem;
    color: var(--firma-slate-700);
    line-height: 1.45;
}
.firma-destek-ticket__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}
.firma-destek-ticket__count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--firma-accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}
.firma-destek-ticket__time {
    white-space: nowrap;
}
.firma-destek-ticket__chevron {
    color: rgba(100, 116, 139, 0.5);
    font-size: 0.75rem;
    margin-top: 0.35rem;
}
.firma-destek-ticket:hover .firma-destek-ticket__chevron {
    color: var(--firma-accent);
}

.firma-destek-form-card__head {
    padding: 1.25rem 1.35rem;
    background: linear-gradient(125deg, #312e81 0%, #1e1b4b 45%, #172554 100%);
    color: #fff;
}
.firma-destek-form-card__head .text-white-50 {
    color: rgba(255, 255, 255, 0.72) !important;
}

.firma-destek-detail__header {
    border-radius: var(--firma-card-radius);
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
}
.firma-destek-detail__header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.firma-destek-detail__closed-alert {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.firma-destek-thread-wrap {
    border-radius: var(--firma-card-radius);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
}
.firma-destek-thread__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.firma-destek-thread {
    max-height: min(52vh, 520px);
    overflow-y: auto;
    padding: 1.1rem 1rem 1.25rem;
    background: #fafbfc;
    scroll-behavior: smooth;
}
.firma-destek-bubble {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1rem;
    max-width: 100%;
}
.firma-destek-bubble:last-child {
    margin-bottom: 0;
}
.firma-destek-bubble__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.firma-destek-bubble--yonetici {
    flex-direction: row;
}
.firma-destek-bubble--yonetici .firma-destek-bubble__avatar {
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #e2e8f0;
}
.firma-destek-bubble--yonetici .firma-destek-bubble__body {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.firma-destek-bubble--firma {
    flex-direction: row-reverse;
    margin-left: auto;
    max-width: min(100%, 520px);
}
.firma-destek-bubble--firma .firma-destek-bubble__avatar {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}
.firma-destek-bubble--firma .firma-destek-bubble__body {
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.12);
}
.firma-destek-bubble__body {
    padding: 0.65rem 0.85rem;
    min-width: 0;
    flex: 1;
}
.firma-destek-bubble__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
}
.firma-destek-bubble__meta strong {
    font-size: 0.78rem;
    color: var(--firma-slate-900);
}
.firma-destek-bubble__meta time {
    color: var(--firma-slate-700);
    font-weight: 500;
}
.firma-destek-bubble__text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--firma-slate-900);
    word-break: break-word;
}

.firma-destek-compose {
    border-radius: var(--firma-card-radius);
    padding: 1rem 1.15rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}
.firma-destek-compose__input {
    border-color: rgba(148, 163, 184, 0.35);
    resize: vertical;
    min-height: 88px;
}
.firma-destek-compose__input:focus {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}
