:root {
    --primary-bg: #0a0b1e;
    --secondary-bg: #161b33;
    --accent-color: #00f2ff;
    --text-color: #e0e0e0;
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
    min-height: 100vh;
}

.navbar {
    height: var(--navbar-height);
    background: rgba(22, 27, 51, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.omen-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #00f2ff, #7000ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fifa-text {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link-main {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-link-main:hover {
    color: var(--accent-color);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.nav-link-main.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.nav-link-login {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    background: rgba(0, 242, 255, 0.05);
}

.nav-link-login:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Selector Bars */
.selector-container {
    background: var(--secondary-bg);
    padding-top: 10px;
}

.phase-bar,
.group-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    white-space: nowrap;
}

.phase-tab,
.group-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.phase-tab:hover,
.group-tab:hover {
    color: #fff;
}

.phase-tab.active,
.group-tab.active {
    color: #fff;
}

.phase-tab.active::after,
.group-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Match Grid */
.content {
    padding: 40px 20px;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Match Card */
.match-card {
    background: #1e2544;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 255, 0.3);
}

.card-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.card-body {
    padding: 30px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 33%;
}

.flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.score-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-input {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
}

.score-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.1);
}

.separator {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.5;
}

.card-meta {
    padding: 0 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.prediction-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.updated-at {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.points-badge {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.official-result {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.card-footer {
    padding: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.unknown-team {
    width: 60px;
    height: 40px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Ranking Table Styles */
.ranking-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranking-table {
    background: rgba(22, 27, 51, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    overflow: hidden;
}

.table-header,
.table-row {
    display: flex;
    padding: 15px 30px;
    align-items: center;
}

.table-header {
    background: rgba(0, 242, 255, 0.05);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    color: var(--accent-color);
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-row:last-child {
    border-bottom: none;
}

.cell {
    padding: 10px;
}

.cell.pos {
    width: 60px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.cell.name {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.cell.score {
    width: 120px;
    text-align: right;
    font-weight: 700;
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
}

/* Highlight top 3 */
.table-row:nth-child(2) .cell.pos {
    color: #ffd700;
}

/* Gold */
.table-row:nth-child(3) .cell.pos {
    color: #c0c0c0;
}

/* Silver */
.table-row:nth-child(4) .cell.pos {
    color: #cd7f32;
}

/* Bronze */

/* Rules View Styles */
.rules-container {
    max-width: 1000px;
    margin: 0 auto;
}

.rules-card {
    background: rgba(22, 27, 51, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rule-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.rule-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rule-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.scoring-rules {
    margin-bottom: 40px;
}

.scoring-rules h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.score-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.score-card:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.score-card .points {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.score-card .label {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 500;
}

.score-card.highlight {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(112, 0, 255, 0.1));
    border-color: var(--accent-color);
}

.score-card.highlight .points {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

.score-card.bonus .points {
    color: #00ff88;
}

.score-card.zero .points {
    opacity: 0.5;
}

.rules-note {
    background: rgba(255, 0, 0, 0.05);
    border-left: 4px solid #ff4444;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Fixture Management */
.fixture-management-container {
    padding: 20px;
}

.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.management-controls {
    display: flex;
    gap: 15px;
}

.btn-premium {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.btn-premium:hover {
    background: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transform: translateY(-2px);
}

.btn-premium:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn-premium.primary {
    background: rgba(0, 243, 255, 0.3);
    font-weight: bold;
}

.fixture-edit-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.fixture-edit-grid::-webkit-scrollbar {
    width: 6px;
}

.fixture-edit-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.mgmt-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(22, 27, 51, 0.4);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    align-items: flex-end;
}

.mgmt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.mgmt-filter-group label {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.mgmt-filter-input {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mgmt-filter-input option {
    background-color: var(--secondary-bg);
    color: #fff;
}

.mgmt-filter-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.1);
}

.management-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 150px 150px 1fr;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.management-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.management-row.editing {
    border-left-color: var(--accent);
    background: rgba(0, 243, 255, 0.02);
}

.m-id {
    color: var(--text-dim);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
}

.m-teams {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.m-vs {
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.6;
}

.m-score,
.m-penalties {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.m-input {
    width: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    padding: 5px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
}

.m-input:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(0, 243, 255, 0.05);
}

.m-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: transparent;
}

.m-label {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
}

.m-phase {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: right;
}

/* Larger Management UI */
.management-row {
    grid-template-columns: 80px 2fr 180px 180px 1fr;
    gap: 20px;
}

.m-teams {
    font-size: 1.2rem;
    /* Larger team names */
}

.m-score .m-input,
.m-penalties .m-input {
    width: 60px;
    height: 40px;
    font-size: 1.2rem;
    /* Larger inputs */
}

.m-team-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent);
    padding: 5px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
}

.m-team-input:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(0, 243, 255, 0.05);
}

.m-team-input:disabled {
    border: none;
    background: transparent;
    color: #fff;
    padding: 0;
    text-align: right;
}

/* Adjust grid layout for inputs */
.m-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    text-align: center;
}

.m-teams> :nth-child(1) {
    order: 1;
}

.m-teams> :nth-child(2) {
    order: 2;
}

.m-teams> :nth-child(3) {
    order: 3;
}


/* Account View Styles */
.account-container {
    max-width: 600px;
    margin: 0 auto;
}

.account-card {
    background: rgba(22, 27, 51, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-bg);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-email {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.05);
}

#btn-logout {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

#btn-logout:hover {
    background: rgba(255, 68, 68, 0.2);
}

.autosave-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
    transition: all 0.3s ease;
}

.autosave-status.saving {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    border-color: var(--accent-color);
}

.status-icon {
    font-size: 1.1rem;
}

.card-body.locked {
    opacity: 0.7;
    pointer-events: none;
}

.locked-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
    z-index: 5;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, #12141d 0%, #1a1e2e 100%);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(0, 242, 255, 0.3);
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.close-modal {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.ranking-clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.ranking-clickable:hover {
    background: rgba(0, 242, 255, 0.1) !important;
}

/* Modal Grid */
.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.modal-match-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-match-header {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.modal-match-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modal-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.modal-team.team1 {
    justify-content: flex-end;
    text-align: right;
}

.modal-team.team2 {
    justify-content: flex-start;
    text-align: left;
}

.modal-score-area {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.modal-match-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.modal-pts {
    font-weight: 700;
    color: var(--accent-color);
}

.modal-actual {
    opacity: 0.7;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (Media Queries)
   ========================================================================== */

/* Tablet & Mobile Devices (under 1024px) */
@media (max-width: 1024px) {
    .match-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar {
        padding: 0 20px;
    }
}

/* Small Mobile Devices (under 600px) */
@media (max-width: 600px) {
    :root {
        --navbar-height: 70px;
    }

    .navbar {
        height: auto;
        padding: 15px 10px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        align-items: center;
    }

    .omen-text {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link-main {
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    .content {
        padding: 20px 10px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    /* Selector Bars */
    .phase-bar,
    .group-bar {
        justify-content: flex-start;
        /* Crucial for scrolling */
        padding: 10px 15px;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling for iOS */
        scrollbar-width: thin;
        /* Firefox */
        scroll-snap-type: x mandatory;
    }

    /* Subtle scrollbar for mobile visibility */
    .phase-bar::-webkit-scrollbar,
    .group-bar::-webkit-scrollbar {
        height: 3px;
    }

    .phase-bar::-webkit-scrollbar-thumb,
    .group-bar::-webkit-scrollbar-thumb {
        background: rgba(0, 242, 255, 0.3);
        border-radius: 10px;
    }

    .phase-tab,
    .group-tab {
        padding: 8px 15px;
        font-size: 0.85rem;
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Match Grid & Cards */
    .match-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-body {
        padding: 20px 10px;
        gap: 5px;
    }

    .team {
        gap: 8px;
    }

    .flag {
        width: 45px;
        height: 30px;
    }

    .team-name {
        font-size: 0.95rem;
    }

    .score-input {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .score-area {
        gap: 8px;
    }

    .prediction-info {
        flex-direction: column;
        gap: 5px;
    }

    .points-badge {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 5px;
        width: 100%;
        text-align: center;
    }

    /* Ranking Table */
    .table-header,
    .table-row {
        padding: 12px 10px;
    }

    .cell.pos {
        width: 40px;
        font-size: 0.9rem;
    }

    .cell.name {
        font-size: 0.95rem;
    }

    .cell.score {
        width: 80px;
        font-size: 0.9rem;
    }

    /* Rules Card */
    .rules-card {
        padding: 20px;
    }

    .rule-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .rule-content p {
        font-size: 1rem;
    }

    .score-grid {
        grid-template-columns: 1fr 1fr;
    }

    .score-card {
        padding: 15px;
    }

    .score-card .points {
        font-size: 2rem;
    }

    /* Account View */
    .account-card {
        padding: 20px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    /* Fixture Management */
    .mgmt-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .management-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .management-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 10px;
    }

    .m-teams {
        grid-template-columns: 1fr 30px 1fr;
    }

    .m-phase {
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 10px;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-match-main {
        flex-direction: column;
        gap: 15px;
    }

    .modal-team.team1,
    .modal-team.team2 {
        justify-content: center;
        text-align: center;
    }

    .modal-score-area {
        order: -1;
    }
}