/* ==========================================================================
   Profil sayfası (/profil). app.css token'larını kullanır.
   ========================================================================== */

.profile-card {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.profile-label {
    display: block;
    margin: 12px 0 6px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.profile-label:first-child {
    margin-top: 0;
}

.profile-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border-control);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
}

/* Salt okunur kutu (Seviyem): uzun açıklama taşmasın, kutu içeriğe göre uzasın */
.profile-input[aria-readonly] {
    height: auto;
    padding: 12px 14px;
    background: var(--surface-hover);
}

.profile-input[aria-readonly] small {
    display: block;
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
}

.profile-input:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
}

.profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.profile-row .profile-label {
    margin-top: 0;
}

.profile-submit {
    width: 100%;
    margin-top: 16px;
}

.profile-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 0;
    color: var(--text-mid);
    font-size: 13px;
    line-height: 1.45;
}

.profile-consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.profile-consent a {
    color: var(--brand-hover);
    font-weight: 700;
    text-decoration: underline;
}

.profile-benefits {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.profile-benefits li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 4px;
    border-top: 1px solid var(--border-soft);
}

.profile-benefits strong {
    color: var(--text-strong);
    font-size: 15px;
}

.profile-benefits span {
    color: var(--text-soft);
    font-size: 14px;
}

/* Girişli üst kart: koyu lacivert */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 6px;
    padding: 20px 18px;
    border-radius: var(--radius-xl);
    color: #fff;
    background:
        radial-gradient(circle at 92% 0%, rgba(30, 143, 213, 0.34), transparent 45%),
        var(--navy);
    box-shadow: 0 20px 48px rgba(14, 24, 32, 0.26);
}

.profile-hero-text {
    flex: 1;
    min-width: 0;
}

.profile-hero h1 {
    overflow: hidden;
    color: #fff;
    font-size: 22px;
    letter-spacing: -0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-phone {
    color: var(--navy-text);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.profile-level {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--sky);
    font-size: 12px;
    font-weight: 800;
}

.profile-section {
    margin-top: 26px;
}

.profile-section h2 {
    margin: 0 2px 10px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

/* Etkinlik / favori listesi */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease);
}

.activity-item:active {
    transform: scale(0.985);
    transition-duration: 0.12s;
}

.activity-item.past {
    opacity: 0.72;
}

.activity-kind {
    flex: 0 0 auto;
    min-width: 62px;
    padding: 6px 8px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--brand-hover);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.activity-kind.kind-lesson { background: var(--accent-success-soft); color: var(--accent-success); }
.activity-kind.kind-event { background: #f2e9f8; color: #8e44ad; }
.activity-kind.kind-tournament { background: #fdf3d4; color: #8a6a05; }

.activity-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.activity-main strong {
    overflow: hidden;
    color: var(--text-strong);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-main span {
    overflow: hidden;
    color: var(--text-soft);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-when {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.activity-when b {
    color: var(--text-strong);
    font-size: 14px;
}

.profile-past summary {
    margin: 0 2px;
    padding: 8px 0 12px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Hesap işlemleri */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-actions form {
    margin: 0;
}

.btn-pill-soft,
.btn-pill-danger {
    width: 100%;
}

.btn-pill-soft {
    background: var(--surface-muted);
    color: var(--text-mid);
}

.btn-pill-danger {
    background: transparent;
    color: var(--accent-heart);
    border: 1px solid var(--accent-heart);
}

/* LICA bakiye kartı */
.lica-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "count cta" "detail cta";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    color: inherit;
    text-decoration: none;
}

.lica-count {
    grid-area: count;
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 700;
}

.lica-count b {
    font-size: 28px;
    letter-spacing: -0.03em;
}

.lica-detail {
    grid-area: detail;
    color: var(--text-soft);
    font-size: 13px;
}

.lica-cta {
    grid-area: cta;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--brand-fill);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* Bildirimler: tek kart, push durumu üstte, e-posta formu altta */
.notif-card .push-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    background: transparent;
}

.notif-card .push-actions .btn-pill {
    width: 100%;
}

.notif-card .profile-submit {
    margin-top: 14px;
}

/* Ana ekrana ekle kartı */
.install-card-text {
    margin: 0;
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.5;
}

.install-card-text strong {
    display: block;
    color: var(--text-strong);
    font-size: 15px;
}

.install-share {
    display: inline-flex;
    width: 20px;
    height: 20px;
    vertical-align: -4px;
    color: var(--brand);
}

.install-share svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* LICA avantajları: dört satır, onay işaretli, mavi zeminli tek kart */
.lica-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 var(--space-5);
    padding: 16px;
    border-radius: var(--radius-card);
    background: var(--blue-soft);
}

.lica-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-mid);
    font-size: 14px;
    line-height: 1.45;
}

.lica-benefits strong {
    color: var(--text-strong);
}

.lica-benefit-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--brand);
}

.lica-benefit-mark svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #fff;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lica-rule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.lica-benefits .info-dot {
    width: 24px;
    height: 24px;
}

.lica-rule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.5;
}

.lica-rule-list strong {
    color: var(--text-strong);
}

.lica-rule-ok {
    width: 100%;
}

/* LICA satın al: cam yüzey (sekme çubuğu, kartlar ve düğmelerle aynı dil), arkasında yumuşak mavi parıltı. */
.lica-return {
    margin: 0 0 var(--space-4);
}

.lica-stage {
    position: relative;
    isolation: isolate;
    margin: var(--space-2) 0 var(--space-4);
}

.lica-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -36px -24px;
    pointer-events: none;
    background:
        radial-gradient(circle 130px at 62% 140px, rgba(30, 143, 213, 0.42), transparent),
        radial-gradient(circle 130px at 40% calc(100% - 140px), rgba(115, 197, 242, 0.5), transparent);
}

.lica-buy {
    padding: 22px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.56);
    -webkit-backdrop-filter: saturate(200%) blur(24px);
    backdrop-filter: saturate(200%) blur(24px);
    color: var(--text-strong);
    box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.lica-buy-mark {
    display: block;
    width: 64px;
    height: 10px;
    margin: 0 0 14px;
    background: linear-gradient(90deg, var(--brand) 0 58%, var(--navy) 58% 63%, var(--ball, #ddf03c) 63% 100%);
}

.lica-buy h2 {
    margin: 0;
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.lica-buy-sub {
    margin: 6px 0 18px;
    color: var(--text-mid);
    font-size: 15px;
}

.lica-buy-error {
    margin: 0 0 var(--space-3);
    padding: 11px 14px;
    border-radius: var(--radius-control);
    background: #fdecec;
    color: var(--accent-heart);
    font-size: 14px;
    font-weight: 600;
}

.lica-packs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 var(--space-4);
}

.lica-pack {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.lica-pack input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lica-pack-body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "check name price" "check unit price";
    align-items: center;
    column-gap: 12px;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-strong);
    box-shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 8px 20px rgba(16, 24, 32, 0.06);
    transition: background 0.3s var(--ease-apple), border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s var(--ease);
}

.lica-pack:active .lica-pack-body {
    transform: scale(0.98);
    transition-duration: 0.12s;
}

.lica-pack-check {
    grid-area: check;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-control-hover);
    border-radius: 6px;
    background: #fff;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.lica-pack-check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 3.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.lica-pack-name {
    grid-area: name;
    font-size: 16px;
}

.lica-pack-name b {
    font-size: 26px;
    letter-spacing: -0.03em;
}

.lica-pack-per {
    margin-left: 6px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.lica-pack-price {
    grid-area: price;
    color: var(--text-strong);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.lica-pack input:checked + .lica-pack-body {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 12px 28px rgba(30, 143, 213, 0.22);
}

.lica-pack input:checked + .lica-pack-body .lica-pack-check {
    border-color: var(--brand);
    background: var(--brand);
}

.lica-pack input:checked + .lica-pack-body .lica-pack-check svg {
    opacity: 1;
}

.lica-pack input:checked + .lica-pack-body .lica-pack-price {
    color: var(--brand-hover);
}

.lica-pack input:focus-visible + .lica-pack-body {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.lica-buy-label {
    display: block;
    margin: 0 0 6px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.lica-buy-input {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0 0 var(--space-3);
    padding: 0 14px;
    border: 1px solid var(--border-control);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
}

.lica-buy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 var(--space-4);
    color: var(--text-mid);
    font-size: 13px;
    line-height: 1.5;
}

.lica-buy-consent input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--brand);
}

.app-body .lica-buy-consent a {
    color: var(--brand-hover);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lica-buy-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-fill);
    color: #fff !important;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 110, 169, 0.38);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.lica-buy-cta:active {
    transform: scale(0.97);
    transition-duration: 0.12s;
}

.lica-buy-fine {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: 12px;
    text-align: center;
}

.delete-warning h3 { margin: 0 0 12px; }
.delete-warning ul { margin: 0 0 18px; padding-left: 20px; }
.delete-warning li { margin-bottom: 8px; }
.delete-warning .account-actions { margin-top: 4px; }
