/* Ashes of Creation Style Theme */
/* Dark, elegant, fantasy-inspired design without rounded corners */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a url('bg.jpg') center center fixed;
    background-size: cover;
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin: 30px 0 40px 0;
}

.logo-container img {
    max-width: 300px;
    height: auto;
}

/* Button Styles */
.btn {
    padding: 10px 24px;
    border: 1px solid #3a3a3a;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-color: #d4af37;
    color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #2a4a2a 0%, #3a6a3a 100%);
    border-color: #4a8a4a;
    color: #e0e0e0;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a6a3a 0%, #4a8a4a 100%);
    border-color: #5aaa5a;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(74, 138, 74, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #2a2a3a 0%, #3a3a4a 100%);
    border-color: #4a4a5a;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3a3a4a 0%, #4a4a5a 100%);
    border-color: #5a5a6a;
}

.btn-danger {
    background: linear-gradient(135deg, #4a2a2a 0%, #6a3a3a 100%);
    border-color: #8a4a4a;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #6a3a3a 0%, #8a4a4a 100%);
    border-color: #aa5a5a;
    box-shadow: 0 0 20px rgba(138, 74, 74, 0.4);
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid;
    background: rgba(20, 20, 25, 0.95);
}

.alert-error {
    border-color: #8a4a4a;
    color: #ffaaaa;
    background: rgba(74, 42, 42, 0.9);
}

.alert-success {
    border-color: #4a8a4a;
    color: #aaffaa;
    background: rgba(42, 74, 42, 0.9);
}

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* Profile Section */
.profile-section {
    background: rgba(15, 15, 20, 0.95);
    padding: 30px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.profile-section h2 {
    color: #d4af37;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #3a3a3a;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-info {
    background: rgba(20, 20, 25, 0.9);
    padding: 20px;
    border: 1px solid #2a2a2a;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 12px;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-item strong {
    color: #d4af37;
    margin-right: 10px;
    font-weight: 600;
}

/* Form Styles */
.profile-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3a3a3a;
    background: rgba(20, 20, 25, 0.95);
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(25, 25, 30, 0.95);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #e0e0e0;
}

/* Custom Select Dropdown with Images */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid #3a3a3a;
    background: rgba(20, 20, 25, 0.95);
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: #d4af37;
    background: rgba(25, 25, 30, 0.95);
}

.custom-select-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-select-arrow {
    color: #aaaaaa;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-select-wrapper.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(20, 20, 25, 0.98);
    border: 1px solid #3a3a3a;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #2a2a2a;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: rgba(30, 30, 35, 0.95);
}

.custom-select-option.selected {
    background: rgba(42, 74, 42, 0.5);
}

.custom-select-option.selected:hover {
    background: rgba(42, 74, 42, 0.7);
}

.archetype-select-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Slider Styles */
.slider {
    width: 100%;
    height: 6px;
    background: #2a2a2a;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #3a3a3a;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #d4af37;
    cursor: pointer;
    border: 1px solid #3a3a3a;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.slider::-webkit-slider-thumb:hover {
    background: #e4bf47;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #d4af37;
    cursor: pointer;
    border: 1px solid #3a3a3a;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.slider::-moz-range-thumb:hover {
    background: #e4bf47;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

/* LFG Section */
.lfg-section {
    background: rgba(15, 15, 20, 0.95);
    padding: 30px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.lfg-section h2 {
    color: #d4af37;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #3a3a3a;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Server Selection */
.server-selection {
    margin-top: 20px;
}

.server-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.server-item {
    background: rgba(20, 20, 25, 0.95);
    padding: 15px;
    border: 1px solid #3a3a3a;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid #4a4a5a;
    text-align: center;
}

.server-item:hover {
    background: rgba(30, 30, 35, 0.98);
    border-color: #d4af37;
    border-left-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.server-item.selected {
    background: rgba(42, 74, 42, 0.9);
    border-color: #5aaa5a;
    border-left-color: #5aaa5a;
    box-shadow: 0 0 20px rgba(90, 170, 90, 0.5);
}

.server-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 16px;
}

/* POI List */
.poi-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.poi-item {
    background: rgba(20, 20, 25, 0.95);
    padding: 15px;
    border: 1px solid #3a3a3a;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid #4a4a5a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.poi-item:hover {
    background: rgba(30, 30, 35, 0.98);
    border-color: #d4af37;
    border-left-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.poi-item.selected {
    background: rgba(42, 74, 42, 0.9);
    border-color: #5aaa5a;
    border-left-color: #5aaa5a;
    box-shadow: 0 0 20px rgba(90, 170, 90, 0.3);
}

.poi-name {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 5px;
    font-size: 16px;
}

.poi-level {
    color: #aaaaaa;
    font-size: 13px;
}

.poi-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poi-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

/* Group Item Styles */
.group-item {
    background: rgba(20, 20, 25, 0.95);
    padding: 20px;
    border: 1px solid #3a3a3a;
    margin-bottom: 20px;
    border-left: 3px solid #4a4a5a;
    transition: all 0.3s ease;
}

.group-item:hover {
    background: rgba(25, 25, 30, 0.98);
    border-color: #4a4a5a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.group-header {
    margin-bottom: 15px;
}

.group-poi {
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 5px;
}

.group-level {
    color: #aaaaaa;
    font-size: 14px;
}

.group-requirements {
    color: #e0e0e0;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid #2a2a2a;
    font-size: 14px;
}

.group-needed {
    margin-top: 8px;
    color: #ff8888;
    font-weight: 500;
    padding: 8px;
    background: rgba(74, 42, 42, 0.75);
    border: 1px solid #6a3a3a;
    font-size: 14px;
}

.group-members {
    color: #aaaaaa;
    margin-bottom: 15px;
    font-size: 14px;
}

.group-members-list {
    margin-top: 15px;
    padding: 15px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid #2a2a2a;
}

.group-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-join {
    padding: 8px 20px;
    border: 1px solid #4a8a4a;
    background: linear-gradient(135deg, #2a4a2a 0%, #3a6a3a 100%);
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-join:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a6a3a 0%, #4a8a4a 100%);
    border-color: #5aaa5a;
    box-shadow: 0 0 15px rgba(74, 138, 74, 0.4);
}

.btn-join:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-toggle-members {
    background: linear-gradient(135deg, #2a2a3a 0%, #3a3a4a 100%);
    border: 1px solid #4a4a5a;
    color: #e0e0e0;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-toggle-members:hover {
    background: linear-gradient(135deg, #3a3a4a 0%, #4a4a5a 100%);
    border-color: #5a5a6a;
}

/* Your Group View */
.your-group-view {
    margin-top: 20px;
}

.group-info-card {
    background: rgba(20, 20, 25, 0.95);
    padding: 25px;
    border: 1px solid #3a3a3a;
    border-left: 3px solid #d4af37;
}

.group-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3a3a3a;
}

.group-header-info h3 {
    color: #d4af37;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.group-level-info {
    color: #aaaaaa;
    margin: 5px 0 0 0;
}

.badge-admin, .badge-member, .badge-you, .badge-creator {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.badge-admin {
    background: rgba(74, 74, 138, 0.75);
    color: #aaaaee;
    border-color: #5a5aaa;
}

.badge-member {
    background: rgba(74, 74, 74, 0.75);
    color: #aaaaaa;
    border-color: #5a5a5a;
}

.badge-you {
    background: rgba(74, 138, 74, 0.75);
    color: #aaffaa;
    border-color: #5aaa5a;
    margin-left: 8px;
}

.badge-creator {
    background: rgba(212, 175, 55, 0.65);
    color: #ffd700;
    border-color: #d4af37;
    margin-left: 8px;
}

.group-details {
    margin: 20px 0;
}

.detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

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

.detail-item strong {
    color: #d4af37;
    margin-right: 10px;
    font-weight: 600;
}

.status-open {
    color: #5aaa5a;
    font-weight: 600;
}

.status-full {
    color: #ff8888;
    font-weight: 600;
}

.status-closed {
    color: #888888;
    font-weight: 600;
}

.group-members-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #3a3a3a;
}

.group-members-section h4 {
    margin-bottom: 15px;
    color: #d4af37;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-card {
    background: rgba(15, 15, 20, 0.9);
    padding: 15px;
    border: 1px solid #2a2a2a;
    border-left: 3px solid #d4af37;
}

.member-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.member-info strong {
    color: #e0e0e0;
    font-size: 16px;
}

.member-details {
    color: #aaaaaa;
    font-size: 0.9em;
}

.archetype-icon-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archetype-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}

.archetype-icon-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
}

.admin-actions, .member-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Group Form */
.group-form {
    margin-top: 20px;
}

.member-item {
    padding: 8px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid #2a2a2a;
    margin-bottom: 5px;
}

/* Login/Register Forms */
.auth-container, .login-container, .register-container {
    max-width: 450px;
    margin: 40px auto;
    background: rgba(15, 15, 20, 0.95);
    padding: 40px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.auth-container h1, .login-container h1, .register-container h1 {
    color: #d4af37;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
    min-height: 44px;
}

.auth-container input[type="text"]:focus,
.auth-container input[type="email"]:focus,
.auth-container input[type="password"]:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Tabs for Login/Register */
.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #3a3a3a;
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: rgba(20, 20, 25, 0.8);
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #aaaaaa;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-button:hover {
    color: #d4af37;
    background: rgba(30, 30, 35, 0.9);
}

.tab-button.active {
    color: #d4af37;
    border-bottom-color: #d4af37;
    background: rgba(15, 15, 20, 0.95);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Matchmaking Spinner */
.matchmaking-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-circle-large {
    width: 120px;
    height: 120px;
    border: 5px solid rgba(212, 175, 55, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Role Slots */
.role-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.role-slots-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.role-slot {
    background: rgba(20, 20, 25, 0.95);
    border: 2px solid #3a3a3a;
    padding: 15px;
    text-align: left;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.role-slot.filled {
    border-color: #4a8a4a;
    background: rgba(42, 74, 42, 0.3);
}

.role-slot.current-player {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.role-slot.current-player::before {
    content: '';
    position: absolute;
    left: 5px;
    width: 8px;
    height: 8px;
    background: #f44336;
    border-radius: 50%;
}

.role-slot-header {
    font-weight: bold;
    color: #d4af37;
    font-size: 1em;
    text-transform: capitalize;
    min-width: 80px;
    font-size: 0.95em;
}

.role-slot-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-slot-empty {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.role-slot-player {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.role-slot-player-name {
    color: #e0e0e0;
    font-size: 0.95em;
    font-weight: 500;
}

.role-slot-archetype-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Epic Player Join Animation */
@keyframes epicJoin {
    0% {
        transform: scale(0.3) rotateY(180deg);
        opacity: 0;
        filter: brightness(0) drop-shadow(0 0 0 rgba(212, 175, 55, 0));
    }
    20% {
        transform: scale(1.2) rotateY(0deg);
        opacity: 0.8;
        filter: brightness(2) drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    }
    40% {
        transform: scale(0.95) rotateY(0deg);
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 30px rgba(212, 175, 55, 1));
    }
    60% {
        transform: scale(1.05);
        filter: brightness(1.8) drop-shadow(0 0 40px rgba(212, 175, 55, 1));
    }
    80% {
        transform: scale(1);
        filter: brightness(1.3) drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1) drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
    }
}

@keyframes epicGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.5),
                    0 0 20px rgba(212, 175, 55, 0.3),
                    0 0 30px rgba(212, 175, 55, 0.2),
                    inset 0 0 10px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8),
                    0 0 40px rgba(212, 175, 55, 0.6),
                    0 0 60px rgba(212, 175, 55, 0.4),
                    inset 0 0 20px rgba(212, 175, 55, 0.3);
    }
}

@keyframes epicPulse {
    0%, 100% {
        border-color: #4a8a4a;
        background: rgba(42, 74, 42, 0.3);
    }
    25% {
        border-color: #d4af37;
        background: rgba(212, 175, 55, 0.4);
    }
    50% {
        border-color: #ffd700;
        background: rgba(255, 215, 0, 0.5);
    }
    75% {
        border-color: #d4af37;
        background: rgba(212, 175, 55, 0.4);
    }
}

@keyframes epicShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.role-slot.epic-join {
    animation: epicJoin 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               epicGlow 2s ease-in-out 1.2s infinite;
    position: relative;
    overflow: visible;
    z-index: 10;
}

.role-slot.epic-join::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.5),
        rgba(255, 215, 0, 0.7),
        rgba(212, 175, 55, 0.5),
        transparent
    );
    background-size: 200% 100%;
    animation: epicShimmer 1.5s ease-in-out;
    z-index: -1;
    border-radius: inherit;
}

.role-slot.epic-join .role-slot-player {
    animation: epicPulse 1.5s ease-in-out 1.2s 3;
}

.role-slot.epic-join .role-slot-archetype-icon {
    animation: epicJoin 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
}

/* Voice Chat Controls */
.voice-controls {
    background: rgba(15, 15, 20, 0.95);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.voice-controls .btn {
    min-width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .poi-list {
        grid-template-columns: 1fr;
    }
    
    img[src="logo.png"] {
        max-width: 200px !important;
    }
    
    .role-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Floating Chat Button and Panel */
.floating-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a4a2a 0%, #3a6a3a 100%);
    border: 2px solid #d4af37;
    color: #e0e0e0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.floating-chat-button:hover {
    background: linear-gradient(135deg, #3a6a3a 0%, #4a8a4a 100%);
    border-color: #e4bf47;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: scale(1.1);
}

.floating-chat-button.active {
    background: linear-gradient(135deg, #3a6a3a 0%, #4a8a4a 100%);
    border-color: #5aaa5a;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid rgba(15, 15, 20, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.floating-chat-button {
    position: relative;
}

.chat-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid #3a3a3a;
    border-left: 3px solid #d4af37;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

.chat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(20, 20, 25, 0.95);
    border-bottom: 2px solid #3a3a3a;
}

.chat-panel-header h3 {
    color: #d4af37;
    margin: 0;
    font-size: 1.2em;
}

.chat-close-button {
    background: transparent;
    border: none;
    color: #aaaaaa;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.chat-close-button:hover {
    color: #e0e0e0;
}

.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #3a3a3a #1a1a1a;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border: 1px solid #2a2a2a;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}

.chat-message {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 74, 74, 0.6);
    border: 1px solid #3a3a3a;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 90, 90, 0.8);
}
