/* ===================== Kupon Kartı Stili (mavi ↔ kırmızı değiştirildi) ===================== */
.coupon-card {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    margin-bottom: 1.5rem;
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.12);
}

.coupon-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid var(--border, #e6edf5);
    padding: 1rem 1.25rem;
}

.coupon-card .card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink, #0f172a);
}

/* KIRMIZI → MAVİ */
.coupon-card .card-header::before {
    font-family: "Font Awesome 5 Free";
    content: '\f145';
    font-weight: 900;
    color: var(--accent, #106BDA);
    font-size: 1.2rem;
}

.coupon-card .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* KIRMIZI → MAVİ */
.coupon-card .form-control:focus {
    border-color: var(--accent, #106BDA);
    box-shadow: 0 0 0 3px rgba(16, 107, 218, 0.15);
}

.coupon-card #delete-link {
    color: var(--muted, #64748b);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* KIRMIZI → MAVİ */
.coupon-card #delete-link:hover {
    color: var(--accent, #106BDA);
    text-decoration: underline;
}

.coupon-card__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0 0;
}

.coupon-card__actions #delete-link {
    color: var(--muted, #64748b);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

/* KIRMIZI → MAVİ */
.coupon-card__actions #delete-link:hover {
    color: var(--accent, #106BDA);
    text-decoration: underline;
}

.coupon-card__actions .btn-primary {
    background: var(--green, #059669);
    border-color: var(--green, #059669);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.coupon-card__actions .btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.coupon-card__actions .btn-primary i {
    transition: transform 0.2s ease-in-out;
}

.coupon-card__actions .btn-primary:hover i {
    transform: translateX(3px);
}

/* ==== Coupon Banner (kupon metni) ==== */
.coupon-banner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border: 1px solid var(--border, #e6edf5);
    border-radius: 12px;
    padding: .75rem .9rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--ink, #0f172a);
    box-shadow: 0 4px 14px rgba(2, 6, 23, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.coupon-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(2, 6, 23, .10);
}

.coupon-banner .cb-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}

.coupon-banner .cb-body {
    flex: 1 1 auto;
    min-width: 0;
}

.coupon-banner .cb-title {
    margin: 0;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.coupon-banner .cb-sub {
    margin: .15rem 0 0;
    font-size: .88rem;
    color: var(--muted, #64748b);
}

.coupon-banner .cb-badges {
    margin-top: .45rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    font-size: .82rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #fff;
    border: 1px dashed #dbe3ee;
}

.coupon-banner.is-active {
    border-color: rgba(5, 150, 105, .25);
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.coupon-banner.is-active .cb-icon {
    background: #ecfdf5;
}

.coupon-banner.is-active .cb-title {
    color: #065f46;
}

.coupon-banner.is-active .cb-badge--value {
    color: #065f46;
    border-color: #bbf7d0;
}

.coupon-banner.is-empty {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.coupon-banner.is-empty .cb-icon {
    background: #eef2f7;
}

.coupon-banner.is-empty .cb-title {
    color: #334155;
}

.coupon-banner.is-empty .cb-sub {
    color: #64748b;
}

/* KIRMIZI → MAVİ (error görünümü) */
.coupon-banner.is-error {
    border-color: rgba(16, 107, 218, .25);
    background: linear-gradient(180deg, rgba(16, 107, 218, .08) 0%, rgba(16, 107, 218, .12) 100%);
}

.coupon-banner.is-error .cb-icon {
    background: rgba(16, 107, 218, .10);
}

.coupon-banner.is-error .cb-title {
    color: #0b63d0;
}

.coupon-sparkle {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .7) 35%, rgba(255, 255, 255, 0) 70%);
    animation: sparkle 1.8s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(.8);
        opacity: .7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}