:root {
    --bg-color: #050a14;
    --neon-blue: #00d2ff;
    --neon-glow: rgba(0, 210, 255, 0.4);
    --text-white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: #000;
    color: var(--text-white);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.phone-wrapper {
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 850px;
    background: var(--bg-color);
    background: radial-gradient(circle at center, #0a1428 0%, #050a14 100%);
    border-radius: 40px;
    border: 10px solid #1a1a1a;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.1);
    overflow-y: auto;
    position: relative;
    scrollbar-width: none;
}

.phone-wrapper::-webkit-scrollbar {
    display: none;
}

.app-container {
    width: 100%;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

/* Logo Section */
.logo-container {
    margin-bottom: 30px;
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-container.mini {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-glow);
}

.logo-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--neon-glow) 0%, transparent 70%);
    z-index: 1;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

/* Menu Items */
.menu-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 400;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.menu-item:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 10px rgba(0, 210, 255, 0.1);
    transform: translateX(5px);
}

.menu-item i {
    margin-right: 18px;
    width: 22px;
    height: 22px;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

/* Search Bar */
.search-container {
    width: 100%;
    position: relative;
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    padding: 12px 45px 12px 20px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

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

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-blue);
    width: 18px;
    height: 18px;
}

/* Action Button */
.action-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: rgba(0, 210, 255, 0.15);
}

.action-button i {
    color: var(--neon-blue);
    width: 20px;
    height: 20px;
}

/* List Header */
.list-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.list-title {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.view-all {
    font-size: 0.85rem;
    color: var(--neon-blue);
    text-decoration: none;
}

/* Championship List */
.championship-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.champ-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.champ-item:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.08);
    transform: translateX(3px);
}

.champ-icon {
    width: 20px;
    height: 20px;
    color: var(--neon-blue);
    margin-right: 15px;
    flex-shrink: 0;
}

.champ-name {
    flex-grow: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    flex-shrink: 0;
}

.star-icon {
    width: 18px;
    height: 18px;
    color: var(--neon-blue);
    opacity: 0.7;
    flex-shrink: 0;
}

/* Player List Styles */
.player-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.05);
}

.player-item:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
    transform: scale(1.01);
}

.star-icon-left {
    width: 20px;
    height: 20px;
    color: var(--neon-blue);
    margin-right: 15px;
    flex-shrink: 0;
    opacity: 0.8;
}

.player-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.player-name {
    font-size: 1rem;
    font-weight: 600;
}

.player-pos {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.badge-icon-right {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Detail View Styles */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-glow);
    overflow: hidden;
    margin-bottom: 10px;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.big-title-box {
    width: 100%;
    background: rgba(0, 210, 255, 0.05);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
}

.big-title-box h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-container {
    width: 100%;
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-header i {
    color: var(--neon-blue);
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.card-header i {
    color: var(--neon-blue);
    width: 14px;
    height: 14px;
}

.card-title-small {
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-bottom: 8px;
    font-weight: 500;
}

.map-preview {
    width: 100%;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 5px;
}

.map-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.team-logo {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.vs-text {
    font-size: 0.8rem;
}

.match-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.card-button {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 6px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.mini-table th {
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    padding-bottom: 5px;
}

.mini-table td {
    padding: 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pts-col { text-align: right; }

.sponsor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 12px;
    padding: 15px;
    width: 100%;
}

.sponsor-title-inner {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.sponsor-content {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.sponsor-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.sponsor-names-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    flex-grow: 1;
}

.sponsor-name-tag {
    background: white;
    color: #444;
    font-size: 0.65rem;
    padding: 4px;
    text-align: center;
    border-radius: 2px;
    font-weight: 600;
}

.sponsor-footer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 30px 0 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-menu {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
}

.close-menu i {
    margin-right: 8px;
    color: var(--neon-blue);
    width: 18px;
    height: 18px;
}

/* Advanced Search Styles */
.advanced-search-box {
    width: 100%;
    border: 1px solid var(--neon-blue);
    border-radius: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.1);
}

.search-box-title {
    text-align: center;
    color: var(--neon-blue);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.search-inputs-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input-small {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.input-label-tiny {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 4px;
}

.position-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.pos-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-icon-box {
    width: 50px;
    height: 50px;
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    color: var(--neon-blue);
}

.pos-icon-box i {
    width: 24px;
    height: 24px;
}

.pos-item span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.pos-item.active .pos-icon-box {
    background: rgba(0, 210, 255, 0.15);
    box-shadow: 0 0 15px var(--neon-glow);
}

.filter-categories {
    border-top: 1px solid rgba(0, 210, 255, 0.2);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.radio-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    position: relative;
}

.radio-check.checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-blue);
}

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

.cat-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.cat-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.drop-arrow {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.age-dropdown {
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    background: rgba(10, 20, 40, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.age-option {
    padding: 8px 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.age-option.active {
    color: var(--neon-blue);
    background: rgba(0, 210, 255, 0.05);
}

/* --- Responsive Adjustments --- */

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        overflow-y: auto;
    }

    .phone-wrapper {
        max-width: 100%;
        height: auto;
        min-height: 100vh;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .app-container {
        padding: 30px 20px;
    }

    .logo-container {
        width: 160px;
        height: 160px;
    }

    .logo-container.mini {
        width: 90px;
        height: 90px;
    }

    .big-title-box h1 {
        font-size: 1.3rem;
    }
}

@media (max-width: 380px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .sponsor-names-grid {
        grid-template-columns: 1fr 1fr;
    }

    .position-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .phone-wrapper {
        height: auto;
        max-height: none;
    }
    
    body {
        align-items: flex-start;
        overflow-y: auto;
    }
}

/* --- Perfil del Jugador Styles --- */
.profile-container {
    padding: 30px 20px;
}

.profile-main-title {
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.profile-avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-width: 4px;
    background: rgba(0, 40, 80, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    border-radius: 50%;
    border: 3px solid rgba(0, 150, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.4);
    overflow: hidden;
}

.public-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2ecc71;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.toggle-label {
    font-size: 0.9rem;
}

.profile-field-group {
    width: 100%;
    margin-bottom: 15px;
}

.profile-row-fields {
    display: flex;
    gap: 15px;
    width: 100%;
}

.half-width {
    width: 50%;
}

.profile-label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.profile-input-box {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0, 10, 25, 0.6);
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15), inset 0 0 10px rgba(0, 210, 255, 0.1);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.profile-input-box:focus {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4), inset 0 0 10px rgba(0, 210, 255, 0.2);
}

select.profile-input-box {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Fix dropdown arrow for select */
.profile-field-group {
    position: relative;
}

.with-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5px;
}

.certified-badge-img {
    position: absolute;
    right: -10px;
    top: -15px;
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.profile-box-panel {
    background: rgba(0, 10, 25, 0.6);
    border: 2px solid var(--neon-blue);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15), inset 0 0 10px rgba(0, 210, 255, 0.1);
}

.timeline-graphic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 15px;
    padding: 0 10px;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(0, 100, 200, 0.5);
    z-index: 1;
}

.timeline-point {
    background: #000;
    z-index: 2;
    color: var(--neon-blue);
    display: flex;
}

.timeline-point i {
    width: 16px;
    height: 16px;
}

.timeline-arrow {
    color: rgba(0, 100, 200, 0.8);
    z-index: 2;
    background: transparent;
    width: 24px;
    height: 24px;
}

.timeline-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.sponsor-panel {
    padding: 10px 15px 15px;
}

.sponsor-icons-right {
    display: flex;
    gap: 15px;
}

.sponsor-icon-large {
    width: 24px;
    height: 24px;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.sponsor-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 12px;
}

.sponsor-logo-box {
    background: white;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    height: 40px;
    color: #333;
}

.sponsor-logo-box.large {
    height: auto;
}

.sponsor-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tiny-sponsor {
    font-size: 0.6rem;
    font-weight: 600;
}

.sponsor-action-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 20px;
    padding: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.profile-bottom-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.profile-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--neon-blue);
    color: white;
    background: rgba(0, 10, 25, 0.8);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
    transition: all 0.2s;
}

.profile-btn:hover {
    background: rgba(0, 210, 255, 0.15);
}

.profile-btn i {
    width: 18px;
    height: 18px;
}
