* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    margin-top: 40px;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 40px rgba(200, 200, 255, 0.3);
    text-align: center;
    pointer-events: none;
}

.button-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 40px 20px;
    max-width: 500px;
    width: 100%;
}

.nav-button {
    width: 100%;
    max-width: 400px;
    padding: 20px 40px;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #fff;
    background: rgba(102, 102, 102, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(200, 200, 255, 0.05);
    text-transform: uppercase;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(200, 200, 255, 0.2);
    transform: translateY(-3px);
}

.nav-button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(200, 200, 255, 0.15);
}

/* Clickable title */
.clickable-title {
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.clickable-title:hover {
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.8),
        0 0 35px rgba(255, 255, 255, 0.6),
        0 0 50px rgba(200, 200, 255, 0.5);
    transform: scale(1.05);
}

/* Stats page styles */
.stats-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
}

.stats-box {
    background: rgba(102, 102, 102, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(200, 200, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.username-input {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 5px rgba(255, 255, 255, 0.05),
        inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.username-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.username-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(200, 200, 255, 0.1),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.username-input:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 100, 100, 0.4);
}

.search-button {
    width: 100%;
    padding: 18px 40px;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #fff;
    background: rgba(102, 102, 102, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(200, 200, 255, 0.05);
    text-transform: uppercase;
    margin-top: 8px;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(200, 200, 255, 0.2);
    transform: translateY(-3px);
}

.search-button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(200, 200, 255, 0.15);
}

/* Results box styles */
.results-box {
    background: rgba(102, 102, 102, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(200, 200, 255, 0.05);
    position: relative;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.selected-username {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(200, 200, 255, 0.3);
}

.user-switch-buttons {
    display: flex;
    gap: 8px;
}

.user-switch-btn {
    padding: 8px 16px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.user-switch-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.user-switch-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.2),
        0 0 16px rgba(200, 200, 255, 0.1);
}

.user-switch-btn:active {
    transform: scale(0.95);
}

.new-search-btn {
    padding: 8px 16px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(100, 150, 255, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.new-search-btn:hover {
    background: rgba(100, 150, 255, 0.3);
    border-color: rgba(100, 150, 255, 0.6);
    color: #fff;
    box-shadow: 
        0 0 8px rgba(100, 150, 255, 0.3),
        0 0 16px rgba(100, 150, 255, 0.1);
    transform: translateY(-2px);
}

.new-search-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 0 4px rgba(100, 150, 255, 0.2);
}

.results-content {
    min-height: 200px;
    width: 100%;
    overflow: hidden;
}

/* Guild info styles */
.guild-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.guild-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.stat-value {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(200, 200, 255, 0.3);
}

.members-list {
    width: 100%;
}

.members-title {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.members-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.members-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.members-table td {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.members-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.member-rank {
    width: 50px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.member-name {
    font-weight: 400;
}

.member-waves {
    text-align: right;
    font-weight: 300;
}

.members-table .player-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.members-table .player-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Verified badge styles */
.verified-badge-img {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    height: 18px;
    width: auto;
    filter: drop-shadow(0 0 4px rgba(76, 175, 80, 0.8)) drop-shadow(0 0 8px rgba(76, 175, 80, 0.4));
    transition: all 0.3s ease;
}

.admin-badge {
    filter: drop-shadow(0 0 4px rgba(100, 150, 255, 0.8)) drop-shadow(0 0 8px rgba(100, 150, 255, 0.4));
}

.verified-badge {
    filter: drop-shadow(0 0 4px rgba(76, 175, 80, 0.8)) drop-shadow(0 0 8px rgba(76, 175, 80, 0.4));
}

.verified-badge-img:hover {
    filter: drop-shadow(0 0 6px rgba(76, 175, 80, 1)) drop-shadow(0 0 12px rgba(76, 175, 80, 0.6));
    transform: scale(1.1);
}

.admin-badge:hover {
    filter: drop-shadow(0 0 6px rgba(100, 150, 255, 1)) drop-shadow(0 0 12px rgba(100, 150, 255, 0.6));
}

.name-cell .verified-badge-img,
.member-name .verified-badge-img,
.selected-username .verified-badge-img,
.guild-name .verified-badge-img {
    margin-left: 8px;
}

.user-switch-btn .verified-badge-img {
    margin-left: 4px;
    height: 14px;
}

/* Tracking button styles */
.tracking-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.track-button {
    padding: 16px 32px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(102, 102, 102, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(200, 200, 255, 0.05);
    text-transform: uppercase;
}

.track-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(200, 200, 255, 0.2);
    transform: translateY(-3px);
}

.track-button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(200, 200, 255, 0.15);
}

/* Graph container styles */
.graph-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    position: relative;
}

.time-range-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.time-range-btn {
    padding: 8px 16px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.time-range-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.time-range-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.2),
        0 0 16px rgba(200, 200, 255, 0.1);
}

.time-range-btn:active {
    transform: scale(0.95);
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.chart-wrapper canvas {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.empty-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    width: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}
    vertical-align: middle;
    height: 18px;
    width: auto;
    filter: drop-shadow(0 0 4px rgba(76, 175, 80, 0.8)) drop-shadow(0 0 8px rgba(76, 175, 80, 0.4));
    transition: all 0.3s ease;
}

.admin-badge {
    filter: drop-shadow(0 0 4px rgba(100, 150, 255, 0.8)) drop-shadow(0 0 8px rgba(100, 150, 255, 0.4));
}

.verified-badge {
    filter: drop-shadow(0 0 4px rgba(76, 175, 80, 0.8)) drop-shadow(0 0 8px rgba(76, 175, 80, 0.4));
}

.verified-badge-img:hover {
    filter: drop-shadow(0 0 6px rgba(76, 175, 80, 1)) drop-shadow(0 0 12px rgba(76, 175, 80, 0.6));
    transform: scale(1.1);
}

.admin-badge:hover {
    filter: drop-shadow(0 0 6px rgba(100, 150, 255, 1)) drop-shadow(0 0 12px rgba(100, 150, 255, 0.6));
}

.name-cell .verified-badge-img,
.member-name .verified-badge-img,
.selected-username .verified-badge-img,
.guild-name .verified-badge-img {
    margin-left: 8px;
}

.user-switch-btn .verified-badge-img {
    margin-left: 4px;
    height: 14px;
}

/* Tracking button styles */
.tracking-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.track-button {
    padding: 16px 32px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(102, 102, 102, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(200, 200, 255, 0.05);
    text-transform: uppercase;
}

.track-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(200, 200, 255, 0.2);
    transform: translateY(-3px);
}

.track-button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(200, 200, 255, 0.15);
}

/* Graph container styles */
.graph-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    position: relative;
}

.time-range-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.time-range-btn {
    padding: 8px 16px;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.time-range-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.time-range-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.2),
        0 0 16px rgba(200, 200, 255, 0.1);
}

.time-range-btn:active {
    transform: scale(0.95);
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.chart-wrapper canvas {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.empty-graph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    width: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}