.page-cekilisler {
    --ck-bg: var(--background-color, #fff);
    --ck-bg2: var(--background-color-2, #f8fafc);
    --ck-border: rgba(148, 163, 184, 0.25);
    --ck-text: var(--text-color, #0f172a);
    --ck-muted: var(--text-color-16, #64748b);
    --ck-primary: #2563eb;
    --ck-accent: #06b6d4;
    --ck-success: #16a34a;
    --ck-warning: #f59e0b;
    --ck-card: var(--background-color-2, #fff);
    --ck-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .page-cekilisler {
    --ck-border: rgba(148, 163, 184, 0.15);
    --ck-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.ck-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid var(--ck-border);
}

.ck-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.ck-hero__glow--a {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -40px;
    background: rgba(37, 99, 235, 0.25);
}

.ck-hero__glow--b {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -20px;
    background: rgba(6, 182, 212, 0.2);
}

.ck-hero__inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
}

.ck-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ck-primary);
    margin-bottom: 8px;
}

.ck-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--ck-text);
    letter-spacing: -0.02em;
}

.ck-hero__sub {
    margin: 0;
    color: var(--ck-muted);
    font-size: 15px;
    max-width: 560px;
}

.ck-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.ck-stat {
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--ck-card);
    border: 1px solid var(--ck-border);
}

.ck-stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ck-text);
    line-height: 1.1;
}

.ck-stat span {
    font-size: 12px;
    color: var(--ck-muted);
}

.ck-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ck-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ck-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.ck-btn--primary {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.ck-btn--ghost {
    background: var(--ck-card);
    color: var(--ck-text);
    border: 1px solid var(--ck-border);
}

.ck-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.ck-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: var(--ck-bg2);
    border: 1px solid var(--ck-border);
}

.ck-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ck-muted);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.ck-tab.is-active {
    background: var(--ck-card);
    color: var(--ck-primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.ck-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--ck-primary);
    font-size: 11px;
}

.ck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.ck-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    background: var(--ck-card);
    border: 1px solid var(--ck-border);
    box-shadow: var(--ck-shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ck-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.ck-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--ck-border);
}

.ck-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.ck-user:hover { color: inherit; text-decoration: none; }

.ck-user__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.ck-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-user__meta h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ck-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.ck-user__meta span {
    font-size: 12px;
    color: var(--ck-muted);
}

.ck-follow {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--ck-border);
    background: var(--ck-bg2);
    color: var(--ck-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
    flex-shrink: 0;
}

.ck-follow.is-following,
.ck-follow.bg-blue {
    background: var(--ck-primary) !important;
    border-color: var(--ck-primary) !important;
    color: #fff !important;
}

.ck-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ck-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ck-text);
    line-height: 1.35;
}

.ck-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ck-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ck-badge--live {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.ck-badge--task {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.ck-badge--open {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

.ck-badge--ended {
    background: rgba(100, 116, 139, 0.14);
    color: var(--ck-muted);
}

.ck-prizes {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.ck-prize {
    flex: 0 0 auto;
    width: 88px;
    text-align: center;
}

.ck-prize__img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    background: var(--ck-bg2);
    border: 1px solid var(--ck-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
}

.ck-prize__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-prize__bakiye {
    font-size: 15px;
    font-weight: 800;
    color: var(--ck-success);
}

.ck-prize__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ck-muted);
}

.ck-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ck-metric {
    padding: 12px;
    border-radius: 12px;
    background: var(--ck-bg2);
    border: 1px solid var(--ck-border);
}

.ck-metric strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ck-text);
}

.ck-metric span {
    font-size: 11px;
    color: var(--ck-muted);
}

.ck-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px dashed rgba(37, 99, 235, 0.25);
    color: var(--ck-primary);
    font-size: 13px;
    font-weight: 600;
}

.ck-countdown.is-ended {
    background: rgba(100, 116, 139, 0.08);
    border-color: rgba(100, 116, 139, 0.2);
    color: var(--ck-muted);
}

.ck-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.ck-card__actions--single {
    grid-template-columns: 1fr;
}

.ck-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .15s ease;
}

.ck-action--join {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

.ck-action--detail {
    background: var(--ck-bg2);
    color: var(--ck-text);
    border: 1px solid var(--ck-border);
}

.ck-action--live {
    grid-column: 1 / -1;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.ck-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 24px;
    border-radius: 18px;
    background: var(--ck-card);
    border: 1px dashed var(--ck-border);
}

.ck-empty i {
    font-size: 42px;
    color: var(--ck-muted);
    opacity: 0.6;
    margin-bottom: 12px;
}

.ck-empty h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--ck-text);
}

.ck-empty p {
    margin: 0;
    color: var(--ck-muted);
    font-size: 14px;
}

#notification-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    display: none;
    z-index: 99999;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

#notification-container.success { background: #16a34a; }
#notification-container.danger { background: #dc2626; }
#notification-container.info { background: #d97706; }

.ck-panel { display: none; }
.ck-panel.is-active { display: block; }

@media (max-width: 767px) {
    .ck-hero { padding: 20px 18px; }
    .ck-hero__inner { flex-direction: column; align-items: stretch; }
    .ck-toolbar { flex-direction: column; align-items: stretch; }
    .ck-tabs { width: 100%; }
    .ck-tab { flex: 1; justify-content: center; }
    .ck-grid { grid-template-columns: 1fr; }
}
