
/* ========================================
   KUPON SLIP & FAB — v4
   ======================================== */

/* Floating Action Button */
.coupon-fab {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border-radius: 50px;
    padding: 10px 16px 10px 12px;
    box-shadow: 0 4px 20px rgba(249,115,22,.45);
    cursor: pointer;
    z-index: 200;
    font-weight: 700;
    font-size: 14px;
    transition: transform .15s, box-shadow .15s;
    user-select: none;
}
.coupon-fab:active { transform: scale(.94); }
.coupon-fab-icon { font-size: 18px; }
.coupon-fab-count {
    background: white;
    color: #ea580c;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
}
.coupon-fab-label { font-size: 13px; }
.coupon-fab.fab-pulse { animation: fabPulse .4s ease; }
@keyframes fabPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Overlay */
.coupon-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 300;
    backdrop-filter: blur(2px);
}

/* Slip Panel */
.coupon-slip {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #0f172a;
    border-radius: 20px 20px 0 0;
    z-index: 400;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
    border-top: 1px solid #1e293b;
}
.coupon-slip.open { transform: translateY(0); }

.coupon-slip-handle {
    width: 40px; height: 4px;
    background: #334155;
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}
.coupon-slip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid #1e293b;
}
.coupon-slip-title { font-weight: 800; font-size: 15px; color: #f1f5f9; }
.coupon-slip-close {
    background: #1e293b; border: none;
    color: #94a3b8; border-radius: 50%;
    width: 28px; height: 28px;
    font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* Items list */
.coupon-slip-items {
    overflow-y: auto;
    flex: 1;
    padding: 8px 0;
}
.cs-empty {
    text-align: center;
    color: #64748b;
    padding: 32px 16px;
    font-size: 13px;
    line-height: 1.7;
}
.cs-item {
    padding: 10px 16px;
    border-bottom: 1px solid #1e293b;
}
.cs-item:last-child { border-bottom: none; }
.cs-item-teams {
    font-size: 12px; color: #94a3b8;
    margin-bottom: 6px;
}
.cs-item-teams span { color: #475569; margin: 0 4px; }
.cs-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cs-choice-btns { display: flex; gap: 4px; }
.cs-choice-btn {
    border: 1px solid #334155;
    background: #1e293b;
    color: #94a3b8;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    display: flex; flex-direction: column; align-items: center;
    gap: 1px;
}
.cs-choice-btn small { font-size: 10px; color: #64748b; font-weight: 400; }
.cs-choice-btn.active {
    background: #f97316;
    border-color: #f97316;
    color: white;
}
.cs-choice-btn.active small { color: rgba(255,255,255,.75); }
.cs-item-right { display: flex; align-items: center; gap: 8px; }
.cs-item-odds {
    font-size: 15px; font-weight: 800;
    color: #f97316;
}
.cs-remove-btn {
    background: none; border: none;
    color: #475569; font-size: 14px; cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.cs-remove-btn:hover { background: #1e293b; color: #ef4444; }

/* Footer */
.coupon-slip-footer {
    padding: 12px 16px;
    border-top: 1px solid #1e293b;
    flex-shrink: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.coupon-summary-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.csf-label { font-size: 12px; color: #64748b; }
.csf-val { font-size: 13px; font-weight: 700; color: #f1f5f9; }
.csf-win { color: #22c55e; font-size: 15px; }
.csf-bonus { color: #f97316; }
.bonus-row { background: #1e293b; border-radius: 8px; padding: 6px 10px; }

.cs-stake-wrap {
    display: flex; align-items: center; gap: 6px;
}
.cs-stake-input {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px; font-weight: 700;
    padding: 6px 10px;
    width: 120px;
    text-align: right;
}
.cs-stake-input:focus { outline: none; border-color: #f97316; }
.cs-stake-unit { font-size: 16px; }

.btn-submit-coupon {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity .15s, transform .1s;
    letter-spacing: .3px;
}
.btn-submit-coupon:disabled {
    opacity: .5; cursor: not-allowed;
}
.btn-submit-coupon:not(:disabled):active { transform: scale(.97); }
.cs-rule-note {
    text-align: center;
    font-size: 11px;
    color: #475569;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Match card — Kupon modu */
.coupon-avail-badge {
    font-size: 10px;
    background: rgba(249,115,22,.15);
    color: #f97316;
    border: 1px solid rgba(249,115,22,.3);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: 600;
}
.match-card.in-coupon {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 1px rgba(249,115,22,.3) !important;
}
.odds-cell.coupon-selected,
.btn-add-coupon.coupon-selected {
    background: rgba(249,115,22,.15) !important;
    border-color: #f97316 !important;
    color: #f97316 !important;
}
.coupon-check {
    position: absolute;
    top: -4px; right: -4px;
    background: #f97316;
    color: white;
    border-radius: 50%;
    width: 14px; height: 14px;
    font-size: 9px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.btn-add-coupon { position: relative; cursor: pointer; }

/* Toast notification */
.app-toast {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom));
    left: 50%; transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #f1f5f9;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
    z-index: 500;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    white-space: nowrap;
    border: 1px solid #334155;
    pointer-events: none;
}
.app-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Profil — Prediction History */
.pred-history-list { display: flex; flex-direction: column; gap: 8px; }
.pred-history-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 12px 14px;
}
.pred-history-card.pred-won  { border-left: 3px solid #22c55e; }
.pred-history-card.pred-lost { border-left: 3px solid #ef4444; }
.pred-history-card.pred-pending { border-left: 3px solid #f97316; }
.ph-teams { font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 6px; }
.ph-vs { color: #475569; margin: 0 4px; font-weight: 400; }
.ph-row { display: flex; align-items: center; justify-content: space-between; }
.ph-pick-wrap { display: flex; align-items: center; gap: 8px; }
.ph-pick { font-size: 12px; background: #1e293b; color: #94a3b8; border-radius: 6px; padding: 3px 8px; font-weight: 600; }
.ph-odds { font-size: 12px; color: #64748b; }
.ph-right { display: flex; align-items: center; gap: 8px; }
.ph-status-badge {
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 6px;
}
.ph-status-badge.pred-won    { background: rgba(34,197,94,.15); color: #22c55e; }
.ph-status-badge.pred-lost   { background: rgba(239,68,68,.15); color: #ef4444; }
.ph-status-badge.pred-pending{ background: rgba(249,115,22,.15); color: #f97316; }
.ph-payout { font-size: 13px; font-weight: 800; color: #22c55e; }
.ph-stake  { font-size: 13px; font-weight: 600; color: #94a3b8; }
.ph-lost   { font-size: 13px; font-weight: 600; color: #ef4444; }
.ph-date   { font-size: 11px; color: #475569; display: block; margin-top: 5px; }
/* ========================================
   GROUPS PAGE (#11)
   ======================================== */
.page-groups { padding: 0 16px 16px; }
.group-table-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}
.group-table-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 10px 16px;
    font-weight: 800;
    font-size: 13px;
    color: #f97316;
    border-bottom: 1px solid #1e293b;
    letter-spacing: .5px;
}
.group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.group-table th {
    padding: 6px 4px;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #1e293b;
    background: #0a0f1a;
}
.gt-team-col { text-align: left; padding-left: 12px; width: 45%; }
.group-table td {
    padding: 8px 4px;
    text-align: center;
    border-bottom: 1px solid #0f172a;
    color: #cbd5e1;
}
.group-table tr:last-child td { border-bottom: none; }
.qualify-row td { background: rgba(34,197,94,.04); }
.qualify-row .gt-pts-cell { color: #22c55e; font-weight: 800; }
.gt-team-cell { display: flex; align-items: center; gap: 6px; padding-left: 12px !important; text-align: left !important; }
.gt-rank { width: 16px; font-size: 10px; color: #475569; text-align: right; }
.gt-flag { font-size: 16px; }
.gt-name { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.gt-pts-cell { font-weight: 800; font-size: 13px; color: #f1f5f9; }
.gt-pts { color: #f97316 !important; }
.gt-legend {
    padding: 6px 12px 8px;
    font-size: 10px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}
.qualify-dot {
    width: 8px; height: 8px;
    background: rgba(34,197,94,.4);
    border: 1px solid #22c55e;
    border-radius: 2px;
    display: inline-block;
}