* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #000000;
    color: #f1f5f9;
    padding: 15px;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Efekat zamagljene pozadine dok se korisnik ne registruje i ne plati */
body.locked-content .app-layout {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
    opacity: 0.4;
}

/* Paywall / Overlay prozori */
.paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.paywall-card {
    background: #111827;
    border: 1px solid #22c55e;
    border-radius: 20px;
    padding: 25px 20px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.25);
}

.paywall-card h2 {
    color: #22c55e;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.paywall-card p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.paywall-card input {
    width: 100%;
    background: #030712;
    border: 1px solid #1e293b;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    outline: none;
    font-size: 0.9rem;
}

.paywall-card input:focus {
    border-color: #22c55e;
}

.paywall-submit-btn {
    width: 100%;
    background: #16a34a;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.paywall-submit-btn:hover {
    background: #15803d;
}

/* Prodajni dio sa ponudom */
.lifetime-card {
    border-color: #facc15;
    box-shadow: 0 0 50px rgba(250, 204, 21, 0.2);
}

.badge-lifetime {
    background: #facc15;
    color: #030712;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.price-tag {
    font-size: 1rem;
    color: #f8fafc !important;
    margin-bottom: 15px !important;
}

.price-tag span {
    color: #facc15;
    font-size: 1.8rem;
    font-weight: 800;
}

.sales-pitch {
    background: #030712;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pitch-item {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.secure-services {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.service-badge {
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.buy-btn {
    background: #facc15;
    color: #030712;
}

.buy-btn:hover {
    background: #eab308;
}

.secure-note {
    font-size: 0.7rem !important;
    color: #64748b !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.app-layout {
    max-width: 800px;
    margin: 0 auto;
}

/* Header & Language Switcher */
header {
    margin-bottom: 20px;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    background: #111827;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #1e293b;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.lang-btn.active {
    background: #16a34a;
    color: #ffffff;
}

/* Naslov i logo ispod naslova, centrirano */
.header-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: contain;
    border-radius: 12px;
}

.header-title h1 {
    font-size: 2.2rem;
    color: #22c55e;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

#current-date {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

/* AI TIKET DANA STILOVI */
.ai-combo-card {
    background: linear-gradient(135deg, #052e16 0%, #111827 100%);
    border: 1px solid #22c55e;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.ai-combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #14532d;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.ai-combo-title {
    font-size: 1rem;
    font-weight: 800;
    color: #4ade80;
}

.ai-combo-odds {
    background: #16a34a;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.ai-combo-matches {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-combo-item {
    background: rgba(3, 7, 18, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    border: 1px solid #1e293b;
    gap: 10px;
}

.ai-combo-teams {
    font-weight: 600;
    color: #f8fafc;
}

.ai-combo-pick {
    color: #4ade80;
    font-weight: 700;
    white-space: nowrap;
}

.add-all-btn {
    width: 100%;
    background: #16a34a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.league-filter {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: #111827;
    border: 1px solid #1e293b;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
}

.filter-btn.active, .filter-btn:hover {
    background: #16a34a;
    color: #fff;
    border-color: #22c55e;
}

.search-box input {
    background: #111827;
    border: 1px solid #1e293b;
    color: #f8fafc;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
}

/* Match Cards */
.match-card {
    background: #111827;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #1e293b;
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 12px;
}

.teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.team {
    flex: 1;
    text-align: center;
    word-break: break-word;
}

.vs {
    color: #22c55e;
    padding: 0 10px;
    font-size: 0.8rem;
}

.odds-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #030712;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 12px;
    text-align: center;
    border: 1px solid #111827;
}

.odds-box span {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
}

.odds-box strong {
    color: #facc15;
    font-size: 1rem;
}

/* Prediction Box */
.prediction-box {
    background: #030712;
    border: 1px solid #16a34a;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media(min-width: 600px) {
    .prediction-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.pred-details {
    flex: 1;
}

.pred-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.type-combo { background: #854d0e; color: #fef08a; }
.type-winner { background: #1e3a8a; color: #bfdbfe; }
.type-goals { background: #065f46; color: #a7f3d0; }

.pred-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
}

.pred-odds-badge {
    color: #4ade80;
    font-weight: 700;
}

.add-ticket-btn {
    background: #16a34a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
}

@media(min-width: 600px) {
    .add-ticket-btn {
        width: auto;
    }
}

/* Plutajuće Dugme za Tiket */
.floating-ticket-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #16a34a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    transition: 0.2s;
}

.floating-ticket-btn:hover {
    background: #15803d;
}

/* Modal / Popup za Tiket i AI Analizu */
.ticket-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1002;
    display: none;
}

.ticket-sidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    max-height: 75vh;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 20px;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.ticket-sidebar.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.ticket-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.ticket-header h2 {
    font-size: 1rem;
}

.close-ticket-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
}

.ticket-badge {
    background: #ffffff;
    color: #16a34a;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ticket-items {
    flex: 1;
    overflow-y: auto;
    max-height: 35vh;
    margin-bottom: 15px;
}

.empty-ticket {
    color: #475569;
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
}

.ticket-item {
    background: #030712;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    font-size: 0.8rem;
    border: 1px solid #111827;
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    margin-bottom: 4px;
}

.ticket-item-teams {
    font-weight: 600;
    margin-bottom: 4px;
}

.ticket-item-pick {
    color: #4ade80;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.remove-btn {
    color: #ef4444;
    cursor: pointer;
    font-weight: bold;
}

.ticket-footer {
    border-top: 1px solid #1e293b;
    padding-top: 12px;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.stake-row input {
    width: 80px;
    background: #030712;
    border: 1px solid #1e293b;
    color: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: right;
}

.win-row {
    font-size: 1rem;
    color: #4ade80;
    font-weight: 700;
}

/* AI Insight Modal stilovi */
.ai-insight-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #111827;
    border: 1px solid #22c55e;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 20px;
    z-index: 1003;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 10px;
}

.ai-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #4ade80;
}

.ai-modal-body {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 20px;
    min-height: 70px;
}

.ai-modal-footer {
    text-align: right;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}