/* --- GENEL TEMA --- */
body {
    background: #0f172a;
    font-family: 'Segoe UI', Roboto, sans-serif;
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; margin: 0; color: white;
}

.top-bar {
    position: fixed; top: 0; width: 100%; background: #1e293b;
    padding: 12px; text-align: center; border-bottom: 2px solid #fbbf24;
    z-index: 200; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.top-balance { color: #fbbf24; font-weight: bold; font-size: 1.1rem; }

.container {
    width: 340px; background: #1e293b; padding: 25px;
    text-align: center; border-radius: 24px; border: 2px solid #fbbf24;
    margin-top: 60px; margin-bottom: 80px;
}

/* --- ÇARK (WHEEL) TASARIMI --- */
.spin-container { 
    position: relative; width: 300px; height: 300px; margin: 20px auto; 
}

#wheel { 
    width: 100%; height: 100%; border-radius: 50%; 
    border: 8px solid #334155; position: relative; 
    transition: transform 4s cubic-bezier(0.15, 0, 0.15, 1); 
    overflow: visible; /* Sayıların taşması için önemli */
    background: conic-gradient(
        #fbbf24 0deg 36deg,
        #1e293b 36deg 72deg,
        #fbbf24 72deg 108deg,
        #1e293b 108deg 144deg,
        #fbbf24 144deg 180deg,
        #1e293b 180deg 216deg,
        #fbbf24 216deg 252deg,
        #1e293b 252deg 288deg,
        #fbbf24 288deg 324deg,
        #1e293b 324deg 360deg
    );
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

#wheel::after {
    content: ''; position: absolute; width: 20px; height: 20px;
    background: white; border-radius: 50%; top: 50%; left: 50%;
    transform: translate(-50%, -50%); z-index: 30;
}

.pointer { 
    position: absolute; top: -20px; left: 50%; 
    transform: translateX(-50%); font-size: 40px; 
    color: #fbbf24; z-index: 40; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.segment {
    position: absolute; top: 50%; left: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    z-index: 100; pointer-events: none;
}

.segment span {
    font-weight: 900; font-size: 1.3rem; color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* --- DÜĞMELER VE MENÜ --- */
.primary-btn {
    background: linear-gradient(to right, #f59e0b, #d97706);
    color: white; border: none; padding: 16px; border-radius: 12px;
    font-size: 1rem; font-weight: bold; cursor: pointer; width: 100%;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.primary-btn:disabled { background: #475569; cursor: not-allowed; }

.footer-menu {
    position: fixed; bottom: 0; width: 100%; background: #1e293b;
    display: flex; justify-content: space-around; padding: 12px 0;
    border-top: 2px solid #fbbf24; z-index: 100;
}

.menu-item { text-decoration: none; color: #94a3b8; display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; }
.menu-item.active { color: #fbbf24; }

.balance-block { background: #334155; padding: 20px; border-radius: 20px; margin-bottom: 25px; border: 1px solid #475569; }
.amount { font-size: 2.4rem; font-weight: 800; color: #ffffff; }

.invite-box { background: #0f172a; padding: 15px; border-radius: 12px; border: 1px dashed #fbbf24; color: #fbbf24; margin: 20px 0; font-family: monospace; word-break: break-all; }

/* --- TEMİZ VE PROFESYONEL BUTON --- */
button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    /* Gölgeyi daha sıkı ve turuncu tonlu yapıyoruz ki kirli durmasın */
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3); 
    transition: all 0.2s ease;
    margin-top: 20px; /* Üstteki input ile arayı açar */
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.5);
}

button:active {
    transform: translateY(1px);
    filter: brightness(0.9); /* Tıklayınca hafif kararır */
}