    @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    min-height: 100vh;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.6) contrast(1.1);
}

.overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(15,35,80,0.3), rgba(0,0,0,0.9) 70%);
    z-index: 1;
}

.wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, rgba(8,12,20,0.95), rgba(15,20,35,0.92));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(66,135,245,0.25);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(66,135,245,0.15);
}

.logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #4287f5, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
}

.header-resources {
    display: flex;
    gap: 20px;
    align-items: center;
}

.resource-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(66,135,245,0.2);
    transition: all 0.3s;
}

.resource-mini:hover {
    background: rgba(66,135,245,0.08);
    border-color: rgba(66,135,245,0.4);
}

.resource-mini-icon {
    font-size: 20px;
}

.resource-mini-info {
    display: flex;
    flex-direction: column;
}

.resource-mini-value {
    font-size: 14px;
    font-weight: 700;
    color: #4287f5;
}

.resource-mini-label {
    font-size: 8px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clan-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.clan-tag-table {
    padding: 3px 8px;
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(66,135,245,0.3);
    background: rgba(66,135,245,0.1);
    color: #4287f5;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: rgba(66,135,245,0.2);
    border-color: #4287f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66,135,245,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #4287f5, #2563eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(66,135,245,0.3);
}

.btn-danger {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border-color: rgba(239,68,68,0.3);
}

nav {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 40px;
}

nav a {
    padding: 15px 25px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: #4287f5;
    border-bottom-color: #4287f5;
    background: rgba(66,135,245,0.05);
}

nav a.active {
    color: #4287f5;
    border-bottom-color: #4287f5;
    background: rgba(66,135,245,0.1);
}

main {
    flex: 1;
    padding: 30px 40px;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background: linear-gradient(135deg, rgba(8,12,20,0.92), rgba(15,20,35,0.88));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(66,135,245,0.25);
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.card-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4287f5;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(66,135,245,0.2);
}

.pilot-info {
    text-align: center;
}

.pilot-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border: 3px solid rgba(66,135,245,0.4);
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #4287f5;
    position: relative;
    overflow: hidden;
}

.pilot-avatar::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(transparent, rgba(66,135,245,0.3), transparent 30%);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.pilot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.pilot-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pilot-id {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.pilot-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.stat-box {
    background: rgba(66,135,245,0.08);
    border: 1px solid rgba(66,135,245,0.2);
    padding: 12px;
    text-align: center;
}

.stat-label {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 14px;
    color: #4287f5;
    font-weight: 700;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(66,135,245,0.2);
}

.company-logo {
    width: 40px;
    height: 40px;
    background: rgba(66,135,245,0.2);
    border: 1px solid rgba(66,135,245,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.company-details {
    flex: 1;
}

.company-name {
    font-size: 11px;
    font-weight: 600;
}

.clan-name {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.premium-status {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(245,158,11,0.1));
    border: 1px solid rgba(251,191,36,0.3);
    text-align: center;
}

.premium-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fbbf24;
    margin-bottom: 8px;
}

.premium-expires {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
}

.game-logs {
    max-height: 450px;
    overflow-y: auto;
}

.game-logs::-webkit-scrollbar {
    width: 6px;
}

.game-logs::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

.game-logs::-webkit-scrollbar-thumb {
    background: rgba(66,135,245,0.3);
    border-radius: 3px;
}

.game-logs::-webkit-scrollbar-thumb:hover {
    background: rgba(66,135,245,0.5);
}

.log-item {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.3);
    border-left: 3px solid rgba(66,135,245,0.5);
    font-size: 11px;
    line-height: 1.6;
    transition: all 0.3s;
}

.log-item:hover {
    background: rgba(66,135,245,0.05);
    border-left-color: #4287f5;
}

.log-item.kill {
    border-left-color: rgba(239,68,68,0.5);
}

.log-item.death {
    border-left-color: rgba(239,68,68,0.7);
}

.log-item.event {
    border-left-color: rgba(251,191,36,0.5);
}

.log-time {
    color: rgba(255,255,255,0.4);
    font-size: 9px;
    margin-bottom: 4px;
}

.log-text {
    color: rgba(255,255,255,0.8);
}

.log-text .player {
    color: #4287f5;
    font-weight: 600;
}

.log-text .enemy {
    color: #ef4444;
    font-weight: 600;
}

.log-text .reward {
    color: #fbbf24;
    font-weight: 600;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(66,135,245,0.2);
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: rgba(66,135,245,0.2);
    border-color: #4287f5;
    color: #4287f5;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scrollable-list {
    max-height: 380px;
    overflow-y: auto;
}

.scrollable-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

.scrollable-list::-webkit-scrollbar-thumb {
    background: rgba(66,135,245,0.3);
    border-radius: 3px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover {
    background: rgba(66,135,245,0.5);
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(66,135,245,0.15);
    transition: all 0.3s;
}

.list-item:hover {
    background: rgba(66,135,245,0.08);
    border-color: rgba(66,135,245,0.3);
    transform: translateX(5px);
}

.online-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.list-info {
    flex: 1;
}

.list-name {
    font-size: 11px;
    font-weight: 600;
}

.list-detail {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-detail img {
    width: 26px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(66,135,245,0.5));
}

.rank-badge-inline {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(66,135,245,0.2), rgba(37,99,235,0.15));
    border: 1px solid rgba(66,135,245,0.3);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    color: #4287f5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.clan-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 2px;
    font-size: 9px;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-role {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(220,38,38,0.15));
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(239,68,68,0.3);
}

.rankings-section {
    margin-top: 30px;
}

.ranking-table {
    display: block;
    width: 100%;
}

.ranking-table thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.ranking-table tbody {
    display: block;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
}

.ranking-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.ranking-table tbody::-webkit-scrollbar {
    width: 8px;
}

.ranking-table tbody::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

.ranking-table tbody::-webkit-scrollbar-thumb {
    background: rgba(66,135,245,0.3);
    border-radius: 4px;
}

.ranking-table th {
    padding: 15px;
    text-align: center;  /* DEĞİŞTİ */
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4287f5;
    font-weight: 700;
    vertical-align: middle;
}

.ranking-table td {
    padding: 15px;
    font-size: 12px;
    border-bottom: 1px solid rgba(66,135,245,0.1);
    vertical-align: middle;
    text-align: center;  /* DEĞİŞTİ */
}

.ranking-table tbody tr {
    background: rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.ranking-table tbody tr:hover {
    background: rgba(66,135,245,0.08);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(66,135,245,0.2);
    border: 1px solid rgba(66,135,245,0.3);
    font-weight: 700;
    color: #4287f5;
}

.rank-badge.gold {
    background: linear-gradient(135deg, rgba(251,191,36,0.3), rgba(245,158,11,0.2));
    border-color: #fbbf24;
    color: #fbbf24;
}

.rank-badge.silver {
    background: rgba(192,192,192,0.2);
    border-color: #c0c0c0;
    color: #c0c0c0;
}

.rank-badge.bronze {
    background: rgba(205,127,50,0.2);
    border-color: #cd7f32;
    color: #cd7f32;
}

.rank-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(66,135,245,0.3);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.player-name {
    font-weight: 600;
    color: #fff;
}

.score-value {
    font-weight: 700;
    color: #4287f5;
    font-size: 14px;
}

footer {
    background: linear-gradient(135deg, rgba(8,12,20,0.95), rgba(15,20,35,0.92));
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(66,135,245,0.25);
    padding: 30px 40px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #4287f5;
}

.footer-text {
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    letter-spacing: 1px;
}

@media (max-width: 1400px) {
    .dashboard-layout {
        grid-template-columns: 260px 1fr 280px;
    }
    
    .header-resources {
        gap: 12px;
    }
    
    .resource-mini {
        padding: 6px 12px;
    }
}

@media (max-width: 1100px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .header-resources {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    main {
        padding: 20px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .header-resources {
        width: 100%;
        justify-content: space-between;
    }

    .resource-mini {
        flex: 1;
    }
	.ranking-table td:nth-child(3) {
    position: relative;
    left: -60px; /* Player Name'i sola kaydır */
}
.log-item.death {
    background: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
}

.log-item.death .player {
    color: #ff4444;
}
.event-name-active {
    color: #22c55e;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.event-status-gold {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(251, 191, 36, 0.2) 100%);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.status-dot-gold {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    margin-right: 6px;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(251, 191, 36, 0);
    }
}

}
/* ============ REFERRAL SYSTEM STYLES ============ */

.referral-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
    margin-bottom: 30px;
}

.referral-code-box {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(66,135,245,0.1), rgba(37,99,235,0.05));
    border: 2px solid rgba(66,135,245,0.3);
    border-radius: 8px;
}

.code-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

.code-display {
    font-size: 42px;
    font-weight: 900;
    color: #4287f5;
    letter-spacing: 12px;
    margin: 25px 0;
    text-shadow: 0 0 20px rgba(66,135,245,0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(66,135,245,0.3); }
    to { text-shadow: 0 0 30px rgba(66,135,245,0.8); }
}

.code-input-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.code-input-group input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(66,135,245,0.3);
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    text-align: center;
}

.referral-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(251,191,36,0.1);
    border-left: 3px solid #fbbf24;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    text-align: left;
    line-height: 1.6;
}

.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-box-large {
    text-align: center;
    padding: 25px 15px;
    background: rgba(66,135,245,0.08);
    border: 1px solid rgba(66,135,245,0.2);
    border-radius: 8px;
    transition: all 0.3s;
}

.stat-box-large:hover {
    background: rgba(66,135,245,0.15);
    border-color: rgba(66,135,245,0.4);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-box-large .stat-value {
    font-size: 28px;
    font-weight: 900;
    color: #4287f5;
    margin-bottom: 5px;
}

.stat-box-large .stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}

.reward-tiers-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.reward-tiers-container::-webkit-scrollbar {
    width: 6px;
}

.reward-tiers-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

.reward-tiers-container::-webkit-scrollbar-thumb {
    background: rgba(66,135,245,0.3);
    border-radius: 3px;
}

.tier-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: all 0.3s;
}

.tier-item.unlocked {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05));
    border-color: #22c55e;
    border-left-color: #22c55e;
}

.tier-item:hover {
    transform: translateX(5px);
}

.tier-icon {
    font-size: 28px;
    min-width: 40px;
    text-align: center;
}

.tier-info {
    flex: 1;
}

.tier-milestone {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.tier-rewards {
    display: flex;
    gap: 15px;
    font-size: 11px;
}

.reward-uri {
    color: #4287f5;
    font-weight: 600;
}

.reward-cred {
    color: #fbbf24;
    font-weight: 600;
}

.tier-status {
    min-width: 80px;
    text-align: right;
}

.status-unlocked {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(34,197,94,0.2);
    border: 1px solid #22c55e;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
}

.status-locked {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.claim-button-container {
    margin-top: 25px;
    text-align: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 13px;
    font-weight: 700;
}

.referral-list {
    max-height: 400px;
    overflow-y: auto;
}

.referral-list::-webkit-scrollbar {
    width: 6px;
}

.referral-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

.referral-list::-webkit-scrollbar-thumb {
    background: rgba(66,135,245,0.3);
    border-radius: 3px;
}

.referral-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(66,135,245,0.1);
    border-left: 3px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    transition: all 0.3s;
}

.referral-list-item.active {
    border-left-color: #22c55e;
    background: rgba(34,197,94,0.05);
}

.referral-list-item:hover {
    background: rgba(66,135,245,0.08);
    transform: translateX(3px);
}

.ref-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.referral-list-item.active .ref-status-dot {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

.ref-info {
    flex: 1;
}

.ref-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.ref-details {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
}

.ref-date {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    min-width: 80px;
    text-align: center;
}

.ref-badge {
    min-width: 90px;
    text-align: right;
}

.badge-active, .badge-pending {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-active {
    background: rgba(34,197,94,0.2);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.badge-pending {
    background: rgba(251,191,36,0.2);
    border: 1px solid #fbbf24;
    color: #fbbf24;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.empty-subtext {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: rgba(8,12,20,0.95);
    border: 1px solid rgba(66,135,245,0.3);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.1));
}

.toast-warning {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(251,191,36,0.1));
}

.toast-error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.1));
}

.toast-info {
    border-color: #4287f5;
    background: linear-gradient(135deg, rgba(66,135,245,0.2), rgba(66,135,245,0.1));
}

@media (max-width: 1200px) {
    .referral-layout {
        grid-template-columns: 1fr;
    }
    
    .referral-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .code-display {
        font-size: 28px;
        letter-spacing: 6px;
    }
    
    .referral-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .code-input-group {
        flex-direction: column;
    }
}