body.sirketler-page {
    --sirket-title-bg: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(30, 30, 30, 0.9) 100%);
    --sirket-card-bg-fallback: rgba(26, 26, 26, 0.96);
}

body {
    background-image: url('/files/images/dominara-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: -1;
}

.modern-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    background: var(--sirket-title-bg);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    margin-bottom: 1.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    opacity: 0.6;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.hero-title {
    font-family: 'HiJack', sans-serif !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.02em !important;
    margin: 0 !important;
    background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 50%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #a3a3a3;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sirketler-page .page-title-box {
    position: relative;
    z-index: 1;
}

.hero-section-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.hero-section-icon iconify-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Kahramanlar / formlar ile aynı etkinlik kartı + ızgara --- */
.sirketler-grid.etkinlik-grid {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .sirketler-grid.etkinlik-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .sirketler-grid.etkinlik-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.etkinlik-card.sirket-etkinlik-card {
    min-height: 0;
    border-bottom: none;
    background: var(--sirket-title-bg) !important;
    color: inherit;
    cursor: default;
    border-color: rgba(251, 191, 36, 0.22);
    transition:
        transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.etkinlik-card.sirket-etkinlik-card:hover {
    transform: translateY(-6px) scale(1.025) !important;
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 36px rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(252, 211, 77, 0.42) !important;
}

.etkinlik-card.sirket-etkinlik-card .etkinlik-card-bg {
    background-color: var(--sirket-card-bg-fallback) !important;
    background-size: 58% auto;
    background-position: center 38%;
    background-repeat: no-repeat;
}

/* Sol: temsilci avatarları (sağdaki yönetici / sahip pill’inin ayna simetrisi) */
.sirket-reps-left {
    position: absolute;
    top: 10px;
    left: 0;
    right: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: auto;
}

a.sirket-rep-face,
span.sirket-rep-face.sirket-rep-face--static {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    box-sizing: border-box;
    border-radius: 0 21px 21px 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-left: none;
    background: rgba(0, 0, 0, 0.55);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

a.sirket-rep-face:hover {
    transform: scale(1.06);
    filter: brightness(1.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.sirket-rep-face-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sirket-rep-face-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.sirket-rep-more {
    min-width: 42px;
    height: 28px;
    padding: 0 8px;
    box-sizing: border-box;
    border-radius: 0 14px 14px 0;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-left: none;
    background: rgba(30, 27, 20, 0.92);
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.etkinlik-card.sirket-etkinlik-card .etkinlik-card-top-actions .sirket-owner-face.etkinlik-card-admin {
    border-color: rgba(251, 191, 36, 0.35) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.etkinlik-card.sirket-etkinlik-card .etkinlik-card-top-actions .sirket-code-badge {
    max-width: min(160px, 70vw);
    min-height: 42px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 21px 0 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: #fff;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.95) 0%, rgba(217, 119, 6, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-right: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.etkinlik-card.sirket-etkinlik-card .sirket-card-line iconify-icon {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.etkinlik-card.sirket-etkinlik-card .sirket-card-line--muted {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.65rem;
}

.etkinlik-card.sirket-etkinlik-card .sirket-card-stats {
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin-top: 2px;
    font-size: 0.6rem;
    color: rgba(254, 243, 199, 0.95);
}

.etkinlik-card.sirket-etkinlik-card .sirket-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.etkinlik-card.sirket-etkinlik-card .sirket-card-stats iconify-icon {
    width: 0.65rem;
    height: 0.65rem;
    flex-shrink: 0;
    opacity: 0.95;
    color: #fcd34d;
}

a.sirket-detay-link.etkinlik-card-detay {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

a.sirket-detay-link.etkinlik-card-detay:hover {
    color: rgba(255, 255, 255, 0.95);
}

.sirket-detay-muted {
    opacity: 0.65;
    pointer-events: none;
}

.no-companies {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #a3a3a3;
    font-size: 1.1rem;
    max-width: 28rem;
    margin: 2rem auto 0;
    background: rgba(30, 30, 30, 0.55);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-companies iconify-icon {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* —— Şirket Merkezi dashboard —— */
.sm-dashboard {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.88) 0%, rgba(30, 27, 20, 0.82) 100%);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    backdrop-filter: blur(18px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(251, 191, 36, 0.06) inset;
    padding: 1.25rem 1.5rem 1.75rem;
    margin-bottom: 2rem;
}

.sm-dashboard .page-title-box,
.sm-dashboard .hero-section {
    margin-bottom: 0;
}

.sm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.35rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

.sm-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: min(100%, 140px);
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: transparent;
    color: #a3a3a3;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.sm-tab iconify-icon {
    font-size: 1rem;
    opacity: 0.85;
}

.sm-tab:hover {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
}

.sm-tab--active {
    color: #fffbeb;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.85) 0%, rgba(217, 119, 6, 0.95) 100%);
    border-color: rgba(252, 211, 77, 0.45);
    box-shadow:
        0 4px 14px rgba(180, 83, 9, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sm-tab--active iconify-icon {
    opacity: 1;
}

.sm-panel {
    display: none;
    animation: sm-fade-in 0.28s ease;
}

.sm-panel--active {
    display: block;
}

@keyframes sm-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sm-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    margin-bottom: 0;
}

.sm-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-panel-head h2,
.sm-section-title {
    margin: 0;
    font-family: 'HiJack', 'Poppins', sans-serif;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fde68a;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sm-action-block h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fde68a;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.dc-emoji,
.ekonomi-icon {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: auto;
}

body.sirketler-page .dc-emoji,
body.sirketler-page .ekonomi-icon {
    min-width: 0.85em;
    min-height: 0.85em;
}

.hero-section-emoji {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.35));
}

.sm-tab .dc-emoji {
    margin-right: 0.1rem;
}

.sm-stat-label,
.sm-muted .dc-emoji,
.sm-note .dc-emoji,
.sm-co-stats .dc-emoji,
.sm-badge .dc-emoji {
    vertical-align: -0.2em;
    margin-right: 0.15rem;
}

.sm-co-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.sm-basvuru-row {
    align-items: center;
    padding: 0.55rem 0;
}

.sm-basvuru-user {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.sm-basvuru-user:hover {
    opacity: 0.92;
}

.sm-basvuru-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.sm-basvuru-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(180, 83, 9, 0.35);
    color: #fde68a;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.sm-basvuru-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sm-basvuru-meta strong {
    font-size: 0.9rem;
    color: #fef3c7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sm-basvuru-id {
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.etkinlik-card.sirket-etkinlik-card .sirket-card-stats .dc-emoji,
.etkinlik-card.sirket-etkinlik-card .sirket-card-line .dc-emoji {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    min-height: 14px;
}

.sm-liste-head {
    margin-bottom: 1.25rem;
}

.sm-liste-head .sm-muted {
    margin: 0.35rem 0 0;
}

.sm-borsa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sm-stat {
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sm-stat:hover {
    border-color: rgba(251, 191, 36, 0.28);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.sm-stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #a3a3a3;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sm-stat-value {
    display: block;
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.sm-stat-sub {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #86efac;
    margin-top: 0.35rem;
}

.sm-chart-wrap {
    margin: 1.25rem 0;
    width: 100%;
}

.sm-chart-wrap > .sm-muted {
    margin-bottom: 0.5rem;
}

.sm-chart {
    position: relative;
    width: 100%;
    padding: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    overflow: hidden;
}

.sm-chart-empty {
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #737373;
    font-size: 0.875rem;
}

.sm-endeks-chart {
    width: 100%;
}

.sm-endeks-chart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sm-endeks-chart__range {
    font-size: 0.72rem;
    color: #737373;
    letter-spacing: 0.01em;
}

.sm-endeks-chart__delta {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
}

.sm-endeks-chart__delta--up {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

.sm-endeks-chart__delta--down {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}

.sm-endeks-chart__plot {
    position: relative;
    width: 100%;
    height: clamp(118px, 16vw, 148px);
    padding: 0.35rem 0 0.5rem;
}

.sm-endeks-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sm-endeks-grid {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.sm-endeks-y-label,
.sm-endeks-x-label {
    fill: #737373;
    font-size: 8px;
    font-family: inherit;
    pointer-events: none;
}

.sm-endeks-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sm-endeks-line--up {
    stroke: #4ade80;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.35));
}

.sm-endeks-line--down {
    stroke: #f87171;
    filter: drop-shadow(0 0 5px rgba(248, 113, 113, 0.35));
}

.sm-endeks-area--up {
    fill: url(#smEndeksFillUp);
}

.sm-endeks-area--down {
    fill: url(#smEndeksFillDown);
}

.sm-endeks-dot {
    fill: #fcd34d;
    stroke: rgba(15, 15, 15, 0.85);
    stroke-width: 1.25;
    cursor: pointer;
    transition: r 0.15s ease, fill 0.15s ease;
}

.sm-endeks-dot:hover {
    fill: #fde68a;
}

.sm-endeks-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    line-height: 1.3;
    color: #fafafa;
    white-space: nowrap;
    pointer-events: none;
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 0.45rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.sm-muted {
    color: #a3a3a3;
    font-size: 0.875rem;
    line-height: 1.45;
}

.sm-note {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #737373;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.65rem;
    border-left: 3px solid rgba(245, 158, 11, 0.45);
}

/* —— Butonlar (etkinlik.css .modern-container button !important ezmesini önle) —— */
body.sirketler-page .modern-container button.sm-btn,
body.sirketler-page .modern-container button.sm-tab {
    text-transform: none;
}

body.sirketler-page .modern-container button.sm-btn::before,
body.sirketler-page .modern-container button.sm-tab::before {
    content: none;
    display: none;
}

.sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.15rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease, background 0.25s ease;
}

.sm-btn iconify-icon {
    font-size: 0.95em;
}

.sm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.sm-btn:active:not(:disabled) {
    transform: translateY(0);
}

.sm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sm-btn--primary {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fffbeb;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}

.sm-btn--primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
    filter: brightness(1.06);
}

.sm-btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.sm-btn--secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.sm-btn--success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.sm-btn--success:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

.sm-btn--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.sm-btn--danger:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.sm-btn--sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 0.55rem;
}

.sm-input,
.sm-form-row select.sm-input {
    flex: 1 1 140px;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.45);
    color: #f5f5f5;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select.sm-input {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.35rem;
    background-color: rgba(0, 0, 0, 0.45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23f59e0b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.94a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
    cursor: pointer;
}

select.sm-input:hover {
    border-color: rgba(251, 191, 36, 0.35);
    background-color: rgba(0, 0, 0, 0.55);
}

select.sm-input option {
    background: #1c1917;
    color: #f5f5f5;
}

.sm-input::placeholder {
    color: #737373;
}

.sm-input:focus,
.sm-form-row select.sm-input:focus,
select.sm-input:focus {
    outline: none;
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    background-color: rgba(0, 0, 0, 0.55);
}

.sm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: stretch;
}

.sm-form-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sm-form-col .sm-btn {
    align-self: flex-start;
}

.sm-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.sm-action-block {
    background: rgba(30, 30, 30, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sm-action-block:hover {
    border-color: rgba(251, 191, 36, 0.22);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.sm-action-block > .sm-muted {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
}

.sm-action-block--wide {
    grid-column: 1 / -1;
}

/* —— Yönetim sekmesi: kompakt kart + form genişliği —— */
[data-panel="yonetim"] > .sm-muted:first-of-type {
    max-width: 42rem;
    margin-bottom: 0.25rem;
}

[data-panel="yonetim"] .sm-actions-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
    justify-content: start;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

[data-panel="yonetim"] .sm-action-block {
    padding: 0.85rem 1rem;
    width: 100%;
    max-width: 260px;
}

[data-panel="yonetim"] .sm-action-block--wide {
    grid-column: 1 / -1;
    max-width: min(540px, 100%);
    justify-self: start;
    margin-top: 0.35rem;
}

[data-panel="yonetim"] .sm-form-row,
[data-panel="yonetim"] .sm-form-col {
    width: 100%;
}

[data-panel="yonetim"] .sm-form-row {
    flex-direction: column;
    align-items: stretch;
}

[data-panel="yonetim"] .sm-input,
[data-panel="yonetim"] select.sm-input {
    flex: none;
    width: 100%;
    max-width: 100%;
}

[data-panel="yonetim"] .sm-form-row .sm-btn,
[data-panel="yonetim"] .sm-form-col .sm-btn,
[data-panel="yonetim"] .sm-action-block > .sm-btn {
    width: 100%;
    align-self: stretch;
}

[data-panel="yonetim"] #smOwnerPanel {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-panel="yonetim"] .sm-list-row {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

[data-panel="yonetim"] .sm-list-row > span {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.875rem;
}

[data-panel="yonetim"] .sm-list-actions {
    flex-shrink: 0;
}

[data-panel="yonetim"] .sm-action-block > .sm-muted {
    margin-bottom: 0.6rem;
}

@media (max-width: 640px) {
    [data-panel="yonetim"] .sm-actions-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    [data-panel="yonetim"] .sm-action-block,
    [data-panel="yonetim"] .sm-action-block--wide {
        max-width: 100%;
    }
}

.sm-co-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.sm-co-header h2 {
    margin: 0;
    font-family: 'HiJack', 'Poppins', sans-serif;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    color: #fef3c7;
}

.sm-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.35) 0%, rgba(217, 119, 6, 0.25) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fde68a;
}

.sm-co-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    font-size: 0.84rem;
    color: #d4d4d4;
    margin-bottom: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-co-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.sm-job-status {
    padding: 0.65rem 0.9rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 0.65rem;
    color: #bbf7d0;
    font-size: 0.875rem;
    font-weight: 500;
}

.sm-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-list-row:last-child {
    border-bottom: none;
}

.sm-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sm-result {
    margin-top: 0.65rem;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 0.55rem;
    font-size: 0.85rem;
    color: #e5e5e5;
}

.sm-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.sm-alert iconify-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.sm-alert p,
.sm-alert span {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.sm-alert--info {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.35);
    color: #c7d2fe;
}

.sm-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: min(90vw, 380px);
    padding: 0.85rem 1.15rem;
    border-radius: 0.75rem;
    background: rgba(20, 20, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: #f5f5f5;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.sm-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.sm-toast--ok {
    border-color: rgba(34, 197, 94, 0.45);
}

.sm-toast--err {
    border-color: rgba(239, 68, 68, 0.45);
}

.sm-trade {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-trade h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fde68a;
}

.sm-panel--liste .sirketler-grid.etkinlik-grid {
    margin-top: 0;
}

@media (max-width: 768px) {
    .sm-dashboard {
        padding: 1rem;
        border-radius: 1.15rem;
    }

    .sm-tabs {
        flex-direction: column;
    }

    .sm-tab {
        min-width: 100%;
    }

    .sm-card {
        padding: 1rem;
    }

    .sm-form-row {
        flex-direction: column;
    }

    .sm-form-row .sm-btn {
        width: 100%;
    }

    .sm-list-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .sm-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}
