* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-color: #0088CC;
    --secondary-color: #005580;
    --background-color: #F5F7FA;
    --card-background: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border-radius: 16px;
    --spacing: 20px;
    --footer-height: 80px;
    --gradient-start: #0088CC;
    --gradient-end: #005580;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
}

body {
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--card-background);
    padding-bottom: var(--footer-height);
    position: relative;
}

.page {
    display: none;
    min-height: calc(100vh - var(--footer-height));
}

.page.active {
    display: block;
}

/* Updated Header Styles for Minimal Design */
.gradient-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 5px 16px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.logo-section:hover {
    transform: translateY(-1px);
}

.logo-section i {
    font-size: 22px;
    color: white;
}

.logo-section h1 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.primary-button {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.2);
}

.primary-button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 136, 204, 0.3);
}

.primary-button:active {
    transform: translateY(0);
}

.primary-button i {
    font-size: 18px;
}

main {
    padding: var(--spacing);
}

section {
    margin-bottom: 30px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--card-background);
    padding: 8px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-card h4 {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    margin: 0;
}

.filter-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
}

.filter-button i {
    font-size: 20px;
}

/* Winners List Enhancements */
.winner {
    background: var(--card-background);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.winner-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.winner-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.address {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.prize {
    color: var(--success-color);
    font-weight: 600;
}

/* Draw History */
.draw-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.draw-item {
    background: var(--card-background);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.draw-date {
    font-weight: 600;
    margin-bottom: 5px;
}

.draw-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Wallet Page Enhancements */
.balance-card {
    margin-bottom: 25px;
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.action-button {
    width: 50%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.action-button i {
    font-size: 18px;
}

.filter-select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: var(--card-background);
    color: var(--text-secondary);
}

/* Tickets Page Enhancements */
.tickets-stats {
    margin-bottom: 25px;
}

.stats-card {
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat {
    text-align: center;
}

.stat h4 {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.stat .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* How It Works Section */
.how-it-works {
    padding: 20px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.step {
    text-align: center;
    padding: 10px 5px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.step p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Footer Navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 5px 0 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    font-size: 12px;
    width: 20%;
    height: 100%;
}

.nav-tab i {
    font-size: 22px;
    margin-bottom: 5px;
}

.nav-tab span {
    font-size: 12px;
    font-weight: 500;
}

.nav-tab.active {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Draw Timer Section */
.draw-timer {
    text-align: center;
    margin-bottom: 25px;
}

.draw-timer h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--text-primary);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-background);
    padding: 8px;
    border-radius: var(--border-radius);
    min-width: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.time-unit span {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.time-unit label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Prize Pool Section */
.prize-pool {
    margin-bottom: 25px;
}

.pool-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
}

.pool-card h3 {
    font-size: 18px;
    font-weight: 600;
}

.amount {
    font-size: 32px;
    font-weight: 700;
}

.participants {
    font-size: 14px;
    opacity: 0.8;
}

/* Ticket Purchase Section */
.ticket-purchase {
    margin-bottom: 25px;
}

.purchase-card {
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: none;
}

.purchase-card h3 {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-color);
}

.purchase-card .ticket-price {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}

.purchase-card  .price-tag {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.purchase-card  .ticket-input {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.purchase-card .quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 136, 204, 0.2);
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.purchase-card .quantity-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.purchase-card #ticket-quantity {
    width: 70px;
    height: 36px;
    text-align: center;
    border: 1px solid rgba(0, 136, 204, 0.2);
    background: rgba(0, 136, 204, 0.03);
    margin: 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    border-radius: 18px;
    transition: all 0.2s;
}

.purchase-card #ticket-quantity:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.1);
}

.purchase-card .total {
    text-align: center;
    margin-bottom: 18px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Improved Ticket List Styling */
.ticket-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.ticket-number-container {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-right: 15px;
    letter-spacing: 0.5px;
    min-width: 100px;
    text-align: center;
}

.ticket-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ticket-date {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.ticket-date i {
    margin-right: 5px;
    font-size: 14px;
}

.ticket-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ticket-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.ticket-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.ticket-source {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.ticket-source.referral {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.ticket-source.purchase {
    background: rgba(0, 136, 204, 0.1);
    color: var(--primary-color);
}

/* Past tickets section */
.past-tickets {
    margin-top: 30px;
}

.past-ticket-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.past-ticket-number {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}

.past-ticket-date {
    font-size: 11px;
    color: var(--text-secondary);
    margin-right: 10px;
}

.past-ticket-result {
    font-size: 12px;
    font-weight: 500;
}

.past-ticket-result.winner {
    color: var(--success-color);
}

.past-ticket-result.non-winner {
    color: var(--text-secondary);
}

.past-ticket-prize {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--warning-color);
}

/* Ticket and Transaction Styling */
.ticket-list, .transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-list .ticket-number {
    margin-right: 15px;
}

.ticket, .transaction {
    background: var(--card-background);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.transaction .type {
    font-weight: 600;
}

.transaction .date {
    font-size: 12px;
    color: var(--text-secondary);
}

.transaction .amount {
    font-weight: 600;
}

/* Transaction styling enhancements */
.transaction .amount.positive {
    color: var(--success-color);
}

.transaction .amount.negative {
    color: var(--error-color);
}

.transaction {
    transition: all 0.2s ease;
}

.transaction:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Transaction filter styling */
#transaction-filter {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: var(--card-background);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

#transaction-filter:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Empty state styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-state .empty-icon i {
    font-size: 40px;
    color: var(--primary-color);
}

/* Ticket styling enhancements */
.ticket {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ticket-number {
    font-size: 18px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.ticket-info {
    flex: 1;
}

.draw-date {
    font-weight: 500;
    margin-bottom: 4px;
}

.purchase-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ticket-price {
    font-size: 14px;
    margin-bottom: 15px;
}

.price-value {
    color: var(--success-color);
    font-weight: 500;
}

.ticket-status {
    display: flex;
    align-items: center;
}

.status-badge {
    background-color: rgba(0, 136, 204, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.status-badge.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* Update ticket count badge */
#tickets-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Rewards Page Styling */
.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.reward-item {
    background: var(--card-background);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.reward-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reward-item .position {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reward-item .position-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.reward-item .user-address {
    font-weight: 500;
}

.reward-item .reward-amount {
    font-weight: 600;
    color: var(--success-color);
}

.distribution-breakdown {
    margin-top: 15px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item .position {
    font-weight: 500;
}

.breakdown-item .percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.rewards-info-text {
    margin-top: 25px;
}

.rewards-info-text h3 {
    margin-bottom: 10px;
}

.rewards-info-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* Adjust footer nav for 5 items */
.footer-nav .nav-tab {
    font-size: 11px;
}

.footer-nav .nav-tab i {
    font-size: 20px;
}

.wallet {
    display: flex;
    align-items: center;
}

/* TonConnect butonunu özelleştirme */
#tonConnectButton {
    margin-left: auto;
}

#tonConnectButton button {
    background: #000 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

#tonConnectButton button:hover {
    background: rgba(0, 0, 0, 0.35) !important;
    transform: translateY(-1px) !important;
}

#tonConnectButton button img {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
}

/* Cüzdan bağlantı uyarısı */
.wallet-warning {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error-color);
    padding: 12px;
    margin: 15px 0;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-warning i.ri-error-warning-line {
    color: var(--error-color);
    font-size: 20px;
}

.wallet-warning span {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.close-warning {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-warning:hover {
    color: var(--text-primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Disabled buton stili */
.primary-button.disabled {
    background-color: rgba(0, 136, 204, 0.5);
    cursor: not-allowed;
}

/* Cüzdan gerektiren buton stili */
.primary-button.wallet-required {
    position: relative;
}

.primary-button.wallet-required::before {
    content: "Connect Wallet First";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 193, 7, 0.9);
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.primary-button.wallet-required:hover::before {
    opacity: 1;
}

/* Cüzdan bağlantı butonunu vurgulama */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 136, 204, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

.highlight-button {
    animation: pulse 1s infinite;
}

/* iziToast özelleştirmeleri */
.iziToast {
    font-family: 'Inter', sans-serif !important;
    border-radius: 0 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.iziToast.iziToast-color-dark {
    background: rgba(33, 33, 33, 0.95) !important;
}

.iziToast-wrapper {
    top: 0 !important;
    right: 0 !important;
    padding: 0 !important;
}

.iziToast-wrapper-topRight {
    top: 0 !important;
    right: 0 !important;
}

.iziToast-title {
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    color: #ffffff !important;
}

.iziToast-message {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.iziToast-icon {
    font-size: 24px !important;
    color: #ffffff !important;
}

.iziToast-close {
    opacity: 0.7 !important;
}

.iziToast-close:hover {
    opacity: 1 !important;
}

.iziToast-progressBar > div {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Başarılı mesajlar için yeşil arka plan */
.iziToast.iziToast-color-green {
    background: rgba(38, 166, 91, 1) !important;
}

/* Hata mesajları için kırmızı arka plan */
.iziToast.iziToast-color-red {
    background: rgba(239, 68, 68, 1) !important;
}

/* Empty tickets state */
.empty-tickets-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-tickets-state .empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-tickets-state .empty-icon i {
    font-size: 40px;
    color: var(--primary-color);
}

.empty-tickets-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-tickets-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 300px;
}

.empty-tickets-state .primary-button {
    max-width: 220px;
}

/* Top Players Section */
.top-players {
    margin-top: 30px;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.player-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-rank {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.player-stats {
    display: flex;
    font-size: 12px;
    color: var(--text-secondary);
}

.player-stats span {
    margin-right: 15px;
}

.player-stats span:last-child {
    color: var(--success-color);
    font-weight: 500;
}

.action-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}


/* Referral Section Styling */
#referrals-page {
    margin-bottom: 30px;
}

#referrals-page h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-align: center;
}

.referral-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.referral-header {
    text-align: center;
    margin-bottom: 20px;
}

.referral-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.referral-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.referral-code-container {
    margin-bottom: 20px;
}

.referral-code-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.referral-code-box, .referral-link-box {
    display: flex;
    align-items: center;
    background: rgba(0, 136, 204, 0.05);
    border: 1px solid rgba(0, 136, 204, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.referral-link-box {
    display: flex;
    align-items: center;
    background: rgba(0, 136, 204, 0.05);
    border: 1px solid rgba(0, 136, 204, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.referral-link-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    width: 100%;
}

.referral-link-input:focus {
    outline: none;
}

#referrals-page .copy-button {
    background: rgba(0, 136, 204, 0.1);
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 0;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#referrals-page .copy-button:hover {
    background: rgba(0, 136, 204, 0.2);
}

#referrals-page .copy-button i {
    font-size: 18px;
}

#referrals-page .referral-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#referrals-page .stat-item {
    text-align: center;
}

#referrals-page .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

#referrals-page .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

#referrals-page .share-buttons {
    display: flex;
    gap: 10px;
}

#referrals-page .share-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

#referrals-page .share-button.telegram {
    background: #0088cc;
    color: white;
}

#referrals-page .share-button.twitter {
    background: #000000;
    color: white;
}

#referrals-page .share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#referrals-page .share-button i {
    font-size: 18px;
}

/* Referral bonus ticket styling */
.ticket-item.referral-bonus {
    border-left: 3px solid #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.past-ticket-item.referral-bonus {
    border-left: 3px solid #4CAF50;
    background: rgba(76, 175, 80, 0.03);
}