/* === HEADER BANNER === */
.matka-header-banner img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px; /* slight space from content */
}

/* === GLOBAL DARK THEME === */
body, .matka-wrapper {
    background-color: #000 !important;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
    padding: 5px;
    margin: 0;
}

/* === GAME CARDS === */
.matka-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    overflow: hidden;
    color: #fff;
    margin-bottom: 20px;           /* reduced from 20px */
    aspect-ratio: 6.8 / 4.3;
    padding: 6px;                  /* increased slightly for inner padding balance */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;                      /* consistent spacing inside card */
}

/* Hover effect */
.matka-card:hover {
    transform: translateY(-2px);   /* subtle hover */
    transition: 0.2s ease-in-out;
}

/* Card content area (if used separately) */
.matka-card-content {
    position: relative;
    z-index: 1;
}

/* Market title */
.matka-card h3 {
    font-size: 0.75rem;            /* slightly increased for readability */
    margin: 0 0 2px;
    line-height: 1.2;
}

/* Time display */
.matka-card .matka-time {
    font-size: 0.65rem;
    color: #ccc;
    margin: 0;
}

/* Status badge styling */
.matka-status-badge {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 12px;
    font-weight: bold;
    line-height: 1;
}

/* Status colors */
.status-running {
    background: #5cb85c;
    color: #fff;
}
.status-upcoming {
    background: #f0ad4e;
    color: #fff;
}
.status-closed {
    background: #d9534f;
    color: #fff;
}

/* Play button */
.matka-card .matka-play-btn {
    display: inline-block;
    background: #ff4081;
    color: #fff;
    padding: 5px 16px;             /* smaller & tighter */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* === Auth Pages (Login/Register) === */
.matka-auth-page {
    max-width: 400px;
    margin: auto;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.matka-auth-page h2 {
    text-align: center;
    margin-bottom: 20px;
}

.matka-auth-page .form-group {
    margin-bottom: 15px;
}

.matka-auth-page label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.matka-auth-page input[type="text"],
.matka-auth-page input[type="password"],
.matka-auth-page input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
}

.matka-auth-page .matka-btn {
    width: 100%;
    background: #ff4081;
    padding: 10px;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.matka-auth-page .matka-btn:hover {
    background: #e91e63;
}

/* === Settings / Wallet / Referral === */
.matka-settings,
.matka-wallet,
.matka-referral-dashboard {
    max-width: 700px;
    margin: auto;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
}

.matka-settings label,
.matka-wallet label {
    font-weight: 600;
}

.matka-settings select {
    width: 100%;
    padding: 10px;
    background: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* === Bet Preview === */
#placed-bets-preview .preview-row {
    padding: 5px;
    background: #333;
    margin-bottom: 5px;
    border-left: 4px solid #ff4081;
}
/* === Matka All Game Page === */
.matka-status-badge {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: bold;
}