/**
 * Kayıtlı Kartlarım (web menü ve mobil, aynı markup).
 *
 * Her kayıt banka uygulamalarındaki gibi gerçek kart oranında çizilir.
 * Ekranda yalnız görüntüleme ve silme vardır; kart sipariş adımında kaydedilir.
 */
.sc-page {
    --sc-ink: #22282d; --sc-muted: #77838c; --sc-line: #e6eaee; --sc-soft: #f6f8f9; --sc-gold: #c9a977;
}

/* Web menüde sayfa kabına iç boşluk (mobilde blok payı veriyor) */
#savedCardsPage.sc-page { padding: 18px; }

/* Mobilde F7 kutu ve liste stilleri kartın önüne geçmesin */
.sc-page .block,
.sc-page .block-strong,
.sc-page .cart-complete-side,
.sc-page .cart-complete-item { margin: 0; padding: 0; background: none; box-shadow: none; border: 0; }
.sc-page .block-strong:before,
.sc-page .block-strong:after { display: none; }

/* ---- Başlık satırı (web menü) ---- */
.sc-page .cw-title {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid var(--sc-line);
    font-size: 15px; font-weight: 800; color: var(--sc-ink); text-transform: none; letter-spacing: 0;
}
.sc-page .cw-title .btn-saved-cards {
    height: 34px; padding: 0 14px; border: 1px solid var(--sc-line); border-radius: 10px; background: #fff;
    font-size: 12.5px; font-weight: 700; color: var(--sc-ink) !important; display: inline-flex; align-items: center;
}

/* ---- Kart ---- */
.sc-page .ccard-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.sc-page .ccard-item { position: relative; margin: 0; padding: 0; border: 0; background: none; }

.sc-page .ccard-check {
    position: relative; display: block; width: 100%; min-height: 182px; margin: 0; padding: 20px 22px;
    border-radius: 18px; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, #6f5540 0%, #4a3527 58%, #2f2118 100%);
    box-shadow: 0 16px 34px rgba(30, 22, 16, .28); transition: transform .18s ease, box-shadow .18s ease;
}
.sc-page .ccard-check:hover { transform: translateY(-3px); box-shadow: 0 22px 42px rgba(30, 22, 16, .34); }

/* Işık huzmesi */
.sc-page .ccard-check:before {
    content: ""; position: absolute; top: -130px; right: -70px; width: 330px; height: 330px; border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 62%);
}
/* Çip */
.sc-page .ccard-check:after {
    content: ""; position: absolute; top: 62px; left: 22px; width: 44px; height: 33px; border-radius: 6px;
    background: linear-gradient(140deg, #f3dca6 0%, var(--sc-gold) 46%, #a8813f 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), inset 0 -6px 10px rgba(0, 0, 0, .10);
}

/* Kart ailesi renkleri: arka arkaya duran kartlar ayrışır */
.sc-page .ccard-item:nth-child(3n+2) .ccard-check {
    background: linear-gradient(135deg, #3c5468 0%, #26384a 58%, #16222e 100%);
    box-shadow: 0 16px 34px rgba(18, 28, 38, .30);
}
.sc-page .ccard-item:nth-child(3n) .ccard-check {
    background: linear-gradient(135deg, #4a4a52 0%, #303038 58%, #1c1c22 100%);
    box-shadow: 0 16px 34px rgba(20, 20, 26, .30);
}

/* Şema logosu: sağ üstte beyaz kutuda, kendi renginde */
.sc-page .ccard-icon {
    position: absolute; top: 18px; right: 20px; width: 58px; height: 38px; padding: 5px 7px; border-radius: 9px;
    background: #fff !important; display: flex; align-items: center; justify-content: center; float: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .16);
}
.sc-page .ccard-icon img { width: auto !important; max-width: 100%; max-height: 100%; border: 0 !important; filter: none; }
/* Logosu olmayan şema: kısa marka yazısı */
.sc-page .ccard-brand { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #3a4148; }

/* Numara ve kart adı */
.sc-page .ccard-info { position: static; }
.sc-page .ccard-info .innerFlex { display: block; }
.sc-page .ccard-info h4 {
    position: absolute; left: 22px; right: 22px; bottom: 60px; margin: 0;
    font-size: 21px; font-weight: 600; letter-spacing: 3px; color: #fff; font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-page .ccard-info h6 {
    position: absolute; left: 22px; bottom: 24px; margin: 0; max-width: 58%;
    font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: rgba(255, 255, 255, .74); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Silme: kartın sağ altında yuvarlak düğme */
.sc-page .sc-del {
    position: absolute; right: 20px; bottom: 18px; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff !important;
    text-decoration: none !important; transition: background .15s ease;
}
.sc-page .sc-del:before { content: "\f1f8"; font-family: FontAwesome; font-size: 15px; }
.sc-page .sc-del:hover { background: rgba(255, 255, 255, .3); }

/* ---- Boş durum: kart biçiminde yer tutucu ---- */
.sc-page .sc-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    margin: 0; padding: 6px 0 24px; text-align: center;
}
.sc-page .sc-empty[hidden] { display: none; }
.sc-page .sc-ghost {
    position: relative; width: 100%; max-width: 330px; min-height: 182px; margin-bottom: 18px;
    border: 2px dashed #d7dde3; border-radius: 18px; background: linear-gradient(135deg, #fbfcfd 0%, #f2f5f7 100%);
}
.sc-page .sc-ghost-chip {
    position: absolute; top: 62px; left: 22px; width: 44px; height: 33px; border-radius: 6px;
    background: linear-gradient(140deg, #e8ebee 0%, #dbe1e6 100%);
}
.sc-page .sc-ghost-no {
    position: absolute; left: 22px; right: 22px; bottom: 60px; font-size: 19px; font-weight: 600;
    letter-spacing: 3px; color: #c3cbd2; text-align: left;
}
.sc-page .sc-ghost-name {
    position: absolute; left: 22px; bottom: 28px; width: 108px; height: 10px; border-radius: 999px; background: #e3e8ec;
}
.sc-page .sc-empty h4 { margin: 0; font-size: 15.5px; font-weight: 800; color: var(--sc-ink); }
.sc-page .sc-empty p { margin: 0; max-width: 300px; font-size: 13px; line-height: 1.55; color: var(--sc-muted); }

@media (min-width: 768px) {
    .sc-page .ccard-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
}
@media (max-width: 380px) {
    .sc-page .ccard-check { min-height: 168px; padding: 18px; }
    .sc-page .ccard-check:after { top: 56px; left: 18px; }
    .sc-page .ccard-info h4 { font-size: 18px; letter-spacing: 2px; bottom: 56px; left: 18px; right: 18px; }
    .sc-page .ccard-info h6 { left: 18px; bottom: 22px; }
    .sc-page .sc-del { right: 16px; bottom: 16px; }
}
