/* ============================================================
   Küçük sayfalar: İndir (download.php), Birlikler (factions.php),
   Hesap (account.php). Ortak bileşenler cp-ui.css içindedir.
   ============================================================ */

/* ============================================================
   İndir
   ============================================================ */
.dl-page .dl-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

/* Adımları birbirine bağlayan çizgi */
.dl-page .dl-steps::before {
    content: "";
    position: absolute;
    top: 37px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, rgba(184, 38, 38, .6), rgba(184, 38, 38, .15));
}

.dl-page .dl-step {
    position: relative;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
}

.dl-page .dl-step__num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--cp-accent);
    background: var(--cp-surface);
    box-shadow: 0 0 0 6px var(--cp-surface);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.dl-page .dl-step__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.dl-page .dl-step__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.dl-page .dl-step__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--cp-text-2);
}

.dl-page .dl-step__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.dl-page .dl-step__actions .cp-btn {
    text-decoration: none;
}

.dl-page .cp-pagehead .cp-btn {
    text-decoration: none;
}

@media (max-width: 960px) {
    .dl-page .dl-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dl-page .dl-steps::before {
        display: none;
    }
}

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

    /* Mobilde adımlar dikey zaman çizelgesi gibi bağlanır */
    .dl-page .dl-steps::before {
        display: block;
        top: 20px;
        bottom: 20px;
        left: 38px;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(184, 38, 38, .6), rgba(184, 38, 38, .15));
    }
}

/* ============================================================
   Birlikler
   ============================================================ */
.fl-page .fl-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fl-page .fl-kpis.fl-kpis--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fl-page .fl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 12px;
}

.fl-page .fl-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    background: var(--cp-surface);
    color: var(--cp-text-1) !important;
    text-decoration: none !important;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.fl-page .fl-card:hover {
    border-color: #3a3b3e;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.fl-page .fl-card:focus-visible {
    outline: 2px solid var(--cp-info);
    outline-offset: 2px;
}

.fl-page .fl-card[hidden] {
    display: none;
}

.fl-page .fl-card__banner {
    position: relative;
    display: block;
    height: 92px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(184, 38, 38, .35) 0%, rgba(184, 38, 38, 0) 60%),
        var(--cp-surface-3);
}

.fl-page .fl-card__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fl-page .fl-card__logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 16px;
    border-radius: 14px;
    border: 3px solid var(--cp-surface);
    background: linear-gradient(135deg, #b82626 0%, #6d1515 100%);
    overflow: hidden;
    color: #fff;
}

.fl-page .fl-card__logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--cp-surface-3);
}

.fl-page .fl-card__logo b {
    font-size: 18px;
    font-weight: 700;
}

.fl-page .fl-card__logo img + b {
    visibility: hidden;
}

.fl-page .fl-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding: 10px 16px 14px;
}

.fl-page .fl-card__title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.fl-page .fl-card__title b {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fl-page .fl-card__title i {
    display: inline-flex;
    flex: none;
    font-size: 14px;
    color: var(--cp-success);
}

.fl-page .fl-card__desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.55;
    color: var(--cp-text-2);
}

.fl-page .fl-card__desc.is-empty {
    font-style: italic;
    color: var(--cp-text-3);
}

.fl-page .fl-card__foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid var(--cp-border);
    font-size: 12px;
    color: var(--cp-text-2);
}

.fl-page .fl-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fl-page .fl-card__stat i {
    display: inline-flex;
    font-size: 12px;
    color: var(--cp-text-3);
}

.fl-page .fl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cp-text-3);
}

.fl-page .fl-card__stat.is-online {
    color: var(--cp-success);
}

.fl-page .fl-card__stat.is-online .fl-dot {
    background: var(--cp-success);
    box-shadow: 0 0 0 3px var(--cp-success-soft);
}

@media (max-width: 560px) {
    .fl-page .fl-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fl-page .cp-search {
        max-width: none;
    }
}

/* ============================================================
   Hesap (Club Gateway)
   ============================================================ */
.ac-page .ac-state {
    align-items: center;
    gap: 8px;
    padding: 40px 24px;
    text-align: center;
}

.ac-page .ac-state > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: var(--cp-surface-3);
    color: var(--cp-text-2);
    font-size: 22px;
}

.ac-page .ac-state h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.ac-page .ac-state p {
    margin: 0;
    font-size: 13px;
    color: var(--cp-text-2);
}

.ac-page .ac-info {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.ac-page .ac-info__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 8px 0;
    border-bottom: 1px solid var(--cp-border);
}

.ac-page .ac-info__row:last-child {
    border-bottom: 0;
}

.ac-page .ac-info dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--cp-text-2);
}

.ac-page .ac-info dt i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--cp-surface-3);
    color: var(--cp-text-3);
    font-size: 13px;
}

.ac-page .ac-info dd {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--cp-text-1);
    text-align: right;
    overflow-wrap: anywhere;
}

.ac-page .ac-mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
}

/* Kopyala / düzenle ikon butonları nötr renkte kalır */
.ac-page .ac-copy:hover,
.ac-page .ac-edit:hover {
    background: var(--cp-surface-3);
    border-color: var(--cp-border);
    color: var(--cp-text-1);
}

.ac-page .ac-copy.is-done {
    color: var(--cp-success);
}

.ac-page .ac-edit {
    text-decoration: none;
}

.ac-page .ac-pass {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.ac-page .ac-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.ac-page .ac-field > span:first-child {
    font-size: 12px;
    font-weight: 500;
    color: var(--cp-text-2);
}

.ac-page .ac-pass__input {
    position: relative;
    display: block;
}

.ac-page .ac-pass__input .cp-input {
    min-height: 40px;
    padding-right: 44px !important;
}

.ac-page .ac-reveal {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}

.ac-page .ac-reveal:hover {
    background: var(--cp-surface-2);
    border-color: transparent;
    color: var(--cp-text-1);
}

.ac-page .ac-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -6px;
}

.ac-page .ac-strength__bar {
    position: relative;
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: var(--cp-surface-3);
    overflow: hidden;
}

.ac-page .ac-strength__bar > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    transition: width .25s, background .25s;
}

.ac-page .ac-strength__text {
    min-width: 72px;
    font-size: 11px;
    text-align: right;
    color: var(--cp-text-3);
}

.ac-page .ac-match {
    min-height: 15px;
    font-size: 11px;
    color: var(--cp-text-3);
}

.ac-page .ac-match.is-ok { color: var(--cp-success); }
.ac-page .ac-match.is-bad { color: #f87171; }

.ac-page .ac-pass__actions {
    display: flex;
}

.ac-page .ac-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: var(--cp-radius-sm);
    border: 1px solid var(--cp-border);
    background: var(--cp-surface-2);
}

.ac-page .ac-tips ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--cp-text-2);
}

.ac-page .ac-tips b {
    color: #fca5a5;
    font-weight: 600;
}

.ac-page #sonuc:empty {
    display: none;
}

@media (max-width: 560px) {
    .ac-page .ac-info__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ac-page .ac-info dd {
        text-align: left;
    }
}
