* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --text: #ffffff;
    --text-secondary: #b8b8b8;
    --success: #4CAF50;
    --warning: #ff9800;
    --danger: #f44336;
}

body {
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--secondary);
    position: relative;
    overflow-x: hidden;
    padding-bottom: 70px; /* bottom nav height ke liye space */
}



.home-header {
    background-image: url('../assets/banner.png'); /* tumhara path */
    background-size: cover;       /* poora box image se fill ho jaaye */
    background-position: center;  /* image center se fit ho */
    padding: 0;                   /* padding hata di */
    height: 65px;                /* box ki height adjust karo */
    text-align: center;
    position: relative;
}


.other-header {
    background: var(--accent);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-header {
    background: var(--accent);
    padding: 0 15px 0 0; /* top right bottom left */
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    object-fit: contain;
    margin-left: 0; /* bilkul left edge */
}



.tagline {
    font-size: 14px;
    opacity: 0.9;
}

.account-username {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.account-username i {
    margin-right: 5px;
    font-size: 16px;
}

/* Demo Section Styles */
.demo-section {
    margin: 10px;
}

.account-toggle {
    display: flex;
    background: var(--accent);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.toggle-option.active {
    background: var(--highlight);
}

.demo-banner {
    background: transparent;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.real-banner {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.balance-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
}

.balance {
    font-size: 18px;
    font-weight: bold;
}

.reset-balance-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;

    background: transparent;
    color: #ffffff; /* Default white */
    border: none;
    transition: transform 0.4s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Hover – thoda rotate + color change */
.reset-balance-btn:hover {
    transform: rotate(45deg) scale(1.15);
    color: #00ffcc;
}

/* Click (press) – full spin + slight shrink */
.reset-balance-btn:active {
    transform: rotate(360deg) scale(0.9);
    transition: all 0.8s ease-out;
}

/* 👇 Focus remove hone ke baad color reset */
.reset-balance-btn:focus {
    outline: none;
    color: #ffffff !important;
}


/* Game Grid Styles */
/* Game Grid ko thoda center aur bigger spacing */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px; /* thoda zyada gap for spacing */
    justify-items: center; /* center the cards */
}

/* Game Card ko bada aur hover me pop effect */
.game-card {
    width: 110%; /* container se bada dikhane ke liye */
    max-width: none; /* remove limit */
    background: var(--secondary);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(1); /* default scale */
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1; /* square shape */
    z-index: 0;
}

/* Card image ko full fill karne ke liye */
.game-card img {
    width: 120%; /* thoda container se bada */
    height: auto;
    object-fit: contain;
}



/* Icon inside card */
.game-card i {
    font-size: 40px; /* bada kiya */
    margin-bottom: 12px;
}

/* Card text */
.game-card p {
    font-size: 16px; /* bada kiya */
    font-weight: 600;
    opacity: 1;
}

/* Color Trading Game Styles */
.color-game {
    background: var(--accent);
    border-radius: 15px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--highlight);
}

.match-id {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.game-timer {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.color-option {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.color-option .content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.color-option .odds {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.color-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.color-option.selected {
    border: 3px solid #ffdd00;
    box-shadow: 0 0 20px rgba(255, 221, 0, 0.5);
}

.color-red {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.color-green {
    background: linear-gradient(135deg, #4cd964, #2ecc71);
}

.color-violet {
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
}

.betting-controls {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.bet-amount {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1); 
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

.quick-bet-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.quick-bet {
    padding: 8px 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px; !important
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.quick-bet:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bet-button {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--highlight), #ff2b2b);
    color: white;
}

.bet-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 75, 43, 0.4);
}

.bet-button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-results {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.results-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--highlight);
    text-align: center;
}

.results-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
}

.result-item {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.result-red {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.result-green {
    background: linear-gradient(135deg, #4cd964, #2ecc71);
}

.result-violet {
    background: linear-gradient(135deg, #8a2be2, #6a0dad);
}

/* Other Tabs Styles */
.winning-info {
    margin: 10px;
    background-color: var(--accent);
    border-radius: 8px;
    padding: 15px;
}

.winning-title {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.winner-list {
    list-style: none;
    margin-bottom: 20px;
}

.winner-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.amount {
    color: var(--highlight);
    font-weight: bold;
}

.earnings-chart {
    background-color: var(--accent);
    margin: 10px;
    border-radius: 8px;
    padding: 15px;
}

.chart-title {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.top-earner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.rank {
    font-weight: bold;
    font-size: 16px;
}

.earner-name {
    flex: 1;
    margin-left: 10px;
}

.earnings {
    color: var(--highlight);
    font-weight: bold;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--accent);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    max-width: 480px;
    margin: 0 auto;
}

.nav-item {
    text-align: center;
    font-size: 12px;
    cursor: pointer;
}

.nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-item.active {
    color: var(--highlight);
}

.dashboard {
    padding: 15px;
}

.dashboard-section {
    background-color: var(--accent);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.dashboard-title {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}



.notification-list {
    list-style: none;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-item i {
    margin-right: 15px;
    font-size: 20px;
    color: var(--highlight);
}

.hidden {
    display: none;
}

.btn {
    background-color: var(--highlight);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Activity tab styles */
.activity-section {
    margin: 10px;
    background-color: var(--accent);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.activity-title {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

/* Empty state animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin {
    animation: spin 3s linear infinite;
}

/* Game tab styles */
.game-tab-content {
    padding: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.empty-state p {
    font-size: 16px;
    max-width: 300px;
    margin: 0 auto;
}

/* Page titles for non-home pages */
.page-title {
    font-size: 20px;
    font-weight: bold;
}

/* Animation for no history message */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

/* Result Popup */
.result-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.result-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--accent);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.8);
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
}

.result-popup.show .popup-content {
    transform: scale(1);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
}

.popup-content.win::before {
    background: linear-gradient(90deg, var(--success), #2ecc71);
}

.popup-content.lose::before {
    background: linear-gradient(90deg, var(--danger), #ff2b2b);
}

.popup-content.neutral::before {
    background: linear-gradient(90deg, var(--accent), var(--highlight));
}

.popup-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.popup-title {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.popup-message {
    font-size: 18px;
    margin-bottom: 20px;
}

.popup-amount {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 15px 25px;
    border-radius: 15px;
    display: inline-block;
}

.win-amount {
    background: rgba(76, 217, 100, 0.2);
    color: var(--success);
    border: 3px solid var(--success);
    animation: winGlow 2s infinite;
}

@keyframes winGlow {
    0% { box-shadow: 0 0 20px rgba(76, 217, 100, 0.5); }
    50% { box-shadow: 0 0 40px rgba(76, 217, 100, 0.8); }
    100% { box-shadow: 0 0 20px rgba(76, 217, 100, 0.5); }
}

.lose-amount {
    background: rgba(244, 67, 54, 0.2);
    color: var(--danger);
    border: 3px solid var(--danger);
}

.neutral-amount {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 3px solid var(--accent);
}

.popup-match-id {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Custom Alert Dialog */
:root {
  --accent: #1e1e1e;
  --highlight: #ff9800;
  --text-color: #eee;
}

.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-alert.show {
  opacity: 1;
  pointer-events: all;
}

.alert-content {
  background: var(--accent);
  border-radius: 16px;
  padding: 25px 20px;
  max-width: 300px;
  width: 85%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.custom-alert.show .alert-content {
  transform: translateY(0);
  opacity: 1;
}

.alert-icon {
  font-size: 50px;
  margin-bottom: 12px;
  color: var(--highlight);
}

.alert-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.alert-message {
  font-size: 15px;
  color: var(--text-color);
}


/* Game Restriction Message */
.game-restriction-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(0, 0, 0, 0.85); /* dark transparent background */
    padding: 25px 35px;
    border-radius: 20px;
    color: #ffffff; /* white text */
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4), 0 0 60px rgba(255, 255, 255, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease, transform 0.4s ease;
    z-index: 9999;

    /* ✨ White opaque edge line */
    outline: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

/* Show animation */
.game-restriction-message.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}




/* Account Screens */
.account-screen {
    display: none;
    padding: 20px;
}

.account-screen.active {
    display: block;
}

.wallet-container {
    background: var(--accent);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wallet-header {
    text-align: center;
    margin-bottom: 25px;
}

.wallet-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--highlight);
}

.balance-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* amount thoda neeche align ho jaaye */
}

.balance-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 0 10px;
}

.balance-card:first-child {
    margin-left: 0;
}

.balance-card:last-child {
    margin-right: 0;
}

.balance-type {
    font-size: 16px;
    margin-bottom: 4px; /* thoda kam margin */
    color: var(--text-secondary);
    white-space: nowrap; /* line break na ho */
}

.balance-amount {
    font-size: 22px;
    font-weight: bold;
}

.deposit-container, .withdraw-container, .vip-container {
    background: var(--accent);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.deposit-header, .withdraw-header, .vip-header {
    text-align: center;
    margin-bottom: 25px;
}

.deposit-header h2, .withdraw-header h2, .vip-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--highlight);
}

.amount-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.quick-amount {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
}

.quick-amount:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-button {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.deposit-btn {
    background: linear-gradient(135deg, var(--success), #2ecc71);
    color: white;
}

.withdraw-btn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vip-levels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.vip-level {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    margin: 0 5px;
    position: relative;
    overflow: hidden;
}

.vip-level:first-child {
    margin-left: 0;
}

.vip-level:last-child {
    margin-right: 0;
}

.vip-level.active {
    border: 2px solid #ffdd00;
}

.vip-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffdd00, #ffaa00);
}

.vip-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.vip-requirement {
    font-size: 14px;
    color: var(--text-secondary);
}

.history-container {
    background: var(--accent);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.history-header {
    text-align: center;
    margin-bottom: 25px;
}

.history-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--highlight);
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-item:last-child {
    border-bottom: none;
}

.history-game {
    font-weight: bold;
}

.history-amount {
    font-weight: bold;
}

.history-amount.win {
    color: var(--success);
}

.history-amount.lose {
    color: var(--danger);
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    margin-top: 15px;
    text-decoration: none;
    display: inline-block;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Update bottom nav links */
.bottom-nav a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}





/* Add these to your existing CSS */

/* Activity Tabs Styles */
.activity-tabs {
    margin: 10px;
}

.activity-tab-nav {
    display: flex;
    overflow-x: auto;
    background: var(--accent);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.activity-tab-nav::-webkit-scrollbar {
    display: none;
}

.activity-tab {
    padding: 10px 15px;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

/* Active tab with simple color */
/* zyada specific selector + !important to force override */
.activity-section .activity-tab-nav .activity-tab.active {
  color: #ff4d4d !important; /* red text for active tab */
  font-weight: 700;
}

/* Remove default focus outline */
.activity-tab:focus {
    outline: none;
}

/* Optional: remove tap highlight on mobile */
.activity-tab {
    -webkit-tap-highlight-color: transparent;
}

.activity-tab-pane {
    display: none;
}

.activity-tab-pane.active {
    display: block;
}

/* Game Images */
.game-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}

.activity-tab-nav {
    display: flex;
    overflow-x: auto;
    background: var(--accent);
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.activity-tab-nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 525px; /* enough lamba, scrollable tabs ke liye bhi */
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}





.account-screen {
    display: none;
    padding: 15px;
}

.account-screen.active {
    display: block;
}

/* 🔹 Header */
.account-screen-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-0.16cm);
}

/* 🔹 Back Button — rectangular & minimal */
.account-back-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 18px; /* 👈 rectangle shape */
    border-radius: 6px; /* thoda smooth corner */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px; /* fixed height for rectangle */
}

.account-back-button i {
    margin-right: 6px;
    font-size: 15px;
}

.account-back-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 🔹 Title */
.account-screen-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--highlight);
    letter-spacing: 0.4px;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* 🔹 Optional Glow on Hover */
.account-screen-title:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--highlight);
}






/* 🎮 Color Game New UI */

.color-game {
  width: 100%;
  max-width: 420px;
  margin: auto;
  color: #fff;
  background: linear-gradient(180deg, #111827, #0b0f19);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  font-family: 'Poppins', sans-serif;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f2937;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.game-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.match-id {
  font-size: 12px;
  color: #9ca3af;
}

.game-timer {
  font-size: 18px;
  font-weight: bold;
  color: #22d3ee;
}




/* END OF COINS DESIGN*/



/* 🔴🟢 Violet color buttons */
.type-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}

.color-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: #fff;
  transition: 0.2s;
}

.color-btn.red { background: #ef4444; }
.color-btn.green { background: #22c55e; }
.color-btn.violet { background: #8b5cf6; }

.color-btn:hover,
.color-btn.selected {
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* 🔵 Big/Small Buttons */
.bigsmall-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}

.bs-btn {
  flex: 1;
  background: #1e3a8a;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.bs-btn.big { background: #2563eb; }
.bs-btn.small { background: #0ea5e9; }

.bs-btn:hover,
.bs-btn.selected {
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* 🎲 Bet controls */
.betting-controls {
  text-align: center;
  margin-top: 15px;
}

.random-btn {
  background: #9333ea;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 8px;
}

.random-btn:hover { background: #a855f7; }

#betAmount {
  width: 100%;
  padding: 10px;
  text-align: center;
  border: none;
  border-radius: 8px;
  outline: none;
  background: #1f2937;
  color: #fff;
  font-size: 15px;
  margin-bottom: 8px;
}

.multiplier-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.multi-btn {
  background: #374151;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.multi-btn:hover {
  background: #475569;
}

.bet-button {
  background: #facc15;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: 0.2s;
}

.bet-button:hover {
  background: #fde047;
}

/* 🕹 Results */
.game-results {
  margin-top: 20px;
  background: #111827;
  border-radius: 10px;
  padding: 10px;
}

.results-title {
  font-weight: 600;
  font-size: 15px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.results-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.result-item {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.result-item.red { background: #ef4444; }
.result-item.green { background: #22c55e; }
.result-item.violet { background: #8b5cf6; }

.hidden { display: none; }


/* 🔥 Highlight for selected items */
.num-ball.selected {
    border: 3px solid #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px #fff;
}

.color-btn.selected, .bs-btn.selected {
    background: var(--highlight);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 8px var(--highlight);
    border: 2px solid #fff;
    transition: 0.2s ease;
}


/* CSS */
#resultsList {
    width: 100%;
    overflow: hidden;
}

.result-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease;
}

.result-item {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    margin-right: 5px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}
/* ==========================
   Activity Tab Styling
========================== */
#activity.tab-content {
    background-color: #1a1a2e;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
}



#activity .empty-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    min-height: 300px;
    color: #b8b8b8;
}

#activity .empty-state i {
    font-size: 48px;
    color: #e94560;
}

/* ==========================
   Account Tab Styling
========================== */
#account.tab-content {
    background-color: #1a1a2e;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
}

/* Dashboard Sections */
#account .dashboard-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0;
    transition: 0.3s;
}


/* Balance Box (non-clickable) */
#account .balance-box {
    background: #16213e;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    padding: 20px;
    text-align: center;
    color: #ffffff;
    pointer-events: none;
}

/* Notification List */
#account .notification-list {
    background: transparent;
    list-style: none;
    padding: 0;
}

#account .notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

#account .notification-item i {
    font-size: 20px;
    color: #e94560;
}


/* ==========================
   Account Screens Uniform Background
========================== */

/* Account Screen Styles - Cleaned */
#account-screen-container {
    display: none;
    padding: 140px 30px 30px 30px; /* top right bottom left */
    background: transparent !important;  /* remove any inner box bg */
    box-shadow: none !important;
    border: none !important;
}

/* All direct children - keep them clean but allow padding/margin */
#account-screen-container > * {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0;   /* keep margin zero, padding allowed inside children */
}

/* Optional: make text visible on dark background */
#account-screen-container * {
    color: #ffffff !important;
}
/* Account Screen Styles */
#account-screen-container {
    display: none;
    padding: 100px 30px 30px 30px; /* content ka top padding back button+title ke liye */
}

/* Back button + screen title container */
.account-screen-header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

/* Back button style */
.account-back-button {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
}

/* Screen title style */
.account-screen-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}


/* Header box containing back button + title */
.account-screen-header-box {
    display: flex;
    align-items: center;
    gap: 15px;           /* button aur title ke beech space */
    background: rgba(0, 255, 174, 0.1); /* subtle transparent box */
    padding: 10px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(6px); /* thoda blur effect */
}

/* Back button style */
.account-back-button {
    background: rgba(0, 255, 174, 0.2); /* transparent green */
    border: none;
    padding: 14px 18px;   /* bada size */
    border-radius: 12px;   /* thoda rounded */
    cursor: pointer;
    font-size: 20px;       /* bada icon */
    color: #00ffae;        /* neon green */
    transition: all 0.2s ease;
}

.account-back-button:hover {
    background: rgba(0, 255, 174, 0.4);
    transform: scale(1.1);
}

/* Title style */
.account-screen-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

#account-dashboard .dashboard-section:first-child {
    position: relative;
    top: -40px;  /* upar kitna shift karna hai, adjust kar sakte ho */
}

#account-dashboard .dashboard-section:first-child h2,
#account-dashboard .dashboard-section:first-child p {
    margin: 2px 0;
}


/* Sirf baki content upar shift karenge, username/UID section ko untouched */
#account-dashboard .dashboard-section:not(:first-child) {
    position: relative;
    top: -46px; /* adjust kar sakte ho kitna upar chahiye */
}





:root {
    --toggle-bg: #111;             /* Dark container base */
    --toggle-item-color: #888;     /* Inactive text color */
    --toggle-active-color: #ff4c4c; /* Active text color (red) */
    --toggle-border-radius: 12px;
    --toggle-padding: 4px;
}

.modern-account-toggle {
    background: #111;
    border-radius: var(--toggle-border-radius);
    padding: var(--toggle-padding);

    /* Opaque border line + subtle glow like dialog */
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);

    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    max-width: 90%;
    height: 48px;
    margin: 15px auto;
    z-index: 999;
}

.toggle-item {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--toggle-item-color); /* inactive text color */
    background-color: transparent;   /* remove black patch */
    text-shadow: none;               /* no glow */
    transition: color 0.3s ease;
}

/* Active state */
/* Remove hover/tap effect */
.toggle-item:hover,
.toggle-item:focus,
.toggle-item:active {
    background-color: transparent !important; /* no background box */
    box-shadow: none !important;             /* no shadow */
    outline: none !important;                /* no outline */
}

/* Remove mobile tap highlight */
.toggle-item {
    -webkit-tap-highlight-color: transparent;  /* iOS/Android Safari */
    -webkit-touch-callout: none;              /* long-press menu iOS */
    user-select: none;                         /* prevent text selection */
}

/* Only active text styling */
.toggle-item.active {
    color: var(--toggle-active-color);  /* red text */
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 2px 6px;
}

/* Slider (optional, keep soft white tint) */
.toggle-slider {
    position: absolute;
    top: var(--toggle-padding);
    left: var(--toggle-padding);
    height: calc(100% - (2 * var(--toggle-padding)));
    width: calc(50% - var(--toggle-padding));
    background: rgba(255, 255, 255, 0.25);
    border-radius: calc(var(--toggle-border-radius) - var(--toggle-padding)/2);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 1;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.modern-account-toggle.real-active .toggle-slider {
    transform: translateX(100%);
}






/* Activity List Styles */
.activity-list {
    padding: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.activity-icon.positive {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.activity-icon.negative {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.activity-details {
    flex: 1;
}

.activity-description {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-type {
    font-weight: 500;
}

.activity-amount {
    font-weight: 700;
    font-size: 16px;
}

.activity-amount.positive {
    color: #4CAF50;
}

.activity-amount.negative {
    color: #F44336;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state h2 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 18px;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Bounce animation for empty state icons */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

.bounce {
    animation: bounce 2s infinite;
}










/* Enhanced Activity List Styles */
.activity-list {
    padding: 15px;
}

.activity-item-box {
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-item-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--highlight);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.activity-game-badge {
    background: linear(135deg, var(--highlight), #8e44ad);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-type-badge.win {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.activity-type-badge.bet {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.activity-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.activity-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.activity-icon-large.positive {
    background: linear(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    color: #4CAF50;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.activity-icon-large.negative {
    background: linear(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.05));
    color: #F44336;
    border: 2px solid rgba(244, 67, 54, 0.3);
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-description {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.activity-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.activity-amount-large {
    text-align: right;
    flex-shrink: 0;
}

.amount-main {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 4px;
}

.amount-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.activity-amount-large.positive .amount-main {
    color: #4CAF50;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.activity-amount-large.negative .amount-main {
    color: #F44336;
    text-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 25px;
    opacity: 0.7;
}

.empty-state h2 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    font-size: 15px;
    opacity: 0.8;
}

/* Bounce animation for empty state icons */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .activity-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .activity-details {
        text-align: center;
    }
    
    .activity-meta {
        justify-content: center;
    }
    
    .activity-amount-large {
        text-align: center;
    }
    
    .amount-main {
        font-size: 18px;
    }
    
    .activity-item-box {
        padding: 15px;
    }
    
    .activity-icon-large {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}


/* Transaction Status Styles */
.activity-result {
    font-size: 12px;
    font-weight: 600;
    margin: 2px 0;
}

.activity-result.win {
    color: #22c55e;
}

.activity-result.loss {
    color: #ef4444;
}

.activity-result.pending {
    color: #f59e0b;
}

.pending-transaction {
    opacity: 0.8;
    border-left: 3px solid #f59e0b;
}

.activity-win-details {
    font-size: 11px;
    color: #6b7280;
    margin: 2px 0;
}

.activity-footer {
    border-top: 1px solid #e5e7eb;
    padding: 8px 16px;
    font-size: 11px;
    color: #6b7280;
    background: #f9fafb;
}

.activity-balance {
    font-size: 11px;
    color: #6b7280;
}

.amount-label.pending {
    color: #f59e0b;
}

.activity-icon-large.pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}





/*  ACTIVITY TAB PENDING ANIMATION*/
.wave-text {
  display: inline-block;
  font-weight: bold;
  letter-spacing: 2px;
}

.wave-text span {
  display: inline-block;
  animation: waveUp 1.2s infinite ease-in-out;
}

@keyframes waveUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Delay for each letter to create wave effect */
.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }
.wave-text span:nth-child(5) { animation-delay: 0.4s; }
.wave-text span:nth-child(6) { animation-delay: 0.5s; }
.wave-text span:nth-child(7) { animation-delay: 0.6s; }











/* === Fullscreen Signup Dialog === */



/* ------------------------------------------- */
/* 4. Signup Dialog Styles (Simple Professional Light Mode) */
/* ------------------------------------------- */
/* 🔹 Main Dialog Container */
.signup-dialog {
    position: fixed;
    inset: 0; 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 🔹 Show Class */
.signup-dialog.show {
    display: flex;
}

/* 🔹 Background Blur Overlay (subtle haze, no dark) */
.signup-dialog::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.02); /* subtle haze */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
}

/* 🔹 Dialog Box */
.signup-dialog-content {
    position: relative;
    background: #111; /* Dark theme */
    color: #fff;
    border-radius: 16px;
    padding: 25px 28px;
    text-align: center;
    width: 80%;
    max-width: 320px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 🔹 Title */
.signup-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ff4d4d; /* Red highlight like Sign Out */
}

/* 🔹 Message */
.signup-message {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc; /* Soft white */
}

/* 🔹 Buttons Container */
.dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 🔹 Base Button Style */
.dialog-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-btn i {
    margin-right: 8px;
    font-size: 17px;
}

/* 🔹 Primary Action: SIGN UP (Solid Fill) */
.dialog-btn.signup {
    background: #e63946; /* Red like Sign Out */
    color: #fff;
    box-shadow: 0 2px 5px rgba(230, 57, 70, 0.3);
}
.dialog-btn.signup:hover {
    transform: translateY(-1px);
    background: #d62828;
}

/* 🔹 Secondary Action: DEMO (Ghost/Outlined) */
.dialog-btn.demo {
    background: #2a2a2a;
    color: #ddd;
    border: 1px solid #444;
}
.dialog-btn.demo:hover {
    background: #3a3a3a;
    color: #fff;
}

/* 🔹 Smooth Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 🔹 Glowing Opaque Side Lines */
.signup-dialog-content::before,
.signup-dialog-content::after {
    content: "";
    position: absolute;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.2));
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
    border-radius: 10px;
}

.signup-dialog-content::before {
    left: -6px;
}

.signup-dialog-content::after {
    right: -6px;
}




/* === Profile  === */
.profile-container {
  text-align: center;
  padding: 20px;
}
.profile-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}
.fade-in {
  opacity: 1 !important;
  transition: opacity 0.3s ease;
}

/* Unique Account Switch Loader */
.account-switch-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.account-switch-loader.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.quantum-loader {
    position: relative;
    width: 120px;
    height: 120px;
}

.quantum-orbits {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.orbit {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: orbitSpin 2s linear infinite;
}

.orbit-1 {
    width: 40px;
    height: 40px;
    top: 40px;
    left: 40px;
    border-top: 2px solid #00ff88;
    border-right: 2px solid transparent;
    animation-delay: 0s;
}

.orbit-2 {
    width: 60px;
    height: 60px;
    top: 30px;
    left: 30px;
    border-top: 2px solid #ff0088;
    border-right: 2px solid transparent;
    animation-delay: -0.5s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    border-top: 2px solid #0088ff;
    border-right: 2px solid transparent;
    animation-delay: -1s;
}

.quantum-core {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50px;
    left: 50px;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    border-radius: 50%;
    animation: corePulse 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 20px #00ff88, 0 0 40px #0088ff;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    animation: particleFloat 3s linear infinite;
}

.particle:nth-child(1) { top: 10px; left: 60px; animation-delay: 0s; }
.particle:nth-child(2) { top: 60px; left: 10px; animation-delay: -1s; }
.particle:nth-child(3) { top: 110px; left: 60px; animation-delay: -2s; }
.particle:nth-child(4) { top: 60px; left: 110px; animation-delay: -1.5s; }

.loader-text {
    margin-top: 30px;
    text-align: center;
    color: white;
    font-family: 'Arial', sans-serif;
}

.loader-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #00ff88, #0088ff, #ff0088);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-subtitle {
    font-size: 14px;
    color: #888;
    animation: subtitlePulse 2s ease-in-out infinite;
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #0088ff);
    border-radius: 10px;
    animation: progressLoad 1.5s ease-in-out infinite;
    width: 40%;
}

/* Animations */
@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes corePulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 20px #00ff88, 0 0 40px #0088ff;
    }
    100% { 
        transform: scale(1.2);
        box-shadow: 0 0 30px #00ff88, 0 0 60px #0088ff;
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

@keyframes subtitlePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes progressLoad {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(250%); }
    100% { transform: translateX(-100%); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Optional: Add some floating background elements */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: shapeFloat 20s linear infinite;
}

.shape.triangle {
    width: 40px;
    height: 40px;
    background: conic-gradient(from 45deg, #00ff88, #0088ff);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: conic-gradient(from 45deg, #ff0088, #00ff88);
}

.shape.square {
    width: 35px;
    height: 35px;
    background: conic-gradient(from 45deg, #0088ff, #ff0088);
    transform: rotate(45deg);
}

@keyframes shapeFloat {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}



/* BET PREVENT FOR SAME ROUND */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.selection-error {
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    20% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}



.account-loading-dots {
    text-align: center;
    font-size: 2.5rem; /* thoda bada dot */
    margin: 50px 0;
}

.account-loading-dots span {
    display: inline-block;
    animation: wave 1s infinite;
    margin: 0 6px;
}


/* DOT LOADER FOR ACCOUNT TAB */
.dot-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 20px; 
}

.dot-loader {
    display: flex;
    gap: 8px;
    margin-bottom: 10px; 
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--highlight);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }
.dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes dotPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.loader-text {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-top: 15px; /* dots ke neeche */
    opacity: 0;
    animation: fadeInText 1s ease forwards 0.5s;
}

@keyframes fadeInText {
    to { opacity: 1; }
}

/* Dot white color */
.dot {
    background: #fff !important; 
}

/* Loader text white */
.loader-text {
    color: #fff !important; 
}




/* --- Parent container full blackout --- */
#account {
    background-color: #000 !important; /* pure black */
    padding: 15px;
}

/* --- Dashboard / clickable items --- */
#account .dashboard-item,
#account .notification-item {
    background-color: #000;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;

    /* Sirf neeche line - white */
    border-bottom: 3px solid rgba(255,255,255,0.3);

    /* 3D depth effect - subtle */
    box-shadow: 0 4px 6px rgba(0,0,0,0.6),   /* upar se shadow */
                0 8px 12px rgba(255,255,255,0.05); /* neeche subtle samne line */
}

/* Hover effect */
#account .dashboard-item:hover,
#account .notification-item:hover {
    transform: translateY(-2px); /* thoda upar uthta feel */
    box-shadow: 0 6px 8px rgba(0,0,0,0.6),
                0 12px 16px rgba(255,255,255,0.08); /* subtle white glow */
}

*

/* Account Tab Wrapper */
.nav-item[data-tab="account"] {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
    height: 100%;
    gap: 4px; 
}

/* Profile Pic Wrapper */
.account-icon-wrapper {
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Actual Profile Picture */
.nav-profile-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    display: none; 
    transition: border 0.3s ease, transform 0.3s ease;
}

/* Active Profile Highlight */
.nav-item[data-tab="account"].active .nav-profile-pic {
    border-color: var(--highlight, #ffc107);
    transform: scale(1.1);
}

/* Default Icon */
.default-account-icon {
    font-size: 24px;
    display: block; 
    color: #888;
    transition: color 0.3s ease;
}


.nav-item[data-tab="account"] > div:last-child {
    font-size: 11px;
    color: var(--nav-text-color, #888);
    text-align: center;
}



body {
    
    font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    font-size: 16px;
    line-height: 1.6;
}


.balance, 
#winAmount {
   
    font-weight: 700; 
}


/* ---------------- Color Variables ---------------- */
:root {
    --background: #000000;        /* Pure black */
    --text-primary: #FFFFFF;      /* White */
    --text-secondary: #AAAAAA;    /* Light grey */
    --highlight: #38A169;         /* Green highlight */
    --button-gradient-start: #FFFFFF;
    --button-gradient-end: #E0E0E0;
    --button-text-color: #000000;
}

/* ---------------- Signin Dialog ---------------- */
.signin-required-dialog {
    padding: 30px 20px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--background);
    border-radius: 12px;
}

/* Icon container with glow */
.signin-icon-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    padding: 20px;
    width: fit-content;
    margin: 0 auto 25px;
    box-shadow: 0 0 25px rgba(255,255,255,0.15);
}

.signin-icon {
    font-size: 68px;
    color: var(--highlight);
}

/* Heading & paragraph */
.signin-required-dialog h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 10px;
}

.signin-required-dialog p {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Google Sign-in button */






.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    padding: 16px 25px;
    border: none;
    border-radius: 15px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    background: transparent;
    
    /* Bottom-only white glow using inset trick to avoid edges */
    box-shadow: inset 0 -4px 6px -2px rgba(255,255,255,0.35);
    
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    
    /* Text with subtle opacity */
    color: rgba(0,0,0,0.85);
    background: linear-gradient(90deg, rgba(0,0,0,0.85), #38A169);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.google-signin-btn:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 -6px 10px -2px rgba(255,255,255,0.45);
}

.google-signin-btn i {
    font-size: 28px; 
    margin-right: 16px;
    color: rgba(0,0,0,0.85);
}

.google-signin-btn {
    -webkit-tap-highlight-color: transparent; /* Mobile Safari & Chrome */
    -moz-tap-highlight-color: transparent;    /* Firefox */
    tap-highlight-color: transparent;         /* Other browsers */
    outline: none;                             /* Focus outline remove */
}




/* Secure info text */
.signin-required-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.google-signin-btn {
    margin-top: 50px; /* Button ka top spacing agar chahiye */
}







/* Decorative line */
.decorative-line {
    width: 60px;
    height: 3px;
    background-color: var(--highlight);
    margin: 40px auto 20px;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(56,161,105,0.6);
}

/* Profile sign-in prompt */
.profile-signin-prompt {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    text-align: center;
}

.profile-signin-prompt p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

/* Nav item tap highlight removal */
.nav-item, .nav-item * {
    -webkit-tap-highlight-color: transparent; 
    -moz-tap-highlight-color: transparent; 
    tap-highlight-color: transparent;        
    outline: none;                             
}

.empty-state {
    text-align: center;

}
.empty-image {
    max-width: 100%;
    height: auto;
    
}
.activity-tab-pane {
    background: transparent;
}

.activity-tab-content,
.activity-tab-pane,
.activity-section {
    background: transparent !important;
}



.auth-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #111, #333);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.auth-btn:hover {
  background: linear-gradient(135deg, #222, #555);
  transform: translateX(-50%) scale(1.05);
}

.auth-btn i {
  font-size: 16px;
}

/* Dialog styling */
.dialog-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  z-index: 1000;
}

.dialog-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.confirm-btn, .cancel-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.confirm-btn {
  background-color: #e74c3c;
  color: white;
}

.cancel-btn {
  background-color: #555;
  color: white;
}

.hidden {
  display: none;
}


/* Poore page ka font aur bold set kar do */
body, div, span, p, li, h1, h2, h3, h4, h5, h6, button {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Bold */
    color: #ffffff;   /* Optional: white text */
}

/* Optional: headings aur buttons ko aur standout karna */
h1, h2, h3, h4, h5, h6, button {
    font-weight: 900; /* Extra Bold */
}


/* 1. Sab parent elements ka background black */
html, body, .container, .tab-content, .dashboard, .game-container, .activity-section, .bottom-nav, .demo-section {
    background-color: #000 !important;
    color: #fff !important;
}

/* 2. Sab divs, sections, grids ko override */
div, section, ul, li, p, h1, h2, h3, h4, h5, h6 {
    background-color: #000 !important;
    color: #fff !important;
}

/* 3. Buttons aur cards dark */
button, .dashboard-item, .activity-tab-pane {
    background-color: #000 !important;
    color: #fff !important;
}

/* Toggle items ko transparent kar de */
.toggle-item {
    background-color: transparent !important;
    color: #fff !important;
}
/* 4. Banners ko transparent ya dark */
.demo-banner, .real-banner, img {
    background-color: transparent !important;
}

/* 5. Inputs aur other interactive elements */
input, select, textarea {
    background-color: #111 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
}






/* 🔹 Main Dialog Container */
#signOutDialog {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* 🔹 Show Class (Active Dialog) */
#signOutDialog.show {
  display: flex;
}

/* 🔹 Background Blur Overlay (no darkness, just blur) */
.signout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.02); /* subtle light haze only */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
}

/* 🔹 Dialog Box */
.signout-content {
  position: relative;
  background: #111;
  color: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  text-align: center;
  width: 80%;
  max-width: 320px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 🔹 Title */
.signout-content h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #ff4d4d;
}


.signout-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.signout-buttons button {
    -webkit-tap-highlight-color: transparent;
    outline: none;            
}

#signOutBtn,
#signOutBtn.login {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* 🔹 Buttons Styling */
.cancel-btn,
.confirm-btn {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s ease;
}

.cancel-btn {
  background: #2a2a2a !important;
  color: #ddd;
}
.cancel-btn:hover {
  background: #3a3a3a ;
}

.confirm-btn {
  background: #e63946 !important;
  color: #fff;
}
.confirm-btn:hover {
  background: #d62828;
}

/* 🔹 Smooth Fade Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 🔹 Disable Background Clicks When Dialog Open */
body.dialog-open {
  pointer-events: none;
  overflow: hidden;
}
body.dialog-open #signOutDialog {
  pointer-events: all;
}

/* 🔹 Glowing Opaque Side Lines */
.signout-content::before,
.signout-content::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.2));
  box-shadow: 0 0 10px rgba(255,255,255,0.4);
  border-radius: 10px;
}

.signout-content::before {
  left: -6px;
}

.signout-content::after {
  right: -6px;
}


/* Custom Alert Overlay */
#customAlert {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0,0,0,0.6) !important; /* semi-transparent overlay */
    z-index: 99999 !important;
    visibility: hidden !important; /* default hidden */
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out !important;
}

/* Show Alert */
#customAlert.show {
    visibility: visible !important;
    opacity: 1 !important;
}






/* --- Account Tab Content Styling (Professional Look) --- */

/* Variables for easy color changes */
:root {
    --primary-bg: #1e1e2f; /* Dark background */
    --card-bg: #282a36; /* Slightly lighter card/section background */
    --text-color: #f8f8f2; /* Light text */
    --secondary-text: #a8a8b5; /* Muted text for labels/details */
    --highlight: #50fa7b; /* Green highlight for money/action */
    --accent-blue: #8be9fd; /* Blue accent for titles/icons */
    --border-color: #383a59;
    --signout-red: #ff5555;
}

#account {
    padding: 15px;
    background-color: var(--primary-bg);
    /* Calculate height, assuming the bottom nav is about 80px */
    min-height: calc(100vh - 80px); 
    color: var(--text-color);
}

/* --- Dashboard Sections (Containers for Card/Grids) --- */
.dashboard-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dashboard-title {
    color: var(--accent-blue);
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}


/* --- PROFILE CARD STYLING (The main Card) --- */
.profile-card-combined {
    background: linear-gradient(135deg, #3a3b4c, #2c2d3a); 
    padding: 20px;
    display: flex;
    flex-direction: column; /* Stacks profile summary and balance vertically */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Top Section: Profile Pic, Username, UID, Last Login */
.profile-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px; 
    border-bottom: 1px solid var(--border-color); /* Separator line */
    margin-bottom: 15px;
}

#profilePic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--highlight);
    background-color: var(--border-color); /* Placeholder background */
}

.card-username {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.card-uid, .card-last-login {
    font-size: 0.8em;
    color: var(--secondary-text);
    margin: 2px 0;
}

#profileUID {
    font-weight: 600;
    color: var(--highlight);
}

/* Bottom Section: Balance (Full width and centered) */
.balance-details {
    text-align: center;
}

.balance-label {
    color: var(--secondary-text);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 2.5em; 
    font-weight: 900;
    color: var(--highlight);
    text-shadow: 0 0 10px rgba(80, 250, 123, 0.4);
}

.balance-currency {
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 5px;
}


/* --- Dashboard Grid (2x2 layout) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
    text-align: center;
}

.dashboard-item {
    background-color: #383a59; 
    padding: 15px 5px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.dashboard-item:hover {
    background-color: #44475a;
    transform: translateY(-2px);
}

.dashboard-item i {
    font-size: 1.5em;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

/* --- Sign Out Button Styling --- */
.notification-item {
    list-style: none; /* Remove list bullet */
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--border-color);
    color: var(--text-color);
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: var(--signout-red); 
}

.notification-item i {
    font-size: 1.2em;
    margin-right: 15px;
    color: var(--signout-red); 
}

.notification-item:hover i {
    color: var(--text-color);
}


.balance-box {
    display: flex;
    flex-direction: column; /* ya row, agar side by side chahiye */
    align-items: center;    /* balance center me rahe */
}

.balance-amount {
    font-size: 24px;
    white-space: nowrap;      /* number ek line me rahe */
    overflow: hidden;         /* overflow cut ho jaye */
    text-overflow: ellipsis;  /* agar bada ho to "…" dikhe */
    max-width: 200px;         /* max width set karo, adjust as per design */
}



.glow-line {
    width: 60%;          
    height: 2px;                 
    margin: 10px auto 0;  
    background: #3498db;  /* white se blue change kiya */
    border-radius: 1px;           
}

..no-activity {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.no-activity small {
    color: #bbb;
    font-size: 13px;
}

.no-activity i {
    opacity: 0.6;
}







/* QR Code Container Styles */
.qr-dialog-container {
    padding: 20px;
    max-width: 100%;
    overflow-y: auto;
    background: #f5f5f5;
    min-height: 100vh;
}

.qr-dialog-header {
    text-align: center;
    margin-bottom: 25px;
}

.qr-dialog-header h2 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.qr-dialog-header p {
    color: #666;
    font-size: 0.9rem;
}

/* QR Code Display */
.qr-code-display {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    text-align: center;
}

.qr-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.clean-qr-code {
    display: inline-block;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.clean-qr-code canvas,
.clean-qr-code img {
    border-radius: 8px;
    display: block;
    max-width: 100%;
    height: auto;
}

/* Payment Details */
.payment-details-stylish {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item-stylish {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item-stylish:last-child {
    border-bottom: none;
}

.detail-label-stylish {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value-stylish {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.upi-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upi-id {
    font-family: 'Courier New', monospace;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #007bff;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.copy-upi-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 50px;
}

.copy-upi-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Action Buttons */
.action-buttons-stylish {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
}

.action-button-stylish {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-height: 50px;
}

.action-button-stylish:active {
    transform: translateY(0);
}

.download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.download-btn:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

.share-btn {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

.share-btn:hover {
    background: linear-gradient(135deg, #138496, #5a2d91);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(23, 162, 184, 0.4);
}

.upi-app-btn {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #ff6b35, #fd7e14);
    color: white;
}

.upi-app-btn:hover {
    background: linear-gradient(135deg, #e55a2b, #e56a0a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

/* Payment Instructions */
.payment-instructions {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.payment-instructions h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.payment-instructions ol {
    padding-left: 20px;
    color: #555;
}

.payment-instructions li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Fallback Styles */
.qr-fallback {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.fallback-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 15px;
}

.fallback-text {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 15px;
}

.fallback-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    font-size: 12px;
    color: #333;
}

.fallback-note {
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .qr-dialog-container {
        padding: 15px;
    }
    
    .qr-code-display {
        padding: 20px;
    }
    
    .qr-canvas-container {
        padding: 15px;
    }
    
    .clean-qr-code {
        padding: 10px;
    }
    
    .action-buttons-stylish {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .detail-item-stylish {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
.upi-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #007bff;
    max-width: 280px;
    margin: 0 0 0 0; /* Left align - remove auto margin */
    justify-content: flex-start; /* Left align content */
}

.upi-id {
    font-family: 'Courier New', monospace;
    background: transparent;
    padding: 0;
    border: none;
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    min-width: 160px; /* Reduced further */
    text-align: left; /* Left align text */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1; /* Take available space */
}
    
    .payment-details-stylish {
        padding: 15px;
    }
    
    .payment-instructions {
        padding: 20px;
    }
    
    .action-button-stylish {
        padding: 12px 15px;
        font-size: 13px;
        min-height: 45px;
    }
}

@media (max-width: 360px) {
    .clean-qr-code {
        transform: scale(0.9);
    }
    
    .upi-id {
        min-width: 120px;
        font-size: 11px;
    }
}



/* Fix for Color Game buttons - Override global blackout */
.color-game .color-btn,
.color-game .bs-btn,
.color-game .bet-button,
.color-game .multi-btn,
.color-game .random-btn {
    background-color: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

/* Red button specific styling */
.color-game .color-btn.red {
    background: #ef4444 !important;
    border-color: #fff !important;
}

.color-game .color-btn.red.selected {
    border-color: #ffdd00 !important;
    box-shadow: 0 0 10px #ffdd00 !important;
}

/* Green button specific styling */
.color-game .color-btn.green {
    background: #22c55e !important;
    border-color: #fff !important;
}

.color-game .color-btn.green.selected {
    border-color: #ffdd00 !important;
    box-shadow: 0 0 10px #ffdd00 !important;
}

/* Violet button specific styling */
.color-game .color-btn.violet {
    background: #8b5cf6 !important;
    border-color: #fff !important;
}

.color-game .color-btn.violet.selected {
    border-color: #ffdd00 !important;
    box-shadow: 0 0 10px #ffdd00 !important;
}

/* Big button specific styling */
.color-game .bs-btn.big {
    background: #2563eb !important;
    border-color: #fff !important;
}

.color-game .bs-btn.big.selected {
    border-color: #ffdd00 !important;
    box-shadow: 0 0 10px #ffdd00 !important;
}

/* Small button specific styling */
.color-game .bs-btn.small {
    background: #0ea5e9 !important;
    border-color: #fff !important;
}

.color-game .bs-btn.small.selected {
    border-color: #ffdd00 !important;
    box-shadow: 0 0 10px #ffdd00 !important;
}

/* Bet button styling */
.color-game .bet-button {
    background: #facc15 !important;
    color: #000 !important;
    border: 2px solid #fff !important;
}

.color-game .bet-button:hover {
    background: #fde047 !important;
    border-color: #ffdd00 !important;
}

/* Multiplier buttons */
.color-game .multi-btn {
    background: #374151 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.color-game .multi-btn:hover {
    background: #475569 !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Random button */
.color-game .random-btn {
    background: #9333ea !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.color-game .random-btn:hover {
    background: #a855f7 !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Number balls selected state */
.color-game .num-ball.selected {
    border: 3px solid #ffdd00 !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px #ffdd00 !important;
}










/* Full Screen Color Game Styles */
#color-game-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    overflow-y: auto;
}

#color-game-fullscreen:not(.hidden) {
    display: block;
}

.game-screen-header {
    position: sticky;
    top: 0;
    background: var(--accent);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-back-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.game-back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.game-screen-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--highlight);
}

#color-game-container-fullscreen {
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
}





/* Number Grid Layout - 5x2 */
.number-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.number-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.num-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.num-ball:hover {
    transform: scale(1.1);
}

.num-ball.selected {
    border: 3px solid #ffdd00;
    transform: scale(1.1);
    box-shadow: 0 0 15px #ffdd00;
}
